/* 16-25 Railcard Guide — site styles. Electric purple, mint and off-white; Quicksand (display) + Plus Jakarta Sans (text),
   both self-hosted under the SIL OFL (fonts/OFL.txt). Motifs: tickets with punched notches, and a train line with stops.
   Mobile first; works from 320px. No external resources. */

@font-face { font-family: "Quicksand"; src: url("/assets/fonts/quicksand.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/jakarta-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --ink: #1C0F3F;
  --ink-2: #4A3F66;
  --purple: #6B2BF2;
  --purple-d: #4B14C8;
  --purple-l: #EFE7FF;
  --purple-xl: #F7F3FF;
  --mint: #3DDCA6;
  --mint-l: #D9FBEE;
  --mint-d: #0B6E4F;
  --sun: #FFD84D;
  --coral: #FF6B5B;
  --paper: #FBF9F4;
  --card: #FFFFFF;
  --line: #E3DCF0;
  --radius: 18px;
  --radius-s: 10px;
  --shadow: 0 1px 0 rgba(28, 15, 63, .06), 0 10px 30px -18px rgba(28, 15, 63, .35);
  --display: "Quicksand", "Trebuchet MS", system-ui, sans-serif;
  --text: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--purple-d); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--ink); text-decoration-color: var(--mint); text-decoration-thickness: .2em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
code { font-size: .92em; background: var(--purple-l); padding: .05em .35em; border-radius: 6px; }
strong { font-weight: 700; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -10rem; z-index: 50; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s); }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }
.small { font-size: .9rem; }
.muted { color: var(--ink-2); }
.print-only { display: none; }
[hidden] { display: none !important; }
main:focus { outline: none; }

/* ------------------------------------------------------------ icons */
.ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

/* ------------------------------------------------------------ independence ribbon (every page) */
.ribbon { background: var(--mint-l); color: var(--ink); border-bottom: 2px dashed rgba(28, 15, 63, .18); font-size: .88rem; line-height: 1.45; }
.ribbon p { margin: 0; padding: .55rem 0; display: flex; gap: .55rem; align-items: flex-start; }
.ribbon .ic { margin-top: .1em; color: var(--mint-d); }
.ribbon a { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------ header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.head-in { display: flex; align-items: center; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; padding: .5rem 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 52px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-tag { font-size: .78rem; color: var(--ink-2); margin-top: .2rem; }
.nav-main { display: none; }
.nav-main ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav-main a { display: block; padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav-main a:hover { background: var(--purple-l); color: var(--purple-d); }
.nav-main a[aria-current] { background: var(--ink); color: #fff; }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; font-size: .95rem; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger { display: inline-grid; gap: 3px; }
.burger i { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-mobile[open] summary { background: var(--ink); color: #fff; }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + .5rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; width: min(86vw, 300px); }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile a { display: block; padding: .65rem .85rem; border-radius: var(--radius-s); text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-mobile a:hover, .nav-mobile a[aria-current] { background: var(--purple-l); }
@media (min-width: 1020px) { .nav-main { display: block; } .nav-mobile { display: none; } }

/* ------------------------------------------------------------ buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--text); text-decoration: none; cursor: pointer; text-align: center; }
.btn-main { background: var(--purple); color: #fff; box-shadow: 0 6px 0 -1px var(--purple-d); }
.btn-main:hover { background: var(--purple-d); color: #fff; }
.btn-mint { background: var(--mint); color: var(--ink); box-shadow: 0 6px 0 -1px #1FA97C; }
.btn-mint:hover { background: #63E6B8; color: var(--ink); }
.btn-line { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: .45rem .95rem; font-size: .92rem; }
.btn:active { transform: translateY(2px); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.chip a { color: inherit; }
.chip-ok { background: var(--mint-l); border-color: transparent; color: var(--mint-d); }
.kicker { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-d); margin: 0 0 .7rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow .ic { transition: transform .15s; }

/* ------------------------------------------------------------ page heads, crumbs */
.page-head { padding: 2rem 0 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0 0 1.2rem; font-size: .88rem; }
.crumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.section { padding: 3rem 0; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-title { margin: 0; }
.section-sub { color: var(--ink-2); margin-top: -.6rem; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: var(--purple); color: #fff; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--mint) 0 34px, transparent 34px 48px); opacity: .9; }
.hero-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 3.5rem; align-items: center; }
.hero .kicker { color: var(--mint); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .hl { color: var(--ink); background: var(--mint); padding: 0 .2em; border-radius: .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { color: #EDE6FF; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.hero .btn-line { color: #fff; }
.hero .btn-line:hover { background: #fff; color: var(--purple-d); border-color: #fff; }
.hero-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; color: #EDE6FF; margin: 0; }
.hero-note .ic { color: var(--mint); margin-top: .15em; }
.hero-art { display: block; width: 100%; max-width: 520px; margin: 0 auto; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr .9fr; padding-top: 3.5rem; padding-bottom: 4.5rem; } }

/* ------------------------------------------------------------ tickets (key-figure cards) */
.tickets { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ticket { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1.15rem 1.25rem 1.1rem; background: var(--card); border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(circle 11px at 0 58%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 58%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 58%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 58%, #0000 97%, #000) right / 51% 100% no-repeat; }
.ticket::before { content: ""; position: absolute; left: 18px; right: 18px; top: 58%; border-top: 2px dashed var(--line); }
a.ticket:hover { color: var(--ink); border-color: var(--purple); }
.t-lab { font-size: .85rem; font-weight: 600; color: var(--ink-2); line-height: 1.35; min-height: 2.6em; }
.t-val { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--purple); margin-bottom: 1.1rem; }
.t-src { font-size: .78rem; color: var(--ink-2); }
.ticket:nth-child(4n+2) .t-val { color: var(--mint-d); }
.ticket:nth-child(4n+3) .t-val { color: var(--ink); }

/* ------------------------------------------------------------ "who it's for" pills on home */
.who { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.who-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1rem; box-shadow: var(--shadow); }
.who-card h3 { display: flex; gap: .55rem; align-items: center; }
.who-card h3 .ic { width: 1.6em; height: 1.6em; padding: .3em; border-radius: 50%; background: var(--purple-l); color: var(--purple-d); }
.who-card:nth-child(2) h3 .ic { background: var(--mint-l); color: var(--mint-d); }
.who-card:nth-child(3) h3 .ic { background: #FFF4C7; color: #7A5A00; }
.who-card ul { padding-left: 1.1em; margin: 0 0 .8rem; }

/* ------------------------------------------------------------ the line (guide index as a train line with stops) */
.lines { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .lines { grid-template-columns: 1fr 1fr; } }
.line-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem .8rem; box-shadow: var(--shadow); }
.line-h { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; margin-bottom: .9rem; }
.line-h .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px var(--purple-l); flex: none; }
.line-box:nth-child(2) .dot { background: var(--mint-d); box-shadow: 0 0 0 4px var(--mint-l); }
.line-box:nth-child(3) .dot { background: var(--coral); box-shadow: 0 0 0 4px #FFE3DF; }
.line-box:nth-child(4) .dot { background: #C79A00; box-shadow: 0 0 0 4px #FFF4C7; }
.stops { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.stops::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 4px; background: var(--purple-l); border-radius: 4px; }
.stops li { position: relative; }
.stops a { display: flex; gap: .85rem; align-items: center; padding: .55rem .4rem; text-decoration: none; color: var(--ink); border-radius: var(--radius-s); font-weight: 600; line-height: 1.35; }
.stops a::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--purple); background: #fff; flex: none; position: relative; z-index: 1; margin-left: 2px; }
.stops a:hover { background: var(--purple-xl); }
.stops a:hover::before { background: var(--mint); }
.stops .plat { margin-left: auto; }

/* platform-number badge */
.plat { display: inline-grid; place-items: center; min-width: 2.2rem; height: 1.8rem; padding: 0 .4rem; border-radius: 8px; background: var(--ink); color: var(--sun); font: 700 .85rem/1 var(--display); letter-spacing: .04em; }
.plat-lg { min-width: 4.2rem; height: 4.2rem; border-radius: 14px; font-size: 1.6rem; display: inline-flex; flex-direction: column; justify-content: center; gap: .15rem; }
.plat-lg small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-family: var(--text); }

/* ------------------------------------------------------------ calculator band on home */
.calc-band { background: var(--ink); color: #fff; padding: 3rem 0; position: relative; }
.calc-band-in { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .calc-band-in { grid-template-columns: 1fr 1fr; } }
.calc-band h2 { color: #fff; }
.calc-band p { color: #DCD3F2; }
.calc-band .kicker { color: var(--mint); }
.quick-calc { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .9rem; }
.qc-h { font: 700 1.1rem/1.2 var(--display); margin: 0; }
.qc-row label { display: block; font-weight: 700; margin-bottom: .3rem; }
.quick-calc .btn { width: 100%; }

/* ------------------------------------------------------------ two-column, FAQ */
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: .6rem; }
.faq-list summary { cursor: pointer; padding: .9rem 2.6rem .9rem 1.1rem; font-weight: 700; position: relative; list-style: none; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--purple-l); color: var(--purple-d); display: grid; place-items: center; font: 700 1.1rem/1 var(--display); }
.faq-list details[open] summary::after { content: "–"; background: var(--purple); color: #fff; }
.faq-list details[open] summary { border-bottom: 1px dashed var(--line); }
.faq-a { padding: .9rem 1.1rem .3rem; }
.faq-a p:last-child { margin-bottom: .7rem; }
.see { font-size: .92rem; font-weight: 600; }
.faq-sec { margin-bottom: 2.4rem; }

/* ------------------------------------------------------------ guide index */
.gi-topic { margin-bottom: 2.6rem; }
.gi-head p { color: var(--ink-2); }
.gi-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
@media (min-width: 800px) { .gi-list { grid-template-columns: 1fr 1fr; } }
.gi-list a { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; box-shadow: var(--shadow); }
.gi-list a:hover { border-color: var(--purple); }
.gi-body { display: flex; flex-direction: column; gap: .3rem; }
.gi-title { font: 700 1.15rem/1.25 var(--display); }
.gi-sum { color: var(--ink-2); font-size: .95rem; }
.gi-meta { font-size: .8rem; color: var(--mint-d); font-weight: 600; }

/* ------------------------------------------------------------ guide page */
.guide-head { background: var(--purple-xl); border-bottom: 1px solid var(--line); padding: 2rem 0 1.6rem; }
.gh-in { display: flex; gap: 1rem; align-items: flex-start; }
.gh-in h1 { margin-bottom: .3em; }
.guide-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; }
.guide-layout { display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
@media (min-width: 1000px) { .guide-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; } }
.prose { max-width: 46rem; min-width: 0; }
.prose h2 { margin-top: 2.2rem; padding-top: .3rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .35rem; }
.prose ul li::marker { color: var(--purple); }
.glance { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.3rem 1.4rem .6rem; margin: 0 0 2rem; }
.glance-h { display: flex; align-items: center; gap: .5rem; color: var(--mint); font-size: 1.1rem; margin: 0 0 .6rem !important; padding: 0 !important; }
.glance ul { list-style: none; padding: 0; }
.glance li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.glance li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .75rem; border-radius: 50%; background: var(--mint); }
.glance a { color: var(--mint); }
.callout { border-radius: var(--radius-s); padding: 1rem 1.1rem .2rem; margin: 1.4rem 0; background: var(--purple-l); border-left: 6px solid var(--purple); }
.callout.warn { background: #FFF1EF; border-left-color: var(--coral); }
.callout.ask { background: var(--mint-l); border-left-color: var(--mint-d); }
.callout-h { font: 700 .8rem/1 var(--text); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem !important; }
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.md-table, .statement { width: 100%; border-collapse: collapse; font-size: .95rem; }
.md-table th, .md-table td, .statement th, .statement td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-table thead th { background: var(--ink); color: #fff; font-weight: 700; }
.md-table tbody tr:nth-child(even) { background: var(--purple-xl); }
.bill { margin: 1.4rem 0; background: var(--card); border: 1px dashed var(--ink-2); border-radius: var(--radius-s); padding: 1rem 1.1rem; max-width: 28rem; }
.bill-h { font: 700 1rem/1.2 var(--display); margin-bottom: .6rem; }
.bill-t { width: 100%; border-collapse: collapse; }
.bill-t th { text-align: left; font-weight: 500; padding: .3rem 0; }
.bill-t td { text-align: right; padding: .3rem 0; font-variant-numeric: tabular-nums; }
.bill-t .sub th, .bill-t .sub td { border-top: 1px solid var(--line); font-weight: 700; }
.bill-t .total th, .bill-t .total td { border-top: 2px solid var(--ink); font-weight: 800; color: var(--purple-d); }
.bill-t .note td { text-align: left; font-size: .85rem; color: var(--ink-2); }
.sources { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 2px dashed var(--line); }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: .4rem; }
.toc-mobile { margin-bottom: 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); }
.toc-mobile summary { cursor: pointer; padding: .75rem 1rem; font-weight: 700; }
.toc-mobile ol { margin: 0; padding: 0 1rem 1rem 2.2rem; }
@media (min-width: 1000px) { .toc-mobile { display: none; } }
.guide-side { display: none; }
@media (min-width: 1000px) { .guide-side { display: block; } }
.side-in { position: sticky; top: 1.2rem; display: grid; gap: 1.2rem; }
.toc, .side-tools { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.toc h2, .side-tools h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--text); color: var(--ink-2); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.toc li { margin-bottom: .35rem; }
.side-tool { display: flex; gap: .7rem; align-items: flex-start; text-decoration: none; color: var(--ink); padding: .6rem; border-radius: var(--radius-s); background: var(--purple-xl); margin-bottom: .5rem; }
.side-tool:hover { background: var(--purple-l); color: var(--ink); }
.side-tool .ic { color: var(--purple); margin-top: .15em; }
.side-tool span span { display: block; font-size: .85rem; color: var(--ink-2); }
.related-band { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.related-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 700px) { .related-list { grid-template-columns: 1fr 1fr; } }
.related-list a { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; border-radius: var(--radius-s); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.related-list a:hover { border-color: var(--purple); }
.pager { display: grid; gap: .8rem; padding: 1rem 0 3rem; }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: flex; flex-direction: column; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; }
.pager a:hover { background: var(--purple-d); color: #fff; }
.pager-next { text-align: right; }
.pager-l { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mint); }
.pager-t { font: 700 1.05rem/1.3 var(--display); }

/* ------------------------------------------------------------ notice */
.notice { display: flex; gap: .8rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1rem 1.1rem; margin: 2rem 0; font-size: .93rem; }
.notice p { margin: 0; }
.notice-i { width: 1.4rem; height: 1.4rem; color: var(--purple); flex: none; }

/* ------------------------------------------------------------ key figures page */
.fig-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-bottom: 2rem; }
.fig-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); border-top: 8px solid var(--purple); }
.fig-card:nth-child(3n+2) { border-top-color: var(--mint); }
.fig-card:nth-child(3n+3) { border-top-color: var(--ink); }
.fc-label { font: 600 1rem/1.35 var(--text); color: var(--ink-2); margin: 0 0 .4rem; }
.fc-value { font: 700 1.9rem/1.15 var(--display); color: var(--ink); margin: 0 0 .5rem; }
.fc-meta { font-size: .82rem; font-weight: 700; color: var(--purple-d); text-transform: uppercase; letter-spacing: .06em; }
.fc-note { font-size: .95rem; }
.fc-src { font-size: .85rem; margin: 0; }

/* ------------------------------------------------------------ glossary */
.jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 2rem; }
.jump a { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--card); border: 1px solid var(--line); text-decoration: none; font: 700 1rem/1 var(--display); color: var(--ink); }
.jump a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.gl-sec { display: grid; gap: .4rem 1.5rem; margin-bottom: 1.6rem; }
@media (min-width: 760px) { .gl-sec { grid-template-columns: 4rem 1fr; } }
.gl-letter { font-size: 2.4rem; color: var(--purple); margin: 0; }
.gl { margin: 0; display: grid; gap: .8rem; }
.gl-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .9rem 1.1rem .2rem; }
.gl-item dt { font: 700 1.1rem/1.3 var(--display); margin-bottom: .3rem; }
.gl-item dd { margin: 0; }
.gl-item:target { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-l); }

/* ------------------------------------------------------------ help + sources */
.help-group { margin-bottom: 2.6rem; }
.sec-intro { color: var(--ink-2); max-width: 46rem; }
.help-list { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.help-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.help-list li p { flex: 1; color: var(--ink-2); font-size: .95rem; }
.help-list .btn { align-self: flex-start; }
.help-list li.official { border: 2px solid var(--purple); background: var(--purple-xl); }
.src-wrap { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 2rem; }
.src-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.src-group h2 { font-size: 1.05rem; color: var(--purple-d); }
.src-list { list-style: none; padding: 0; margin: 0; }
.src-list li { padding: .5rem 0; border-top: 1px dashed var(--line); }
.src-list .used { display: block; font-size: .82rem; color: var(--ink-2); }

/* ------------------------------------------------------------ calculator page */
.calc { display: grid; gap: 1.6rem; margin-bottom: 2rem; }
@media (min-width: 920px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.calc-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.calc-fs { border: 0; padding: 0; margin: 0 0 1.4rem; }
.calc-fs legend { font: 700 1.2rem/1.2 var(--display); display: flex; gap: .6rem; align-items: center; margin-bottom: .8rem; padding: 0; }
.step { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--purple); color: #fff; font-size: 1rem; flex: none; }
.field { margin-bottom: 1.2rem; }
.field > label { display: block; font-weight: 700; margin-bottom: .2rem; line-height: 1.35; }
.field-hint { display: block; font-size: .88rem; color: var(--ink-2); margin-bottom: .45rem; }
.field-row { display: flex; gap: .5rem; align-items: center; }
.money { display: flex; align-items: center; border: 2px solid var(--ink-2); border-radius: 12px; background: #fff; overflow: hidden; max-width: 16rem; width: 100%; }
.money:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-l); }
.money span { padding: 0 .6rem; font-weight: 700; color: var(--ink-2); }
.money input { border: 0; outline: 0; font: 600 1.15rem/1 var(--text); padding: .7rem .6rem; width: 100%; min-width: 0; background: transparent; color: var(--ink); }
.money-n input { padding-left: .9rem; }
.has-error .money { border-color: #C0262D; }
.field-error { color: #B3121B; font-weight: 600; font-size: .9rem; margin: .4rem 0 0; }
.form-error { background: #FFF1EF; border: 2px solid var(--coral); border-radius: var(--radius-s); padding: .8rem 1rem; margin-bottom: 1.2rem; }
.form-error ul { margin: .3rem 0 0; }
.cards-pick { display: grid; gap: .6rem; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; background: #fff; }
.pick label .pp { font: 700 1.25rem/1 var(--display); color: var(--purple); }
.pick label small { display: block; font-weight: 500; color: var(--ink-2); font-size: .85rem; }
.pick input:checked + label { border-color: var(--purple); background: var(--purple-xl); box-shadow: inset 0 0 0 1px var(--purple); }
.pick input:focus-visible + label { outline: 3px solid var(--purple); outline-offset: 2px; }
.calc-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 0; }
.calc-out { min-width: 0; }
.calc-intro, .calc-result { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .5rem; }
.verdict { border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1rem; background: var(--purple-l); }
.verdict.is-yes { background: var(--mint-l); }
.verdict.is-no { background: #FFF1EF; }
.v-head { font: 700 1.35rem/1.2 var(--display); margin: 0 0 .3rem; }
.v-big { font: 700 clamp(2.2rem, 1.6rem + 3vw, 3.2rem)/1 var(--display); margin: 0; color: var(--ink); }
.v-big small { font: 600 1rem/1.3 var(--text); color: var(--ink-2); display: block; margin-top: .3rem; }
.meter { height: 14px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); overflow: hidden; margin: 1rem 0 .3rem; position: relative; }
.meter span { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--purple) 0 10px, var(--purple-d) 10px 20px); transition: width .2s; }
.meter::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; border-left: 2px dashed var(--ink); }
.meter-l { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-2); }
.statement caption { text-align: left; font-weight: 700; padding: .6rem .8rem; }
.statement td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.statement .total th, .statement .total td { border-top: 2px solid var(--ink); font-weight: 800; }
.cmp { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1rem 0; }
.cmp div { background: var(--purple-xl); border-radius: 12px; padding: .7rem .9rem; }
.cmp strong { display: block; font: 700 1.3rem/1.2 var(--display); }
.share label { font-weight: 700; display: block; margin: 1rem 0 .3rem; }
.share-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-row input { flex: 1 1 12rem; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: 400 .9rem var(--text); }
.calc-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: var(--shadow); font-size: .92rem; }
.calc-sticky:hover { color: #fff; }
.cs-go { color: var(--mint); font-weight: 700; white-space: nowrap; }
@media (min-width: 920px) { .calc-sticky { display: none; } }
.calc-notes { margin-bottom: 1rem; }

/* ------------------------------------------------------------ about/contact */
.contact-card { font-size: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1rem 1.2rem; }

/* ------------------------------------------------------------ footer */
.site-foot { background: var(--ink); color: #DCD3F2; padding: 3rem 0 6rem; margin-top: 2rem; font-size: .93rem; }
@media (min-width: 920px) { .site-foot { padding-bottom: 2.5rem; } }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--mint); }
.foot-top { display: grid; gap: 1rem; padding-bottom: 1.6rem; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1fr 1.6fr; } }
.foot-name { font: 700 1.3rem/1.2 var(--display); color: #fff; display: block; }
.foot-indep { background: rgba(61, 220, 166, .12); border: 1px solid rgba(61, 220, 166, .45); border-radius: var(--radius-s); padding: .8rem 1rem; color: #fff; margin: 0; }
.foot-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 1.6rem 0; }
.foot-h { font: 700 .8rem/1 var(--text); text-transform: uppercase; letter-spacing: .12em; color: var(--mint); margin-bottom: .8rem; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin-bottom: .45rem; }
.foot-legal { border-top: 1px dashed rgba(255, 255, 255, .25); padding-top: 1.2rem; font-size: .86rem; }
.foot-legal p { margin-bottom: .5rem; }

/* ------------------------------------------------------------ errors */
.err-page { padding: 3rem 16px 4rem; }
.err-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.err-links a { display: inline-block; padding: .6rem 1rem; border-radius: 999px; background: var(--purple-l); text-decoration: none; font-weight: 700; }

/* ------------------------------------------------------------ motion + print */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
  .ribbon, .site-head nav, .nav-mobile, .site-foot .foot-cols, .guide-side, .toc-mobile, .pager, .calc-sticky, .hero-btns, .share, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero { background: #fff; color: #000; }
  .print-only { display: block; }
  a { color: #000; }
}

/* fixes after first screenshots */
.hero a:not(.btn) { color: #fff; text-decoration-color: var(--mint); }
.hero h1 { max-width: 18ch; }
.calc-band .quick-calc p, .quick-calc .qc-h { color: var(--ink); }
