/*
 * Informed Consent Generator: in-page styles for jwgrootjen.com.
 *
 * The tool's UI is confined to #icg-app; Bootstrap is loaded pre-scoped to the
 * same wrapper (bootstrap.scoped.css), so nothing here or there touches the
 * GeneratePress header, hero, or footer. These rules adapt the upstream tool to
 * the theme content column (no full-viewport centering, no global html/body
 * rules) and, on print, show only the generated consent document.
 */

/* --- On-screen layout inside the content area ----------------------------- */
#icg-app {
	font-size: 0.95rem;
}

#icg-app #demographicsPage {
	max-width: 900px;
	margin: 0 auto;
	padding: 1.5rem;
	background: var(--jwg-paper, #fff);
	border: 1px solid var(--jwg-line, #dfe7ec);
	border-radius: var(--jwg-radius, 10px);
}

#icg-app #results {
	width: 100%;
	font-family: Arial, sans-serif;
}

#icg-app .frameStyle {
	padding: 20px;
	margin: 20px 0;
	border: 1px solid #000;
	text-align: justify;
}

#icg-app #firstItem {
	float: right;
	margin-left: 15px;
}

#icg-app #firstItem img {
	max-height: 120px;
	max-width: 150px;
	margin-bottom: 50px;
}

#icg-app #hostLogo {
	max-height: 120px;
	max-width: 150px;
}

#icg-app .check {
	font-size: 1.5em;
	vertical-align: top;
	padding: 0.5rem;
}

#icg-app td.additional {
	padding-left: 1em;
}

#icg-app #signatures {
	width: 100%;
	padding: 1em 0;
	border-spacing: 20px 0;
	border-collapse: separate;
}

#icg-app #signatures td {
	margin: 10px;
}

#icg-app #signatures .sign {
	border-bottom: 1px solid #000;
	height: 3.1em;
	width: 48%;
}

#icg-app .danger::after {
	content: '*';
	color: #dc3545;
}

#icg-app #results h1 {
	font-size: 24px;
	font-weight: bold;
}

#icg-app #results h2 {
	font-size: 20px;
	font-weight: bold;
}

#icg-app #results h3 {
	font-size: 15px;
	font-weight: bold;
}

#icg-app #results table,
#icg-app #results th {
	text-align: left;
	padding-left: 30px;
	font-weight: normal !important;
	vertical-align: top;
}

#icg-app ul.checks {
	list-style: none;
	margin-left: 1em;
	padding-left: 0;
}

#icg-app ul.checks li {
	padding-left: 1em;
	text-indent: -1em;
	padding-bottom: 9px;
}

#icg-app ul.checks li::before {
	content: "\25FB";
	padding-right: 5px;
}

#icg-app hr {
	border: 0;
	border-top: 1px solid #21addf;
	margin: 5px 0;
}

#icg-app input[type=radio] {
	transform: scale(1.35);
	min-height: 22px;
}

/* --- Source credit line (always on screen, hidden on print) --------------- */
#icg-app .icg-source {
	max-width: 900px;
	margin: 1.25rem auto 0;
	font-size: 0.85rem;
	color: var(--jwg-ink-muted, #4b5a68);
}

/* --- Back link below the tool (the page shows no site header/nav) --------- */
#icg-app .icg-back {
	max-width: 900px;
	margin: 1.25rem auto 0;
	font-size: 0.85rem;
	text-align: center;
}

#icg-app .icg-back a {
	color: var(--jwg-ink-muted, #4b5a68);
	text-decoration: none;
}

#icg-app .icg-back a:hover {
	color: var(--jwg-teal-dark, #0f766e);
	text-decoration: underline;
}

/* --- Print: only the generated consent document --------------------------- */
@page {
	size: auto;
	margin: 12mm;
}

@media print {
	/* Site chrome and the tool's editing UI are removed; #results is what prints. */
	.site-header,
	.site-footer,
	.jwg-hero,
	#wpadminbar {
		display: none !important;
	}

	#icg-app #input,
	#icg-app #fieldsrequired,
	#icg-app .uiEdit,
	#icg-app .uiView,
	#icg-app .itemRow,
	#icg-app #githublink,
	#icg-app .icg-source,
	#icg-app .icg-back {
		display: none !important;
	}

	#icg-app,
	#icg-app #demographicsPage {
		max-width: none;
		margin: 0;
		padding: 0;
		background: transparent;
		border: none;
		box-shadow: none;
	}

	#icg-app #results {
		font-family: Helvetica, Arial, sans-serif;
	}

	#icg-app .frameStyle {
		border: none;
		margin: 0;
		padding: 0;
	}

	#icg-app .pageBreak {
		page-break-inside: avoid;
	}

	#icg-app h1,
	#icg-app h2,
	#icg-app h3,
	#icg-app h4,
	#icg-app h5 {
		page-break-after: avoid;
	}

	#icg-app #results h1 {
		font-size: 22pt !important;
		font-weight: bold;
	}

	#icg-app #results h2 {
		font-size: 16pt !important;
		font-weight: bold;
	}

	#icg-app #results h3 {
		font-size: 14pt !important;
		font-weight: bold;
		padding-top: 3mm;
	}

	#icg-app #results,
	#icg-app #results p,
	#icg-app #results table {
		font-size: 10pt !important;
		text-align: justify;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}
