/* Printable checklist (board 78; inc/print-checklist.php). A standalone page: one letter page
   (also fits A4), white, thin #D5E4E5 lines, teal only on the numbers and the header rule, amber
   only behind warnings. Sizes from the board file. */

@page {
	size: auto;
	margin: 0.5in;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

body.pc-body {
	margin: 0;
	background: #EEF3F4;
	font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
	color: #24363C;
	-webkit-text-size-adjust: 100%;
}

/* On screen only: a print button above the sheet. */
.pc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
	padding: 16px;
	font-size: 14px;
	color: #3D5156;
}

.pc-toolbar__print {
	padding: 11px 20px;
	background: #F2B659;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	color: #24363C;
	cursor: pointer;
}

.pc-sheet {
	display: flex;
	flex-direction: column;
	width: 8.5in;
	max-width: 100%;
	min-height: 11in;
	margin: 0 auto 32px;
	padding: 40px 48px 32px;
	background: #FFFFFF;
	box-shadow: 0 8px 30px rgba(36, 54, 60, 0.15);
}

/* Header: logo and the Order number and Name lines, over a 3 px teal rule. */
.pc-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	padding-bottom: 14px;
	border-bottom: 3px solid #1F5F67;
}

.pc-head svg {
	flex: none;
	width: 168px;
	height: auto;
}

.pc-fields {
	display: flex;
	gap: 16px;
}

.pc-head .pc-fields {
	padding-top: 6px;
}

.pc-field {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.pc-field > span:first-child {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #556A70;
}

.pc-field__line {
	display: flex;
	align-items: flex-end;
	height: 26px;
	padding-bottom: 3px;
	border-bottom: 1.5px solid #24363C;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
}

.pc-field--number {
	width: 120px;
}

.pc-field--name {
	width: 170px;
}

.pc-field--sign {
	width: 190px;
}

.pc-field--date {
	width: 90px;
}

/* Titles. */
.pc-titles {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	padding: 14px 0 8px;
}

.pc-eyebrow {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1F5F67;
}

.pc-titles h1 {
	margin: 4px 0 0;
	font-size: 28px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.pc-intro {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #3D5156;
}

.pc-meta {
	flex: none;
	margin: 0;
	text-align: right;
	font-size: 11px;
	line-height: 1.5;
	color: #556A70;
}

/* The numbered items. */
.pc-items {
	border-bottom: 1px solid #D5E4E5;
}

.pc-item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 26px;
	gap: 14px;
	align-items: start;
	padding: 11px 0;
	border-top: 1px solid #D5E4E5;
	break-inside: avoid;
}

.pc-item__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: #1F5F67;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	color: #FFFFFF;
}

.pc-item__title {
	font-size: 16px;
	font-weight: 800;
	color: #24363C;
}

.pc-item__text {
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.5;
	color: #3D5156;
}

.pc-item__box {
	display: inline-block;
	width: 24px;
	height: 24px;
	margin-top: 4px;
	background: #FFFFFF;
	border: 2px solid #1F5F67;
	border-radius: 5px;
}

/* Form links (handoff update oct29c): the label is a link on screen; the address after it is
   what a printed sheet needs. */
.pc-link {
	margin-top: 3px;
	font-size: 11.5px;
	line-height: 1.4;
	color: #556A70;
}

.pc-link a {
	font-weight: 800;
	color: #1F5F67;
}

/* A short label before the address, on paper only (the hand-carry note). */
.pc-link__print-label {
	display: none;
}

/* Warnings: amber background, an icon and bold text, so they read in black and white too. */
.pc-warn {
	display: flex;
	gap: 7px;
	align-items: flex-start;
	margin-top: 7px;
	padding: 6px 10px;
	background: #FDF4E3;
	border-left: 3px solid #F2B659;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 700;
	color: #7A4A1E;
}

.pc-warn__icon {
	flex: none;
	padding-top: 1px;
}

/* Signed confirmation and contact line. */
.pc-sign {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 24px;
	align-items: end;
	margin-top: 22px;
	break-before: avoid;
	break-inside: avoid;
}

.pc-sign p {
	margin: 0;
	font-size: 10.5px;
	line-height: 1.5;
	color: #3D5156;
}

.pc-sign strong {
	color: #24363C;
}

.pc-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #D5E4E5;
	font-size: 11px;
	color: #3D5156;
}

.pc-foot strong {
	color: #24363C;
}

.pc-foot .pc-foot__site {
	flex: none;
	color: #1F5F67;
}

/* Compact mode (DS-11 lists, 9 to 10 items; content/print-checklists.md, Layout note): tighter
   rows, smaller descriptions, the last two steps side by side as half-width items, so the list
   still fits one letter page (measured October 29: every list under 960 px at letter width). */
.is-compact .pc-head {
	padding-bottom: 10px;
}

.is-compact .pc-head svg {
	width: 150px;
}

.is-compact .pc-titles {
	padding: 10px 0 6px;
}

.is-compact .pc-titles h1 {
	font-size: 24px;
}

.is-compact .pc-intro {
	margin-top: 3px;
}

.is-compact .pc-item {
	grid-template-columns: 26px minmax(0, 1fr) 22px;
	gap: 10px;
	padding: 7px 0;
}

.is-compact .pc-item__num {
	width: 24px;
	height: 24px;
	font-size: 12.5px;
}

.is-compact .pc-item__title {
	font-size: 13.5px;
	line-height: 1.3;
}

.is-compact .pc-item__text {
	margin-top: 1px;
	font-size: 11px;
	line-height: 1.4;
}

.is-compact .pc-item__box {
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.is-compact .pc-warn {
	gap: 5px;
	margin-top: 4px;
	padding: 3px 8px;
	font-size: 10.5px;
	line-height: 1.35;
}

.is-compact .pc-warn svg {
	width: 13px;
	height: 13px;
}

.pc-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
	border-top: 1px solid #D5E4E5;
	break-inside: avoid;
}

.pc-pair .pc-item {
	border-top: 0;
}

.is-compact .pc-sign {
	margin-top: 6px; /* 6 px (was 10) since the "Hand-carry note:" line, to keep one page. */
}

.is-compact .pc-foot {
	padding-top: 8px;
}

.is-compact .pc-link {
	margin-top: 1px;
	font-size: 10.5px;
	line-height: 1.35;
}

/* Tight (India's visa list, Roman, October 31): the board's text sizes, smaller gaps only. */
.is-tight .pc-head {
	padding-bottom: 10px;
}

.is-tight .pc-titles {
	padding: 10px 0 6px;
}

.is-tight .pc-item {
	padding: 6px 0;
}

/* Ten or more items (the damaged passport list): a little denser still. */
.is-dense .pc-titles h1 {
	font-size: 22px;
}

.is-dense .pc-item {
	padding: 4px 0;
}

.is-dense .pc-sign {
	margin-top: 6px;
}

.is-dense .pc-item__text {
	line-height: 1.35;
}

.is-dense .pc-warn {
	margin-top: 3px;
	padding: 2px 8px;
}

/* Phones (on screen): stack the header and the side-by-side parts. */
@media screen and (max-width: 720px) {
	.pc-sheet {
		min-height: 0;
		margin-bottom: 16px;
		padding: 24px 16px;
	}

	.pc-head,
	.pc-titles {
		flex-direction: column;
		align-items: flex-start;
	}

	.pc-meta {
		text-align: left;
	}

	.pc-pair,
	.pc-sign {
		grid-template-columns: 1fr;
	}

	.pc-fields {
		flex-wrap: wrap;
	}
}

@media print {
	body.pc-body {
		background: #FFFFFF;
	}

	.pc-toolbar {
		display: none;
	}

	.pc-sheet {
		width: auto;
		min-height: 0;
		margin: 0;
		padding: 0;
		box-shadow: none;
	}

	/* One sheet per applicant: each starts a new page. */
	.pc-sheet + .pc-sheet {
		break-before: page;
	}

	/* 8 px (was 18) since the form addresses were added (October 29), to keep one page. */
	.pc-foot {
		margin-top: 8px;
	}

	/* On paper the label repeats the item, so only the address shows. */
	.pc-link {
		margin-top: 1px;
		font-size: 10px;
		line-height: 1.3;
		color: #3D5156;
	}

	.pc-link a {
		display: none;
	}

	.pc-link__address {
		font-weight: 700;
	}

	.pc-link__dot {
		display: none;
	}

	/* Compact rows 6 px on paper (7 on screen), for the child list's three form lines. */
	.is-compact .pc-item {
		padding: 6px 0;
	}

	.is-dense .pc-item {
		padding: 4px 0;
	}

	.pc-link__print-label {
		display: inline;
		font-weight: 800;
		color: #24363C;
	}
}
