/* chrome.css — design tokens, header, grouped navigation and phone menu.
   Shared by every static page (via site.css) and inlined into the map by build_map.py, so the
   header looks and behaves the same everywhere. Markup comes from pipeline/chrome.py. */
:root{
  --blue:#005eb8;--blue-press:#004a93;--blue-tint:#e8f1fa;--blue-tint2:#d8e7f6;
  --teal:#00a499;--teal-ink:#00665f;--teal-tint:#e4f4f2;--amber:#ed8b00;--plum:#7c2855;
  --ink:#1d1d1f;--ink2:#3a3d42;--grey:#5c6670;--faint:#8a929b;
  --bg:#f5f5f7;--surface:#fff;--line:#e3e5e9;--line2:#cfd4da;
  --radius:16px;--radius-l:22px;
  --shadow-s:0 1px 2px rgba(16,24,40,.04);
  --shadow:0 1px 2px rgba(16,24,40,.05),0 8px 24px rgba(16,24,40,.08);
  --shadow-l:0 18px 50px rgba(16,24,40,.18);
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --hd-h:52px;--ease:cubic-bezier(.2,.8,.2,1);
  /* Interface colour: links, buttons, active states. NHS blue unless the visitor has picked an audience
     (audience.css sets these per audience). --blue itself stays for things that MEAN blue, e.g. DCT pins. */
  --accent:var(--blue);--accent-press:var(--blue-press);--accent-tint:var(--blue-tint);--accent-tint2:var(--blue-tint2);--accent-rgb:0,94,184;
}
.hd{position:sticky;top:0;z-index:1400;display:flex;align-items:center;gap:8px 20px;min-height:var(--hd-h);
  padding:0 max(24px,env(safe-area-inset-right)) 0 max(24px,env(safe-area-inset-left));
  background:rgba(255,255,255,.84);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid rgba(0,0,0,.09);color:var(--ink);font-family:var(--font);transition:transform .28s var(--ease)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.hd{background:#fff}}
.brand{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:17px;font-weight:700;line-height:1.2;letter-spacing:-.022em;color:var(--ink);text-decoration:none;white-space:nowrap;min-width:0}
.brand a{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
.brand-mark{font-size:20px;line-height:1}
.hd .beta{flex:none;padding:3px 8px;border-radius:999px;background:var(--bg);color:var(--grey);font-size:11px;font-weight:600;letter-spacing:.02em;white-space:nowrap}
.hd>nav{display:flex;align-items:center;gap:2px;margin-left:auto}
.nav-top{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border:0;border-radius:999px;background:none;color:var(--ink2);
  font:500 14px/1 var(--font);text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}
.nav-top:hover,.nav-group.open>.nav-top{background:rgba(0,0,0,.06);color:var(--ink)}
.nav-top[aria-current],.nav-group.is-here>.nav-top{color:var(--accent);font-weight:600}
.nav-caret{opacity:.55;transition:transform .2s var(--ease)}
.nav-group{position:relative}
.nav-pop{position:absolute;top:calc(100% + 8px);right:0;z-index:5;width:max-content;min-width:300px;max-width:min(380px,calc(100vw - 32px));padding:8px;
  background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;box-shadow:var(--shadow-l);
  opacity:0;visibility:hidden;transform:translateY(-6px) scale(.98);transform-origin:top right;
  transition:opacity .16s var(--ease),transform .16s var(--ease),visibility .16s}
.nav-pop::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
.nav-pop a{display:block;padding:10px 12px;border-radius:12px;color:var(--ink);text-decoration:none}
.nav-pop a:hover{background:var(--bg)}
.nav-pop a b{display:block;font-size:14.5px;font-weight:600;line-height:1.3}
.nav-pop a span{display:block;margin-top:2px;font-size:12.5px;line-height:1.35;color:var(--grey)}
.nav-pop a[aria-current] b{color:var(--accent)}
.nav-group.open>.nav-pop,html:not(.js) .nav-group:focus-within>.nav-pop{opacity:1;visibility:visible;transform:none}
.nav-group.open .nav-caret{transform:rotate(180deg)}
@media(hover:hover){.nav-group:hover>.nav-pop{opacity:1;visibility:visible;transform:none}.nav-group:hover .nav-caret{transform:rotate(180deg)}}
/* Audience control: last item in the header on every page and the map (chrome.py), so who the site is
   tailored for can be seen and changed from anywhere. Its icon, short name and colours come from
   audience.css keyed on html[data-aud], which the inline head script sets before first paint, so the
   control never changes size after the page appears. Opens the picker in assets/audience.js. */
.aud-chip{position:relative;flex:none;display:inline-flex;align-items:center;gap:7px;height:36px;margin-left:-8px;padding:0 12px 0 5px;border:0;border-radius:999px;background:rgba(0,0,0,.06);color:var(--ink);
  font:600 13.5px/1 var(--font);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s,box-shadow .15s}
html:not(.js) .aud-chip{display:none}
.aud-chip:hover{background:rgba(0,0,0,.1)}
.aud-chip-ico{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fff;font-size:15px;line-height:1}
html[data-aud] .aud-chip{background:var(--accent-tint);color:var(--accent)}
html[data-aud] .aud-chip:hover{background:var(--accent-tint2)}
@media(max-width:1100px){.hd .beta{display:none}.aud-chip{padding:0 5px}.aud-chip-text,.aud-chip .nav-caret{display:none}}
@media(min-width:761px) and (max-width:880px){.hd{gap:8px 12px}.nav-top{padding:0 9px}}
.mobile-nav{display:none}
.hd :focus-visible{outline:3px solid var(--amber);outline-offset:2px}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
  .hd{gap:8px;padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));min-height:calc(var(--hd-h) + env(safe-area-inset-top))}
  .brand{flex:1 1 auto;font-size:16.5px;overflow:hidden}
  .brand a{overflow:hidden;text-overflow:ellipsis}
  .hd .beta{display:none}
  .hd>nav{display:none}
  .mobile-nav{display:block;flex:none}
  .aud-chip{width:40px;height:40px;margin:0;padding:0;justify-content:center;background:rgba(0,0,0,.06)}
  .aud-chip-ico{width:auto;height:auto;background:none;font-size:19px}
  html[data-aud] .aud-chip{box-shadow:inset 0 0 0 1.5px var(--accent)}
  .aud-chip::after,.mobile-nav summary::after{content:"";position:absolute;inset:-4px -3px}
  .mobile-nav summary{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:rgba(0,0,0,.06);color:var(--ink);
    cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent;transition:background .15s,color .15s}
  .mobile-nav summary>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .mobile-nav summary::-webkit-details-marker{display:none}
  .mobile-nav[open] summary{background:var(--ink);color:#fff}
  .hd .mobile-nav nav{position:absolute;top:100%;left:0;right:0;z-index:10;max-height:calc(100dvh - var(--hd-h) - env(safe-area-inset-top));overflow:auto;overscroll-behavior:contain;
    padding:4px max(16px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
    background:#fff;border-bottom:1px solid var(--line);border-radius:0 0 22px 22px;box-shadow:0 26px 44px rgba(16,24,40,.2)}
  .mobile-nav[open] nav{animation:mn-in .24s var(--ease)}
  .mn-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px;padding:6px 0 8px;border-bottom:1px solid var(--line)}
  .mn-group:last-child{border-bottom:0;padding-bottom:0}
  .mn-h{grid-column:1/-1;margin:8px 0 0;padding:0 10px;font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--grey)}
  .mn-group a{display:flex;align-items:center;min-height:44px;padding:6px 10px;border-radius:12px;color:var(--ink);font-size:15.5px;font-weight:500;line-height:1.25;text-decoration:none}
  .mn-group a:active{background:var(--bg)}
  .mn-group a[aria-current]{color:var(--accent);font-weight:600}
}
@media(max-width:350px){.brand{font-size:14.5px;gap:6px}.brand a{gap:6px}.brand-mark{font-size:17px}}
@keyframes mn-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
/* Page-to-page cross-fade where the browser supports it; the header stays put. */
@media(prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  .hd{view-transition-name:site-header}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.2s}
}
@media(prefers-reduced-motion:reduce){.hd,.nav-pop,.nav-caret,.aud-chip,.mobile-nav[open] nav{transition:none;animation:none}}
/* base.css — typography, layout and components for every static page (12 Nov 2026 redesign).
   Order in site.css: chrome.css (tokens + header) → base.css → growth.css → audience.css.
   Phones are the primary target: rules are mobile-first, desktop refinements sit in min-width queries.
   Presentation only. Nothing here may hide content from crawlers or no-JavaScript visitors. */
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--hd-h) + 72px)}
body{font:400 16px/1.55 var(--font);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;overflow-wrap:anywhere}
/* A visitor who has picked an audience gets a soft wash of its colour behind the top of every page */
html[data-aud] body{background-image:linear-gradient(var(--accent-tint),var(--bg));background-size:100% 340px;background-repeat:no-repeat}
a{color:var(--accent);text-decoration-thickness:.07em;text-underline-offset:.2em;text-decoration-color:rgba(var(--accent-rgb),.38);transition:text-decoration-color .15s,color .15s}
a:hover{text-decoration-color:currentColor}
button,input,select,summary,a{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:4px}
.skip-link{position:fixed;left:16px;top:-100px;z-index:2000;padding:12px 18px;border-radius:12px;background:#fff;box-shadow:var(--shadow)}
.skip-link:focus{top:12px}

/* ---- page frame */
.crumbs,.aud-bar,main,.ft-in{max-width:1020px;margin-left:auto;margin-right:auto;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
.crumbs{margin-top:16px;font-size:13px;line-height:1.5;color:var(--grey)}
.crumbs a{color:var(--grey);text-decoration:none}
.crumbs a:hover{color:var(--accent)}
.crumbs a.ab{text-decoration:none}
main{padding-top:6px;padding-bottom:56px;min-width:0}
h1{margin:10px 0 14px;font-size:clamp(27px,7vw,44px);line-height:1.12;letter-spacing:-.028em;font-weight:700;text-wrap:balance}
h2{margin:44px 0 12px;font-size:clamp(22px,4.4vw,28px);line-height:1.2;letter-spacing:-.02em;font-weight:700;text-wrap:balance;scroll-margin-top:calc(var(--hd-h) + 72px)}
h3{margin:22px 0 6px;font-size:17px;line-height:1.3;letter-spacing:-.01em;font-weight:650}
p{margin:10px 0}
ul,ol{margin:10px 0 10px 22px}
li{margin:5px 0}
main>p,main>ul,main>section>p,main>section>ul,main>div>p{max-width:76ch}
.lead{max-width:66ch;margin:0 0 18px;font-size:clamp(17px,2.6vw,20px);line-height:1.5;letter-spacing:-.008em;color:var(--ink2)}
.flag{font-size:13.5px;line-height:1.5;color:var(--grey)}
/* One-sentence answer directly under the h1 (school pages) */
.answer{max-width:none!important;margin:0 0 16px;padding:15px 18px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);font-size:clamp(16.5px,2.4vw,18px);line-height:1.5;letter-spacing:-.008em}
.answer>b:first-child{display:block;margin-bottom:3px;font-size:12.5px;font-weight:600;letter-spacing:.01em;color:var(--accent)}
.past{opacity:.62}
.tl b{color:var(--ink)}
.tl .exp{color:var(--grey)}

/* ---- abbreviations */
a.ab{color:inherit;text-decoration:underline dotted;text-decoration-color:var(--teal);text-underline-offset:2px}
a.ab:hover{color:var(--accent)}
abbr.ab{text-decoration:underline dotted;text-decoration-color:#9fb3bf;text-underline-offset:2px;cursor:help}
dl.abbr{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:0;margin:12px 0 26px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;font-size:15px}
dl.abbr dt,dl.abbr dd{margin:0;padding:11px 16px;border-bottom:1px solid var(--line)}
dl.abbr dt{font-weight:700;scroll-margin-top:calc(var(--hd-h) + 20px)}
dl.abbr dt:last-of-type,dl.abbr dd:last-of-type{border-bottom:0}
dl.abbr dt:target,dl.abbr dt:target+dd{background:#fff4d6}

/* ---- buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin:6px 8px 6px 0;padding:11px 22px;border-radius:999px;
  background:var(--accent);color:#fff;font-size:15.5px;font-weight:600;line-height:1.25;letter-spacing:-.005em;text-align:center;text-decoration:none;
  transition:background .2s,transform .12s var(--ease),box-shadow .2s}
.btn:hover{background:var(--accent-press)}
.btn:active{transform:scale(.975)}
.btn{text-wrap:balance}
.btn.sec{background:var(--accent-tint);color:var(--accent)}
.btn.sec:hover{background:var(--accent-tint2)}
p:has(>.btn){display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
p:has(>.btn)>.btn{margin:0;flex:1 1 auto}
.tool-links{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.tool-links>a:not(.btn){display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border-radius:999px;background:var(--surface);border:1px solid var(--line);
  color:var(--accent);font-size:14.5px;font-weight:600;line-height:1.25;text-decoration:none;transition:border-color .15s,background .15s}
.tool-links>a:not(.btn):hover{border-color:var(--line2);background:#fafbfc}
.tool-links>.btn{margin:0;flex:1 1 auto}

/* ---- on-this-page bar (built in page(); outside the content hash) */
.toc{position:sticky;top:calc(var(--hd-h) + 8px);z-index:900;margin:22px 0 4px;transition:top .28s var(--ease)}
.toc-in{display:flex;gap:2px;padding:5px;overflow-x:auto;scrollbar-width:none;border-radius:999px;border:1px solid rgba(0,0,0,.07);
  background:rgba(255,255,255,.86);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);box-shadow:0 4px 18px rgba(16,24,40,.08)}
.toc-in::-webkit-scrollbar{display:none}
.toc a{flex:none;display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;color:var(--ink2);font-size:13.5px;font-weight:500;line-height:1;white-space:nowrap;text-decoration:none;transition:background .15s,color .15s}
.toc a:hover{background:rgba(0,0,0,.05);color:var(--ink)}
.toc a[aria-current]{background:var(--ink);color:#fff}
html[data-aud] .toc a[aria-current]{background:var(--accent)}
.toc a.ab,.toc a .ab{text-decoration:none}
html.hd-away .toc{top:8px}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.toc-in{background:#fff}}

/* ---- facts, chips, callouts */
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.fact{min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.fact b{display:block;margin-bottom:5px;font-size:12.5px;font-weight:600;line-height:1.3;color:var(--grey)}
.fact span{font-size:17px;font-weight:650;line-height:1.3;letter-spacing:-.012em}
.fact a{text-decoration:none}
.chip{display:inline-flex;align-items:center;min-height:34px;margin:3px 4px 3px 0;padding:5px 13px;border-radius:999px;background:var(--teal-tint);color:var(--teal-ink);font-size:13.5px;font-weight:600;line-height:1.3;text-decoration:none}
a.chip{transition:background .15s}
a.chip:hover{background:#d2ece8}
.chip.b{background:var(--accent-tint);color:var(--accent)}
td .chip{min-height:0;padding:2px 9px;font-size:12px;margin:0 0 0 4px}
.note{margin:14px 0;padding:13px 16px;border:1px solid #f1dfb6;border-radius:14px;background:#fff8e8;font-size:14.5px;line-height:1.55;color:#40330f}
.keydate{margin:14px 0;padding:14px 16px;border:1px solid var(--accent-tint2);border-radius:14px;background:var(--accent-tint);font-size:15px;line-height:1.55}
.keydate b{color:var(--accent)}
.keydate .cd{font-size:13px;font-weight:600;color:var(--grey)}

/* ---- cards */
.cardgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:14px 0}
.card{position:relative;min-width:0;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);transition:box-shadow .2s,border-color .2s,transform .2s var(--ease)}
.card h3{margin:0 0 4px;font-size:16.5px;line-height:1.3}
.card a{font-weight:600;text-decoration:none}
.card a.ab{font-weight:inherit;position:relative;z-index:1}
.card .sub{font-size:13.5px;line-height:1.5;color:var(--grey)}
.card ul{margin:8px 0 8px 18px;font-size:14.5px}
/* .go = the title is the card's only destination, so the whole card is the tap target */
.card.go>h3>a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.card.go>h3>a:focus-visible{outline:none}
.card.go:has(>h3>a:focus-visible){outline:3px solid var(--amber);outline-offset:2px}
@media(hover:hover){.card.go:hover{border-color:var(--line2);box-shadow:var(--shadow);transform:translateY(-1px)}}
/* .list = on phones a grid of .go cards becomes one grouped list, like a settings screen */
.cardgrid.list{gap:1px;border:1px solid var(--line);border-radius:var(--radius);background:var(--line);overflow:hidden}
.cardgrid.list>.card{padding:14px 40px 14px 16px;border:0;border-radius:0;transform:none!important;box-shadow:none!important}
.cardgrid.list>.card::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-5px;border:solid #b9c0c8;border-width:2px 2px 0 0;transform:rotate(45deg)}
.cardgrid.list>.card:active{background:#f7f8fa}
/* find-as-you-type box that assets/site.js adds above long card lists */
.quickfind{max-width:480px;margin:18px 0 0}
html:not(.js) .quickfind{display:none}
.quickfind input{width:100%;min-height:46px;padding:10px 16px 10px 44px;border:1px solid var(--line);border-radius:999px;font:inherit;font-size:16px;color:var(--ink);
  background:var(--surface) url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22%3E%3Ccircle cx=%228.5%22 cy=%228.5%22 r=%225.5%22 fill=%22none%22 stroke=%22%235c6670%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M13 13l4.5 4.5%22 stroke=%22%235c6670%22 stroke-width=%221.8%22 stroke-linecap=%22round%22/%3E%3C/svg%3E') 16px center/17px no-repeat;
  transition:border-color .15s,box-shadow .15s}
.quickfind input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(var(--accent-rgb),.16)}
.quickfind-status{margin:8px 4px 0;font-size:13.5px;color:var(--grey)}
.quickfind-status:empty{display:none}
html.finding .toc{display:none}
.cardgrid.tiles .card h3{font-size:17.5px}
.cardgrid.tiles .card p{margin:6px 0 0;font-size:14.5px;line-height:1.5;color:var(--grey)}

/* ---- link lists */
ul.linklist{list-style:none;margin:14px 0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;max-width:none}
ul.linklist>li{margin:0;padding:13px 16px;border-bottom:1px solid var(--line);font-size:14.5px;line-height:1.5;color:var(--grey)}
ul.linklist>li:last-child{border-bottom:0}
ul.linklist>li>a:first-child{font-size:15.5px;font-weight:600;text-decoration:none}
ul.linklist.cols{display:grid;grid-template-columns:minmax(0,1fr);gap:1px;background:var(--line)}
ul.linklist.cols>li{border:0;background:var(--surface)}

/* ---- tables */
.table-scroll{max-width:100%;margin:16px 0;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.5;overflow-wrap:normal}
th{padding:12px 14px;border-bottom:1px solid var(--line);background:#fafafb;font-size:12.5px;font-weight:600;line-height:1.4;color:var(--grey);text-align:left;vertical-align:bottom}
td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}
tr:last-child>td,tr:last-child>th{border-bottom:0}
td:first-child{font-weight:500}
/* Phones. "stack": a 4+ column table becomes one card per row, each cell labelled from its header.
   "wide": the comparison panel and any table the script finds overflowing scroll sideways instead. */
@media(max-width:760px){
  .table-scroll.stack{overflow:visible;border:0;border-radius:0;background:none}
  .stack table,.stack tbody,.stack tr,.stack td{display:block;width:auto!important;min-width:0;max-width:none}
  .stack tr:first-child{position:absolute;width:1px!important;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .stack tr{margin-bottom:10px;padding:14px 16px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
  .stack tr:last-child{margin-bottom:0}
  .stack td{display:flow-root;padding:4px 0 4px 116px;border:0;font-size:14.5px;line-height:1.5;overflow-wrap:anywhere}
  .stack td::before{content:attr(data-label);float:left;width:106px;margin-left:-116px;font-size:12.5px;font-weight:600;line-height:1.75;color:var(--grey);overflow-wrap:normal}
  .stack td:first-child{margin-bottom:6px;padding:0;font-size:16.5px;font-weight:650;line-height:1.3;letter-spacing:-.01em}
  .stack td:first-child::before{display:none}
  .stack td:first-child a{text-decoration:none}
  .stack td.nil{display:none}
  .table-scroll.wide::before{content:"Swipe sideways to see every column →";display:block;position:sticky;left:0;width:100%;padding:9px 14px;border-bottom:1px solid var(--line);background:#fafafb;color:var(--grey);font-size:12px;font-weight:600}
  .table-scroll.wide td,.table-scroll.wide th{min-width:120px;max-width:300px}
  .table-scroll.wide th:first-child,.table-scroll.wide td:first-child{position:sticky;left:0;z-index:1;min-width:130px;max-width:170px;background:#f7f8fa;border-right:1px solid var(--line);overflow-wrap:anywhere}
  .table-scroll.wide td:first-child a{display:inline-block;padding:5px 0}
  .table-scroll:not(.wide):not(.stack) table{overflow-wrap:anywhere}
}
/* Label/value tables (.kv): two columns on desktop, stacked label-over-value on phones */
table.kv td:first-child,table.kv th:first-child{width:210px;color:var(--grey);font-size:13.5px;font-weight:600;background:none}
table.kv th{border-bottom:1px solid var(--line);vertical-align:top;font-size:13.5px}
@media(max-width:760px){
  table.kv,table.kv tbody,table.kv tr,table.kv td,table.kv th{display:block;width:auto!important;min-width:0;max-width:none}
  table.kv tr{padding:13px 16px;border-bottom:1px solid var(--line)}
  table.kv tr:last-child{border-bottom:0}
  table.kv td,table.kv th{padding:0;border:0}
  table.kv td:first-child,table.kv th:first-child{margin-bottom:3px;font-size:12.5px}
  table.kv td{font-size:15px}
}

/* ---- questions */
.faq{margin:14px 0;padding:2px 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.faq h3{margin:18px 0 5px;font-size:16.5px}
.faq p{max-width:none;margin:0;padding-bottom:18px;border-bottom:1px solid var(--line);color:var(--ink2)}
.faq p:last-child{border-bottom:0}

/* ---- "Plan your next step" (seo.related) */
section[aria-labelledby="next-tools"]{margin-top:52px;padding:22px 20px 14px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
section[aria-labelledby="next-tools"] h2{margin:0 0 12px;font-size:21px}
section[aria-labelledby="next-tools"] ul{list-style:none;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0;max-width:none}
section[aria-labelledby="next-tools"] li{margin:0;padding:14px 16px;border-radius:14px;background:var(--bg);font-size:14px;line-height:1.5;color:var(--grey)}
section[aria-labelledby="next-tools"] li a{font-size:15.5px;font-weight:650;text-decoration:none}
section[aria-labelledby="next-tools"]>p{font-size:14px}

/* ---- footer */
.ft{margin-top:8px;border-top:1px solid var(--line);font-size:13px;line-height:1.6;color:var(--grey)}
.ft-in{padding-top:28px;padding-bottom:calc(34px + env(safe-area-inset-bottom))}
.ft a{color:var(--ink2);text-decoration:none}
.ft a:hover{color:var(--accent);text-decoration:underline}
.ft a.ab{color:inherit;text-decoration:underline dotted;text-decoration-color:var(--teal)}
.ft-brand{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 18px}
.ft-brand>a:first-child{font-size:16px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.ft a.ft-map{display:inline-flex;align-items:center;min-height:38px;padding:0 16px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--accent);font-weight:600}
.ft-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ft-h{margin:0 0 6px;font-size:12.5px;font-weight:600;color:var(--ink)}
.ft-col a{display:block;padding:5px 0;font-size:13.5px;line-height:1.35}
.ft-fine{padding-top:18px}
.ft-fine p{max-width:none;margin:0 0 10px}
.ft-fine a{text-decoration:underline;text-decoration-color:rgba(0,0,0,.25)}

/* ---- desktop refinements */
@media(min-width:761px){
  .crumbs,.aud-bar,main,.ft-in{padding-left:28px;padding-right:28px}
  main{padding-bottom:72px}
  h1{margin-top:14px}
  .facts{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
  .cardgrid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
  .cardgrid.list{gap:12px;border:0;border-radius:0;background:none;overflow:visible}
  .cardgrid.list>.card{padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius)}
  .cardgrid.list>.card::after{display:none}
  .cardgrid.tiles{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
  ul.linklist.cols{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
  p:has(>.btn)>.btn,.tool-links>.btn{flex:0 1 auto}
  section[aria-labelledby="next-tools"]{padding:26px 28px 18px}
  section[aria-labelledby="next-tools"] ul{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
  .ft-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
  .toc{margin-top:26px}
}
@media(max-width:760px){
  html.hd-away .hd:not(:focus-within){transform:translateY(-100%)}
  .ft-brand{margin-bottom:16px}
}
/* Short landscape phones: nothing is pinned, so the page keeps the little height there is */
@media(max-height:500px) and (pointer:coarse){.hd{position:relative}.toc{position:static}html{scroll-padding-top:16px}h2{scroll-margin-top:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.btn,.card,.toc{transition:none}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
@media print{.hd,.toc,.aud-bar,.aud-note,.ft-nav,.ft-brand,.skip-link{display:none!important}body,html[data-aud] body{background:#fff}}
/* growth.css — finder forms, result cards, calculators and audience tailoring rules. */
.tool{margin:18px 0;padding:20px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
.tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;align-items:end}
.tool label{display:block;margin-bottom:6px;font-size:13.5px;font-weight:600;color:var(--ink2)}
.tool input,.tool select,.tool button,.compare-toggle{font:inherit;max-width:100%;min-height:46px;border:1px solid var(--line2);border-radius:12px;padding:10px 12px;background:#fff;color:var(--ink);transition:border-color .15s,box-shadow .15s,background .15s}
.tool input:not([type=checkbox]),.tool select{width:100%;min-width:0}
.tool input:not([type=checkbox]):focus,.tool select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(var(--accent-rgb),.16)}
.tool input[type=checkbox]{min-height:20px;width:20px;height:20px;vertical-align:middle;margin-right:9px;accent-color:var(--accent)}
.tool button,.compare-toggle{cursor:pointer;font-weight:600;color:var(--accent)}
.tool button{padding:10px 20px;border-radius:999px;border-color:transparent;background:var(--accent-tint)}
.tool button:hover{background:var(--accent-tint2)}
.tool button[type=submit]{background:var(--accent);color:#fff}
.tool button[type=submit]:hover{background:var(--accent-press)}
.tool .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;align-items:center}
.tool .help{margin-top:6px;font-size:13px;line-height:1.45;color:var(--grey)}
.tool .field{min-width:0}
.tool .check-label{display:flex;align-items:center;min-height:44px;margin:6px 0 0;font-weight:500}
.tool-status{padding:8px 0;color:var(--grey)}
.result-count{margin-bottom:0;font-weight:650;color:var(--ink)}
.filter-card[hidden],.tool [hidden],[hidden]{display:none!important}
.filter-card{scroll-margin-top:calc(var(--hd-h) + 72px);min-width:0;overflow-wrap:anywhere}
.filter-card h2{margin:0 0 8px;font-size:17.5px;line-height:1.3;letter-spacing:-.012em}
.filter-card p{margin:6px 0;font-size:14.5px}
.filter-card details{margin-top:12px;border-top:1px solid var(--line);padding-top:6px}
.filter-card summary{cursor:pointer;color:var(--accent);font-weight:600;font-size:14.5px;min-height:44px;padding:10px 0}
.course-fields dt{margin-top:12px;font-size:13px;font-weight:600;color:var(--grey)}
.course-fields dd{margin:3px 0 10px;font-size:14.5px;line-height:1.5;color:var(--ink2);white-space:pre-line}
.compare-toggle{display:inline-flex;align-items:center;gap:9px;width:fit-content;min-height:40px;margin-top:12px;padding:6px 14px 6px 10px;border-radius:999px;border-color:var(--line);font-size:14px}
.compare-toggle:has(input:checked){border-color:var(--accent);background:var(--accent-tint)}
.compare-toggle input{width:20px;height:20px;accent-color:var(--accent)}
.compare-panel{margin:18px 0;padding:18px;border:2px solid var(--accent);border-radius:var(--radius-l);background:var(--surface);scroll-margin-top:calc(var(--hd-h) + 72px)}
.compare-panel h2{margin-top:0}
.compare-panel td{min-width:190px;max-width:300px}
.compare-panel th[scope=row]{min-width:140px}
.metric{font-size:34px;font-weight:700;line-height:1.2;letter-spacing:-.025em;color:var(--ink)}
.pay-result{margin-top:18px;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}
.pay-result .facts{margin-bottom:0}
.travel-item{margin-top:12px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.travel-item h3{margin-top:0}
.travel-item .tool-grid{margin-top:12px}
button:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){.tool{padding:16px}.tool-grid{grid-template-columns:minmax(0,1fr)}.tool input,.tool select{font-size:16px}.tool .actions>*{min-height:46px}.tool .actions button{flex:1 1 auto}.compare-panel{padding:14px}.metric{font-size:30px}}

/* Audience bar under the header (pages). The inline head script marks the visitor before first paint, so the
   right height is reserved from the first frame: banner for a first visit, one row of shortcuts once an
   audience is chosen, nothing for "show everything". Without JavaScript it is a plain link to /tools/. */
.aud-bar{margin-top:12px}
.aud-fallback{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
html.js .aud-fallback{display:none}
html[data-aud-new] .aud-bar{min-height:52px}
html[data-aud] .aud-bar{min-height:36px}
html.js:not([data-aud]):not([data-aud-new]) .aud-bar{display:none}
@media(max-width:760px){.aud-bar .aud-links{margin:0 -20px;padding:0 20px}}
/* "Tailored for X" line with the All info switch, shown only when this page has sections for the audience. */
.aud-note{display:none;min-height:44px;box-sizing:border-box;align-items:center;justify-content:space-between;gap:10px;max-width:none;margin:-2px 0 18px;padding:0 8px 0 16px;border-radius:999px;background:var(--accent-tint)}
@media(min-width:761px){.aud-note{width:fit-content;max-width:100%;gap:22px}}
html[data-aud="applicant"]:not([data-view="all"]):has(main [data-for~="applicant"]) main [data-for]:not([data-for~="applicant"]){display:none!important}
html[data-aud="applicant"]:has(main [data-for~="applicant"]) .aud-note{display:flex}
html[data-aud="student"]:not([data-view="all"]):has(main [data-for~="student"]) main [data-for]:not([data-for~="student"]){display:none!important}
html[data-aud="student"]:has(main [data-for~="student"]) .aud-note{display:flex}
html[data-aud="dentist"]:not([data-view="all"]):has(main [data-for~="dentist"]) main [data-for]:not([data-for~="dentist"]){display:none!important}
html[data-aud="dentist"]:has(main [data-for~="dentist"]) .aud-note{display:flex}
html[data-aud="nursing"]:not([data-view="all"]):has(main [data-for~="nursing"]) main [data-for]:not([data-for~="nursing"]){display:none!important}
html[data-aud="nursing"]:has(main [data-for~="nursing"]) .aud-note{display:flex}
html[data-aud="therapy"]:not([data-view="all"]):has(main [data-for~="therapy"]) main [data-for]:not([data-for~="therapy"]){display:none!important}
html[data-aud="therapy"]:has(main [data-for~="therapy"]) .aud-note{display:flex}
html[data-aud="academic"]:not([data-view="all"]):has(main [data-for~="academic"]) main [data-for]:not([data-for~="academic"]){display:none!important}
html[data-aud="academic"]:has(main [data-for~="academic"]) .aud-note{display:flex}
.provider-map-section{margin:22px 0;padding:20px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}.provider-map-section h2{margin-top:0;font-size:21px}.provider-location-note{font-size:13px;line-height:1.5;color:var(--grey)}.provider-location-note a{display:block;padding:10px 0;min-height:44px}

.course-focus{display:inline-block;margin:3px 0;padding:2px 9px;border-radius:999px;background:var(--teal-tint);color:var(--teal-ink);font-size:12.5px;font-weight:600}.scope-note{display:block;margin:4px 0 10px;font-size:13px;color:var(--grey)}
/* Audience identity, the "What brings you here?" picker, the first-visit banner, the shortcut strip and
   the "All info" switch (map + every page). Uses the tokens from chrome.css, which loads before this file.

   ---- Audience identity: one colour, icon and short name each.
   The site is NHS blue until a visitor picks an audience. Then html[data-aud] (set in the head before
   first paint) swaps the interface colour, so links, buttons and active states all follow it, and names
   the header control. Colours follow the map where they can: applicant = schools pink, student = DFT
   teal, dentist = DCT blue, academic = ACF gold. Each --accent must stay at 4.5:1 or better on white, on
   the page canvas and on its own tints (test_seo.py checks this). The same block styles each tile in the
   picker and the one-tap banner, so each previews the colour it switches the site to. */
html[data-aud="applicant"],[data-audience="applicant"]{--accent:#a81f66;--accent-press:#86154f;--accent-tint:#fcebf4;--accent-tint2:#f8dcea;--accent-rgb:168,31,102}
html[data-aud="student"],[data-audience="student"]{--accent:#006e66;--accent-press:#00554f;--accent-tint:#e2f4f1;--accent-tint2:#d0ece8;--accent-rgb:0,110,102}
html[data-aud="dentist"],[data-audience="dentist"]{--accent:#005eb8;--accent-press:#004a93;--accent-tint:#e8f1fa;--accent-tint2:#d8e7f6;--accent-rgb:0,94,184}
html[data-aud="nursing"],[data-audience="nursing"]{--accent:#a84316;--accent-press:#87340e;--accent-tint:#fdeee6;--accent-tint2:#fae0d2;--accent-rgb:168,67,22}
html[data-aud="therapy"],[data-audience="therapy"]{--accent:#7b3aa3;--accent-press:#622b85;--accent-tint:#f4ebfa;--accent-tint2:#eadcf4;--accent-rgb:123,58,163}
html[data-aud="academic"],[data-audience="academic"]{--accent:#7f5b08;--accent-press:#654804;--accent-tint:#fbf3d9;--accent-tint2:#f5e8bd;--accent-rgb:127,91,8}
.aud-chip-ico::before{content:"👥"}
.aud-chip-text::before{content:"Everyone"}
html[data-aud="applicant"] .aud-chip-ico::before{content:"🎓"}html[data-aud="applicant"] .aud-chip-text::before{content:"Applicant"}
html[data-aud="student"] .aud-chip-ico::before{content:"📚"}html[data-aud="student"] .aud-chip-text::before{content:"Student"}
html[data-aud="dentist"] .aud-chip-ico::before{content:"🦷"}html[data-aud="dentist"] .aud-chip-text::before{content:"Dentist"}
html[data-aud="nursing"] .aud-chip-ico::before{content:"🩺"}html[data-aud="nursing"] .aud-chip-text::before{content:"Nursing"}
html[data-aud="therapy"] .aud-chip-ico::before{content:"🪥"}html[data-aud="therapy"] .aud-chip-text::before{content:"Hygiene & therapy"}
html[data-aud="academic"] .aud-chip-ico::before{content:"🔬"}html[data-aud="academic"] .aud-chip-text::before{content:"Academic"}

/* ---- Picker */
.aud-dialog{border:0;padding:0;margin:auto;width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;border-radius:26px;background:#fff;color:var(--ink);box-shadow:0 30px 80px rgba(16,24,40,.3);font:15px/1.45 var(--font);overscroll-behavior:contain}
.aud-dialog::backdrop{background:rgba(16,24,40,.42);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.aud-dialog[open]{animation:aud-pop .26s var(--ease)}
@keyframes aud-pop{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@keyframes aud-drop{from{opacity:0;transform:translateY(-8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes aud-up{from{transform:translateY(100%)}to{transform:none}}
html.aud-open{overflow:hidden}
.aud-sheet{position:relative;padding:26px 26px 20px}
.aud-sheet h2{margin:0 48px 6px 0;font-size:25px;line-height:1.15;letter-spacing:-.028em;font-weight:700;color:var(--ink)}
.aud-sheet>p{margin:0;color:var(--grey);font-size:14.5px}
.aud-sheet h2:focus{outline:none}
.aud-x{position:absolute;top:16px;right:16px;width:36px;height:36px;border:0;border-radius:50%;background:var(--bg);color:var(--grey);font-size:14px;cursor:pointer;transition:background .15s}
.aud-x:hover{background:#e8e9ed}
.aud-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0 8px}
.aud-option{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:122px;padding:16px;border:1px solid var(--line);border-radius:20px;background:#fff;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .2s,transform .2s var(--ease)}
.aud-option:hover{border-color:var(--accent);box-shadow:var(--shadow);transform:translateY(-1px)}
.aud-option:active{transform:scale(.98)}
.aud-option[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-tint);box-shadow:inset 0 0 0 1px var(--accent)}
.aud-ico{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:12px;background:var(--bg);font-size:21px;line-height:1}
.aud-option .aud-ico{background:var(--accent-tint)}
.aud-option[aria-pressed="true"] .aud-ico{background:#fff}
.aud-name{font-weight:650;font-size:15.5px;line-height:1.25;letter-spacing:-.01em;color:var(--ink)}
.aud-option[aria-pressed="true"] .aud-name{color:var(--accent)}
.aud-hint{font-size:12.5px;line-height:1.35;color:var(--grey)}
.aud-foot{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-top:10px}
.aud-remember{display:flex;align-items:center;gap:9px;min-height:44px;font-size:14px;color:var(--ink2);cursor:pointer}
.aud-remember input{width:20px;height:20px;margin:0;accent-color:var(--accent)}
.aud-skip{min-height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--bg);color:var(--ink);font:600 14.5px/1 inherit;cursor:pointer;transition:background .15s}
.aud-skip:hover{background:#e8e9ed}
.aud-fine{margin:6px 0 0!important;font-size:12px!important;color:var(--faint)!important}
.aud-dialog :focus-visible,.aud-bar :focus-visible,.aud-note :focus-visible{outline:3px solid var(--amber);outline-offset:2px}
/* Desktop: a menu that drops from the header control, one row per audience. */
@media(min-width:761px) and (min-height:521px){
 .aud-dialog{width:380px;max-height:calc(100dvh - var(--hd-h) - 24px);margin:calc(var(--hd-h) + 8px) 16px auto auto;border-radius:22px;box-shadow:var(--shadow-l),0 0 0 1px rgba(0,0,0,.06);transform-origin:top right}
 .aud-dialog[open]{animation:aud-drop .2s var(--ease)}
 .aud-dialog::backdrop{background:rgba(16,24,40,.16);backdrop-filter:none;-webkit-backdrop-filter:none}
 .aud-sheet{padding:18px 10px 12px}
 .aud-sheet h2{margin:0 44px 2px 10px;font-size:19px;letter-spacing:-.02em}
 .aud-sheet>p{margin:0 10px;font-size:13.5px}
 .aud-x{top:12px;right:12px;width:32px;height:32px;font-size:12px}
 .aud-options{grid-template-columns:minmax(0,1fr);gap:2px;margin:12px 0 6px}
 .aud-option{display:grid;grid-template-columns:auto minmax(0,1fr) 18px;align-items:center;gap:0 12px;min-height:56px;padding:8px 12px 8px 10px;border:0;border-radius:14px}
 .aud-option:hover{background:var(--bg);box-shadow:none;transform:none}
 .aud-option[aria-pressed="true"],.aud-option[aria-pressed="true"]:hover{background:var(--accent-tint);box-shadow:none}
 .aud-option .aud-ico{grid-row:1/3;width:38px;height:38px;font-size:20px}
 .aud-name{grid-column:2;align-self:end;font-size:15px}
 .aud-hint{grid-column:2;align-self:start}
 .aud-option[aria-pressed="true"]::after{content:"";grid-column:3;grid-row:1/3;width:7px;height:13px;margin:0 0 4px 4px;border:solid var(--accent);border-width:0 2.2px 2.2px 0;transform:rotate(45deg)}
 .aud-foot{margin:8px 10px 0;padding-top:6px;border-top:1px solid var(--line)}
 .aud-fine{margin:2px 10px 0!important}
}
/* Phones: bottom sheet. Short landscape: compact rows. */
@media(max-width:640px){
 .aud-dialog{width:100%;max-width:100%;margin:auto 0 0;border-radius:26px 26px 0 0;max-height:92dvh}
 .aud-dialog[open]{animation:aud-up .32s var(--ease)}
 .aud-sheet{padding:28px 16px calc(14px + env(safe-area-inset-bottom))}
 .aud-sheet::before{content:"";position:absolute;top:8px;left:50%;width:36px;height:5px;margin-left:-18px;border-radius:5px;background:#d5d8de}
 .aud-sheet h2{font-size:23px}
 .aud-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
 .aud-option{flex-direction:row;align-items:center;gap:10px;min-height:66px;padding:10px 12px;border-radius:18px}
 .aud-ico{width:38px;height:38px;font-size:20px;border-radius:12px}
 .aud-name{font-size:14.5px}
 .aud-hint{display:none}
 .aud-foot{margin-top:6px}
}
@media(max-width:360px){
 .aud-option{flex-direction:column;align-items:flex-start;gap:6px;min-height:0;padding:10px}
 .aud-ico{width:30px;height:30px;font-size:16px;border-radius:9px}
 .aud-name{font-size:14px}
}
@media(max-height:520px){
 .aud-dialog{max-height:calc(100dvh - 12px)}
 .aud-sheet{padding-top:18px}
 .aud-options{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}
 .aud-option{flex-direction:row;align-items:center;min-height:52px;padding:8px 10px}
 .aud-hint,.aud-fine{display:none}
}

/* ---- In the page: shortcut strip (content pages), "tailored" line with the All info switch (map + tailored pages) */
.aud-bar{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;font:14px/1.3 var(--font)}
.aud-bar[hidden]{display:none}
.aud-ctx{min-width:0;font-size:13.5px;line-height:1.35;color:var(--ink2)}
.aud-ctx b{font-weight:650;color:var(--accent)}
.aud-switch{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 4px;border:0;background:none;color:var(--ink2);font:600 13px/1 var(--font);cursor:pointer;white-space:nowrap;flex-shrink:0}
.aud-track{position:relative;width:44px;height:26px;border-radius:13px;background:rgba(60,66,74,.26);transition:background .2s;flex-shrink:0}
.aud-track::after{content:"";position:absolute;top:2px;left:2px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .22s var(--ease)}
.aud-switch[aria-checked="true"]{color:var(--accent)}
.aud-switch[aria-checked="true"] .aud-track{background:var(--accent)}
.aud-switch[aria-checked="true"] .aud-track::after{transform:translateX(18px)}
.aud-links{display:flex;gap:6px;flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.aud-links::-webkit-scrollbar{display:none}
.aud-links a{flex-shrink:0;display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--ink2);font-weight:600;font-size:13px;text-decoration:none;white-space:nowrap;transition:border-color .15s,color .15s}
.aud-links a:hover{border-color:var(--accent);color:var(--accent)}
.aud-links a.in{border-color:var(--accent);color:var(--accent)}
.aud-links a[aria-current="page"]{background:var(--accent);border-color:var(--accent);color:#fff}
@media(max-width:760px){.aud-links{flex-basis:100%;mask-image:linear-gradient(90deg,#000 88%,transparent);-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent)}}
@media(prefers-reduced-motion:reduce){.aud-dialog[open]{animation:none}.aud-option,.aud-track,.aud-track::after{transition:none}}
/* First-visit banner: small, in the page flow (never covers content). On a page that is clearly for one
   audience it asks that question and one tap tailors the site; elsewhere it opens the picker. ✕ = show everything. */
.aud-banner{display:flex;align-items:stretch;gap:2px;width:100%;min-height:48px;border:1px solid var(--line);border-radius:999px;background:#fff;box-sizing:border-box}
.aud-banner-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:5px 4px 5px 6px;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;border-radius:999px 0 0 999px}
.aud-banner-main .aud-ico{width:36px;height:36px;border-radius:50%;background:var(--accent-tint);font-size:17px}
.aud-banner-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.aud-banner-text b{font-size:14.5px;font-weight:650;letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.aud-banner-text span{font-size:12.5px;color:var(--grey);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aud-banner-cta{margin-left:auto;flex-shrink:0;padding:9px 15px;border-radius:999px;background:var(--accent);color:#fff;font-weight:600;font-size:13.5px;transition:background .15s}
.aud-banner-main:hover .aud-banner-cta{background:var(--accent-press)}
.aud-banner-x{flex-shrink:0;width:44px;border:0;border-radius:0 999px 999px 0;background:none;color:var(--faint);font-size:13px;cursor:pointer}
.aud-banner-x:hover{color:var(--ink)}
@media(max-width:430px){.aud-banner-text span{display:none}.aud-banner-main{gap:8px}.aud-banner-main .aud-ico{width:32px;height:32px;font-size:15px}.aud-banner-text b{font-size:14px}.aud-banner-x{width:38px}}
/* reach.css — share control, calendar list, DFT preference-list builder, open-data page and the dental
   nursing qualification pages (markup: pipeline/reach_pages.py). Last file in site.css.
   Interface colour is var(--accent), so every control follows the visitor's audience colour. */

/* ---- Share, beside the breadcrumbs. The negative margins keep the row as tall as the breadcrumb line,
   so pages sit exactly where they did before the control was added. */
.topline{display:flex;align-items:flex-start;justify-content:space-between;gap:8px 14px;max-width:1020px;margin:16px auto 0;
  padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
.topline .crumbs{flex:1 1 auto;min-width:0;max-width:none;margin:0;padding:0}
.share-btn{position:relative;flex:none;display:inline-flex;align-items:center;gap:6px;height:32px;margin:-6px 0;padding:0 13px 0 10px;
  border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--accent);font-size:13px;font-weight:600;line-height:1;
  text-decoration:none;white-space:nowrap;transition:border-color .15s,background .15s}
.share-btn::after{content:"";position:absolute;inset:-6px -4px}          /* 44px touch target */
.share-btn:hover{border-color:var(--line2)}
.share-btn.done{border-color:var(--accent-tint2);background:var(--accent-tint)}
@media(min-width:761px){.topline{padding-left:28px;padding-right:28px}}

/* ---- Calendar files on /timelines/ */
.cal-list{list-style:none;max-width:none;margin:14px 0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden}
.cal-list>li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0;padding:13px 16px}
.cal-list>li+li{border-top:1px solid var(--line)}
.cal-list b{display:block;font-size:15.5px;font-weight:600;line-height:1.35}
.cal-list span{display:block;font-size:13.5px;line-height:1.45;color:var(--grey)}
.cal-list p{display:flex;gap:8px;margin:0}
.cal-list p a{display:inline-flex;align-items:center;min-height:42px;padding:0 17px;border:1px solid var(--line);border-radius:999px;background:var(--surface);
  color:var(--accent);font-size:14.5px;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s}
.cal-list p a:hover{border-color:var(--line2)}
.cal-list p a.cal-sub{border-color:transparent;background:var(--accent);color:#fff}
.cal-list p a.cal-sub:hover{background:var(--accent-press)}

/* ---- Open data page */
.cite{max-width:none!important;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:14.5px;line-height:1.55}
.cite b{display:block;margin-bottom:4px;font-size:12.5px;font-weight:600;color:var(--grey)}
ul.data-cols{list-style:none;display:flex;flex-wrap:wrap;gap:6px;max-width:none;margin:8px 0 16px}
ul.data-cols li{margin:0;padding:5px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:13px;line-height:1.45;color:var(--grey)}
code{font:600 12.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--ink)}

/* ---- Nursing: qualification links on the hub, and the qualification pages */
.qual-h{margin:18px 0 -6px;font-size:13.5px;font-weight:600;color:var(--grey)}
@media(max-width:560px){
  .qual-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .qual-links>a:not(.btn){min-height:44px;padding:6px 12px;border-radius:14px;font-size:13.5px}
}
.card-links{display:flex;flex-wrap:wrap;gap:4px 18px;margin:8px 0 0;font-size:14.5px}
.card-links a{display:inline-flex;align-items:center;min-height:36px}
.card .sub a{font-weight:500}

/* ---- DFT preference-list builder */
.pl-mine{margin:22px 0 8px;padding:18px 18px 14px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
.pl-mine h2{margin:0 0 6px;font-size:21px}
.pl-count{margin-left:6px;font-size:14px;font-weight:600;letter-spacing:0;color:var(--grey)}
.pl-empty{font-size:15px;color:var(--grey)}
.pl-list{list-style:none;max-width:none;margin:8px 0 0}
.pl-list>li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 12px;margin:0;padding:10px 0;border-top:1px solid var(--line)}
.pl-list>li.drag{opacity:.4}
.pl-list>li.over-top{box-shadow:inset 0 3px 0 var(--accent)}
.pl-list>li.over-bot{box-shadow:inset 0 -3px 0 var(--accent)}
.pl-pos{display:inline-flex;align-items:center;justify-content:center;width:50px;height:44px;border:1px solid var(--line2);border-radius:12px;background:#fff;
  font:inherit;font-size:16px;font-weight:650;text-align:center;color:var(--ink)}
input.pl-pos:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(var(--accent-rgb),.16)}
span.pl-pos{border-color:transparent;background:var(--bg)}
.pl-what{min-width:0}
.pl-what a{display:block;font-size:15.5px;font-weight:600;line-height:1.3;text-decoration:none}
.pl-what span{display:block;margin-top:2px;font-size:13px;line-height:1.45;color:var(--grey)}
.pl-more{font-style:normal}
@media(max-width:619px){.pl-list .pl-more{display:none}.pl-list>li{padding:9px 0}.pl-ctl button{height:38px}}
.pl-ctl{grid-column:2;display:flex;align-items:center;gap:6px}
.pl-ctl button{width:46px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink2);font:inherit;font-size:16px;line-height:1;cursor:pointer;transition:background .15s,border-color .15s}
.pl-ctl button:hover{border-color:var(--line2);background:#fafbfc}
.pl-ctl button:disabled{opacity:.3;cursor:default}
.pl-ctl button[data-act="del"]{margin-left:auto;color:var(--grey)}
.pl-grip{display:none}
@media(min-width:620px){
  .pl-list>li{grid-template-columns:auto minmax(0,1fr) auto}
  .pl-ctl{grid-column:3}
  .pl-ctl button[data-act="del"]{margin-left:0}
}
@media(hover:hover) and (pointer:fine){
  .pl-grip{display:inline-flex;align-items:center;justify-content:center;width:22px;height:40px;color:#b0b7bf;font-size:16px;letter-spacing:-2px;cursor:grab;user-select:none}
}
.pl-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;padding-top:14px;border-top:1px solid var(--line)}
.pl-actions .btn,.pl-shared .btn,.pl-tools .btn{min-height:44px;margin:0;padding:9px 18px;border:0;font-family:inherit;font-size:15px;cursor:pointer}
.pl-clear{min-height:44px;margin-left:auto;padding:0 6px;border:0;background:none;color:var(--grey);font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}
.pl-status{min-height:22px;margin:8px 0 0;font-size:14px;font-weight:600;color:var(--accent)}
.pl-link{width:100%;min-height:44px;margin-top:8px;padding:8px 12px;border:1px solid var(--line2);border-radius:12px;font:inherit;font-size:14px;color:var(--ink)}
.pl-shared{margin:16px 0;padding:14px 16px;border:1px solid var(--accent-tint2);border-radius:14px;background:var(--accent-tint)}
.pl-shared p{max-width:none;margin:0 0 10px}
.pl-shared p:last-child{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.pl-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;margin:14px 0}
.pl-tools>.field:first-child,.pl-tools>.btn{grid-column:1/-1}
.pl-tools label{display:block;margin-bottom:6px;font-size:13.5px;font-weight:600;color:var(--ink2)}
.pl-tools input,.pl-tools select{width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid var(--line2);border-radius:12px;background:#fff;font:inherit;font-size:16px;color:var(--ink)}
.pl-tools input:focus,.pl-tools select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(var(--accent-rgb),.16)}
@media(min-width:761px){.pl-tools{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) auto}.pl-tools>.field:first-child,.pl-tools>.btn{grid-column:auto}}
.pl-all{list-style:none;max-width:none;margin:14px 0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden}
.pl-all>li{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:11px 14px 11px 16px;border-bottom:1px solid var(--line)}
.pl-all>li:last-child{border-bottom:0}
.pl-add{flex:none;min-width:74px;height:40px;padding:0 14px;border:1px solid transparent;border-radius:999px;background:var(--accent-tint);color:var(--accent);font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s}
.pl-add:hover{background:var(--accent-tint2)}
.pl-add[aria-pressed="true"]{border-color:var(--line);background:none;color:var(--grey)}
.pl-none{padding:14px 16px;color:var(--grey);font-size:14.5px}
a.btn[data-pref].in{background:none;box-shadow:inset 0 0 0 1px var(--accent-tint2)}

@media print{
  .topline .share-btn{display:none}
  main:has(#pl-mine)>:not(h1):not(#pl-mine){display:none!important}
  .pl-mine{padding:0;border:0}
  .pl-actions,.pl-ctl,.pl-status,.pl-grip{display:none!important}
  .pl-pos{width:34px;height:auto;border:0;background:none}
}
