/* Tyneside Pharmacy — site styles
   Concept: plain, clinical and easy to read. The one bold element is the
   dispensing label in the home page hero; everything else stays quiet. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #171717;
  --ink-soft: #4b535a;
  --paper: #ffffff;
  --surface: #eef3f6;
  --surface-strong: #dbe6ed;
  --rule: #cdd7de;
  --green: #1d6b52;
  --green-dark: #14503d;
  --green-tint: #e5f0eb;
  --blue: #347ca7;
  --alert: #a4241b;
  --alert-tint: #fbeceb;
  --focus: #ffdd00;

  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --measure: 40rem;
  --radius: 6px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space-section: clamp(3rem, 7vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern";
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.25rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }
em { font-style: normal; } /* headline accents from the old site are shown plainly */
strong { font-weight: 700; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 0;
  background-color: var(--focus);
  color: var(--ink);
  box-shadow: 0 0 0 6px var(--focus);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { background-color: var(--paper); }

.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; background: var(--focus); color: var(--ink); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

main:focus { outline: none; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--green); text-decoration: none; }
.brand-mark { flex: none; width: 2.25rem; height: 2.25rem; }
.brand-name { color: var(--ink); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { font-weight: 400; }
.brand-reverse { color: var(--paper); }
.brand-reverse .brand-name { color: var(--paper); }
.brand-reverse .brand-mark path { fill: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a.button, .site-nav a.button:hover { color: var(--paper); text-decoration: none; }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-weight: 700; white-space: nowrap; }

.nav-toggle { display: none; }

@media (max-width: 64rem) {
  .js .nav-toggle {
    display: inline-block; font: inherit; font-size: 1rem; font-weight: 700;
    padding: 0.5rem 0.9rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); cursor: pointer;
  }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1.25rem; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 0.7rem 0; border-top: 1px solid var(--rule); font-size: 1.125rem; }
  .header-actions { justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 1rem; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block; font: inherit; font-weight: 700; line-height: 1.2;
  padding: 0.85rem 1.35rem; border: 2px solid var(--green); border-radius: var(--radius);
  background: var(--green); color: var(--paper); text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 var(--green-dark);
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--paper); text-decoration: none; }
.button:active { transform: translateY(2px); box-shadow: none; }
.button-secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.button-secondary:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.button-small { padding: 0.55rem 1rem; font-size: 1rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

.ext { font-size: 0.85em; }

/* ---------- Sections ---------- */

.section { padding: var(--space-section) 0; }
.section + .section { padding-top: 0; }
.section-tint { background: var(--surface); }
.section-tint + .section, .section + .section-tint { padding-top: var(--space-section); }
.section-rule { border-top: 1px solid var(--rule); }

.kicker { color: var(--green); font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose > *:last-child { margin-bottom: 0; }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p:not(.kicker) { color: var(--ink-soft); }

.page-intro { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.page-intro h1 { max-width: 20ch; }
.page-intro .lede { margin-bottom: 0; }
.review-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 2rem; margin: 1.5rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.review-meta div { min-width: 0; }

/* Plain rows separated by rules, used instead of card grids */
.rows { display: grid; gap: 0 clamp(1.5rem, 4vw, 3rem); list-style: none; padding: 0; margin: 0; }
.rows > * { border-top: 2px solid var(--ink); padding: 1.1rem 0 1.75rem; }
.rows h3 { margin-bottom: 0.4rem; }
.rows p { color: var(--ink-soft); margin-bottom: 0.75rem; }
.rows p:last-child { margin-bottom: 0; }
.rows-meta { font-size: 0.95rem; font-weight: 700; color: var(--green); margin-bottom: 0.35rem; }
@media (min-width: 44rem) { .rows-2, .rows-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .rows-3 { grid-template-columns: repeat(3, 1fr); } }

.two-col { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); }
@media (min-width: 56rem) { .two-col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

/* Numbered steps: only for real sequences */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.steps > li::before {
  content: counter(step); grid-row: span 3;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--green); color: var(--paper); font-weight: 700; font-size: 1.25rem;
}
.steps h3 { margin: 0.45rem 0 0.4rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Callouts */
.callout { border-left: 6px solid var(--green); background: var(--green-tint); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: 48rem; }
.callout h2, .callout h3, .callout h4 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-alert { border-left-color: var(--alert); background: var(--alert-tint); }
.callout-plain { border-left-color: var(--ink); background: var(--surface); }
.stack > * + * { margin-top: 1.5rem; }

/* ---------- Home hero: the dispensing label ---------- */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero h1 { font-size: clamp(2.4rem, 1.7rem + 3.2vw, 4rem); max-width: 16ch; margin-bottom: 1.25rem; }
.hero .lede { max-width: 34rem; }
.status { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1rem; margin-bottom: 1.25rem; }
.status::before { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }

.parcel {
  background: var(--surface-strong);
  border-radius: 10px;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
}
/* parcel tape */
.parcel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1.4rem; height: 1.1rem;
  background: repeating-linear-gradient(90deg, rgba(52,124,167,.35) 0 14px, rgba(52,124,167,.2) 14px 28px);
}
.label {
  position: relative; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  font-size: 1rem; line-height: 1.45;
  box-shadow: 0 1px 0 rgba(23,23,23,.15), 0 12px 24px -16px rgba(23,23,23,.45);
  transform: rotate(-1.25deg);
}
@media (prefers-reduced-motion: reduce) { .label { transform: none; } }
.label-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 1.1rem; border-bottom: 1.5px solid var(--ink); }
.label-head strong { font-size: 1.15rem; }
.label-head span { font-size: 0.9rem; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.label-body { padding: 0.35rem 1.1rem; }
.label-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--rule); }
.label-line:last-child { border-bottom: 0; }
.label-line strong { font-weight: 700; }
.label-line span { color: var(--ink-soft); text-align: right; }
.label-checks { list-style: none; margin: 0; padding: 0.75rem 1.1rem; border-top: 1.5px solid var(--ink); display: grid; gap: 0.25rem; }
.label-checks li { padding-left: 1.5rem; position: relative; }
.label-checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.7rem; height: 0.4rem; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* ---------- Figures / stats ---------- */

.figures { display: grid; gap: 0 2rem; margin: 0; }
@media (min-width: 44rem) { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figures div { border-top: 2px solid var(--ink); padding: 1rem 0 1.5rem; }
.figures dt { font-size: 2.25rem; font-weight: 700; line-height: 1.1; color: var(--green); margin-bottom: 0.35rem; }
.figures dd { margin: 0; color: var(--ink-soft); }

/* Commitments */
.commitments { display: grid; gap: 2rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 56rem) { .commitments { grid-template-columns: repeat(3, 1fr); } }
.commitments li { display: flex; flex-direction: column; }
.commitments blockquote { margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.5; flex: 1; }
.commitments .who { border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.commitments .who strong { display: block; }
.commitments .who span { color: var(--ink-soft); font-size: 1rem; }

.cta-band { background: var(--ink); color: var(--paper); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin-bottom: 0.35rem; }
.cta-band p { margin: 0; color: #d5dbdf; }
.cta-band .button { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; }
.cta-band .button:hover { background: var(--surface); }

/* ---------- Registered details ---------- */

.facts { margin: 0; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.facts div { display: grid; grid-template-columns: minmax(8rem, 2fr) 3fr; gap: 1rem; padding: 0.75rem 1.1rem; border-top: 1px dashed var(--rule); }
.facts div:first-child { border-top: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts div { grid-template-columns: 1fr; gap: 0.1rem; } }

.person { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.initial { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--green); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 1.35rem; }

.image-placeholder {
  aspect-ratio: 4 / 3; border: 2px dashed var(--rule); border-radius: var(--radius); background: var(--surface);
  display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--ink-soft); font-size: 0.95rem; margin: 0;
}
.image-placeholder figcaption { font-weight: 700; color: var(--ink); }

/* ---------- Document pages (leaflet, privacy) ---------- */

.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 4rem; padding: var(--space-section) 0; }
@media (min-width: 60rem) { .doc { grid-template-columns: 15rem minmax(0, 1fr); } }
.toc { font-size: 1rem; }
.toc h2 { font-size: 1rem; margin-bottom: 0.75rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 1rem; color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--green); }
@media (min-width: 60rem) { .toc-inner { position: sticky; top: 1.5rem; } }

.doc-body { max-width: 44rem; min-width: 0; overflow-wrap: break-word; }
.doc-body a { overflow-wrap: anywhere; }
.doc-section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-section > h2 { display: flex; gap: 0.9rem; align-items: baseline; margin-bottom: 0.3rem; }
.doc-num { flex: none; min-width: 2.2rem; color: var(--green); }
.doc-sub { color: var(--ink-soft); margin-bottom: 1.25rem; font-size: 1.125rem; }
.doc-section h3 { margin-top: 1.75rem; }
.doc-section ul, .doc-section ol { padding-left: 1.35rem; }
.doc-section li { margin-bottom: 0.45rem; }

.service-list { list-style: none; padding: 0 !important; margin: 0 0 1.5rem; }
.service-list li { position: relative; padding: 0.75rem 0 0.75rem 2rem; border-top: 1px solid var(--rule); margin: 0 !important; }
.service-list li::before { position: absolute; left: 0.25rem; top: 0.8rem; font-weight: 700; }
.service-list.yes li::before { content: "✓"; color: var(--green); }
.service-list.no li::before { content: "✕"; color: var(--alert); }
.service-list strong { display: block; }
.service-list p { margin: 0.2rem 0 0; color: var(--ink-soft); }

.escalation { list-style: none; padding: 0 !important; }
.escalation li { border-left: 3px solid var(--ink); padding: 0.1rem 0 0.1rem 1rem; margin-bottom: 1.1rem !important; }
.escalation strong:first-child { display: block; }

.hours { margin: 0 0 1rem; max-width: 24rem; }
.hours div { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px dashed var(--rule); }
.hours dt { font-weight: 400; }
.hours dd { margin: 0; font-weight: 700; }

/* ---------- Health zone ---------- */

.campaigns { display: grid; gap: 1.5rem; }
.campaign { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); }
.campaign.is-live { border-width: 3px; border-color: var(--green); }
.campaign h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); max-width: 30ch; }
.campaign .prose { max-width: 44rem; }
.campaign-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.75rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--ink-soft); }
.tag { display: inline-block; font-size: 0.9rem; font-weight: 700; color: var(--green); margin-bottom: 0.5rem; }

.signpost { display: grid; gap: 1rem; }
@media (min-width: 44rem) { .signpost { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .signpost { grid-template-columns: repeat(4, 1fr); } }
.signpost > div { border-top: 6px solid var(--ink); background: var(--paper); padding: 1.1rem 1.1rem 1.25rem; }
.signpost .urgent { border-top-color: var(--alert); }
.signpost h3 { font-size: 1rem; color: var(--ink-soft); margin-bottom: 0.25rem; }
.signpost .big { font-size: 1.75rem; font-weight: 700; line-height: 1.15; margin-bottom: 0.5rem; }
.signpost p { font-size: 1rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 0 2.5rem; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-grid > div { border-top: 2px solid var(--ink); padding: 1.1rem 0 2rem; }
.contact-grid h2 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--ink-soft); }
.contact-grid .big { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.contact-grid p { color: var(--ink-soft); }

/* ---------- Register form ---------- */

.routes { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .routes { grid-template-columns: repeat(2, 1fr); } }
.route { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.route ol { padding-left: 1.3rem; flex: 1; }
.route .button { align-self: flex-start; }

.form-wrap { max-width: 44rem; }
.form fieldset { border: 0; border-top: 2px solid var(--ink); margin: 0 0 2rem; padding: 1.25rem 0 0; min-width: 0; }
.form legend { font-weight: 700; font-size: 1.3rem; padding: 0; float: left; width: 100%; margin-bottom: 0.5rem; }
.form legend + * { clear: both; }
.form fieldset > p { color: var(--ink-soft); }
.field { margin-bottom: 1.35rem; }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.req { color: var(--alert); }
.hint { color: var(--ink-soft); font-size: 1rem; margin-top: 0.35rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  padding: 0.7rem 0.8rem; border: 2px solid var(--ink); border-radius: 4px; min-height: 3rem;
}
.form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.form input[name="postcode"] { max-width: 12rem; text-transform: uppercase; }
.check { display: grid !important; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; font-weight: 400 !important; margin-bottom: 1rem !important; cursor: pointer; }
.check input { width: 1.6rem; height: 1.6rem; margin: 0.1rem 0 0; accent-color: var(--green); }
.nomination-info { background: var(--surface); padding: 1.25rem 1.4rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.nomination-info p:last-child { margin: 0; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.submit-row span { color: var(--ink-soft); font-size: 1rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; border-left: 6px solid var(--alert); background: var(--alert-tint); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 700; }
.form-error.show { display: block; }
.form-success { display: none; border: 3px solid var(--green); border-radius: var(--radius); padding: 1.75rem; }
.form-success.show { display: block; }
.form-success .ref { font-weight: 700; font-size: 1.2rem; margin: 1rem 0 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #d5dbdf; padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; font-size: 1rem; margin-top: 0; }
.site-footer a { color: var(--paper); }
.footer-top { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #3a3f44; }
@media (min-width: 56rem) { .footer-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.footer-brand p { max-width: 24rem; margin-top: 1rem; }
.footer-tagline { color: var(--paper); font-weight: 700; }
.footer-nav { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.footer-nav h2 { font-size: 1rem; color: var(--paper); margin-bottom: 0.6rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { padding-top: 1.5rem; font-size: 0.925rem; }
.footer-legal p { margin-bottom: 0.5rem; }
.footer-legal strong { color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #3a3f44; }

/* ---------- Print (practice leaflet) ---------- */

@media print {
  .site-header, .site-footer, .toc, .no-print, .skip-link { display: none !important; }
  body { font-size: 10.5pt; }
  .doc { display: block; padding: 0; }
  .doc-section { break-inside: avoid; padding-bottom: 0.75rem; margin-bottom: 0.75rem; }
  a { color: inherit; }
  .page-intro { padding: 0 0 0.75rem; }
}

.h2 { font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem); }
.h3 { font-size: 1.25rem; }
