/* =============================================================================
   PlacementFlow — Foundation Programme / UKFP 2027 route-to-F1 experience.
   Source-backed content, local-only planning state, local CSS/SVG artwork.
   ============================================================================= */
body.foundation-page {
  --fd-blue:#1f6fd6;
  --fd-blue-deep:#1559b0;
  --fd-blue-bright:#1984f7;
  --fd-blue-soft:#eaf2fd;
  --fd-navy:#071936;
  --fd-navy-2:#0d2a60;
  --fd-ink:#14213e;
  --fd-slate:#5d6b84;
  --fd-muted:#8793a7;
  --fd-line:#e6ebf3;
  --fd-ground:#f6f8fc;
  --fd-card:#fff;
  --fd-green:#0b8b58;
  --fd-green-deep:#087449;
  --fd-green-soft:#e9f8ef;
  --fd-amber:#a85d0b;
  --fd-amber-bright:#f28a1a;
  --fd-amber-soft:#fff5e6;
  --fd-red:#a23b3b;
  --fd-red-soft:#fff0ef;
  --fd-purple:#6c4bc3;
  --fd-purple-soft:#f3edff;
  --fd-shadow:0 1px 2px rgba(18,33,62,.04),0 6px 18px -14px rgba(18,33,62,.28);
  --fd-shadow-lift:0 14px 35px -24px rgba(18,33,62,.45);
  --fd-display: var(--font-application-display);
  overflow-x:clip;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body.foundation-page .app-content { background:var(--pf-canvas, #fff); }
html.fd-drawer-open, body.foundation-page.fd-drawer-open { overflow:hidden; }
body.foundation-page .foundation-inner { max-width:1180px; padding-bottom:80px; }
body.foundation-page button, body.foundation-page input, body.foundation-page select { font-family: inherit; }
body.foundation-page button, body.foundation-page a { -webkit-tap-highlight-color:transparent; }
body.foundation-page :focus-visible { outline:3px solid #2b7fe5; outline-offset:3px; }
body.foundation-page [hidden], body.your-future-page .rt-foundation [hidden] { display:none !important; }
.fd-sr-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.fd-icon { width:20px; height:20px; flex:none; }

/* Route head + compact principal rail */
.fd-back { display:inline-flex; align-items:center; gap:7px; min-height:40px; margin:0 0 8px; color:var(--fd-slate); text-decoration:none; font-size:13px; font-weight:600; }
.fd-back:hover { color:var(--fd-blue-deep); }
.fd-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:20px; }
.fd-page-head > div { min-width:0; }
.fd-page-head h1 { margin:3px 0 7px; color:var(--fd-ink); font: 600 clamp(29px,3vw,39px)/1.05 var(--fd-display); letter-spacing:-.04em; }
.fd-page-head p:not(.fd-eyebrow) { max-width:66ch; margin:0; color:var(--fd-slate); font-size:14px; line-height:1.55; }
.fd-eyebrow { margin:0; color:var(--fd-blue-deep); font: 500 10.5px/1.2 var(--fd-display); letter-spacing:.14em; text-transform:uppercase; }
.fd-cycle { flex:none; display:inline-flex; align-items:center; min-height:34px; padding:0 13px; border:1px solid #c9ddf8; border-radius:999px; background:var(--fd-blue-soft); color:var(--fd-blue-deep); font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
/* Sub-navigation: one line of text on a hairline. Opaque, so while sticky it
   reads as the page's own header edge rather than a plate floating over the
   content. The 01..05 numerals stay in the DOM for the route contract and
   assistive order, but are not part of the visual. */
.fd-tabs { position:sticky; top:66px; z-index:19; display:flex; align-items:stretch; gap:4px; margin:0 0 18px; padding:0; border:0; border-bottom:1px solid var(--fd-line); border-radius:0; background:var(--pf-canvas,#fff); box-shadow:none; }
.fd-tabs button { min-width:0; min-height:36px; display:inline-flex; align-items:center; justify-content:center; gap:0; padding:0 9px; border:0; border-radius:6px 6px 0 0; background:transparent; color:var(--fd-slate); font-size:13px; font-weight:600; letter-spacing:-.005em; cursor:pointer; white-space:nowrap; transition:color .15s ease,box-shadow .15s ease; }
.fd-tabs button:hover { color:var(--fd-ink); }
.fd-tab-icon { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.fd-tabs button[aria-selected="true"] { color:var(--fd-ink); box-shadow:inset 0 -2px 0 var(--fd-blue); }
.fd-panel { min-width:0; scroll-margin-top:116px; }
/* z-index sits below the shell's top bar (20) so its profile menu and hairline
   paint over the strip; top:66px abuts that bar, so there is no seam to fill. */
.fd-panel > :last-child { margin-bottom:18px; }
.fd-loading { padding:48px 20px; border:1px dashed #cad3e1; border-radius:16px; background:#fff; color:var(--fd-slate); text-align:center; }

/* Shared controls and content grammar */
.fd-card { border:1px solid var(--fd-line); border-radius:17px; background:#fff; box-shadow:var(--fd-shadow); }
.fd-btn { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 15px; border:1px solid transparent; border-radius:11px; background:var(--fd-blue); color:#fff; text-decoration:none; font-size:12px; font-weight:600; cursor:pointer; transition:transform .16s ease,background .16s ease,box-shadow .16s ease; }
.fd-btn:hover { background:var(--fd-blue-deep); box-shadow:0 9px 18px -14px rgba(31,111,214,.9); }
.fd-btn:active { transform:scale(.98); }
.fd-btn--quiet { border-color:var(--fd-line); background:#fff; color:var(--fd-blue-deep); }
.fd-btn--quiet:hover { border-color:#bdd3ef; background:var(--fd-blue-soft); }
.fd-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin:28px 0 13px; }
.fd-section-head:first-child { margin-top:4px; }
.fd-section-head > div { min-width:0; }
.fd-kicker, .fd-section-head .fd-kicker { margin:0 0 5px; color:var(--fd-blue-deep); font-size:9.5px; font-weight:500; letter-spacing:.13em; text-transform:uppercase; }
.fd-section-head h2 { margin:0; color:var(--fd-ink); font: 600 22px/1.18 var(--fd-display); letter-spacing:-.03em; text-wrap:balance; }
.fd-section-head p { max-width:67ch; margin:5px 0 0; color:var(--fd-slate); font-size:12.5px; line-height:1.55; }
.fd-source-button { min-height:34px; display:inline-flex; align-items:center; gap:7px; padding:0 10px; border:1px solid var(--fd-line); border-radius:9px; background:#fff; color:var(--fd-slate); font-size:10px; font-weight:600; cursor:pointer; white-space:nowrap; }
.fd-source-button:hover { border-color:#bfd2ec; color:var(--fd-blue-deep); }
.fd-label { display:inline-flex; align-items:center; min-height:23px; padding:0 8px; border-radius:999px; background:var(--fd-blue-soft); color:var(--fd-blue-deep); font-size:8.5px; font-weight:500; letter-spacing:.045em; text-transform:uppercase; }
.fd-label--imperial { background:var(--fd-purple-soft); color:var(--fd-purple); }
.fd-label--tbc, .fd-label--awaiting { background:var(--fd-amber-soft); color:var(--fd-amber); }
.fd-label--passed { background:#eef1f5; color:#526077; }
.fd-label--active, .fd-label--complete, .fd-label--green { background:var(--fd-green-soft); color:var(--fd-green-deep); }
.fd-callout { display:flex; align-items:flex-start; gap:10px; padding:13px 14px; border:1px solid #f1d9ac; border-radius:13px; background:#fff8ea; color:#74450c; font-size:11.5px; line-height:1.5; }
.fd-callout--red { border-color:#efcfcc; background:#fff4f3; color:#853c38; }
.fd-callout strong { display:block; margin-bottom:2px; color:inherit; }
.fd-tip { margin:12px 0 0; padding:12px 14px; border-left:3px solid var(--fd-blue); border-radius:0 10px 10px 0; background:#f1f6fd; color:#385678; font-size:11.5px; line-height:1.5; }
.fd-tip b { color:var(--fd-blue-deep); }
.fd-stage-links { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; }
.fd-inline-link { min-height:38px; display:inline-flex; align-items:center; gap:7px; padding:0 10px; border:1px solid var(--fd-line); border-radius:9px; background:#fff; color:var(--fd-blue-deep); text-decoration:none; font-size:10.5px; font-weight:600; cursor:pointer; }
.fd-inline-link .fd-icon { width:15px; height:15px; }
.fd-inline-link:hover { border-color:#bdd2ed; background:var(--fd-blue-soft); }
.fd-stage-source-labels { display:flex; gap:6px; flex-wrap:wrap; }
.fd-local-note { margin:14px 0 0; padding-top:12px; border-top:1px solid var(--fd-line); color:var(--fd-muted); font-size:9.5px; line-height:1.5; }

/* Journey feature hero */
.fd-hero { position:relative; overflow:hidden; min-height:330px; display:flex; align-items:stretch; margin-bottom:12px; padding:28px 30px; border-radius:24px; background:radial-gradient(circle at 82% 18%,rgba(28,119,255,.32),transparent 28%),linear-gradient(145deg,#0b2a61 0%,var(--fd-navy) 70%); color:#fff; box-shadow:0 26px 55px -34px rgba(7,25,54,.82); isolation:isolate; }
.fd-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(5,18,42,.9) 0%,rgba(5,18,42,.6) 45%,rgba(5,18,42,.05) 75%); z-index:-1; }
.fd-hero-main { position:relative; z-index:2; width:min(590px,58%); display:flex; flex-direction:column; align-items:flex-start; }
.fd-status { display:inline-flex; align-items:center; gap:7px; min-height:27px; padding:0 10px; border-radius:999px; background:rgba(255,255,255,.11); color:#dce7fa; font-size:9.5px; font-weight:500; letter-spacing:.07em; text-transform:uppercase; }
.fd-status::before { content:""; width:6px; height:6px; border-radius:50%; background:#79d8c9; box-shadow:0 0 0 4px rgba(121,216,201,.13); }
.fd-status--imperial::before { background:#c69cff; box-shadow:0 0 0 4px rgba(198,156,255,.14); }
.fd-hero h2 { margin:17px 0 0; color:#fff; font: 600 clamp(33px,4vw,49px)/1.02 var(--fd-display); letter-spacing:-.045em; }
.fd-next-milestone { margin-top:auto; padding-top:18px; }
.fd-next-milestone > p { margin:0 0 5px; color:#9fb3d2; font: 400 9px/1.2 var(--fd-display); letter-spacing:.13em; text-transform:uppercase; }
.fd-next-milestone > strong { display:block; max-width:35ch; color:#e9f1ff; font-size:12px; font-weight:700; line-height:1.4; }
.fd-hero-date { display:flex; align-items:baseline; gap:9px; margin-top:5px; color:#fff; font-variant-numeric:tabular-nums; }
.fd-hero-date b { font: 700 clamp(19px,2.4vw,27px)/1.15 var(--fd-display); letter-spacing:-.03em; }
.fd-hero-date small { color:#b8c7dc; font-size:11px; }
.fd-hero-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.fd-hero-actions .fd-source-button { border-color:rgba(255,255,255,.25); background:rgba(255,255,255,.94); color:#34445f; }
.fd-hero-actions .fd-btn { background:#1682f5; }
.fd-hero-actions .fd-btn:hover { background:#3195fb; }
.fd-hero-actions .fd-icon { width:16px; height:16px; }
.fd-device-note { max-width:58ch; margin:12px 0 0; color:#93a7c4; font-size:9px; line-height:1.45; }
.fd-route-art { position:absolute; z-index:1; right:-2%; top:-3%; width:61%; height:106%; pointer-events:none; }
.fd-art-route-shadow { fill:none; stroke:rgba(46,133,255,.28); stroke-width:30; stroke-linecap:round; filter:url(#fd-route-glow); }
.fd-art-route { fill:none; stroke-width:8; stroke-linecap:round; stroke-dasharray:18 9; filter:url(#fd-route-glow); animation:fd-route-flow 8s linear infinite; }
.fd-art-stars circle { fill:#9edbff; filter:url(#fd-route-glow); animation:fd-star 2.8s ease-in-out infinite alternate; }
.fd-art-stars circle:nth-child(2n) { animation-delay:-1.3s; }
.fd-art-markers circle { fill:#fff; stroke:#65d4ff; stroke-width:3; filter:url(#fd-route-glow); }
.fd-art-pin path { fill:#2ee6ff; stroke:#d9fbff; stroke-width:2; filter:url(#fd-route-glow); }
.fd-art-pin circle { fill:#0c3878; stroke:#fff; stroke-width:2; }
@keyframes fd-route-flow { to { stroke-dashoffset:-108; } }
@keyframes fd-star { to { opacity:.25; transform:scale(.8); } }

/* Journey destinations + live summaries */
.fd-destination-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0 0 20px; }
.fd-destination { min-width:0; min-height:112px; display:grid; grid-template-columns:42px minmax(0,1fr) 25px; gap:10px; align-items:start; padding:14px; border:1px solid var(--fd-line); border-radius:16px; background:#fff; color:inherit; text-align:left; box-shadow:var(--fd-shadow); cursor:pointer; transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease; }
.fd-destination:hover { transform:translateY(-2px); border-color:#cdd9e9; box-shadow:var(--fd-shadow-lift); }
.fd-destination:active { transform:scale(.985); }
.fd-destination-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:13px; background:var(--fd-blue); color:#fff; }
.fd-destination[data-destination="application"] .fd-destination-icon { background:var(--fd-purple); }
.fd-destination[data-destination="schools"] .fd-destination-icon { background:var(--fd-green); }
.fd-destination[data-destination="preparing"] .fd-destination-icon { background:var(--fd-amber-bright); }
.fd-destination-copy { min-width:0; }
.fd-destination-copy strong { display:block; margin:2px 0 5px; color:var(--fd-ink); font: 700 13px/1.25 var(--fd-display); }
.fd-destination-copy small { display:block; color:var(--fd-slate); font-size:10px; line-height:1.45; }
.fd-destination-arrow { align-self:end; width:24px; height:24px; display:grid; place-items:center; border:1px solid var(--fd-line); border-radius:50%; color:var(--fd-muted); }
.fd-destination-arrow .fd-icon { width:13px; height:13px; }
.fd-glance { margin:0 0 22px; }
.fd-glance > h2 { margin:0 0 9px; color:var(--fd-ink); font: 600 15px/1.2 var(--fd-display); }
.fd-glance-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.fd-glance-card { min-width:0; display:grid; grid-template-columns:34px minmax(0,1fr) 18px; grid-template-rows:auto auto; gap:2px 9px; align-items:center; padding:11px 12px; border:1px solid var(--fd-line); border-radius:14px; background:#fff; color:inherit; text-align:left; box-shadow:var(--fd-shadow); cursor:pointer; }
.fd-glance-card:hover { border-color:#cad7e8; }
.fd-glance-icon { grid-row:1/3; width:34px; height:34px; display:grid; place-items:center; border-radius:11px; background:var(--fd-blue-soft); color:var(--fd-blue); }
.fd-glance-icon--green { background:var(--fd-green-soft); color:var(--fd-green); }
.fd-glance-icon--violet { background:var(--fd-purple-soft); color:var(--fd-purple); }
.fd-glance-icon .fd-icon { width:18px; height:18px; }
.fd-glance-card > strong { min-width:0; color:var(--fd-ink); font-size:10.5px; line-height:1.2; }
.fd-glance-card > small { min-width:0; color:var(--fd-slate); font-size:9px; line-height:1.2; }
.fd-glance-card > small b { color:inherit; }
.fd-mini-arrow { grid-column:3; grid-row:1/3; width:14px; height:14px; color:var(--fd-muted); }

/* Selectable journey rail + one detail surface */
.fd-stage-explorer { display:grid; grid-template-columns:minmax(225px,270px) minmax(0,1fr); gap:14px; align-items:start; }
.fd-stage-rail-wrap { min-width:0; }
.fd-route-map { position:relative; display:flex; flex-direction:column; gap:2px; margin:0; padding:8px; border:1px solid var(--fd-line); border-radius:17px; background:#fff; box-shadow:var(--fd-shadow); list-style:none; }
.fd-stage { position:relative; min-width:0; scroll-margin-top:134px; }
.fd-stage:not(:last-child)::after { content:""; position:absolute; z-index:0; left:25px; top:48px; bottom:-15px; width:2px; background:#e1e7f0; }
.fd-stage-trigger { position:relative; z-index:1; width:100%; min-height:59px; display:grid; grid-template-columns:36px minmax(0,1fr) auto 17px; gap:8px; align-items:center; padding:7px 8px; border:0; border-radius:12px; background:transparent; color:inherit; text-align:left; cursor:pointer; transition:background .16s ease,transform .16s ease; }
.fd-stage-trigger:hover { background:#f7f9fc; }
.fd-stage-trigger[aria-expanded="true"] { background:var(--fd-blue-soft); }
.fd-stage-trigger:active { transform:scale(.99); }
.fd-route-dot { position:relative; z-index:2; width:34px; height:34px; display:grid; place-items:center; border:2px solid #c6d0de; border-radius:11px; background:#fff; color:var(--fd-slate); font: 600 9px/1 var(--fd-display); }
.fd-stage[data-state="upcoming"] .fd-route-dot { border-color:#7fb4f1; color:var(--fd-blue-deep); }
.fd-stage[data-state="active"] .fd-route-dot { border-color:var(--fd-green); background:var(--fd-green); color:#fff; box-shadow:0 0 0 5px rgba(11,139,88,.11); }
.fd-stage[data-state="date-passed"] .fd-route-dot { border-color:#8794a8; background:#8794a8; color:#fff; }
.fd-stage[data-state="awaiting-publication"] .fd-route-dot,
.fd-stage[data-state="date-tbc"] .fd-route-dot,
.fd-stage[data-state="mixed-verification"] .fd-route-dot { border-color:#d79134; border-style:dashed; background:var(--fd-amber-soft); color:var(--fd-amber); }
.fd-stage[data-personal-complete="true"] .fd-route-dot { box-shadow:0 0 0 4px rgba(11,139,88,.12); }
.fd-stage-title { min-width:0; }
.fd-stage-title strong { display:block; color:var(--fd-ink); font: 700 11px/1.25 var(--fd-display); }
.fd-stage-title small { display:block; overflow:hidden; margin-top:3px; color:var(--fd-slate); font-size:8.8px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.fd-stage-state .fd-label { min-height:20px; padding:0 6px; font-size:7.5px; }
.fd-stage-arrow { width:13px; height:13px; color:var(--fd-muted); transition:transform .16s ease; }
.fd-stage-trigger[aria-expanded="true"] .fd-stage-arrow { transform:translateX(2px); color:var(--fd-blue); }
.fd-stage-detail { min-width:0; padding:22px; border:1px solid var(--fd-line); border-radius:18px; background:#fff; box-shadow:var(--fd-shadow); }
.fd-stage-detail header { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; }
.fd-stage-detail header .fd-stage-source-labels { grid-column:1/-1; margin-bottom:13px; }
.fd-stage-detail header .fd-kicker { margin-bottom:5px; }
.fd-stage-detail header h3 { margin:0; color:var(--fd-ink); font: 600 24px/1.14 var(--fd-display); letter-spacing:-.035em; }
.fd-stage-detail header > p:last-child { grid-column:1/-1; max-width:70ch; margin:8px 0 0; color:#43516a; font-size:12.5px; line-height:1.58; }
.fd-stage-date-card { display:flex; align-items:center; gap:11px; margin:17px 0 13px; padding:12px 14px; border:1px solid #d6e4f5; border-radius:13px; background:#f4f8fe; color:var(--fd-blue-deep); }
.fd-stage-date-card > .fd-icon { width:22px; height:22px; }
.fd-stage-date-card > div { min-width:0; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.fd-stage-date-card strong { color:var(--fd-ink); font-size:11px; line-height:1.4; }
.fd-stage-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.fd-stage-block { min-width:0; padding:13px; border-radius:12px; background:var(--fd-ground); }
.fd-stage-block--action { background:#eef6ff; }
.fd-stage-block--warning { background:#fff8ed; }
.fd-stage-block h4 { margin:0 0 6px; color:var(--fd-ink); font-size:9.5px; font-weight:600; letter-spacing:.055em; text-transform:uppercase; }
.fd-stage-block p, .fd-stage-block ul { margin:0; color:#43516a; font-size:10.5px; line-height:1.52; }
.fd-stage-block ul { padding-left:16px; }
.fd-checklist-launch { width:100%; min-height:58px; display:grid; grid-template-columns:32px minmax(0,1fr) 18px; gap:9px; align-items:center; margin-top:8px; padding:9px 11px; border:1px solid #d5e2f2; border-radius:14px; background:#f1f6fd; color:var(--fd-blue-deep); text-align:left; cursor:pointer; }
.fd-checklist-launch > .fd-icon:first-child { width:30px; height:30px; padding:6px; border-radius:9px; background:var(--fd-blue); color:#fff; box-sizing:border-box; }
.fd-checklist-launch span { min-width:0; }
.fd-checklist-launch strong { display:block; color:var(--fd-ink); font-size:10.5px; }
.fd-checklist-launch small { display:block; margin-top:2px; color:var(--fd-slate); font-size:8.5px; }
.fd-checklist-launch > .fd-icon:last-child { width:14px; height:14px; }

/* Checklist grammar (drawer + Preparing panel) */
.fd-checklist { min-width:0; }
.fd-checklist-head, .fd-prep-checklist-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.fd-checklist-head h3, .fd-prep-checklist-card h3 { margin:0; color:var(--fd-ink); font: 600 17px/1.25 var(--fd-display); }
.fd-checklist-head p, .fd-prep-checklist-card header p:not(.fd-kicker) { margin:4px 0 0; color:var(--fd-slate); font-size:10px; line-height:1.4; }
.fd-progress-ring { --p:0%; flex:none; width:50px; height:50px; display:grid; place-items:center; border-radius:50%; background:conic-gradient(var(--fd-green) var(--p),#e5eaf1 0); }
.fd-progress-ring::before { content:""; grid-area:1/1; width:39px; height:39px; border-radius:50%; background:#fff; }
.fd-progress-ring span { z-index:1; grid-area:1/1; color:var(--fd-ink); font-size:9.5px; font-weight:600; }
.fd-check-group { margin-top:14px; }
.fd-check-group h4 { margin:0 0 5px; color:var(--fd-slate); font-size:9px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; }
.fd-check { min-height:44px; display:flex; align-items:flex-start; gap:9px; padding:7px 0; color:#3e4c65; font-size:11px; line-height:1.4; cursor:pointer; }
.fd-check input { appearance:none; width:19px; height:19px; flex:none; display:grid; place-items:center; margin:0; border:1.5px solid #78869b; border-radius:5px; background:#fff; cursor:pointer; }
.fd-check input:checked { border-color:var(--fd-green); background:var(--fd-green); }
.fd-check input:checked::after { content:"✓"; color:#fff; font-size:11px; font-weight:600; }
.fd-check input:checked + span { color:#66748a; text-decoration:line-through; }

/* Application: milestone rail and allocation explainer */
.fd-section-head--application .fd-kicker { color:var(--fd-blue); }
.fd-application-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:16px; align-items:start; }
.fd-milestone-list { position:relative; display:flex; flex-direction:column; gap:9px; margin:0; padding:0 0 0 8px; list-style:none; }
.fd-milestone-list::before { content:""; position:absolute; left:24px; top:26px; bottom:26px; width:2px; background:#cfe0f6; }
.fd-milestone { position:relative; display:grid; grid-template-columns:34px minmax(0,1fr); column-gap:10px; padding:0; scroll-margin-top:134px; }
.fd-milestone-node { z-index:2; grid-column:1; grid-row:1; width:34px; height:34px; align-self:center; display:grid; place-items:center; border:2px solid #83b6f0; border-radius:50%; background:#fff; color:var(--fd-blue); }
.fd-milestone-node .fd-icon { width:16px; height:16px; }
.fd-milestone[data-next="true"] .fd-milestone-node { border-color:var(--fd-blue); box-shadow:0 0 0 6px rgba(31,111,214,.11); animation:fd-node-pulse 2.4s ease-in-out infinite; }
.fd-milestone[data-deadline="true"] .fd-milestone-node { border-color:var(--fd-amber-bright); background:#fff8ec; color:#d66e08; }
.fd-milestone[data-state="awaiting-publication"] .fd-milestone-node,
.fd-milestone[data-state="date-tbc"] .fd-milestone-node,
.fd-milestone[data-state="mixed-verification"] .fd-milestone-node { border-style:dashed; border-color:#d99a46; color:var(--fd-amber); }
@keyframes fd-node-pulse { 50% { box-shadow:0 0 0 10px rgba(31,111,214,0); } }
.fd-milestone-trigger { grid-column:2; min-width:0; min-height:78px; display:grid; grid-template-columns:minmax(138px,.42fr) minmax(0,1fr) 18px; gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--fd-line); border-radius:15px; background:#fff; color:inherit; text-align:left; box-shadow:var(--fd-shadow); cursor:pointer; }
.fd-milestone-trigger:hover { border-color:#c7d7ea; }
.fd-milestone[data-deadline="true"] .fd-milestone-trigger { border-color:#efcf98; background:#fffaf1; }
.fd-milestone-date { min-width:0; }
.fd-milestone-date strong { display:block; color:var(--fd-ink); font: 700 15px/1.2 var(--fd-display); letter-spacing:-.02em; }
.fd-milestone-date small { display:block; margin-top:4px; color:var(--fd-slate); font-size:9.5px; }
.fd-milestone-copy { min-width:0; }
.fd-milestone-copy b { display:block; margin-top:5px; color:var(--fd-ink); font-size:11px; line-height:1.35; }
.fd-milestone-copy > small { display:block; margin-top:3px; color:var(--fd-slate); font-size:9px; }
.fd-milestone-arrow { width:14px; height:14px; color:var(--fd-muted); transition:transform .16s ease; }
.fd-milestone-trigger[aria-expanded="true"] .fd-milestone-arrow { transform:rotate(90deg); color:var(--fd-blue); }
.fd-milestone-body { grid-column:2; margin:-1px 8px 0; padding:12px 14px; border:1px solid var(--fd-line); border-top:0; border-radius:0 0 13px 13px; background:#f8fafe; }
.fd-milestone-body p { margin:0; color:#43516a; font-size:10.5px; line-height:1.5; }
.fd-application-aside { position:sticky; top:148px; padding:19px; border:1px solid #cfdef1; border-radius:17px; background:linear-gradient(155deg,#f3f8ff,#fff); }
.fd-application-aside h3 { margin:11px 0 7px; color:var(--fd-ink); font: 600 18px/1.25 var(--fd-display); }
.fd-application-aside > p { margin:0; color:var(--fd-slate); font-size:11.5px; line-height:1.55; }
.fd-flow { margin:25px 0 0; padding:19px; border:1px solid var(--fd-line); border-radius:18px; background:#fff; box-shadow:var(--fd-shadow); scroll-margin-top:134px; }
.fd-flow-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:14px; }
.fd-flow-head h2 { margin:0; color:var(--fd-ink); font: 600 20px/1.2 var(--fd-display); letter-spacing:-.025em; }
.fd-flow-head > span { color:var(--fd-muted); font-size:9px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
.fd-flow-rail { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; margin:0; padding:5px; border-radius:14px; background:#f1f4f9; list-style:none; }
.fd-flow-step { min-width:0; }
.fd-flow-step button { width:100%; min-height:62px; display:flex; align-items:center; gap:7px; padding:7px 8px; border:0; border-radius:10px; background:transparent; color:var(--fd-slate); text-align:left; font-size:8.8px; font-weight:600; line-height:1.25; cursor:pointer; }
.fd-flow-step button[aria-selected="true"] { background:#fff; color:var(--fd-ink); box-shadow:0 1px 3px rgba(18,33,62,.1); }
.fd-flow-no { width:25px; height:25px; flex:none; display:grid; place-items:center; border-radius:8px; background:#dce8f8; color:var(--fd-blue-deep); font-size:9px; font-weight:600; }
.fd-flow-step button[aria-selected="true"] .fd-flow-no { background:var(--fd-blue); color:#fff; }
.fd-flow-detail { display:grid; grid-template-columns:46px minmax(0,1fr); gap:13px; margin-top:10px; padding:16px; border:1px solid #d7e3f2; border-radius:14px; background:#f7faff; }
.fd-flow-detail-no { width:43px; height:43px; display:grid; place-items:center; border-radius:13px; background:var(--fd-blue); color:#fff; font: 600 15px/1 var(--fd-display); }
.fd-flow-detail h3 { margin:8px 0 6px; color:var(--fd-ink); font: 600 17px/1.25 var(--fd-display); }
.fd-flow-detail p { margin:0; color:#43516a; font-size:11.5px; line-height:1.55; }
.fd-two-pass { display:grid; grid-template-columns:1fr auto 1fr; gap:10px; align-items:center; margin-top:13px; }
.fd-pass { height:100%; padding:11px; border-radius:11px; background:#fff; }
.fd-pass b { display:block; margin-bottom:4px; color:var(--fd-blue-deep); font-size:9px; letter-spacing:.05em; text-transform:uppercase; }
.fd-pass p { font-size:9.8px; line-height:1.45; }
.fd-pass-arrow { color:var(--fd-muted); }
.fd-application-support { display:grid; grid-template-columns:minmax(260px,.78fr) minmax(0,1.22fr); gap:12px; margin-top:13px; align-items:stretch; }
.fd-deadline-card { padding:19px; }
.fd-deadline-card h3 { margin:10px 0 6px; color:var(--fd-ink); font: 600 17px/1.25 var(--fd-display); }
.fd-deadline-card > p { margin:0; color:#43516a; font-size:11.5px; line-height:1.55; }
.fd-prealloc { overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.46fr); scroll-margin-top:134px; }
.fd-prealloc-copy { padding:19px; }
.fd-prealloc-copy h3 { margin:9px 0 6px; color:var(--fd-ink); font: 600 17px/1.25 var(--fd-display); }
.fd-prealloc-copy > p { margin:0; color:#43516a; font-size:11.5px; line-height:1.55; }
.fd-criterion-chips { display:flex; gap:5px; flex-wrap:wrap; margin:12px 0; }
.fd-criterion-chips span { display:inline-flex; align-items:center; gap:5px; min-height:28px; padding:0 8px; border-radius:8px; background:var(--fd-ground); color:var(--fd-slate); font-size:8.5px; font-weight:500; }
.fd-criterion-chips b { color:var(--fd-blue-deep); }
.fd-prealloc-deadline { display:flex; flex-direction:column; justify-content:center; padding:18px; background:linear-gradient(150deg,#10244a,#091a38); color:#fff; }
.fd-prealloc-deadline small { color:#aebed5; font-size:8.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.fd-prealloc-deadline strong { display:block; margin:8px 0 5px; font: 700 17px/1.25 var(--fd-display); }
.fd-prealloc-deadline span { color:#bec9da; font-size:9.5px; line-height:1.45; }
.fd-preallocation-detail > p { margin-top:0; color:#43516a; font-size:12px; line-height:1.58; }
.fd-preallocation-detail > h3 { margin:22px 0 9px; color:var(--fd-ink); font: 600 15px/1.25 var(--fd-display); }
.fd-criteria { display:flex; flex-direction:column; gap:8px; }
.fd-criterion { min-width:0; display:grid; grid-template-columns:39px minmax(0,1fr); gap:10px; padding:12px; border:1px solid var(--fd-line); border-radius:13px; background:#fff; }
.fd-criterion-code { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:var(--fd-blue-soft); color:var(--fd-blue-deep); font-size:9px; font-weight:600; }
.fd-criterion h4, .fd-evidence h4, .fd-imperial-band h4 { margin:0 0 4px; color:var(--fd-ink); font-size:10.5px; }
.fd-criterion p, .fd-evidence p, .fd-imperial-band p { margin:0; color:var(--fd-slate); font-size:10px; line-height:1.5; }
.fd-evidence-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.fd-evidence { padding:12px; border:1px solid var(--fd-line); border-radius:12px; background:var(--fd-ground); }
.fd-imperial-band { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; padding:12px; border:1px solid #ddd0f1; border-radius:13px; background:var(--fd-purple-soft); }
.fd-imperial-band > div { padding:11px; border:1px solid #ded4ef; border-radius:10px; background:rgba(255,255,255,.72); }
.fd-imperial-band h4 { margin-top:7px; color:#4f3d82; }
.fd-type-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.fd-type { min-width:0; display:grid; grid-template-columns:42px minmax(0,1fr); gap:11px; padding:17px; }
.fd-type-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:var(--fd-blue-soft); color:var(--fd-blue); }
.fd-type h3 { margin:8px 0 6px; color:var(--fd-ink); font: 600 15px/1.3 var(--fd-display); }
.fd-type p { margin:0 0 7px; color:#43516a; font-size:10.5px; line-height:1.52; }
.fd-type small { display:block; color:var(--fd-slate); font-size:9.5px; line-height:1.5; }

/* Foundation Schools explorer */
.fd-schools-intro { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:end; margin:4px 0 13px; }
.fd-schools-intro .fd-kicker { color:var(--fd-green-deep); }
.fd-schools-intro h2 { margin:0; color:var(--fd-ink); font: 600 24px/1.16 var(--fd-display); letter-spacing:-.035em; }
.fd-schools-intro p { max-width:68ch; margin:6px 0 0; color:var(--fd-slate); font-size:12.5px; line-height:1.55; }
.fd-count { color:var(--fd-green-deep); font: 600 11px/1 var(--fd-display); }
.fd-school-tools { display:grid; grid-template-columns:minmax(230px,1fr) auto; gap:8px; margin-bottom:9px; scroll-margin-top:134px; }
.fd-search { min-height:46px; display:flex; align-items:center; gap:9px; padding:0 13px; border:1px solid var(--fd-line); border-radius:12px; background:#fff; color:var(--fd-muted); box-shadow:var(--fd-shadow); }
.fd-search .fd-icon { width:18px; height:18px; }
.fd-search input { min-width:0; width:100%; border:0; outline:0; background:transparent; color:var(--fd-ink); font-size:12px; }
.fd-manager-button { min-height:46px; display:flex; align-items:center; gap:8px; padding:0 12px; border:1px solid var(--fd-line); border-radius:12px; background:#fff; color:var(--fd-slate); font-size:10.5px; font-weight:600; cursor:pointer; box-shadow:var(--fd-shadow); }
.fd-manager-button > .fd-icon { width:17px; height:17px; }
.fd-manager-button b { min-width:23px; height:23px; display:grid; place-items:center; padding:0 5px; border-radius:999px; background:var(--fd-green-soft); color:var(--fd-green-deep); font-size:9px; }
.fd-manager-button > .fd-icon:last-child { width:13px; height:13px; }
.fd-nation-filters { display:flex; gap:6px; margin-bottom:10px; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:none; }
.fd-nation-filters::-webkit-scrollbar { display:none; }
.fd-nation-filters button { min-height:34px; flex:0 0 auto; padding:0 11px; border:1px solid var(--fd-line); border-radius:999px; background:#fff; color:var(--fd-slate); font-size:9.5px; font-weight:600; cursor:pointer; }
.fd-nation-filters button[aria-pressed="true"] { border-color:var(--fd-green); background:var(--fd-green); color:#fff; }
.fd-nation-filters .fd-saved-chip { display:inline-flex; align-items:center; gap:5px; }
.fd-nation-filters .fd-saved-chip .fd-icon { width:13px; height:13px; }
.fd-history-warning { display:flex; align-items:flex-start; gap:9px; margin:0 0 11px; padding:10px 12px; border:1px solid #ecd39f; border-radius:11px; background:#fff9ed; color:#754a13; font-size:9.8px; font-weight:600; line-height:1.4; }
.fd-schools-layout { display:grid; grid-template-columns:minmax(310px,390px) minmax(0,1fr); gap:12px; align-items:start; }
.fd-map-card { position:sticky; top:146px; overflow:hidden; border:1px solid #cfe5ea; border-radius:18px; background:linear-gradient(150deg,#eaf8fb,#dff4f6); box-shadow:var(--fd-shadow); }
.fd-map-copy { position:relative; z-index:2; padding:16px 17px 0; }
.fd-map-copy h3 { margin:8px 0 4px; color:var(--fd-ink); font: 600 18px/1.2 var(--fd-display); }
.fd-map-copy p { margin:0; color:#54727c; font-size:9.5px; line-height:1.45; }
.fd-map-canvas { position:relative; height:355px; margin:-16px 8px -6px; }
.fd-map-plot { position:relative; width:min(100%,273px); aspect-ratio:300/390; margin:0 auto; }
.fd-map-plot > svg { display:block; width:100%; height:100%; overflow:visible; }
.fd-map-landmass { fill:url(#fd-map-land); stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.fd-map-landmass--northern-ireland { fill:#d6efcf; }
.fd-map-landmass--islands { fill:#ccecd1; stroke-width:2.2; }
.fd-map-sea-mark { fill:none; stroke:rgba(70,153,180,.12); stroke-width:2; stroke-linecap:round; }
.fd-map-pins { position:absolute; inset:0; }
.fd-map-pin { position:absolute; left:var(--x); top:var(--y); width:34px; height:34px; display:grid; place-items:center; transform:translate(-50%,-50%); padding:0; border:0; border-radius:50%; background:transparent; cursor:pointer; }
.fd-map-pin span { width:12px; height:12px; border:3px solid #fff; border-radius:50% 50% 50% 0; background:var(--fd-green); box-shadow:0 3px 7px rgba(5,98,62,.28); transform:rotate(-45deg); transition:transform .15s ease,box-shadow .15s ease; }
.fd-map-pin:hover span, .fd-map-pin[aria-pressed="true"] span { transform:rotate(-45deg) scale(1.35); background:#f48a1a; box-shadow:0 0 0 6px rgba(244,138,26,.15),0 4px 8px rgba(5,98,62,.25); }
.fd-map-selected { width:calc(100% - 24px); min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 12px 12px; padding:9px 11px; border:1px solid rgba(255,255,255,.9); border-radius:13px; background:rgba(255,255,255,.88); color:var(--fd-ink); text-align:left; box-shadow:0 8px 22px -18px rgba(18,64,73,.6); cursor:pointer; }
.fd-map-selected span { min-width:0; }
.fd-map-selected small { display:block; color:var(--fd-green-deep); font-size:8px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.fd-map-selected strong { display:block; overflow:hidden; margin-top:3px; font-size:10.5px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.fd-map-selected .fd-icon { width:15px; height:15px; color:var(--fd-green); }
.fd-school-list { min-width:0; }
.fd-school-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.fd-school-card { min-width:0; display:flex; flex-direction:column; padding:15px; }
.fd-school-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.fd-school-nation { color:var(--fd-green-deep); font-size:8.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.fd-save { width:44px; height:44px; flex:none; display:grid; place-items:center; border:1px solid var(--fd-line); border-radius:11px; background:#fff; color:var(--fd-muted); cursor:pointer; }
.fd-save .fd-icon { width:19px; height:19px; }
.fd-save[aria-pressed="true"] { border-color:#f1cf88; background:#fff7e5; color:#9b600b; }
.fd-save[aria-pressed="true"] .fd-icon { fill:currentColor; }
.fd-school-card h3 { margin:8px 0 6px; color:var(--fd-ink); font: 600 14px/1.3 var(--fd-display); letter-spacing:-.015em; overflow-wrap:anywhere; }
.fd-school-geo { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; margin:0; color:var(--fd-slate); font-size:9.8px; line-height:1.5; }
.fd-school-tags { display:flex; gap:5px; flex-wrap:wrap; margin:11px 0; }
.fd-school-tag { display:inline-flex; align-items:center; min-height:23px; padding:0 7px; border-radius:7px; background:var(--fd-ground); color:var(--fd-slate); font-size:7.8px; font-weight:500; }
.fd-school-tag--history { background:var(--fd-green-soft); color:var(--fd-green-deep); }
.fd-school-actions { display:grid; grid-template-columns:1fr auto; gap:7px; margin-top:auto; }
.fd-school-open, .fd-compare { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--fd-line); border-radius:10px; background:#fff; color:var(--fd-green-deep); font-size:9.5px; font-weight:600; cursor:pointer; }
.fd-school-open .fd-icon { width:13px; height:13px; }
.fd-school-open:hover { border-color:#b6ddcd; background:var(--fd-green-soft); }
.fd-compare { width:44px; color:var(--fd-muted); }
.fd-compare .fd-icon { width:17px; height:17px; }
.fd-compare[aria-pressed="true"] { border-color:var(--fd-green); background:var(--fd-green); color:#fff; }
.fd-empty { grid-column:1/-1; padding:38px 20px; border:1px dashed #c8d2e0; border-radius:15px; background:#fff; color:var(--fd-slate); text-align:center; font-size:11px; }
.fd-empty--compact { padding:18px 14px; font-size:10.5px; }
.fd-saved-list { display:flex; flex-direction:column; gap:6px; }
.fd-saved-list button { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; border:1px solid var(--fd-line); border-radius:10px; background:#fff; color:var(--fd-ink); text-align:left; font-size:10.5px; cursor:pointer; }
.fd-saved-list .fd-icon { width:14px; height:14px; }
.fd-compare-panel { padding:13px; border:1px solid #cbdcf2; border-radius:14px; background:#f0f6fd; }
.fd-compare-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
.fd-compare-head h3 { margin:0; color:var(--fd-ink); font: 600 13px/1.3 var(--fd-display); }
.fd-compare-head button { min-height:36px; border:0; background:transparent; color:var(--fd-blue-deep); font-size:10px; font-weight:600; cursor:pointer; }
.fd-compare-scroll { max-width:100%; overflow-x:auto; border-radius:8px; -webkit-overflow-scrolling:touch; }
.fd-compare-table { width:100%; min-width:480px; border-collapse:collapse; table-layout:fixed; }
.fd-compare-table th, .fd-compare-table td { padding:8px; border-top:1px solid #d6e3f3; color:#3e4f68; font-size:9px; line-height:1.4; text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.fd-compare-table th { color:var(--fd-ink); font-weight:500; }
/* UKFPO's own "this list is not exhaustive" caveat. It shipped with no rule of
   its own, so it rendered as undifferentiated body text directly under the
   geography it qualifies — visually indistinguishable from the list itself.
   A caveat that reads as content is a caveat that does not work. */
.fd-geo-caveat { margin:6px 0 0; padding:7px 9px; border-left:2px solid #ecd39f; border-radius:0 8px 8px 0; background:#fff9ed; color:#754a13; font-size:9.8px; font-weight:600; line-height:1.45; }
.fd-school-drawer-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:18px; }
.fd-school-drawer-actions .fd-icon { width:16px; height:16px; }
.fd-school-drawer-actions [aria-pressed="true"] { border-color:#bdd9cc; background:var(--fd-green-soft); color:var(--fd-green-deep); }

/* Preparing for F1 */
.fd-transition-hero { position:relative; overflow:hidden; min-height:340px; display:flex; align-items:stretch; padding:28px 30px; border-radius:24px; background:radial-gradient(circle at 82% 16%,rgba(197,87,235,.38),transparent 28%),linear-gradient(145deg,#281551 0%,#0c1d43 64%,#071832); color:#fff; isolation:isolate; box-shadow:0 25px 55px -34px rgba(24,12,62,.8); }
.fd-transition-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(15,17,48,.94),rgba(15,17,48,.68) 48%,rgba(15,17,48,.08) 78%); }
.fd-transition-copy { position:relative; z-index:2; width:min(610px,59%); }
.fd-transition-hero h2 { max-width:16ch; margin:17px 0 10px; color:#fff; font: 600 clamp(31px,4vw,46px)/1.07 var(--fd-display); letter-spacing:-.045em; }
.fd-transition-hero .fd-transition-copy > p { max-width:58ch; margin:0; color:#c4cce0; font-size:12px; line-height:1.58; }
.fd-transition-date { width:min(310px,100%); margin-top:23px; padding:15px; border:1px solid rgba(255,255,255,.15); border-radius:14px; background:rgba(255,255,255,.08); backdrop-filter:blur(6px); }
.fd-transition-date span { display:block; color:#b4bdd3; font-size:8.5px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; }
.fd-transition-date strong { display:block; margin:6px 0 3px; color:#fff; font: 700 21px/1.2 var(--fd-display); }
.fd-transition-date small { color:#cbd2df; font-size:9.5px; }
.fd-route-art--preparing { right:-1%; width:60%; }
.fd-route-art--preparing .fd-art-route-shadow { stroke:rgba(233,77,206,.25); filter:url(#fd-prep-glow); }
.fd-route-art--preparing .fd-art-route { filter:url(#fd-prep-glow); }
.fd-art-hill { fill:#23185a; opacity:.9; }
.fd-art-hill--back { fill:#142052; opacity:.86; }
.fd-art-person { fill:none; stroke:#101637; stroke-width:4; stroke-linecap:round; filter:url(#fd-prep-glow); }
.fd-art-person circle { fill:#101637; }
.fd-art-pulse { fill:#fff7d1; filter:url(#fd-prep-glow); animation:fd-person-pulse 2.3s ease-in-out infinite; }
@keyframes fd-person-pulse { 50% { opacity:.45; transform:scale(1.5); transform-origin:320px 46px; } }
.fd-transition-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:12px; margin-top:13px; align-items:start; }
.fd-transition-card { min-width:0; padding:20px; scroll-margin-top:134px; }
.fd-transition-card h3 { margin:9px 0 7px; color:var(--fd-ink); font: 600 18px/1.28 var(--fd-display); }
.fd-transition-card > p { margin:0; color:#43516a; font-size:11.5px; line-height:1.58; }
.fd-action-list { margin:12px 0 0; padding:0; list-style:none; }
.fd-action-list li { position:relative; padding:5px 0 5px 21px; color:#43516a; font-size:10.5px; line-height:1.48; }
.fd-action-list li::before { content:"✓"; position:absolute; left:0; top:5px; color:var(--fd-green); font-weight:600; }
.fd-step-details { margin-top:13px; border-top:1px solid var(--fd-line); }
.fd-step-details summary { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--fd-blue-deep); font-size:10.5px; font-weight:600; cursor:pointer; list-style:none; }
.fd-step-details summary::-webkit-details-marker { display:none; }
.fd-step-details summary .fd-icon { width:15px; height:15px; transition:transform .16s ease; }
.fd-step-details[open] summary .fd-icon { transform:rotate(90deg); }
.fd-step-details > div { padding-bottom:2px; }
.fd-step-details .fd-callout { margin-top:10px; }
.fd-prep-checklist-card { min-width:0; padding:18px; }
.fd-prep-checks { margin-top:8px; }
.fd-checklist-more { width:100%; min-height:44px; display:flex; align-items:center; justify-content:center; gap:7px; margin-top:9px; border:0; border-radius:10px; background:var(--fd-ground); color:var(--fd-ink); font-size:10px; font-weight:600; cursor:pointer; }
.fd-checklist-more .fd-icon { width:14px; height:14px; }
.fd-shadowing-card { display:grid; grid-template-columns:52px minmax(0,1fr); gap:13px; margin-top:12px; padding:17px 19px; border:1px solid #d7e2f2; border-radius:17px; background:linear-gradient(135deg,#f6f9fe,#fff); box-shadow:var(--fd-shadow); scroll-margin-top:134px; }
.fd-shadowing-icon { width:50px; height:50px; display:grid; place-items:center; border-radius:15px; background:var(--fd-purple-soft); color:var(--fd-purple); }
.fd-shadowing-card h3 { margin:8px 0 5px; color:var(--fd-ink); font: 600 16px/1.28 var(--fd-display); }
.fd-shadowing-card p { margin:0; color:#43516a; font-size:11px; line-height:1.55; }
.fd-shadowing-points { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
.fd-shadowing-points span { padding:9px 10px; border-radius:10px; background:#fff; color:var(--fd-slate); font-size:9.5px; line-height:1.45; }
.fd-resource-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.fd-resource { min-width:0; display:grid; grid-template-columns:38px minmax(0,1fr); gap:10px; padding:15px; }
.fd-resource-icon { width:37px; height:37px; display:grid; place-items:center; border-radius:11px; background:#ffedd2; color:#b75e0c; }
.fd-resource[data-resource-accent="1"] .fd-resource-icon { background:var(--fd-purple-soft); color:var(--fd-purple); }
.fd-resource[data-resource-accent="2"] .fd-resource-icon { background:var(--fd-blue-soft); color:var(--fd-blue); }
.fd-resource-icon .fd-icon { width:18px; height:18px; }
.fd-resource h3 { margin:7px 0 4px; color:var(--fd-ink); font-size:11.5px; }
.fd-resource p { margin:0; color:var(--fd-slate); font-size:9.5px; line-height:1.45; }
.fd-resource-open { min-height:36px; display:inline-flex; align-items:center; color:var(--fd-blue-deep); font-size:9.5px; font-weight:600; text-decoration:none; }

/* One accessible source/detail drawer; mobile becomes a bottom sheet */
.fd-drawer-layer { position:fixed; inset:0; z-index:1400; display:flex; justify-content:flex-end; }
.fd-drawer-scrim { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(7,18,38,.48); cursor:pointer; }
.fd-drawer { position:relative; z-index:1; width:min(520px,calc(100% - 32px)); height:100%; display:flex; flex-direction:column; background:#fff; box-shadow:-20px 0 60px -35px rgba(7,18,38,.7); animation:fd-drawer-in .2s ease-out both; }
.fd-drawer-grabber { display:none; }
.fd-drawer-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:21px 22px 16px; border-bottom:1px solid var(--fd-line); }
.fd-drawer-kicker { margin:0 0 5px; color:var(--fd-blue-deep); font-size:9px; font-weight:500; letter-spacing:.11em; text-transform:uppercase; }
.fd-drawer-head h2 { margin:0; color:var(--fd-ink); font: 600 21px/1.2 var(--fd-display); letter-spacing:-.03em; overflow-wrap:anywhere; }
.fd-drawer-close { width:44px; height:44px; flex:none; display:grid; place-items:center; border:1px solid var(--fd-line); border-radius:12px; background:#fff; color:var(--fd-slate); font-size:25px; line-height:1; cursor:pointer; }
.fd-drawer-body { min-height:0; overflow:auto; padding:19px 22px calc(24px + env(safe-area-inset-bottom,0px)); overscroll-behavior:contain; }
.fd-drawer-section { margin-bottom:20px; }
.fd-drawer-section h3 { margin:0 0 7px; color:var(--fd-ink); font: 600 14px/1.3 var(--fd-display); }
.fd-drawer-section p { margin:0 0 8px; color:#43516a; font-size:11.5px; line-height:1.58; overflow-wrap:anywhere; }
.fd-provenance { padding:12px; border:1px solid var(--fd-line); border-radius:12px; background:var(--fd-ground); }
.fd-provenance + .fd-provenance { margin-top:8px; }
.fd-provenance-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.fd-provenance-head strong { color:var(--fd-ink); font-size:10.5px; }
.fd-provenance dl { display:grid; grid-template-columns:90px minmax(0,1fr); gap:5px 8px; margin:0; }
.fd-provenance dt { color:var(--fd-muted); font-size:9.5px; font-weight:600; }
.fd-provenance dd { min-width:0; margin:0; color:#40506a; font-size:9.5px; line-height:1.45; overflow-wrap:anywhere; }
.fd-provenance a { min-height:36px; display:inline-flex; align-items:center; color:var(--fd-blue-deep); font-size:10px; font-weight:600; }
.fd-history-box { padding:14px; border:1px solid #ead4a9; border-radius:13px; background:#fff9ed; }
.fd-history-box .fd-history-title { margin:0 0 10px; color:#754a13; font-size:10px; font-weight:600; line-height:1.45; text-transform:uppercase; }
.fd-history-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.fd-history-stat { padding:10px; border-radius:10px; background:rgba(255,255,255,.75); }
.fd-history-stat strong { display:block; color:var(--fd-ink); font: 700 17px/1.2 var(--fd-display); }
.fd-history-stat span { color:var(--fd-slate); font-size:8.5px; line-height:1.35; }
@keyframes fd-drawer-in { from { transform:translateX(20px); opacity:.7; } to { transform:none; opacity:1; } }

/* Live Foundation card on Your future */
body.your-future-page .rt-stop.rt-foundation .rt-card { opacity:1; border-color:#d6e3f4; box-shadow:0 8px 24px -20px rgba(18,45,84,.55); }
body.your-future-page .rt-stop.rt-foundation .rt-dot { border-color:#1f6fd6; }
.rt-foundation-board { margin-top:13px; padding:14px 15px; border-radius:13px; background:#101f3d; color:#fff; }
.rt-foundation-board .fd-card-kicker { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; color:#aebed7; font-size:9px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; }
.rt-foundation-board .fd-card-kicker b { color:#7fd7c9; }
.rt-foundation-next { color:#fff; font: 600 14px/1.35 var(--fd-display); }
.rt-foundation-date { margin-top:4px; color:#b9c6da; font-size:11px; line-height:1.4; }
.rt-foundation-progress { display:grid; grid-template-columns:repeat(9,1fr); gap:4px; margin-top:13px; }
.rt-foundation-progress span { height:3px; border-radius:3px; background:#41506a; }
.rt-foundation-progress span.on { background:#4c9cf2; }
.rt-foundation-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
.rt-foundation-meta small { color:#5d6b84; font-size:10px; }

/* While the programme year is being checked. Your future and the Foundation
   page ship .pf-stage-checking on their route container; your-future-stage.js
   and foundation.js swap it for the confirmed year's framing, or for
   .pf-stage-unconfirmed when no answer arrives. Until then nothing that belongs
   to one year group shows: each card keeps its heading and its size and says it
   is checking. */
.rt-stage-neutral { display:none; }
.pf-stage-checking .rt-stage-card .sub, .pf-stage-unconfirmed .rt-stage-card .sub,
.pf-stage-checking #rt-el-tag, .pf-stage-unconfirmed #rt-el-tag,
.pf-stage-checking #rt-fd-status, .pf-stage-unconfirmed #rt-fd-status,
.pf-stage-checking .rt-stage-card .rt-meta, .pf-stage-unconfirmed .rt-stage-card .rt-meta,
.pf-stage-checking .rt-stage-card .rt-foundation-board > *, .pf-stage-unconfirmed .rt-stage-card .rt-foundation-board > *,
.pf-stage-checking .rt-stage-card .rt-foundation-meta, .pf-stage-unconfirmed .rt-stage-card .rt-foundation-meta,
.pf-stage-checking .fd-page-head [data-pf-pagehead-sub], .pf-stage-unconfirmed .fd-page-head [data-pf-pagehead-sub] { visibility:hidden; }
.pf-stage-checking .rt-stage-card .rt-stage-sub, .pf-stage-unconfirmed .rt-stage-card .rt-stage-sub,
.pf-stage-checking #rt-el-board, .pf-stage-unconfirmed #rt-el-board { display:none; }
.pf-stage-checking .rt-stage-card .rt-stage-neutral, .pf-stage-unconfirmed .rt-stage-card .rt-stage-neutral { display:block; visibility:visible; }
/* The Foundation board keeps its place as a quiet placeholder, not an empty dark plate. */
.pf-stage-checking .rt-stage-card .rt-foundation-board, .pf-stage-unconfirmed .rt-stage-card .rt-foundation-board { background:#eef1f7; }

@media (max-width:1050px) {
  .fd-stage-explorer { grid-template-columns:230px minmax(0,1fr); }
  .fd-application-layout { grid-template-columns:minmax(0,1fr) 240px; }
  .fd-schools-layout { grid-template-columns:320px minmax(0,1fr); }
  .fd-school-grid { grid-template-columns:1fr; }
  .fd-flow-step button { flex-direction:column; align-items:flex-start; }
}

@media (max-width:800px) {
  body.foundation-page .foundation-inner { padding-left:16px; padding-right:16px; }
  .fd-stage-explorer, .fd-application-layout, .fd-schools-layout { grid-template-columns:1fr; }
  .fd-application-aside { position:static; }
  .fd-map-card { position:relative; top:auto; }
  .fd-school-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fd-transition-grid { grid-template-columns:1fr; }
}

@media (max-width:768px) {
  body.foundation-page.student-shell-unified { overflow-x:clip !important; }
  body.foundation-page.pp-has-mobhead .fd-back,
  body.foundation-page.pp-has-mobhead .fd-page-head { display:none; }
  body.foundation-page .foundation-inner { padding-top:0; }

  /* Shared shell normally truncates standalone titles to one line. Foundation
     deliberately wraps to two lines while keeping clear of the action capsule. */
  html.pf-th-on body.foundation-page.pp-has-mobhead .app-content > .pp-mobhead .pp-mobhead-main,
  body.foundation-page.pp-has-mobhead .app-content > .pp-mobhead .pp-mobhead-main { min-width:0; padding-right:100px !important; }
  html.pf-th-on body.foundation-page.pp-has-mobhead .app-content > .pp-mobhead .pp-mobhead-title,
  body.foundation-page.pp-has-mobhead .app-content > .pp-mobhead .pp-mobhead-title {
    width:min(185px,calc(100vw - 132px)); max-width:none !important; white-space:normal !important;
    overflow:visible !important; text-overflow:clip !important; line-height:1.02 !important; min-block-size:2.2em;
    text-wrap:balance;
  }
  body.foundation-page.pp-has-mobhead .app-content > .pp-mobhead { align-items:flex-start !important; padding-bottom:8px !important; }

  .fd-tabs { top:4px; display:flex; grid-template-columns:none; gap:3px; max-width:100%; margin-bottom:12px; padding:0; border-radius:0; overflow-x:auto; overflow-y:hidden; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; scrollbar-width:none; background:var(--pf-canvas,#fff); box-shadow:0 -4px 0 var(--pf-canvas,#fff); }
  .fd-tabs::-webkit-scrollbar { display:none; }
  /* The strip sticks 4px below the shell's compact bar. Its own overflow would
     clip a pseudo-element, but not its box-shadow, which paints that seam. */
  .fd-tabs button { flex:1 1 0; min-width:0; min-height:44px; gap:0; padding:6px 4px; font-size:11.5px; letter-spacing:-.01em; scroll-snap-align:start; }
  .fd-tabs button:focus-visible { outline-width:2px; outline-offset:-2px; }
  .fd-tabs button[data-tab-accent="application"] { min-width:0; }
  .fd-panel, .fd-stage, .fd-milestone, .fd-flow, .fd-prealloc, .fd-transition-card, .fd-shadowing-card, #schools-explorer { scroll-margin-top:58px; }
  html.pf-th-on body.foundation-page .fd-tabs { top:calc(env(safe-area-inset-top,0px) + 48px); }
  html.pf-th-on body.foundation-page .fd-panel,
  html.pf-th-on body.foundation-page .fd-stage,
  html.pf-th-on body.foundation-page .fd-milestone,
  html.pf-th-on body.foundation-page .fd-flow,
  html.pf-th-on body.foundation-page .fd-prealloc,
  html.pf-th-on body.foundation-page .fd-transition-card,
  html.pf-th-on body.foundation-page .fd-shadowing-card,
  html.pf-th-on body.foundation-page #schools-explorer { scroll-margin-top:calc(env(safe-area-inset-top,0px) + 108px); }

  .fd-hero { min-height:292px; padding:16px 18px; border-radius:20px; }
  .fd-hero::before { background:linear-gradient(90deg,rgba(5,18,42,.97) 0%,rgba(5,18,42,.76) 58%,rgba(5,18,42,.08) 100%); }
  .fd-hero-main { width:67%; }
  .fd-hero .fd-status { min-height:24px; padding:0 8px; font-size:8px; }
  .fd-hero h2 { margin-top:11px; font-size:30px; }
  .fd-route-art { right:-18%; top:2%; width:77%; height:98%; opacity:.9; }
  .fd-next-milestone { padding-top:10px; }
  .fd-next-milestone > p { margin-bottom:3px; font-size:8px; }
  .fd-next-milestone > strong { max-width:22ch; font-size:9.5px; }
  .fd-hero-date { display:block; margin-top:4px; }
  .fd-hero-date b { display:block; font-size:18px; }
  .fd-hero-date small { display:block; margin-top:2px; }
  .fd-hero-actions { width:calc(100% + 46%); margin-top:9px; gap:6px; }
  .fd-hero-actions .fd-btn, .fd-hero-actions .fd-source-button { min-height:44px; }
  .fd-device-note { width:calc(100% + 45%); margin-top:7px; font-size:7.5px; }

  .fd-destination-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:18px; }
  .fd-destination { min-height:114px; grid-template-columns:38px minmax(0,1fr) 22px; gap:8px; padding:12px; }
  .fd-destination-icon { width:36px; height:36px; border-radius:11px; }
  .fd-destination-icon .fd-icon { width:18px; height:18px; }
  .fd-destination-copy strong { font-size:11.5px; }
  .fd-destination-copy small { font-size:9px; }
  .fd-glance-grid { gap:6px; }
  .fd-glance-card { grid-template-columns:28px minmax(0,1fr) 12px; gap:2px 6px; padding:9px 8px; }
  .fd-glance-icon { width:28px; height:28px; border-radius:9px; }
  .fd-glance-icon .fd-icon { width:15px; height:15px; }
  .fd-glance-card > strong { font-size:8.8px; }
  .fd-glance-card > small { font-size:7.8px; }
  .fd-section-head { align-items:flex-start; }
  .fd-section-head h2 { font-size:19px; }
  .fd-section-head p { font-size:11px; }

  .fd-stage-explorer { display:block; }
  .fd-route-map { flex-direction:row; gap:5px; max-width:100%; padding:6px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x proximity; scrollbar-width:none; }
  .fd-route-map::-webkit-scrollbar { display:none; }
  .fd-stage { flex:0 0 144px; scroll-snap-align:start; }
  .fd-stage:not(:last-child)::after { display:none; }
  .fd-stage-trigger { min-height:66px; grid-template-columns:31px minmax(0,1fr); grid-template-rows:auto auto; gap:4px 7px; padding:7px; }
  .fd-route-dot { grid-row:1/3; width:30px; height:30px; border-radius:9px; }
  .fd-stage-title strong { font-size:9.5px; }
  .fd-stage-title small { font-size:7.8px; }
  .fd-stage-state { grid-column:2; }
  .fd-stage-state .fd-label { font-size:6.6px; }
  .fd-stage-arrow { display:none; }
  .fd-checklist-launch { margin:7px 0 10px; }
  .fd-stage-detail { padding:16px; border-radius:16px; }
  .fd-stage-detail header h3 { font-size:20px; }
  .fd-stage-detail header > p:last-child { font-size:11px; }
  .fd-stage-grid { grid-template-columns:1fr; }
  .fd-stage-date-card > div { display:block; }
  .fd-stage-date-card strong { display:block; margin-top:5px; }

  .fd-application-layout { display:block; }
  .fd-application-aside { display:none; }
  .fd-milestone-list { padding-left:0; }
  .fd-milestone-list::before { left:17px; }
  .fd-milestone { grid-template-columns:34px minmax(0,1fr); column-gap:8px; }
  .fd-milestone-trigger { min-height:82px; grid-template-columns:minmax(104px,.44fr) minmax(0,1fr) 14px; gap:8px; padding:11px; }
  .fd-milestone-date strong { font-size:14px; }
  .fd-milestone-copy b { font-size:9.5px; }
  .fd-milestone-body { margin-left:4px; margin-right:4px; }
  .fd-flow { padding:14px; }
  .fd-flow-head { align-items:flex-start; }
  .fd-flow-head h2 { font-size:17px; }
  .fd-flow-rail { display:flex; max-width:100%; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; }
  .fd-flow-rail::-webkit-scrollbar { display:none; }
  .fd-flow-step { flex:0 0 118px; scroll-snap-align:start; }
  .fd-flow-step button { min-height:58px; flex-direction:row; align-items:center; font-size:8px; }
  .fd-flow-detail { grid-template-columns:38px minmax(0,1fr); padding:12px; }
  .fd-flow-detail-no { width:36px; height:36px; border-radius:10px; }
  .fd-flow-detail h3 { font-size:15px; }
  .fd-two-pass { grid-template-columns:1fr; }
  .fd-pass-arrow { transform:rotate(90deg); text-align:center; }
  .fd-application-support { grid-template-columns:1fr; }
  .fd-prealloc { grid-template-columns:1fr; }
  .fd-prealloc-deadline { min-height:125px; }
  .fd-type-grid { grid-template-columns:1fr; }
  .fd-evidence-grid, .fd-imperial-band { grid-template-columns:1fr; }

  .fd-schools-intro { grid-template-columns:1fr; }
  .fd-schools-intro h2 { font-size:21px; }
  .fd-school-tools { grid-template-columns:1fr; }
  .fd-search input { font-size:16px; }
  .fd-manager-button { justify-content:flex-start; }
  .fd-manager-button > .fd-icon:last-child { margin-left:auto; }
  .fd-schools-layout { display:block; }
  .fd-map-card { position:relative; height:270px; margin-bottom:10px; }
  .fd-map-canvas { position:absolute; right:2px; top:10px; width:190px; height:247px; margin:0; }
  .fd-map-plot { width:100%; }
  .fd-map-copy { position:absolute; left:0; top:0; width:158px; padding:14px 0 0 15px; }
  .fd-map-copy h3 { font-size:16px; }
  .fd-map-copy p { font-size:8px; }
  .fd-map-pin { width:36px; height:36px; }
  .fd-map-selected { position:absolute; z-index:3; left:12px; bottom:12px; width:148px; min-height:58px; margin:0; }
  .fd-school-grid { grid-template-columns:1fr; }
  .fd-school-card { padding:14px; }
  .fd-drawer-layer { align-items:flex-end; }
  .fd-drawer { width:100%; height:auto; max-height:min(88dvh,760px); border-radius:20px 20px 0 0; animation:fd-sheet-in .2s ease-out both; }
  .fd-drawer-grabber { display:block; width:40px; height:4px; margin:8px auto 0; border-radius:4px; background:#d9dfe8; }
  .fd-drawer-head { padding:11px 16px 13px; }
  .fd-drawer-body { padding:15px 16px calc(20px + env(safe-area-inset-bottom,0px)); }
  .fd-source-button, .fd-inline-link, .fd-resource-open, .fd-provenance a, .fd-compare-head button { min-height:44px; }
  @keyframes fd-sheet-in { from { transform:translateY(18px); opacity:.7; } to { transform:none; opacity:1; } }

  .fd-transition-hero { min-height:0; padding:16px 18px; border-radius:20px; }
  .fd-transition-copy { width:75%; }
  .fd-transition-hero h2 { margin-top:11px; font-size:27px; }
  .fd-transition-hero .fd-transition-copy > p { font-size:9px; line-height:1.5; }
  .fd-transition-date { margin-top:12px; padding:10px 12px; }
  .fd-transition-date strong { font-size:17px; }
  .fd-transition-date small { font-size:8.5px; }
  .fd-route-art--preparing { right:-21%; width:79%; height:100%; }
  .fd-transition-grid { display:block; }
  .fd-prep-checklist-card { margin-top:10px; }
  .fd-shadowing-card { grid-template-columns:42px minmax(0,1fr); padding:15px; }
  .fd-shadowing-icon { width:41px; height:41px; border-radius:12px; }
  .fd-shadowing-points { grid-template-columns:1fr; }
  .fd-resource-list { display:flex; max-width:100%; gap:8px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; }
  .fd-resource-list::-webkit-scrollbar { display:none; }
  .fd-resource { flex:0 0 min(275px,84%); scroll-snap-align:start; }
}

@media (max-width:520px) {
  body.foundation-page .foundation-inner { padding-left:12px; padding-right:12px; }
  .fd-section-head { display:block; }
  .fd-section-head > .fd-source-button { margin-top:9px; }
  .fd-hero-main, .fd-transition-copy { width:70%; }
  .fd-hero-actions .fd-btn { flex:1 1 100%; }
  .fd-hero-actions .fd-source-button { flex:1 1 100%; justify-content:center; }
  .fd-milestone-trigger { grid-template-columns:1fr 15px; }
  .fd-milestone-date { grid-column:1; }
  .fd-milestone-copy { grid-column:1; }
  .fd-milestone-arrow { grid-column:2; grid-row:1/3; }
  .fd-school-drawer-actions { grid-template-columns:1fr; }
  .rt-foundation-meta { align-items:flex-start; flex-direction:column; }
  body.your-future-page .rt-foundation .rt-cta { margin-left:0; width:100%; box-sizing:border-box; text-align:center; }
}

/* 351-380px: five labels at 11.5px nearly touch; tighten type only. */
@media (max-width:380px) { .fd-tabs button { font-size:10.5px; padding-left:2px; padding-right:2px; } }
@media (max-width:350px) {
  .fd-tabs button { flex:0 0 auto; min-width:70px; padding-left:7px; padding-right:7px; }
  /* Five labels cannot fit at 320px, so the strip scrolls. Snap is released here
     so bringing the active tab into view is not pulled back, and the cut-off
     trailing label is the cue that there is more. */
  .fd-tabs button { scroll-snap-align:none; scroll-margin-inline:12px; }
  .fd-tabs button[data-tab-accent="application"] { min-width:88px; }
  .fd-hero, .fd-transition-hero { min-height:298px; padding:15px; }
  .fd-hero h2 { font-size:30px; }
  .fd-transition-hero h2 { font-size:27px; }
  .fd-next-milestone > strong { font-size:9px; }
  .fd-hero-date b { font-size:17px; }
  .fd-hero-actions { width:145%; }
  .fd-device-note { display:none; }
  .fd-destination { grid-template-columns:34px minmax(0,1fr); min-height:108px; }
  .fd-destination-icon { width:33px; height:33px; }
  .fd-destination-arrow { display:none; }
  .fd-glance-card { display:flex; flex-direction:column; align-items:flex-start; }
  .fd-glance-card > .fd-mini-arrow { display:none; }
  .fd-stage-detail { padding:14px; }
  .fd-map-canvas { width:172px; height:224px; }
  .fd-map-copy { width:142px; }
  .fd-map-selected { left:10px; width:140px; }
}

@media (prefers-reduced-motion:reduce) {
  .fd-art-route, .fd-art-stars circle, .fd-art-pulse, .fd-milestone[data-next="true"] .fd-milestone-node { animation:none !important; }
  .fd-drawer, .fd-tabs button, .fd-destination, .fd-map-pin span, .fd-stage-arrow, .fd-milestone-arrow { transition:none !important; animation:none !important; }
  *, *::before, *::after { scroll-behavior:auto !important; }
}
