/* The Green Thistle, design "Waymarked" (October 2026).
   Highland wayfinding: a contour map, a fingerpost and numbered waymarks on a dashed route.
   One typeface (Atkinson Hyperlegible Next, hosted here, OFL licence in fonts/OFL.txt).
   Every text colour pair is at least 4.5 to 1; see design/build-notes.md for the measured ratios. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url(fonts/atkinson-hyperlegible-next-latin.woff2) format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FFFFFF;     /* page */
  --ink: #13242B;       /* text, headings, heavy rules, footer */
  --slate: #4A5A61;     /* secondary text, form field borders */
  --loch: #0E3340;      /* fingerpost, newsletter band, note borders */
  --route: #9B1F67;     /* links, primary buttons, waymarks, focus ring */
  --water: #E3EEF1;     /* panels */
  --mist: #B9D3DC;      /* secondary text on loch and ink */
  --pink: #F3B6D8;      /* links, buttons and focus ring on loch and ink */
  --line: #C9D5D9;      /* dividers only, never text or control borders */
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --read: 44rem;        /* reading column, about 70 characters */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.1875rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
strong, b { font-weight: 700; }
a { color: var(--route); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--route); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--pink); }
main:focus { outline: none; }
::selection { background: var(--pink); color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700; border-radius: 0 0 6px 6px;
}
.skip:focus { top: 0; color: #fff; outline-color: var(--pink); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 11px 22px; border: 2px solid transparent; border-radius: 6px;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
}
.btn-route { background: var(--route); color: #fff; }
.btn-route:hover { background: var(--loch); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-pink { background: var(--pink); color: var(--loch); }
.btn-pink:hover { background: #fff; color: var(--loch); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: #fff; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; flex: none; }
.brand-name { display: grid; font-size: 1.3rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.95rem; font-weight: 400; letter-spacing: 0; color: var(--slate); }
.nav { order: 4; flex-basis: 100%; }
.nav-list { display: none; list-style: none; padding: 0; margin: 0; }
.nav-list.open { display: grid; border-top: 1px solid var(--line); padding-top: 6px; }
.nav-list a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 700; font-size: 1.125rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-list a:hover { color: var(--route); }
.nav-list a[aria-current="page"] { color: var(--route); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.menu-btn {
  order: 3; min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 6px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.head-call { order: 2; min-height: 44px; padding: 9px 18px; font-size: 1rem; }
.head-call[aria-current="page"] { background: var(--loch); }
@media (max-width: 759px) { .site-head .brand-sub { display: none; } }
@media (max-width: 599px) {
  .bar { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1.05rem; max-width: 6.2em; }
  .head-call { padding: 8px 12px; font-size: 0.95rem; }
  .menu-btn { padding: 8px 12px; }
}
@media (max-width: 379px) {
  .bar { gap: 10px; }
  .brand { gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1.1rem; }
}
.nav-call { display: none; }
@media (min-width: 1100px) {
  .bar { flex-wrap: nowrap; gap: 8px; }
  .menu-btn { display: none; }
  .nav { order: 2; flex-basis: auto; }
  .nav-list, .nav-list.open { display: flex; gap: 2px; border: 0; padding: 0; }
  .nav-list a { padding: 10px 12px; font-size: 1rem; border: 0; border-radius: 6px; }
  .nav-list a:hover { background: var(--water); color: var(--ink); }
  .nav-list a[aria-current="page"] { color: var(--ink); text-decoration: none; box-shadow: inset 0 -3px 0 var(--route); border-radius: 0; }
  .head-call { order: 3; margin-left: 10px; }
}

/* ---------- Breadcrumbs: a short route to this page ---------- */
.crumbs { font-size: 1rem; color: var(--slate); padding-top: 16px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: ""; width: 26px; height: 0; margin: 0 8px; border-top: 3px dotted var(--route);
}
.crumbs a { color: var(--slate); text-decoration-thickness: 1px; }
.crumbs a:hover { color: var(--route); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* ---------- Page openings ---------- */
.opening { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.opening-text { position: relative; padding-block: clamp(20px, 3.5vw, 44px) clamp(32px, 5vw, 60px); }
.opening h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; max-width: 20ch; }
.opening .lede { margin-top: 18px; max-width: 46ch; }
.opening .tags { margin-bottom: 18px; }
.opening-map { display: none; }
@media (min-width: 1100px) {
  .has-map .opening-text > * { max-width: min(620px, 100%); }
  .opening-map {
    display: block; position: absolute; top: 0; bottom: 0; right: 0; left: calc(50% + 220px);
    background: url(contours.svg) 72% 28% / cover no-repeat;
  }
}
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--slate); }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  display: inline-flex; align-items: center; padding: 4px 12px; border: 2px solid var(--line);
  border-radius: 99px; font-size: 0.95rem; font-weight: 700; color: var(--ink); background: #fff;
}
.tags li:first-child::before {
  content: ""; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--route);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--water); border-top: 0; }
.section.tint + .section { border-top: 0; }
.section h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.intro .lede { margin-top: 16px; }
.intro > p + p { margin-top: 14px; }
.intro .actions { margin-top: 26px; }
.stack > * + * { margin-top: 28px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.head-row .lede { margin-top: 14px; max-width: 54ch; }
.text > p { max-width: 62ch; }
.text > p + p { margin-top: 1em; }
.text h3 { font-size: 1.3rem; margin-top: 1.4em; }

/* Lists under a heavy rule: services, interests, ways of working, talk topics */
.rules { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); }
.rules.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rules > li { border-top: 3px solid var(--ink); padding: 18px 0 30px; }
.rules h3 { font-size: 1.3rem; }
.rules p { color: var(--slate); font-size: 1.0625rem; margin-top: 8px; }
.rules h3 a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--route); text-underline-offset: 5px; }
.rules h3 a:hover { color: var(--route); }
.rules > li.cta { border-top-color: var(--route); background: var(--water); padding: 18px 22px 24px; }
.rules > li.cta p { color: var(--ink); }
.rules > li.cta .actions { margin-top: 16px; }

/* Facts: label and value pairs */
.facts > div { display: grid; align-content: start; grid-template-columns: minmax(7rem, 30%) minmax(0, 1fr); gap: 2px 20px; border-top: 1px solid var(--line); padding: 12px 0; }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 800; font-size: 1.0625rem; }
.facts dd { color: var(--slate); }
.facts.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.facts.pair > div { grid-template-columns: 1fr; }
.facts.pair > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }

/* Panels */
.panel { background: var(--water); padding: clamp(22px, 3vw, 34px); }
.panel > * + * { margin-top: 14px; }
.panel h2, .panel h3 { font-size: 1.4rem; }
.note { background: var(--water); border-left: 5px solid var(--loch); padding: 16px 20px; max-width: 54rem; }
.note > * + * { margin-top: 10px; }
.note strong:first-child { font-weight: 800; }
.boxed { border: 2px solid var(--ink); padding: clamp(18px, 2.5vw, 26px); }

/* ---------- Waymark routes (real sequences only) ---------- */
.route { list-style: none; padding: 0; counter-reset: wm; }
.route > li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 20px; padding-bottom: 30px; counter-increment: wm; }
.route > li:last-child { padding-bottom: 0; }
.route > li::before {
  content: counter(wm, upper-roman); grid-row: 1 / span 6; position: relative; z-index: 1;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid var(--route); background: #fff; color: var(--ink); font-weight: 800; font-size: 1.05rem;
}
.route > li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 52px; bottom: 0; border-left: 4px dashed var(--route); }
.route > li > * { grid-column: 2; }
.route h3 { font-size: 1.3rem; padding-top: 12px; }
.route p { margin-top: 8px; color: var(--slate); }
.route .who { color: var(--ink); font-weight: 700; font-size: 1rem; }
.route .when { color: var(--route); font-weight: 700; font-size: 1rem; padding-top: 2px; margin: 0; }
.route .when + div h3 { padding-top: 2px; }
/* Timeline: rings without numbers */
.route.years > li { grid-template-columns: 28px minmax(0, 1fr); column-gap: 18px; padding-bottom: 26px; }
.route.years > li::before { content: ""; width: 28px; height: 28px; border-width: 4px; margin-top: 2px; }
.route.years > li:not(:last-child)::after { left: 12px; top: 30px; }

/* Compact five-stage strip, linking to the explainer */
.route-mini { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: wm; position: relative; margin-top: 26px; }
.route-mini::before { content: ""; position: absolute; left: 20px; right: calc(20% - 4px); top: 19px; border-top: 4px dashed var(--route); }
.route-mini li { position: relative; counter-increment: wm; display: grid; gap: 10px; align-content: start; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.route-mini li::before {
  content: counter(wm, upper-roman); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid var(--route); background: #fff; font-weight: 800; font-size: 0.95rem;
}
.section.tint .route-mini li::before, .section.tint .route > li::before { background: var(--water); }

/* Links to guides and articles */
.links { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.links > li { border-bottom: 1px solid var(--line); padding: 18px 0 18px 30px; position: relative; }
.links > li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--route); }
.links .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 1rem; font-weight: 700; color: var(--route); }
.links .meta .for { color: var(--slate); }
.links h3 { font-size: 1.25rem; margin-top: 4px; }
.links h3 a { color: var(--ink); text-decoration-color: var(--route); }
.links h3 a:hover { color: var(--route); }
.links .plain { color: var(--slate); font-size: 1.0625rem; margin-top: 6px; }
.links .plain i {
  font-style: normal; font-weight: 700; font-size: 0.95rem; color: var(--ink);
  display: inline-block; padding: 0 8px; margin-right: 8px; border: 2px solid var(--line); border-radius: 99px;
}

/* Signpost boxes */
.box { background: var(--water); padding: clamp(22px, 3vw, 34px); }
.box .kicker { font-weight: 700; color: var(--route); font-size: 1rem; }
.box h3 { font-size: 1.4rem; margin-top: 4px; }
.box ul { margin-top: 16px; padding-left: 1.2em; display: grid; gap: 10px; }
.box li::marker { color: var(--route); }
.box .note-line { margin-top: 16px; font-size: 1rem; color: var(--slate); }

/* Calls to action at the foot of a page */
.cta-band { background: var(--water); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 48px; }
.cta-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 30ch; }
.cta-band p { color: var(--slate); max-width: 58ch; margin-top: 12px; }
.cta-band .actions { margin-top: 0; }

/* Portrait */
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--ink); }

/* ---------- Homepage ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(28px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.05; }
.hero .lede { margin-top: 20px; font-size: 1.3rem; max-width: 40ch; }
.hero .tags { margin-top: 26px; }
.hero .tags li:first-child::before { display: none; }

/* The fingerpost on the map */
.signpost { position: relative; aspect-ratio: 1040 / 820; border: 2px solid var(--ink); background: #fff; }
.signpost-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.here { position: absolute; left: 71.2%; top: 22.7%; transform: translate(18px, -50%); background: #fff; border: 2px solid var(--ink); padding: 1px 8px; font-weight: 700; font-size: 0.95rem; }
.post { position: absolute; left: 42%; top: 29%; bottom: -2px; width: 16px; background: var(--loch); border-radius: 3px 3px 0 0; }
.post::before { content: ""; position: absolute; top: -10px; left: -3px; width: 22px; height: 12px; background: var(--loch); border-radius: 4px 4px 0 0; }
.arms { list-style: none; padding: 0; margin: 0; position: absolute; left: 0; right: 0; top: 32%; bottom: 3%; display: flex; flex-direction: column; justify-content: space-between; }
/* The arrow shape is drawn on ::before, so the focus ring around the link is not clipped */
.arms a {
  position: relative; z-index: 0; display: grid; gap: 1px; min-height: 60px; padding: 9px 46px 9px 18px; color: #fff; text-decoration: none;
}
.arms a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--loch);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
}
.arms .arm-r a { margin-left: calc(42% + 8px); width: 54%; }
.arms .arm-l a { margin-left: calc(2% + 8px); width: 40%; padding: 9px 18px 9px 44px; text-align: right; }
.arms .arm-l a::before { clip-path: polygon(26px 0, 100% 0, 100% 100%, 26px 100%, 0 50%); }
.arms strong { font-size: 1.0625rem; line-height: 1.2; }
.arms span { font-size: 0.95rem; line-height: 1.3; color: var(--mist); }
.arms a:hover, .arms a:focus-visible { color: #fff; }
.arms a:hover::before, .arms a:focus-visible::before { background: var(--route); }
.arms a:hover span, .arms a:focus-visible span { color: #fff; }
.arms a:focus-visible { outline: 3px solid var(--route); outline-offset: 3px; }

/* Thistle Notes band */
.letter { background: var(--loch); color: #fff; }
.letter .split { align-items: start; }
.letter h2 { color: #fff; }
.letter .lede { color: var(--mist); }
.letter a { color: var(--pink); }
.letter a:hover { color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 40rem; }
.form-note { font-weight: 700; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 2px solid var(--slate); border-radius: 6px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1.0625rem;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ink); outline: 3px solid var(--route); outline-offset: 2px; }
.field ::placeholder { color: var(--slate); opacity: 1; }
.hint { color: var(--slate); font-size: 1rem; }
.form small { display: block; color: var(--slate); font-size: 1rem; line-height: 1.5; }
.form .btn { justify-self: start; }
.hp { display: none !important; }
.letter .field input { border-color: #fff; }
.letter .field input:focus-visible { outline-color: var(--pink); border-color: #fff; }
.letter .form small, .letter .form-note { color: var(--mist); }
.letter .field label { color: #fff; }

/* ---------- Guides and notices ---------- */
.guide-wrap { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.section + .guide-wrap { border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 72px); }
.guide-main { max-width: var(--read); }
.guide-main > * + * { margin-top: 36px; }
@media (min-width: 1100px) {
  .guide.has-toc { display: grid; grid-template-columns: 250px minmax(0, var(--read)); gap: 72px; align-items: start; }
  .guide.has-toc .toc { position: sticky; top: 24px; margin-bottom: 0; max-height: calc(100vh - 48px); overflow-y: auto; padding: 0 6px 6px 4px; margin-left: -4px; }
}

.toc { margin-bottom: 28px; max-width: var(--read); }
.toc summary { cursor: pointer; font-weight: 800; font-size: 1.125rem; padding: 10px 0; border-top: 3px solid var(--ink); }
.toc ol { list-style: none; padding: 4px 0 0; margin: 0; }
.toc li { position: relative; padding: 0 0 12px 26px; font-size: 1rem; line-height: 1.4; }
.toc li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--route); background: #fff; z-index: 1; }
.toc li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; border-left: 2px dotted var(--route); }
.toc a { color: var(--ink); text-decoration-color: var(--line); }
.toc a:hover { color: var(--route); text-decoration-color: var(--route); }

.summary { background: var(--water); padding: clamp(20px, 3vw, 30px); border-top: 4px solid var(--loch); }
.kicker { font-weight: 700; color: var(--route); font-size: 1rem; }
.summary p:not(.kicker) { font-size: 1.1875rem; margin-top: 8px; }

.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); margin-top: 1.9em; scroll-margin-top: 16px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--route); }

.balance { border: 2px solid var(--ink); padding: clamp(20px, 3vw, 28px); }
.balance h2 { font-size: 1.4rem; }
.balance ul { margin-top: 12px; padding-left: 1.2em; display: grid; gap: 8px; }
.balance li::marker { color: var(--route); }

.independence { background: var(--water); border-left: 5px solid var(--loch); padding: 20px 24px; }
.independence h2, .independence h3 { font-size: 1.3rem; }
.independence ul { margin-top: 10px; padding-left: 1.2em; display: grid; gap: 6px; }
.independence li::marker { color: var(--route); }

.aside-note { color: var(--slate); font-size: 1.0625rem; border-top: 1px solid var(--line); padding-top: 16px; }
.guide-footer > * + * { margin-top: 18px; }
.sources h2 { font-size: 1.3rem; }
.sources ul { margin-top: 10px; padding-left: 1.2em; display: grid; gap: 6px; font-size: 1.0625rem; }
.sources li::marker { color: var(--route); }
.sources p { color: var(--slate); font-size: 1.0625rem; margin-top: 10px; }
.guide-dates { font-weight: 700; font-size: 1rem; color: var(--ink); border-top: 3px solid var(--ink); padding-top: 14px; }
.urgent-help { border: 2px solid var(--route); padding: 14px 18px; }
.report-error { font-size: 1.0625rem; }

.author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--ink); }
.author p { font-size: 1.0625rem; color: var(--slate); }
.author strong { display: block; color: var(--ink); font-size: 1.125rem; }

.related h3 { font-size: 1.3rem; }
.related ul { list-style: none; padding: 0; margin-top: 10px; }
.related li { position: relative; padding: 6px 0 6px 26px; }
.related li::before { content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--route); }

.optout { background: var(--water); padding: 18px 22px; display: grid; gap: 12px; justify-items: start; }
.optout p { font-weight: 700; }

.business-details > div { grid-template-columns: minmax(8rem, 30%) minmax(0, 1fr); }

/* Patient offer */
.offer { background: var(--water); padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; justify-items: start; }
.offer small { display: block; font-size: 1.0625rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; }

/* Talks bios */
.bio-box { border-top: 3px solid var(--ink); padding-top: 14px; }
.bio-box + .bio-box { margin-top: 26px; }
.bio-box .kicker { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #fff; padding-block: 56px 28px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.site-foot .brand, .site-foot .brand:hover { color: #fff; }
.site-foot .brand-sub { color: var(--mist); }
.site-foot h2 { font-size: 1.0625rem; margin-bottom: 12px; letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 1rem; }
.site-foot a { color: #fff; text-decoration-thickness: 1px; text-decoration-color: var(--mist); }
.site-foot a:hover { color: var(--pink); text-decoration-color: var(--pink); }
.foot p { color: var(--mist); font-size: 1rem; max-width: 42ch; margin-top: 16px; }
.site-foot li { color: var(--mist); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid #3A4C54; color: var(--mist); font-size: 0.95rem; }

/* ---------- Page-specific layouts ---------- */
.mt { margin-top: 18px; }
.mt-l { margin-top: 36px; }
.mt-xl { margin-top: clamp(40px, 6vw, 64px); }
.narrow { max-width: var(--read); }
.note.on-white { background: #fff; }
.audience { font-size: 1.0625rem; }
.section.cta-band { border-top: 0; }

/* Services: the five services as a list of links */
.section.legend-band { padding-block: clamp(28px, 4vw, 40px); }
.legend-band h2.legend-h { font-size: 1.25rem; }
.legend { list-style: none; padding: 0; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.legend a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; background: #fff;
  border: 2px solid var(--ink); border-radius: 99px; color: var(--ink); font-weight: 700; text-decoration: none;
}
.legend a::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--route); flex: none; }
.legend a:hover { background: var(--ink); color: #fff; }
.service { scroll-margin-top: 8px; }
.section.service { padding-block: clamp(44px, 6vw, 72px); }
.service h2 { display: flex; align-items: flex-start; gap: 14px; }
.service h2::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 0.32em; border-radius: 50%; border: 5px solid var(--route); }
.service .text .actions { margin-top: 26px; }
.text .boxed { margin-top: 1em; color: var(--ink); }

/* Contact: intro, then the form, then the details (form beside them on wide screens) */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "intro form" "details form"; gap: 32px clamp(28px, 5vw, 72px); align-items: start; }
.c-intro { grid-area: intro; }
.c-intro .lede { margin-top: 16px; }
.c-form { grid-area: form; background: var(--water); padding: clamp(22px, 3vw, 36px); }
.c-details { grid-area: details; }
.form-h { font-size: 1.5rem; margin-bottom: 18px; }

/* Signpost lists in two columns on wide screens */
@media (min-width: 900px) { .box ul.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1099px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .signpost { max-width: 560px; }
  .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .split, .split.even { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "details"; }
  .rules.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-mini { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .route-mini::before { display: none; }
  .route-mini li { grid-template-columns: 42px minmax(0, 1fr); column-gap: 16px; align-items: center; padding-bottom: 14px; }
  .route-mini li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 0; border-left: 4px dashed var(--route); }
  .portrait { max-width: 360px; }
}
@media (max-width: 679px) {
  body { font-size: 1.125rem; }
  .rules, .rules.three, .facts.pair { grid-template-columns: minmax(0, 1fr); }
  .facts.pair > div:nth-last-child(2) { border-bottom: 0; }
  .facts > div, .business-details > div { grid-template-columns: minmax(0, 1fr); }
  .hero .lede { font-size: 1.18rem; }
  .hero .btn-outline { display: none; }
  .lede { font-size: 1.15rem; }
  /* The fingerpost becomes a short map strip with the signs stacked under it */
  .signpost { aspect-ratio: auto; border: 0; background: none; display: grid; gap: 8px; }
  .signpost-map { position: static; height: 92px; object-fit: cover; object-position: 72% 22%; border: 2px solid var(--ink); }
  .here, .post { display: none; }
  .arms { position: static; display: grid; gap: 8px; justify-content: stretch; }
  .arms .arm-r a, .arms .arm-l a { margin-left: 0; width: auto; padding: 10px 42px 10px 16px; text-align: left; }
  .arms .arm-r a::before, .arms .arm-l a::before { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .cta-band .wrap { display: block; }
  .cta-band .actions { margin-top: 22px; }
}

/* Consent tick box on sign-up forms */
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.consent input { width: 24px; height: 24px; margin-top: 3px; accent-color: var(--route); }
.consent input:focus-visible { outline: 3px solid var(--route); outline-offset: 2px; }
.consent label { font-weight: 400; }

/* "I'm a" choice on the sign-up form */
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.choice legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.choice label { display: flex; gap: 12px; align-items: center; }
.choice input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--route); }
.choice input:focus-visible { outline: 3px solid var(--route); outline-offset: 2px; }
.signup .form { margin-top: 16px; }
/* The same form on the dark homepage band */
.letter .choice legend, .letter .choice label, .letter .consent label, .letter .consent a { color: #fff; }
.letter .choice input, .letter .consent input { accent-color: var(--pink); }
.letter .choice input:focus-visible, .letter .consent input:focus-visible { outline-color: var(--pink); }

/* Tap targets of at least 24px for small text links */
.site-foot li a, .toc a { display: inline-block; min-height: 24px; padding-block: 2px; }

/* Tables in guides (for example the regulator for each UK nation) */
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 800; background: var(--water); }
.prose caption { text-align: left; font-weight: 700; margin-bottom: 6px; }
@media (max-width: 599px) { .prose table { font-size: 0.95rem; } .prose th, .prose td { padding: 8px; } }

/* ---------- 17 October 2026: second round of audit fixes ---------- */
/* Wide tables scroll sideways inside their own box on phones, never the page */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap > table { min-width: 34rem; }

/* Byline under a guide's heading: who wrote it and when it last changed */
.opening .byline { margin-top: 14px; font-size: 1rem; color: var(--slate); }
.opening .byline a { color: var(--slate); text-decoration-thickness: 1px; }

/* Google "preferred source" line in the sign-up box and on the thanks page */
.box .pref-source, .pref-source { font-size: 1rem; color: var(--slate); }
.cta-band .pref-source { margin-top: 14px; }

/* The contact page: email and the note for patients before the form on phones */
.c-quick { margin-top: 14px; }

@media (max-width: 679px) {
  /* Homepage: the four routes come straight after the button, the credentials after them, no map strip */
  .hero-grid { gap: 0; }
  .hero-grid > div:first-child { display: contents; }
  .hero-grid h1 { order: 1; }
  .hero-grid .lede { order: 2; }
  .hero-grid .actions { order: 3; }
  .hero-grid .signpost { order: 4; margin-top: 24px; }
  .hero-grid .tags { order: 5; margin-top: 18px; }
  .signpost-map { display: none; }
  /* Bigger tap targets for small links */
  .site-foot li a, .toc a, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 599px) {
  /* Breadcrumb: one "Back to" link on phones, so the answer starts higher up */
  .crumbs { padding-top: 6px; }
  .crumbs li { display: none; }
  .crumbs li:nth-last-child(2) { display: inline-flex; }
  .crumbs li:nth-last-child(2)::before { content: "Back to"; width: auto; height: auto; margin: 0 6px 0 0; border: 0; }
  /* Only the audience label on phones; the byline carries the date */
  .opening .tags li:not(:first-child) { display: none; }
  .opening .tags { margin-bottom: 12px; }
  .opening-text { padding-top: 14px; }
}
