:root {
	color-scheme: light;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", sans-serif;
	color: #20313d;
	background: #f4f7f8;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	--navy: #183345;
	--ink: #20313d;
	--muted: #61727c;
	--line: #d8e2e6;
	--paper: #ffffff;
	--canvas: #f4f7f8;
	--teal: #2f737a;
	--teal-pale: #e4f1f2;
	--rose: #bd465b;
	--rose-pale: #f9e9ec;
	--gold-pale: #fbf1dc;
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-size: 1rem;
	line-height: 1.55;
}

a {
	color: inherit;
}

button,
input {
	font: inherit;
}

button,
a,
input {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid #e3a33b;
	outline-offset: 3px;
}

.site-header {
	background: var(--navy);
	color: #fff;
}

.header-inner,
.footer-inner {
	width: min(1120px, calc(100% - 2.5rem));
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.header-inner {
	min-height: 76px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: #fff;
	font-weight: 750;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.brand-mark {
	display: grid;
	width: 2.25rem;
	aspect-ratio: 1;
	place-items: center;
	border-radius: 0.75rem;
	background: #fff;
	color: var(--navy);
	font-size: 0.78rem;
	font-weight: 850;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.site-nav a {
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	color: #dbe7eb;
	font-size: 0.94rem;
	font-weight: 650;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.site-shell {
	width: min(1120px, calc(100% - 2.5rem));
	margin-inline: auto;
	padding-block: 3rem 4rem;
}

.hero {
	padding: clamp(2rem, 6vw, 4.5rem);
	border: 1px solid #d6e3e7;
	border-radius: 1.5rem;
	background:
		radial-gradient(circle at 90% 5%, rgba(191, 224, 227, 0.8), transparent 30%),
		linear-gradient(135deg, #fff 5%, #edf5f6 100%);
	box-shadow: 0 18px 45px rgba(24, 51, 69, 0.06);
}

.eyebrow,
.panel-kicker,
.card-kicker {
	margin: 0 0 0.55rem;
	color: var(--teal);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	max-width: 760px;
	margin-bottom: 1rem;
	color: var(--navy);
	font-size: clamp(2.3rem, 6vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.045em;
}

.hero-copy {
	max-width: 720px;
	margin-bottom: 0;
	color: var(--muted);
	font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.library-section {
	margin-top: 3.5rem;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.section-heading h2 {
	margin: 0;
	color: var(--navy);
	font-size: clamp(1.5rem, 3vw, 2rem);
	letter-spacing: -0.025em;
}

.item-count {
	margin: 0 0 0.2rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem;
}

.library-card {
	display: flex;
	min-height: 240px;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.65rem;
	border: 1px solid var(--line);
	border-radius: 1.15rem;
	background: var(--paper);
	box-shadow: 0 10px 28px rgba(24, 51, 69, 0.05);
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.library-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 36px rgba(24, 51, 69, 0.11);
}

.adult-card {
	border-top: 5px solid var(--teal);
}

.paediatric-card {
	border-top: 5px solid var(--rose);
}

.library-card h3 {
	margin: 0 0 0.65rem;
	color: var(--navy);
	font-size: 1.45rem;
	line-height: 1.2;
}

.library-card p {
	max-width: 32rem;
	margin-bottom: 1.4rem;
	color: var(--muted);
}

.card-action {
	margin-top: auto;
	color: var(--teal);
	font-weight: 750;
}

.paediatric-card .card-action {
	color: var(--rose);
}

.prototype-note {
	margin-top: 2rem;
	padding: 1.1rem 1.25rem;
	border-left: 4px solid #d69a39;
	border-radius: 0.4rem 0.9rem 0.9rem 0.4rem;
	background: var(--gold-pale);
	color: #5e4a25;
}

.prototype-note strong {
	display: block;
	margin-bottom: 0.2rem;
}

.prototype-note p {
	margin: 0;
	font-size: 0.94rem;
}

.checklist-page {
	padding-top: 2rem;
}

.page-intro {
	margin-bottom: 1.5rem;
}

.back-link {
	display: inline-block;
	margin-bottom: 1.5rem;
	color: var(--teal);
	font-size: 0.94rem;
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.page-intro h1 {
	margin-bottom: 0.7rem;
	font-size: clamp(2rem, 5vw, 3.3rem);
}

.page-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.25rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--line);
	border-radius: 0.9rem;
	background: #fff;
}

.page-actions p {
	margin: 0;
	color: var(--muted);
	font-size: 0.94rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border: 1px solid transparent;
	border-radius: 0.7rem;
	cursor: pointer;
	font-weight: 750;
}

.button-secondary {
	border-color: #cbd9de;
	background: #fff;
	color: var(--navy);
	white-space: nowrap;
}

.button-secondary:hover {
	background: var(--teal-pale);
}

.progress-card {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(120px, 2fr) auto;
	align-items: center;
	gap: 1.1rem;
	margin-bottom: 1.1rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--line);
	border-radius: 0.95rem;
	background: #fff;
}

.progress-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.progress-copy strong {
	color: var(--navy);
}

.progress-copy span {
	color: var(--muted);
	font-size: 0.9rem;
}

progress {
	width: 100%;
	height: 0.7rem;
	border: 0;
	border-radius: 999px;
	overflow: hidden;
	accent-color: var(--teal);
}

progress::-webkit-progress-bar {
	border-radius: 999px;
	background: #e8eef0;
}

progress::-webkit-progress-value {
	border-radius: 999px;
	background: var(--teal);
}

.text-button {
	padding: 0.4rem 0.2rem;
	border: 0;
	background: transparent;
	color: var(--teal);
	cursor: pointer;
	font-weight: 750;
	white-space: nowrap;
}

.text-button:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.check-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 1rem;
}

.check-panel,
.reference-card {
	min-width: 0;
	padding: 1.3rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 9px 25px rgba(24, 51, 69, 0.045);
}

.panel-blue {
	border-top: 4px solid #6ba7ad;
}

.panel-pink {
	border-top: 4px solid #d77988;
}

.panel-heading {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.step-index {
	display: grid;
	width: 2.3rem;
	height: 2.3rem;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 50%;
	background: var(--teal-pale);
	color: var(--teal);
	font-size: 0.78rem;
	font-weight: 850;
}

.panel-pink .step-index {
	background: var(--rose-pale);
	color: var(--rose);
}

.panel-heading .panel-kicker {
	margin-bottom: 0.1rem;
}

.panel-heading h2 {
	margin: 0;
	color: var(--navy);
	font-size: 1.25rem;
	line-height: 1.2;
}

.check-list,
.sub-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list > li + li {
	margin-top: 0.72rem;
}

.check-row {
	display: flex;
	align-items: flex-start;
	gap: 0.68rem;
	cursor: pointer;
	line-height: 1.42;
}

.check-row input {
	width: 1.15rem;
	height: 1.15rem;
	flex: 0 0 auto;
	margin: 0.14rem 0 0;
	accent-color: var(--teal);
	cursor: pointer;
}

.panel-pink .check-row input {
	accent-color: var(--rose);
}

.check-row input:checked + span {
	color: #71818a;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.sub-list {
	display: grid;
	gap: 0.58rem;
	margin: 0.58rem 0 0.1rem 1.25rem;
	padding-left: 0.8rem;
	border-left: 2px solid #e7eef0;
}

.plain-list-label {
	display: block;
	margin-bottom: 0.45rem;
	font-weight: 700;
}

.plain-list-item > .sub-list {
	margin-top: 0;
}

.helper-text {
	margin: 0.45rem 0 0.2rem 1.85rem;
	color: var(--muted);
	font-size: 0.88rem;
}

.bleep-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
	margin-top: 1.2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
}

.field label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 750;
}

.field input {
	width: 100%;
	min-height: 2.6rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid #bdccd2;
	border-radius: 0.55rem;
	background: #fff;
	color: var(--ink);
}

.field input:focus {
	border-color: var(--teal);
}

.reference-section {
	margin-top: 2.8rem;
}

.reference-grid {
	display: grid;
	grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
	align-items: start;
	gap: 1rem;
}

.reference-card h3 {
	margin-bottom: 0.65rem;
	color: var(--navy);
	font-size: 1.12rem;
}

.reference-card p:last-child {
	margin-bottom: 0;
}

.adrenaline-card {
	border-top: 4px solid #9b8cb4;
	background: #f5f1f8;
}

.adrenaline-card h3:not(:first-of-type) {
	margin-top: 1.2rem;
}

.table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 0.7rem;
	background: #fff;
}

.reference-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.reference-table th,
.reference-table td {
	padding: 0.65rem 0.72rem;
	border-bottom: 1px solid #e5ecef;
	vertical-align: top;
}

.reference-table thead th {
	background: var(--navy);
	color: #fff;
	font-size: 0.86rem;
	font-weight: 750;
}

.reference-table tbody tr:last-child th,
.reference-table tbody tr:last-child td {
	border-bottom: 0;
}

.dose-table th[scope="row"] {
	width: 34%;
	color: var(--navy);
}

.age-card {
	margin-top: 1rem;
}

.age-table {
	min-width: 900px;
	font-size: 0.89rem;
	text-align: center;
}

.age-table th:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	min-width: 150px;
	background: #e4f1f2;
	color: var(--navy);
	text-align: left;
}

.age-table thead th:first-child {
	background: var(--navy);
	color: #fff;
}

.age-table th,
.age-table td {
	padding: 0.65rem 0.5rem;
	white-space: nowrap;
}

.table-note {
	max-width: 780px;
	color: var(--muted);
	font-size: 0.9rem;
}

.callout-list-item {
	padding: 0.7rem 0.85rem;
	border-radius: 0.65rem;
	background: var(--rose-pale);
	color: #a3394d;
	font-weight: 750;
}

.callout-text {
	margin: 0;
}

.site-footer {
	border-top: 1px solid var(--line);
	background: #fff;
	color: var(--muted);
	font-size: 0.9rem;
}

.footer-inner {
	min-height: 68px;
}

.footer-inner a {
	color: var(--teal);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

@media (max-width: 760px) {
	.header-inner,
	.footer-inner {
		width: min(100% - 1.5rem, 1120px);
	}

	.header-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.55rem;
		padding-block: 0.8rem;
	}

	.site-nav {
		width: 100%;
	}

	.site-nav a {
		padding: 0.45rem 0.7rem;
	}

	.site-shell {
		width: min(100% - 1.5rem, 1120px);
		padding-block: 1.5rem 2.5rem;
	}

	.card-grid,
	.check-grid,
	.reference-grid {
		grid-template-columns: 1fr;
	}

	.progress-card {
		grid-template-columns: 1fr auto;
	}

	.progress-card progress {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.page-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.button-secondary {
		width: 100%;
	}
}

@media (max-width: 430px) {
	.section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.3rem;
	}

	.check-panel,
	.reference-card {
		padding: 1rem;
	}

	.bleep-fields {
		grid-template-columns: 1fr;
	}

	.footer-inner {
		align-items: flex-start;
		justify-content: center;
		flex-direction: column;
		gap: 0.2rem;
		padding-block: 0.8rem;
	}
}

@media print {
	body {
		background: #fff;
		font-size: 11pt;
	}

	.site-header,
	.site-footer,
	.back-link,
	.page-actions button,
	.progress-card button,
	.progress-card progress {
		display: none !important;
	}

	.site-shell {
		width: 100%;
		padding: 0;
	}

	.page-intro {
		margin-bottom: 1rem;
	}

	.check-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.check-panel,
	.reference-card {
		break-inside: avoid;
		box-shadow: none;
	}

	.table-wrap {
		overflow: visible;
	}

	.age-table {
		min-width: 0;
		font-size: 8pt;
	}

	.age-table th,
	.age-table td {
		padding: 0.28rem;
		white-space: normal;
	}

	.age-table th:first-child {
		position: static;
	}

	.prototype-note {
		margin-top: 1rem;
	}
}
