/* ==========================================================================
   Senior Citizen — "Free First" theme
   Warm, homely, tactile. Designed for older readers first:
   - Atkinson Hyperlegible body text (designed for low-vision readers)
   - 19px base, AAA contrast for body text, big targets, visible focus
   - Reader controls: text size (3 steps) and a high-contrast mode
   Signature details: arch-framed photos, pressable cards, voucher-edged
   "Free First" panels, and a marigold stamp.
   ========================================================================== */

@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/AtkinsonHyperlegible-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/AtkinsonHyperlegible-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/AtkinsonHyperlegible-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-var.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --ink:        #1d2433;
  --muted:      #454e5e;
  --cream:      #f8f3ea;
  --paper:      #fffdf8;
  --line:       #d9cfbf;
  --teal:       #0d565b;   /* 7.4:1 on cream */
  --teal-deep:  #0a4144;
  --teal-tint:  #e2efed;
  --teal-shade: #bcd9d5;
  --sun:        #f2b43c;   /* marigold — always behind dark text */
  --sun-tint:   #fcefd0;
  --clay:       #a3401c;
  --clay-tint:  #f7e1d6;
  --focus:      #a3401c;
  --radius:     14px;
  --shadow:     var(--teal-shade);
  --body-font:  "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --head-font:  "Fraunces", Georgia, "Times New Roman", serif;
}

/* Reader controls: text size */
html[data-size="lg"] { font-size: 118.75%; }
html[data-size="xl"] { font-size: 137.5%; }

/* Reader controls: high contrast — plain black on white, no tints or photos filters */
html[data-contrast="high"] {
  --ink: #000; --muted: #000; --cream: #fff; --paper: #fff; --line: #000;
  --teal: #00247d; --teal-deep: #000; --teal-tint: #fff; --teal-shade: #000;
  --sun: #ffd400; --sun-tint: #fff; --clay: #000; --clay-tint: #fff; --focus: #c00;
  --shadow: #000;
}
html[data-contrast="high"] a { text-decoration: underline !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.1875rem/1.65 var(--body-font);
}

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--head-font); font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); font-optical-sizing: auto; }
h1 { font-size: clamp(2.15rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1rem; max-width: 66ch; }
.lead { font-size: 1.28rem; color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--clay); margin-bottom: .75rem;
}
.eyebrow .icon { width: 1.3em; height: 1.3em; }

a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 3px; }

:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--sun); color: var(--ink); padding: 1rem 1.5rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

/* The hand-drawn marigold underline used on a key word in headings */
.squiggle {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c12-6 22-6 34 0s22 6 34 0 22-6 34 0 10 4 14 2' fill='none' stroke='%23f2b43c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% .38em no-repeat;
  padding-bottom: .12em;
}

/* ---------- Reader bar ---------- */
.readerbar { background: var(--teal-deep); color: #fff; font-size: 1rem; }
.readerbar .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding: .45rem 0; }
.readerbar a { color: #fff; font-weight: 700; }
.readerbar .helpline { display: inline-flex; align-items: center; gap: .5rem; }
.reader-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.reader-tools[hidden] { display: none; }
.reader-tools .label { margin-right: .25rem; }
.reader-tools button {
  font: inherit; font-weight: 700; cursor: pointer; min-width: 2.75rem; min-height: 2.75rem;
  padding: .25rem .7rem; border-radius: 8px;
  border: 2px solid rgba(255,255,255,.55); background: transparent; color: #fff;
}
.reader-tools button[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: #1d2433; }
.reader-tools button:hover { border-color: #fff; }
.reader-tools .size-lg { font-size: 1.12em; }
.reader-tools .size-xl { font-size: 1.28em; }
.reader-tools .sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.35); margin: 0 .35rem; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.1rem 0; }

.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; }
.brand-mark {
  display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: var(--sun); color: var(--teal-deep); flex: none;
  box-shadow: inset 0 0 0 3px rgba(10,65,68,.12);
}
.brand-mark .icon { width: 2.2rem; height: 2.2rem; stroke-width: 2; }
.brand-name { display: block; font-family: var(--head-font); font-weight: 700; font-size: 1.75rem; line-height: 1.05; color: var(--teal-deep); }
.brand-tag  { display: block; font-size: 1rem; color: var(--muted); margin-top: .15rem; }

.search { display: flex; flex: 1 1 22rem; max-width: 32rem; }
.search .field-wrap { position: relative; flex: 1; }
.search .field-wrap .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%; font: inherit; font-size: 1.05rem; padding: .85rem 1rem .85rem 2.9rem;
  border: 2px solid var(--ink); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: #fff; color: var(--ink); min-height: 3.2rem;
}
.search button {
  font: inherit; font-weight: 700; cursor: pointer; padding: 0 1.4rem;
  border: 2px solid var(--ink); background: var(--teal); color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.search button:hover { background: var(--teal-deep); }

.site-nav { border-top: 2px solid var(--line); }
.site-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0 -.7rem; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .85rem .7rem; font-size: 1.06rem;
  color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 4px solid transparent;
}
.site-nav a .icon { color: var(--teal); }
.site-nav a:hover { border-bottom-color: var(--teal-shade); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--sun); }
.site-nav .nav-free a { color: var(--clay); }
.site-nav .nav-free a .icon { color: var(--clay); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 1rem 0 0; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 3.25rem 0; }
.band-paper { background: var(--paper); border-block: 2px solid var(--line); }
.band-teal { background: var(--teal-deep); color: #fff; }
.band-teal h2, .band-teal h3, .band-teal p { color: #fff; }
.band-teal a { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.section-head p { margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 2.75rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem 3.5rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 26rem; margin-inline: auto; } }
.hero h1 { margin-bottom: .4em; }
.hero-art { position: relative; }

/* Arch-framed photo — the signature shape. A marigold "sun" sits behind it. */
.arch { position: relative; isolation: isolate; }
.arch::before {
  content: ""; position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); right: -8%; top: -6%;
}
.arch-frame {
  aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden;
  border: 3px solid var(--ink); background: var(--teal-tint);
  box-shadow: 10px 10px 0 var(--shadow);
}
.arch-frame { position: relative; }
.arch-frame > img, .arch-frame > .illus { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-contrast="high"] .arch::before { display: none; }

/* Illustrated fallback when a category has no photo */
.illus {
  width: 100%; height: 100%; display: grid; place-items: center; color: var(--teal-deep);
  background:
    radial-gradient(circle at 30% 25%, var(--sun-tint) 0 18%, transparent 19%),
    radial-gradient(circle at 75% 80%, #fff 0 14%, transparent 15%),
    repeating-linear-gradient(45deg, var(--teal-tint) 0 14px, #d5e8e5 14px 28px);
}
.illus .icon { width: 42%; height: auto; stroke-width: 1.4; }

/* Circular "Free First" stamp */
.stamp { position: absolute; left: -1.25rem; bottom: -1.25rem; width: 8.5rem; height: 8.5rem; transform: rotate(-12deg); }
.stamp svg { width: 100%; height: 100%; display: block; }
.stamp-text { font: 700 11.5px/1 var(--body-font); letter-spacing: .14em; fill: var(--ink); text-transform: uppercase; }
@media (max-width: 30rem) { .stamp { width: 6.5rem; height: 6.5rem; left: -.5rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; font: inherit; font-weight: 700; font-size: 1.1rem;
  text-decoration: none; cursor: pointer; padding: .9rem 1.5rem; min-height: 3.25rem; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--teal); color: #fff;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--teal-deep); color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.secondary { background: var(--paper); color: var(--ink); }
.btn.secondary:hover { background: var(--sun-tint); color: var(--ink); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.sun:hover { background: #f5c25e; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.btn[hidden] { display: none; }

/* ---------- Promises ---------- */
.promises { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.promise { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: start; }
.promise .badge-icon { grid-row: span 2; }
.promise h3 { margin: .15rem 0 .1rem; }
.promise p { margin: 0; color: var(--muted); }
.badge-icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal-deep); border: 2px solid var(--ink);
}
.badge-icon .icon { width: 1.8rem; height: 1.8rem; }
.badge-icon.sun { background: var(--sun); }
.badge-icon.clay { background: var(--clay-tint); color: var(--clay); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 1.5rem 1.5rem 1.5rem 5rem; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 1.25rem; top: 1.25rem;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--sun); border: 2px solid var(--ink); font: 700 1.5rem/1 var(--head-font);
}
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Cards (pressable) ---------- */
.grid { display: grid; gap: 1.75rem; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 6px 6px 0 var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow); }
.card:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--shadow); }
.card h2, .card h3 { font-size: 1.35rem; margin: 0; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
/* Whole card is clickable via the heading link, for bigger targets */
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h2 a:focus-visible, .card h3 a:focus-visible { outline: none; }
.card:has(h2 a:focus-visible, h3 a:focus-visible) { outline: 4px solid var(--focus); outline-offset: 4px; }
.card p { margin: 0; }
.card .meta { margin-top: auto; padding-top: .6rem; font-size: 1rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.card .more { font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: .35rem; }
.card.is-free { --shadow: var(--sun); }

/* Category grid: fixed column counts so a lone last card can become a wide feature */
.grid.cats { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .grid.cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.cats > .cat-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; }
  .grid.cats > .cat-card:last-child:nth-child(3n+1) .cat-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 17rem; border-bottom: 0; border-right: 2px solid var(--ink); }
  .grid.cats > .cat-card:last-child:nth-child(3n+1) .cat-body { justify-content: center; padding: 2rem 2.25rem 2rem 3.25rem; }
  .grid.cats > .cat-card:last-child:nth-child(3n+1) .cat-badge { top: 2rem; left: -1.9rem; }
  .grid.cats > .cat-card:last-child:nth-child(3n+1) .counts { margin-top: .6rem; }
}
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .grid.cats > .cat-card:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}

/* Category cards carry a photo */
.cat-card { padding: 0; overflow: hidden; }
.cat-card .cat-media { position: relative; aspect-ratio: 16 / 10; min-height: 0; overflow: hidden; background: var(--teal-tint); border-bottom: 2px solid var(--ink); }
.cat-card .cat-media > img, .cat-card .cat-media > .illus { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card .cat-body { position: relative; padding: 2.1rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.cat-card .cat-badge {
  position: absolute; top: -1.9rem; left: 1.25rem; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); color: var(--ink); border: 2px solid var(--ink);
}
.cat-card .cat-badge .icon { width: 2rem; height: 2rem; }
.counts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .6rem; list-style: none; padding-left: 0; margin-bottom: 0; }

/* ---------- Chips & tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .95rem; font-weight: 700;
  padding: .25rem .75rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); line-height: 1.3;
}
.chip .icon { width: 1.1em; height: 1.1em; }
.chip.free { background: var(--sun); }
.chip.trust { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-deep); }
.chip.plain { font-weight: 400; border-width: 1px; border-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }

.free-tag {
  position: absolute; top: -1rem; right: 1.25rem; display: inline-flex; align-items: center; gap: .35rem;
  background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: .95rem; padding: .2rem .8rem; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Free First voucher panel ---------- */
.voucher {
  position: relative; background: var(--sun-tint); border: 3px dashed var(--clay); border-radius: var(--radius);
  padding: 2rem 2rem 1.5rem; margin: 0 0 1rem;
}
.voucher::before, .voucher::after {
  /* punched holes, like a tear-off voucher */
  content: ""; position: absolute; top: 50%; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--cream); border: 3px dashed var(--clay); transform: translateY(-50%);
}
.voucher::before { left: -0.95rem; clip-path: inset(0 0 0 50%); }
.voucher::after  { right: -0.95rem; clip-path: inset(0 50% 0 0); }
.band-paper .voucher::before, .band-paper .voucher::after { background: var(--paper); }
.voucher-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.voucher-head h2 { margin: 0; }
.voucher ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.voucher li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.voucher li > .icon { color: var(--clay); width: 1.6rem; height: 1.6rem; margin-top: .15rem; }
.voucher li p { margin: 0; }
.voucher .go { font-weight: 700; white-space: nowrap; }

/* ---------- Listing detail ---------- */
.detail { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 50rem) { .detail { grid-template-columns: 1fr; } }
.detail-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }

.panel { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: 6px 6px 0 var(--shadow); }
.panel + .panel { margin-top: 1.75rem; }
.panel h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; }
.panel h2 .icon { color: var(--teal); width: 1.5rem; height: 1.5rem; }
.panel dl { margin: 0; }
.panel dt { font-weight: 700; margin-top: 1rem; }
.panel dt:first-child { margin-top: 0; }
.panel dd { margin: .2rem 0 0; }

.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.trust-list li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.trust-list .badge-icon { width: 2.8rem; height: 2.8rem; }
.trust-list .badge-icon .icon { width: 1.4rem; height: 1.4rem; }
.trust-list strong { display: block; }
.trust-list p { margin: .1rem 0 0; font-size: 1.05rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
.checklist .icon { color: var(--teal); width: 1.5rem; height: 1.5rem; margin-top: .15rem; }

.notice { background: var(--clay-tint); border: 2px solid var(--clay); border-left-width: 10px; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.notice.good { background: var(--teal-tint); border-color: var(--teal); }
.notice :last-child { margin-bottom: 0; }

/* ---------- Helpline band ---------- */
.helpline-band { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
@media (max-width: 50rem) { .helpline-band { grid-template-columns: 1fr; } }
.helpline-band .photo { border-radius: var(--radius); overflow: hidden; border: 3px solid #fff; aspect-ratio: 4 / 3; }
.helpline-band .photo { position: relative; }
.helpline-band .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.big-number { display: inline-flex; align-items: center; gap: .6rem; font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--head-font); color: var(--sun) !important; text-decoration: none; margin: .25rem 0 .75rem; }
.big-number .icon { width: .9em; height: .9em; }
html[data-contrast="high"] .band-teal { background: #000; }

/* ---------- Free-help hub ---------- */
.hub-list { display: grid; gap: 2.5rem; }
.hub-item h2 { display: flex; align-items: center; gap: .75rem; }
.hub-item h2 .badge-icon { width: 3rem; height: 3rem; }
.hub-item h2 .badge-icon .icon { width: 1.6rem; height: 1.6rem; }
.toc { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.toc a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; }
.toc a:hover { background: var(--sun-tint); }

/* ---------- Forms ---------- */
.form { max-width: 40rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; }
.field .hint { display: block; font-weight: 400; font-size: 1rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .85rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field.error input, .field.error textarea, .field.error select { border-color: #a4262c; border-width: 3px; }
.field .err { display: block; color: #a4262c; font-weight: 700; margin-top: .35rem; }

/* ---------- Credits ---------- */
.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.credits li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: start; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: .8rem; font-size: 1rem; }
.credits img { width: 6rem; height: 6rem; object-fit: cover; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e4da; margin-top: 3rem; padding: 3.25rem 0 2rem; font-size: 1.05rem; }
.site-footer h2 { color: #fff; font-size: 1.25rem; }
.site-footer a { color: #9fe0d6; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #e9e4da; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.3fr repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
@media (max-width: 50rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: .3rem 0; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand .brand-mark { width: 3rem; height: 3rem; }
.footer-brand .brand-mark .icon { width: 1.8rem; height: 1.8rem; }
.footer-brand span { font: 700 1.5rem/1 var(--head-font); color: #fff; }
.disclaimer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #3a4456; font-size: 1rem; }
.copy { color: #b9c2cf; }
html[data-contrast="high"] .site-footer { background: #000; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .btn:hover { transform: none; }
}

@media print {
  .readerbar, .site-nav, .search, .site-footer, .skip, .crumbs, .btn-row, .stamp, .arch::before { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card, .panel, .arch-frame { box-shadow: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* Keep illustrated fallbacks centred inside absolutely-positioned frames */
.cat-card .cat-media > .illus, .arch-frame > .illus { display: grid; place-items: center; }

/* Hero art must fill its column: the photo inside is absolutely positioned, so it has no intrinsic width */
.hero-art { width: 100%; }

/* Small screens: compact 2x2 nav (category shortcuts are one tap away in "All categories") */
@media (max-width: 40rem) {
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
  .site-nav .nav-shortcut { display: none; }
  .site-nav a { padding: .75rem .25rem; font-size: 1rem; }
  .readerbar .helpline .long { display: none; }
  .hero { padding-top: 1.75rem; }
}

/* Let voucher text wrap on narrow screens; decorations must never cause sideways scrolling */
.voucher li { grid-template-columns: auto minmax(0, 1fr); }
.voucher .go { white-space: normal; }
.voucher-head .badge-icon, .promise .badge-icon, .trust-list .badge-icon { flex: none; }
.hero, .band-teal { overflow-x: clip; }
@media (max-width: 40rem) {
  .voucher { padding: 1.5rem 1.1rem 1.25rem; }
  .voucher-head { align-items: flex-start; }
  .voucher-head h2 { font-size: 1.45rem; }
}
