/* Perfect Circle · Two Sheets system. Hairline-flat, one ink, survey magenta for the chosen sheet's boundary only.
   Tokens → base → shell → layout → components → views → responsive. Area CSS goes in assets/css/<area>.css. */

/* ── Tokens ─────────────────────────────────────────── */
:root, .force-light {
  --field:#F5F5F2; --sheet:#FBFBF9; --inset:#ECECE7; --raised:#FFFFFF;
  --grid:#E3E2DB; --grid-2:#CFCEC5; --rule:#D3D2CA; --rule-strong:#86847A;
  --ink:#1A1A17; --ink-2:#45443E; --ink-3:#64625A; --on-ink:#FBFBF9;
  --land:#EDECE7; --land-sel:#FFFFFF; --hatch:#D9D8D0;
  --mag:#C2127A; --mag-100:#FCE8F2;
  --err:#B42318; --err-bg:#FDF1EF;
  --hover:#EFEFEA; --btn-hover:#34332E; --btn-dis:#C9C8C0;
  --focus:0 0 0 2px var(--field), 0 0 0 4px #4A4A43;
  --r-1:2px; --r-2:3px;
  --ease:cubic-bezier(.2,.7,.2,1);
  --gut:40px; --max:1520px; --hdr:64px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --field:#121210; --sheet:#191917; --inset:#0D0D0C; --raised:#1F1F1C;
    --grid:#242420; --grid-2:#33332E; --rule:#34332E; --rule-strong:#77756C;
    --ink:#ECEBE6; --ink-2:#C2C0B8; --ink-3:#9C9A91; --on-ink:#151513;
    --land:#1C1C19; --land-sel:#2C2B27; --hatch:#2E2D29;
    --mag:#F2599F; --mag-100:#3A1529; --err:#F27A70; --err-bg:#2A1513;
    --hover:#21211E; --btn-hover:#D3D1C9; --btn-dis:#3A3934;
    --focus:0 0 0 2px var(--field), 0 0 0 4px #C9C7BE;
    color-scheme:dark;
  }
}
:root[data-theme="dark"], .force-dark {
  --field:#121210; --sheet:#191917; --inset:#0D0D0C; --raised:#1F1F1C;
  --grid:#242420; --grid-2:#33332E; --rule:#34332E; --rule-strong:#77756C;
  --ink:#ECEBE6; --ink-2:#C2C0B8; --ink-3:#9C9A91; --on-ink:#151513;
  --land:#1C1C19; --land-sel:#2C2B27; --hatch:#2E2D29;
  --mag:#F2599F; --mag-100:#3A1529; --err:#F27A70; --err-bg:#2A1513;
  --hover:#21211E; --btn-hover:#D3D1C9; --btn-dis:#3A3934;
  --focus:0 0 0 2px var(--field), 0 0 0 4px #C9C7BE;
  color-scheme:dark;
}

/* ── Base ───────────────────────────────────────────── */
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-padding-top:84px; background:var(--field); }
body { margin:0; background:var(--field); color:var(--ink); font-family:"Archivo", system-ui, sans-serif; font-stretch:100%; font-size:16px; line-height:1.55; overflow-x:hidden; }
html.menu-open, html.menu-open body { overflow:hidden; }
a { color:inherit; }
img { max-width:100%; }
p { margin:0 0 12px; }
.mono { font-family:"Spline Sans Mono", ui-monospace, monospace; font-stretch:normal; font-size:11.5px; letter-spacing:0; font-weight:400; }
.cond { font-stretch:75%; font-weight:560; font-variant-numeric:tabular-nums; letter-spacing:0.01em; }
.vh { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:16px; top:-60px; background:var(--ink); color:var(--on-ink); padding:8px 12px; z-index:60; text-decoration:none; font-weight:600; }
.skip:focus { top:8px; }
:focus-visible { outline:none; box-shadow:var(--focus); }
[tabindex="-1"]:focus { box-shadow:none; }
.bm { width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:square; }
.force-light, .force-dark { background:var(--field); color:var(--ink); }
.is-focus { box-shadow:var(--focus) !important; }
.field .is-focus { border-color:var(--ink) !important; }
.link { color:var(--ink); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; text-decoration-color:var(--rule-strong); }
@media (hover:hover) { .link:hover { text-decoration-color:var(--ink); } }

/* cut marks: the sheet's ground contact */
.cut { position:absolute; width:14px; height:14px; pointer-events:none; z-index:1; }
.cut::before, .cut::after { content:""; position:absolute; background:var(--rule-strong); }
.cut::before { width:11px; height:1px; } .cut::after { width:1px; height:11px; }
.cut.tl { top:-8px; left:-8px; } .cut.tl::before { top:7px; left:-4px; } .cut.tl::after { left:7px; top:-4px; }
.cut.tr { top:-8px; right:-8px; } .cut.tr::before { top:7px; right:-4px; } .cut.tr::after { right:7px; top:-4px; }
.cut.bl { bottom:-8px; left:-8px; } .cut.bl::before { bottom:7px; left:-4px; } .cut.bl::after { left:7px; bottom:-4px; }
.cut.br { bottom:-8px; right:-8px; } .cut.br::before { bottom:7px; right:-4px; } .cut.br::after { right:7px; bottom:-4px; }
.framed { position:relative; background:var(--sheet); border:1px solid var(--rule); }

/* ── Header ─────────────────────────────────────────── */
.top { position:sticky; top:0; z-index:30; background:var(--field); border-bottom:1px solid var(--rule); }
.top-in { height:var(--hdr); display:flex; align-items:center; gap:24px; padding:0 var(--gut); max-width:var(--max); margin:0 auto; }
.wordmark { font-stretch:118%; font-weight:700; font-size:18px; letter-spacing:0.01em; text-decoration:none; white-space:nowrap; color:var(--ink); }
.nav { display:flex; align-items:center; gap:2px; margin:0; padding:0; list-style:none; }
.nav > li { position:relative; }
.nav a, .nav .navbtn { display:inline-flex; align-items:center; gap:5px; height:36px; padding:0 8px; font:inherit; font-size:14px; font-weight:500; color:var(--ink-2); text-decoration:none; background:none; border:0; border-radius:var(--r-1); cursor:pointer; white-space:nowrap; }
.nav > li > a[aria-current="page"], .nav .navbtn.current { color:var(--ink); box-shadow:inset 0 -1.25px 0 var(--ink); border-radius:0; }
@media (hover:hover) { .nav > li > a:not(.nav-primary):hover, .nav .navbtn:hover { color:var(--ink); background:var(--hover); } }
.navbtn svg { width:9px; height:9px; transition:transform .14s var(--ease); }
.navbtn[aria-expanded="true"] svg { transform:rotate(180deg); }
.nav .nav-primary { margin-left:6px; padding:0 12px; height:34px; background:var(--ink); color:var(--on-ink); font-weight:600; border-radius:var(--r-1); }
.nav .nav-primary .bm { width:11px; height:11px; display:none; }
.nav .nav-primary[aria-current="page"] { box-shadow:none; border-radius:var(--r-1); color:var(--on-ink); }
.nav .nav-primary[aria-current="page"] .bm { display:block; }
@media (hover:hover) { .nav .nav-primary:hover { background:var(--btn-hover); color:var(--on-ink); } }
.drop { position:absolute; left:-6px; top:calc(100% + 6px); min-width:236px; margin:0; padding:6px 0; list-style:none; background:var(--raised); border:1px solid var(--rule-strong); border-radius:var(--r-2); opacity:0; visibility:hidden; transform:translateY(-3px); transition:opacity .14s var(--ease), transform .14s var(--ease), visibility 0s .14s; z-index:5; }
.drop::before { content:""; position:absolute; left:0; right:0; top:-8px; height:8px; }
.nav li.has-drop:hover > .drop, .nav li.has-drop.open > .drop { opacity:1; visibility:visible; transform:none; transition:opacity .14s var(--ease), transform .14s var(--ease); }
.drop a { display:flex; height:38px; padding:0 14px; width:100%; color:var(--ink); border-radius:0; }
.drop a[aria-current="page"] { box-shadow:inset 2px 0 0 var(--ink); }
.drop li.sep { border-top:1px solid var(--rule); margin-top:6px; padding-top:6px; }
@media (hover:hover) { .drop a:hover { background:var(--hover); } }
.top-end { margin-left:auto; display:flex; align-items:center; gap:10px; }

/* nation switch: site-wide state */
.switch { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-3); }
.switch-opts { display:flex; border:1px solid var(--rule-strong); border-radius:var(--r-2); }
.switch-opts button { height:32px; padding:0 10px; font:inherit; font-size:13px; font-weight:500; color:var(--ink-2); background:transparent; border:0; cursor:pointer; white-space:nowrap; display:inline-flex; align-items:center; gap:6px; }
.switch-opts button + button { border-left:1px solid var(--rule); }
.switch-opts button[aria-pressed="true"] { background:var(--ink); color:var(--on-ink); }
.switch-opts button .bm { display:none; width:11px; height:11px; }
.switch-opts button[aria-pressed="true"] .bm { display:block; }
@media (hover:hover) { .switch-opts button[aria-pressed="false"]:hover { background:var(--hover); color:var(--ink); } }
.switch-opts button:disabled { color:var(--ink-3); cursor:not-allowed; }
.icon-btn { width:34px; height:34px; display:inline-grid; place-items:center; border:1px solid var(--rule); border-radius:var(--r-2); background:transparent; color:var(--ink-2); cursor:pointer; flex:none; }
.icon-btn svg { width:16px; height:16px; }
@media (hover:hover) { .icon-btn:hover { color:var(--ink); border-color:var(--rule-strong); } }
.menu-btn { display:none; height:36px; padding:0 12px; font:inherit; font-size:14px; font-weight:600; border:1px solid var(--rule-strong); border-radius:var(--r-2); background:transparent; color:var(--ink); cursor:pointer; align-items:center; gap:8px; }
.menu-btn .bars { width:14px; height:10px; position:relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content:""; position:absolute; left:0; right:0; height:1.5px; background:currentColor; }
.menu-btn .bars::before { top:1px; } .menu-btn .bars::after { bottom:1px; }
.menu-btn[aria-expanded="true"] .bars::before { top:4px; transform:rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { bottom:4px; transform:rotate(-45deg); }

/* phone menu: a full sheet, not a squeezed bar */
.msheet { display:none; position:fixed; left:0; right:0; top:var(--hdr); bottom:0; z-index:29; background:var(--field); overflow:auto; overscroll-behavior:contain; padding:16px var(--gut) 32px; border-top:1px solid var(--rule); }
.msheet.open { display:block; animation:msheet .16s var(--ease); }
@keyframes msheet { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.msheet .ms-nation { margin:0 0 18px; }
.msheet .ms-k { display:block; font-size:13px; font-weight:600; margin-bottom:8px; }
.msheet .switch-opts { display:grid; grid-template-columns:1fr 1fr; }
.msheet .switch-opts button { height:44px; justify-content:center; font-size:14.5px; }
.msheet ul { list-style:none; margin:0; padding:0; }
.msheet .ms-nav > li { border-top:1px solid var(--rule); }
.msheet .ms-nav > li:last-child { border-bottom:1px solid var(--rule); }
.msheet .ms-nav a { display:flex; align-items:center; justify-content:space-between; min-height:52px; text-decoration:none; font-size:19px; font-weight:560; font-stretch:106%; letter-spacing:-0.005em; }
.msheet .ms-nav a[aria-current="page"] { text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1.25px; }
.msheet .ms-sub { padding:0 0 10px 14px; display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.msheet .ms-sub a { min-height:40px; font-size:15px; font-weight:450; font-stretch:100%; color:var(--ink-2); }
.msheet .ms-cta { margin-top:20px; }
.msheet .ms-cta .btn { width:100%; justify-content:space-between; }
.msheet .ms-foot { margin-top:22px; display:flex; align-items:center; justify-content:space-between; font-size:13px; color:var(--ink-3); }

/* ── Breadcrumb bar + geo note ──────────────────────── */
.crumbbar { max-width:var(--max); margin:0 auto; padding:14px var(--gut) 0; display:flex; justify-content:space-between; align-items:baseline; gap:8px 24px; flex-wrap:wrap; min-height:40px; }
.crumbbar[hidden] { display:none; }
.crumbs ol { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:2px 0; font-size:13px; color:var(--ink-3); }
.crumbs li { display:inline-flex; align-items:center; }
.crumbs li + li::before { content:"/"; padding:0 8px; color:var(--rule-strong); }
.crumbs a { color:var(--ink-2); text-decoration:none; }
@media (hover:hover) { .crumbs a:hover { color:var(--ink); text-decoration:underline; text-underline-offset:3px; } }
.crumbs [aria-current="page"] { color:var(--ink); font-weight:500; }
.geo-note { margin:0; font-size:13px; color:var(--ink-2); display:flex; flex-wrap:wrap; gap:2px 12px; align-items:baseline; }
.geo-note .bm { width:12px; height:12px; align-self:center; }
.geo-note[hidden] { display:none; }
.linkbtn { font:inherit; font-size:13px; font-weight:600; color:var(--ink); background:none; border:0; padding:2px 0; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; cursor:pointer; }
@media (hover:hover) { .linkbtn:hover { text-decoration-thickness:1.5px; } }

/* ── Layout ─────────────────────────────────────────── */
#view { min-height:50vh; }
#view:focus { outline:none; }
.ph { max-width:var(--max); margin:0 auto; padding:30px var(--gut) 0; display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:24px 64px; align-items:start; }
.ph-main { min-width:0; }
.ph h1, .h1 { margin:0; font-size:46px; line-height:1.02; font-weight:650; font-stretch:100%; letter-spacing:-0.024em; text-wrap:balance; max-width:17em; }
.ph .lede { margin:16px 0 0; font-size:18px; line-height:1.5; color:var(--ink-2); max-width:38em; }
.ph-aside { min-width:0; }
.ph-rule { max-width:var(--max); margin:28px auto 0; padding:0 var(--gut); }
.ph-rule hr { margin:0; border:0; border-top:1px solid var(--ink); }
.sec { max-width:var(--max); margin:0 auto; padding:88px var(--gut) 0; display:grid; grid-template-columns:300px minmax(0,1fr); gap:0 64px; }
.sec.tight { padding-top:56px; }
.sec-m { padding-top:4px; min-width:0; }
.sec-m h2 { margin:0 0 10px; font-size:30px; line-height:1.1; font-weight:620; font-stretch:112%; letter-spacing:-0.01em; text-wrap:balance; }
.sec-m p { margin:0 0 10px; font-size:14.5px; line-height:1.5; color:var(--ink-2); }
.sec-m .ref { display:flex; gap:8px; align-items:center; color:var(--ink-2); margin:0 0 12px; }
.sec-c { min-width:0; border-top:1px solid var(--ink); padding-top:22px; }
.sec-c.sheetwrap { border-top:0; padding-top:8px; }
.sec-c > .facts:first-child, .sec-c > .ans-block:first-child, .sec-c > .lrows:first-child, .sec-c > .stub-grid:first-child { border-top:0; }
.sec-c > .ans-block:first-child { padding-top:0; }
.sec-c > .facts:first-child { margin-top:-12px; }
.sec-c > .stub-grid:first-child > * { padding-top:0; }
.prose { max-width:40em; font-size:16px; color:var(--ink-2); }
.prose p { margin:0 0 14px; }
.prose strong { color:var(--ink); font-weight:600; }
.h3 { margin:0 0 8px; font-size:22px; line-height:1.2; font-weight:620; font-stretch:106%; letter-spacing:-0.008em; }
.small { font-size:12.5px; line-height:1.4; color:var(--ink-3); }
.source { margin:16px 0 0; display:flex; flex-wrap:wrap; gap:4px 18px; color:var(--ink-3); font-size:12.5px; }

/* ── Buttons ────────────────────────────────────────── */
.btn { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px; height:46px; padding:0 18px; border-radius:var(--r-1); border:1px solid transparent; font:inherit; font-size:15px; font-weight:600; letter-spacing:0.003em; cursor:pointer; text-decoration:none; transition:background-color .14s var(--ease), border-color .14s var(--ease), transform .1s; white-space:nowrap; overflow:hidden; }
.btn:active:not(:disabled) { transform:scale(0.97); }
.btn svg { width:14px; height:14px; flex:none; }
.btn svg path { fill:none; stroke:currentColor; stroke-width:1.5; }
.btn { max-width:100%; }
.btn > span { white-space:normal; line-height:1.25; }
.btn-primary { background:var(--ink); color:var(--on-ink); }
@media (hover:hover) { .btn-primary:hover:not(:disabled), .btn-primary.is-hover { background:var(--btn-hover); } }
.btn-secondary, .btn-quiet { background:transparent; color:var(--ink); border-color:var(--rule-strong); height:40px; font-size:14px; }
@media (hover:hover) { .btn-secondary:hover:not(:disabled), .btn-quiet:hover:not(:disabled), .btn-secondary.is-hover { background:var(--hover); border-color:var(--ink-2); } }
.btn-sm { height:34px; padding:0 12px; font-size:13.5px; }
.btn:disabled, .btn[aria-disabled="true"] { cursor:not-allowed; }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background:var(--btn-dis); color:var(--ink-2); }
.btn-secondary:disabled { color:var(--ink-3); border-color:var(--rule); }
.btn.is-loading { cursor:progress; }
.btn.is-loading::after { content:""; position:absolute; left:0; bottom:0; height:2px; width:36%; background:currentColor; opacity:.7; animation:btnload 1s var(--ease) infinite; }
@keyframes btnload { from { transform:translateX(-100%); } to { transform:translateX(280%); } }
.btn-text { font:inherit; font-size:14.5px; font-weight:600; color:var(--ink); background:none; border:0; padding:4px 0; cursor:pointer; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; text-decoration-color:var(--rule-strong); display:inline-flex; align-items:center; gap:6px; }
@media (hover:hover) { .btn-text:hover:not(:disabled), .btn-text.is-hover { text-decoration-color:var(--ink); } }
.btn-text:disabled { color:var(--ink-3); cursor:not-allowed; }
.btn-text svg { width:12px; height:12px; }
.btn-text svg path { fill:none; stroke:currentColor; stroke-width:1.5; }
.cta-row { display:flex; align-items:center; gap:10px 16px; flex-wrap:wrap; padding:14px 0 0; }
.hero .cta-row { flex-wrap:nowrap; }
.cta-row .note { font-size:12.5px; color:var(--ink-3); line-height:1.35; max-width:12em; }

/* ── Form controls ──────────────────────────────────── */
.field { min-width:0; }
.field label, .field .lbl { display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
.field .hint { display:block; margin:-2px 0 6px; font-size:12.5px; color:var(--ink-3); font-weight:400; }
.field input, .field select, .field textarea { width:100%; height:46px; padding:0 14px; border:1px solid var(--rule-strong); border-radius:var(--r-2); background:var(--sheet); color:var(--ink); font:inherit; font-size:16px; transition:border-color .14s var(--ease); }
.field textarea { height:auto; min-height:112px; padding:11px 14px; line-height:1.5; resize:vertical; }
.field select { appearance:none; -webkit-appearance:none; padding-right:38px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5L5 7l3.5-3.5' fill='none' stroke='%2386847A' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; background-size:10px; }
.field input::placeholder, .field textarea::placeholder { color:var(--ink-3); }
@media (hover:hover) { .field input:hover:not(:focus), .field select:hover:not(:focus), .field textarea:hover:not(:focus) { border-color:var(--ink-2); } }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color:var(--ink); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background:var(--inset); color:var(--ink-3); border-color:var(--rule); cursor:not-allowed; }
.field .msg { margin:6px 0 0; font-size:12.5px; color:var(--err); display:flex; gap:6px; align-items:baseline; }
.field .msg[hidden] { display:none; }
.field.err input, .field.err select, .field.err textarea { border-color:var(--err); box-shadow:inset 0 0 0 1px var(--err); }
.choice { display:inline-flex; align-items:center; gap:8px; font-size:15px; min-height:32px; cursor:pointer; }
.choice input { width:18px; height:18px; accent-color:var(--ink); margin:0; }
fieldset.choices { border:0; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px 22px; min-width:0; }
fieldset.choices legend { font-size:13px; font-weight:600; margin-bottom:8px; padding:0; width:100%; }

/* chips and segmented filter */
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 18px; }
.chip { height:32px; padding:0 12px; font:inherit; font-size:13px; font-weight:500; color:var(--ink-2); background:transparent; border:1px solid var(--rule); border-radius:var(--r-2); cursor:pointer; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.chip[aria-pressed="true"] { border-color:var(--ink); color:var(--ink); box-shadow:inset 0 0 0 .5px var(--ink); }
.chip .n { font-stretch:75%; font-variant-numeric:tabular-nums; color:var(--ink-3); }
@media (hover:hover) { .chip:hover:not(:disabled) { border-color:var(--rule-strong); color:var(--ink); } }
.chip:disabled { color:var(--ink-3); border-style:dashed; cursor:not-allowed; }
.seg { display:inline-flex; border:1px solid var(--rule-strong); border-radius:var(--r-2); }
.seg button { height:34px; padding:0 13px; font:inherit; font-size:13.5px; font-weight:500; color:var(--ink-2); background:transparent; border:0; cursor:pointer; white-space:nowrap; }
.seg button + button { border-left:1px solid var(--rule); }
.seg button[aria-pressed="true"] { background:var(--ink); color:var(--on-ink); }
@media (hover:hover) { .seg button[aria-pressed="false"]:hover { background:var(--hover); color:var(--ink); } }

/* ── Map + nation tabs (sheet picker) ───────────────── */
.mapsheet { position:relative; background:var(--sheet); border:1px solid var(--rule); display:flex; flex-direction:column; min-height:0; }
.map-box { position:relative; flex:1 1 auto; min-height:0; overflow:hidden; }
.map { position:absolute; inset:0; width:100%; height:100%; display:block; }
.map .grid line { stroke:var(--grid); stroke-width:1; vector-effect:non-scaling-stroke; }
.map .grid line.major { stroke:var(--grid-2); }
.map .sq { font-family:"Spline Sans Mono", monospace; font-size:15px; fill:var(--ink-3); opacity:.55; }
.map .land { stroke:var(--rule-strong); stroke-width:.8; vector-effect:non-scaling-stroke; fill:var(--land); cursor:pointer; stroke-linejoin:round; transition:fill .18s var(--ease); }
@media (hover:hover) { .map .land:not(.on):hover { fill:var(--hover); } }
.map .land.on { fill:var(--land-sel); }
.map .ink { fill:none; stroke:var(--mag); stroke-width:1.75; vector-effect:non-scaling-stroke; stroke-linejoin:round; pointer-events:none; }
.map .frame { fill:none; stroke:var(--grid-2); stroke-width:1; stroke-dasharray:5 4; vector-effect:non-scaling-stroke; }
.map .frame.on { stroke:var(--ink); stroke-dasharray:none; stroke-width:1.25; }
.map .ftitle { font-family:"Archivo"; font-stretch:118%; font-weight:640; font-size:20px; letter-spacing:0.14em; fill:var(--ink-3); text-transform:uppercase; cursor:pointer; }
.map .ftitle.on { fill:var(--ink); }
.map .fref { font-family:"Spline Sans Mono", monospace; font-size:15px; fill:var(--ink-3); }
.map .mbm { stroke:var(--ink); stroke-width:1.5; fill:none; vector-effect:non-scaling-stroke; stroke-linecap:square; }
.map .scale line { stroke:var(--ink-2); stroke-width:1; vector-effect:non-scaling-stroke; }
.map .scale rect { fill:var(--ink-2); }
.map .scale text { font-family:"Spline Sans Mono", monospace; font-size:14px; fill:var(--ink-3); }
.tabs { flex:none; border:0; margin:0; padding:0; border-top:1px solid var(--rule); min-width:0; display:grid; grid-template-columns:auto 1fr 1fr; }
.tabs legend { float:left; display:flex; align-items:center; padding:0 16px; font-size:13px; font-weight:600; color:var(--ink); border-right:1px solid var(--rule); height:100%; }
.tab { position:relative; display:grid; grid-template-columns:1fr auto; align-items:center; gap:0 10px; padding:11px 16px; cursor:pointer; min-height:62px; }
.tab + .tab { border-left:1px solid var(--rule); }
.tab input { position:absolute; inset:0; opacity:0; margin:0; cursor:pointer; }
.tab .t-name { font-size:15px; font-weight:600; line-height:1.25; }
.tab .t-sub { grid-column:1; font-size:12.5px; color:var(--ink-3); line-height:1.35; }
.tab .bm { grid-row:1 / span 2; grid-column:2; opacity:0; color:var(--ink); }
@media (hover:hover) { .tab:hover { background:var(--hover); } }
.tab:has(input:checked) { background:var(--field); box-shadow:inset 0 0 0 1.25px var(--ink); }
.tab:has(input:checked) .bm { opacity:1; }
.tab:has(input:focus-visible) { box-shadow:inset 0 0 0 1.25px var(--ink), var(--focus); z-index:1; }
.tabs.solo { grid-template-columns:1fr 1fr; border:1px solid var(--rule); background:var(--sheet); }
.tabs.solo legend { display:none; }

/* ── Title block (drawing-sheet margin) ─────────────── */
.tb { border:1px solid var(--ink); background:var(--sheet); position:relative; container-type:inline-size; }
@container (max-width:470px) { .tb .rev-n { display:none; } }
.tb-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 12px; border-bottom:1px solid var(--ink); }
.tb-title { font-stretch:118%; font-weight:640; font-size:11.5px; letter-spacing:0.14em; text-transform:uppercase; min-width:0; }
.rev { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; color:var(--ink-2); overflow:hidden; height:22px; }
.rev-txt { display:inline-block; }
.rev-txt > span { display:inline-block; }
.rev .tri { width:12px; height:11px; flex:none; }
.rev .tri path { fill:none; stroke:currentColor; stroke-width:1.2; }
.tb-row { display:grid; grid-template-columns:96px minmax(0,1fr); gap:0 12px; padding:9px 12px; border-bottom:1px solid var(--rule); align-items:start; }
.tb-k { font-size:12.5px; color:var(--ink-3); padding-top:1px; position:relative; }
.tb-v { min-width:0; }
.tb-v b { display:block; font-weight:600; font-size:15px; line-height:1.3; }
.tb-v small { display:block; font-size:12.5px; line-height:1.4; color:var(--ink-2); margin-top:2px; }
.tb-v .cond { font-size:13.5px; }
.tb-k .dot, .diff .dot { position:absolute; left:-9px; top:8px; width:6px; height:6px; border-radius:50%; background:var(--mag); display:none; }
.tb-row.changed .tb-k .dot { display:block; }
.tb-foot { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:4px 10px; padding:7px 12px; margin:0; font-size:11.5px; color:var(--ink-3); }
.diff { position:relative; padding-left:10px; color:var(--ink-2); }
.diff .dot { display:block; left:0; top:5px; }
.diff[hidden] { display:none; }
.tb-foot:has(.diff:not([hidden])) .src { display:none; }
.tb.static .tb-row { grid-template-columns:120px minmax(0,1fr); }
.tb.static .tb-v { font-size:14.5px; font-weight:560; line-height:1.35; }
.tb.static .tb-v small { font-weight:400; }
.tb-grid { display:grid; grid-template-columns:1fr 1fr; }
.tb-grid > div { padding:8px 12px 9px; border-bottom:1px solid var(--rule); }
.tb-grid > div:nth-child(odd) { border-right:1px solid var(--rule); }
.tb-grid dt { font-size:11.5px; color:var(--ink-3); }
.tb-grid dd { margin:0; font-size:14px; font-weight:560; font-stretch:88%; line-height:1.3; }
.tb-grid .wide { grid-column:1 / -1; border-right:0 !important; }
.tb.other { border-style:dashed; }

/* ── Fact rows, ghost rows, other-nation tag ────────── */
.facts { margin:0; border-top:1px solid var(--ink); container-type:inline-size; }
.fact { display:grid; grid-template-columns:minmax(120px,200px) minmax(0,1fr) auto; gap:4px 20px; padding:13px 12px; border-bottom:1px solid var(--rule); align-items:baseline; }
.fact dt { font-size:13px; color:var(--ink-3); }
.fact dd { margin:0; font-size:15.5px; line-height:1.45; min-width:0; }
.fact dd b { font-weight:600; }
.fact dd small { display:block; color:var(--ink-2); font-size:13.5px; margin-top:2px; }
.fact .fv { font-stretch:75%; font-weight:600; font-size:17px; font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap; }
.fact.ghost { border:1px dashed var(--rule-strong); border-top-style:dashed; margin-top:-1px; padding:12px 12px; background:transparent; }
.fact.ghost + .fact.ghost { border-top:0; margin-top:0; }
.other-tag { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; font-size:12.5px; font-weight:600; color:var(--ink); border:1px dashed var(--ink-2); padding:1px 8px; border-radius:var(--r-1); white-space:nowrap; line-height:1.5; }
.fact .other-tag { grid-column:2 / -1; justify-self:start; margin-top:4px; }
@container (max-width:620px) {
  .fact { grid-template-columns:minmax(0,1fr) auto; }
  .fact dt { grid-column:1 / -1; }
  .fact .other-tag { grid-column:1 / -1; }
}

/* ── Answer-first block + FAQ ───────────────────────── */
.ans-block { border-top:1px solid var(--rule); padding:16px 0 24px; }
.ans-block .q { margin:0 0 6px; font-size:14px; font-weight:500; color:var(--ink-3); }
.ans-block .a { margin:0 0 8px; font-size:20px; font-weight:620; line-height:1.3; letter-spacing:-0.005em; max-width:32em; }
.ans-block .d { margin:0; font-size:15px; color:var(--ink-2); line-height:1.55; max-width:40em; }
.ans-block .d + .d { margin-top:10px; }
.ans-block h2.q, .ans-block h3.q { font-family:inherit; }
.faq-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 40px; }
.faq-item { border-top:1px solid var(--rule); }
.faq-item summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:16px 0 8px; font-size:14px; font-weight:500; color:var(--ink-3); }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary .tog { flex:none; font-size:12.5px; font-weight:600; color:var(--ink-2); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--rule-strong); }
.faq-item[open] summary .tog .t-open, .faq-item:not([open]) summary .tog .t-close { display:none; }
@media (hover:hover) { .faq-item summary:hover { color:var(--ink); } }
.faq-item .a { margin:0 0 8px; font-size:19px; font-weight:620; line-height:1.3; letter-spacing:-0.005em; }
.faq-item .d { margin:0; font-size:14.5px; color:var(--ink-2); line-height:1.5; }
.faq-item .body { padding:0 0 24px; }
.faq-item:not([open]) summary { padding-bottom:16px; }
.faq-item.other .body { border-left:1px dashed var(--rule-strong); padding-left:12px; }

/* ── Breadcrumb as component (also used by the bar) ─── */

/* ── List rows ──────────────────────────────────────── */
.lrows { list-style:none; margin:0; padding:0; border-top:1px solid var(--ink); }
.lrow { position:relative; display:grid; grid-template-columns:110px minmax(0,1fr) auto; gap:4px 20px; align-items:baseline; padding:16px 12px 16px 0; border-bottom:1px solid var(--rule); text-decoration:none; color:inherit; transition:background-color .14s var(--ease); }
.lrow .lr-date { font-size:13px; color:var(--ink-3); font-stretch:75%; font-variant-numeric:tabular-nums; font-weight:560; padding-left:12px; }
.lrow .lr-t { font-size:17px; font-weight:600; line-height:1.3; }
.lrow .lr-s { grid-column:2; font-size:14px; color:var(--ink-2); line-height:1.45; }
.lrow .lr-k { font-size:12.5px; color:var(--ink-3); white-space:nowrap; }
@media (hover:hover) { a.lrow:hover, .lrow.is-hover { background:var(--hover); } }
.lrow[aria-current="true"], .lrow.selected { background:var(--sheet); box-shadow:inset 1.25px 0 0 var(--ink); }
.lrow[aria-current="true"] .lr-t::after, .lrow.selected .lr-t::after { content:""; }
.lrow.other { border:1px dashed var(--rule-strong); margin-top:-1px; }

/* ── Steps (Perfect Circle's own four documents) ────── */
.steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); position:relative; }
.steps::before { content:""; position:absolute; left:0; right:0; top:8px; height:1px; background:var(--rule-strong); }
.steps li { position:relative; padding:34px 28px 0 0; }
.steps li::before { content:""; position:absolute; top:3px; left:0; width:10px; height:10px; background:var(--field); border:1px solid var(--ink); transform:rotate(45deg); }
.steps li:first-child::before { background:var(--ink); }
.steps .here { position:absolute; left:20px; top:0; display:flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-2); background:var(--field); padding:0 6px; }
.steps .doc { display:block; font-size:19px; font-weight:620; font-stretch:106%; line-height:1.2; letter-spacing:-0.005em; margin-bottom:8px; }
.steps p { margin:0; font-size:14.5px; line-height:1.5; color:var(--ink-2); }
.days { margin-top:44px; position:relative; height:66px; }
.days .axis { position:absolute; left:0; right:0; top:20px; height:1px; background:var(--rule-strong); }
.days .tick { position:absolute; top:14px; width:1px; height:7px; background:var(--rule-strong); }
.days .tick.major { height:12px; top:9px; background:var(--ink-2); }
.days .tl { position:absolute; top:28px; transform:translateX(-50%); font-size:12px; color:var(--ink-3); font-stretch:75%; font-variant-numeric:tabular-nums; }
.days .span { position:absolute; top:16px; height:9px; border:1px solid var(--ink); border-bottom:0; }
.days .span-l { position:absolute; top:-6px; font-size:13px; font-weight:600; white-space:nowrap; transform:translateX(-50%); }
.days-cap { margin:2px 0 0; font-size:14px; color:var(--ink-2); }

/* ── Timetable (borrowed from Day Twenty, restyled) ─── */
.tt { border:1px solid var(--rule); background:var(--sheet); padding:14px 16px 12px; position:relative; }
.tt-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px 16px; flex-wrap:wrap; margin-bottom:12px; }
.tt-head .tt-day { font-size:30px; line-height:1; font-weight:620; font-stretch:75%; font-variant-numeric:tabular-nums; letter-spacing:-0.01em; }
.tt-head .tt-day span { font-size:15px; font-weight:500; color:var(--ink-3); margin-left:4px; }
.tt-head .tt-cap { font-size:12.5px; color:var(--ink-3); }
.tt-scale { position:relative; display:grid; grid-template-columns:repeat(20, minmax(0,1fr)); }
.tt-range { grid-column:2 / 21; position:relative; height:20px; border-bottom:1px solid var(--ink-2); margin-bottom:6px; display:flex; justify-content:space-between; align-items:flex-start; font-size:11.5px; color:var(--ink-2); }
.tt-range::before, .tt-range::after { content:""; position:absolute; bottom:-4px; width:1px; height:8px; background:var(--ink-2); }
.tt-range::before { left:0; } .tt-range::after { right:0; }
.tt-range b { font-weight:600; color:var(--ink); }
.tt-cells { grid-column:1 / -1; display:grid; grid-template-columns:subgrid; align-items:end; height:22px; position:relative; }
.tt-cells i { display:block; height:10px; border-left:1px solid var(--rule); border-bottom:1px solid var(--rule-strong); }
.tt-cells i:last-child { border-right:1px solid var(--rule); }
.tt-cells i.done { background:repeating-linear-gradient(135deg, transparent 0 3px, var(--ink-2) 3px 4px); }
.tt-cells i.today { height:22px; box-shadow:inset 0 0 0 1.5px var(--mag); background:var(--sheet); }
.tt-cells i.in { background:var(--ink); }
.tt-nums { grid-column:1 / -1; display:grid; grid-template-columns:subgrid; font-size:11px; color:var(--ink-3); font-stretch:75%; font-variant-numeric:tabular-nums; margin-top:3px; }
.tt-nums span { text-align:left; padding-left:2px; }
.tt-nums span.on { color:var(--ink); font-weight:600; }
.tt-docs { list-style:none; margin:12px 0 0; padding:10px 0 0; border-top:1px solid var(--rule); display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px 14px; }
.tt-docs li { font-size:12.5px; line-height:1.35; color:var(--ink-3); padding-left:16px; position:relative; }
.tt-docs li b { display:block; font-weight:600; font-size:13px; color:var(--ink); }
.tt-docs li::before { content:""; position:absolute; left:0; top:3px; width:8px; height:8px; border:1px solid var(--ink-2); transform:rotate(45deg); background:var(--sheet); }
.tt-docs li.done::before { background:var(--ink-2); border-color:var(--ink-2); }
.tt-docs li.today::before { border-color:var(--mag); box-shadow:0 0 0 1px var(--mag); }
.tt-docs li.next b { font-weight:500; color:var(--ink-2); }
.tt-docs li.in::before { display:none; }
.tt-docs li.in .bm { position:absolute; left:-2px; top:1px; width:12px; height:12px; color:var(--ink); }
.tt-foot { margin:10px 0 0; font-size:12.5px; color:var(--ink-2); display:flex; justify-content:space-between; gap:6px 16px; flex-wrap:wrap; }
.tt-foot .ill { color:var(--ink-3); }
.tt.inplace .tt-head .tt-day { display:flex; align-items:center; gap:8px; }
.tt.inplace .tt-head .bm { width:16px; height:16px; }

/* ── Framework term chart ───────────────────────────── */
.fw-sheet { display:grid; grid-template-columns:minmax(0,1fr) 300px; }
.fw-main { padding:20px 24px 18px; min-width:0; }
.fw-margin { border-left:1px solid var(--rule); padding:20px 22px; display:flex; flex-direction:column; }
.terms { width:100%; border-collapse:collapse; font-size:14px; }
.terms th { text-align:left; font-weight:500; font-size:12.5px; color:var(--ink-3); padding:0 12px 8px 0; border-bottom:1px solid var(--rule); }
.terms td { padding:14px 12px 14px 0; border-bottom:1px solid var(--rule); vertical-align:middle; }
.terms .r { width:62px; color:var(--ink-3); }
.terms .n { font-weight:600; font-size:15px; line-height:1.3; }
.terms .n .other-tag { margin-top:6px; }
.terms .v { width:70px; text-align:right; font-stretch:75%; font-weight:600; font-size:17px; font-variant-numeric:tabular-nums; }
.terms .bar-c { width:46%; padding-left:16px; }
.terms tr.row { transition:background-color .14s; }
@media (hover:hover) { .terms tr.row:hover { background:var(--hover); } }
.terms tr.ghost td { border-bottom:1px dashed var(--rule-strong); }
.terms tr.ghost .b { border-style:dashed; background:none; }
.bar { position:relative; height:26px; }
.bar .yrs { position:absolute; inset:0; display:grid; grid-template-columns:repeat(8, 1fr); }
.bar .yrs i { border-left:1px solid var(--grid); }
.bar .yrs i:last-child { border-right:1px solid var(--grid); }
.bar .b { position:absolute; top:7px; height:12px; border:1px solid var(--ink); background:repeating-linear-gradient(135deg, transparent 0 3px, var(--grid-2) 3px 4px); }
.bar-c .dates { display:block; margin-top:3px; font-size:12px; font-stretch:75%; font-variant-numeric:tabular-nums; color:var(--ink-2); white-space:nowrap; }
.bar .now { position:absolute; top:-4px; bottom:-4px; width:0; border-left:1px dashed var(--ink-2); }
.axis-yrs { display:grid; grid-template-columns:repeat(8, 1fr); font-size:11.5px; color:var(--ink-3); font-stretch:75%; font-variant-numeric:tabular-nums; }
.axis-yrs span { padding-left:3px; }
.law { display:grid; grid-template-columns:1fr; gap:14px; margin:0; }
.law dt { font-size:12.5px; color:var(--ink-3); margin-bottom:3px; }
.law dd { margin:0; font-size:14.5px; line-height:1.45; }
.fw-margin .source { margin-top:auto; padding-top:18px; }

/* ── Sector index ───────────────────────────────────── */
.idx { display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); border-left:1px solid var(--rule-strong); border-top:1px solid var(--rule-strong); margin:0; padding:0; }
.idx li { list-style:none; position:relative; min-height:52px; border-right:1px solid var(--rule-strong); border-bottom:1px solid var(--rule-strong); display:flex; transition:color .18s, background-color .18s; }
.idx .cell { flex:1; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 12px; text-decoration:none; color:inherit; min-height:52px; }
.idx .cell > span:first-child { display:flex; flex-direction:column; }
.idx .c { color:var(--ink-3); font-size:12.5px; }
.idx .s { font-size:15px; font-weight:600; line-height:1.25; }
.idx li.off { background:repeating-linear-gradient(135deg, transparent 0 6px, var(--hatch) 6px 7px); color:var(--ink-2); }
.idx li.off .s { font-weight:500; }
.idx .arr { width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:1.4; color:var(--ink-2); }
@media (hover:hover) { .idx a.cell:hover { background:var(--hover); } .idx a.cell:hover .arr { color:var(--ink); } }
.idx-note { margin:14px 0 0; font-size:14px; color:var(--ink-2); max-width:44em; }

/* ── Disciplines finder ─────────────────────────────── */
.disc { columns:3; column-gap:32px; margin:0; padding:0; list-style:none; }
.disc li { break-inside:avoid; display:flex; justify-content:space-between; gap:12px; padding:7px 0; border-bottom:1px solid var(--rule); font-size:14.5px; }
.disc li[hidden] { display:none; }

/* ── Case study card ────────────────────────────────── */
.cases-bar { display:flex; align-items:center; gap:10px; margin-bottom:22px; font-size:13px; color:var(--ink-3); flex-wrap:wrap; }
.case { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); border:1px solid var(--rule); background:var(--sheet); position:relative; }
.case + .case { margin-top:24px; }
.case.other { border-style:dashed; border-color:var(--rule-strong); }
.case figure { margin:0; position:relative; aspect-ratio:3/2; background:var(--inset); border-right:1px solid var(--rule); overflow:hidden; }
.case img { width:100%; height:100%; object-fit:cover; display:block; }
.case figcaption, .cs-fig figcaption { position:absolute; left:0; bottom:0; padding:5px 10px; background:var(--sheet); font-size:12px; color:var(--ink-2); border-top:1px solid var(--rule); border-right:1px solid var(--rule); }
.case-body { display:flex; flex-direction:column; padding:22px 24px 0; min-width:0; }
.case h3 { margin:0 0 8px; font-size:22px; line-height:1.2; font-weight:620; font-stretch:106%; letter-spacing:-0.008em; }
.case h3 a { text-decoration:none; }
.case h3 a::after { content:""; position:absolute; inset:0; z-index:0; }
@media (hover:hover) { .case:has(h3 a:hover) h3 a { text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1.25px; } .case:has(h3 a:hover) { border-color:var(--rule-strong); } }
.case p { margin:0 0 18px; font-size:14.5px; color:var(--ink-2); }
.case .other-tag { margin-bottom:10px; }
.case .ctb { margin:auto -24px 0; border-top:1px solid var(--ink); }
.case .ctb > div:nth-last-child(-n+2) { border-bottom:0; }

/* ── Empty state, toast, inline confirmation, pager ── */
.empty-state { border:1px dashed var(--rule-strong); padding:32px 28px; display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 18px; align-items:start; background:transparent; }
.empty-state .es-mark { grid-row:1 / span 3; width:28px; height:28px; color:var(--ink-2); }
.empty-state .es-mark .bm { width:28px; height:28px; stroke-width:1.25; }
.empty-state h3 { margin:0; font-size:19px; font-weight:620; line-height:1.3; }
.empty-state p { margin:0; font-size:14.5px; color:var(--ink-2); max-width:36em; }
.empty-state .es-act { margin-top:10px; display:flex; gap:16px; flex-wrap:wrap; }
.empty { margin:0; padding:22px 0; font-size:14.5px; color:var(--ink-2); border-bottom:1px solid var(--rule); }
.empty[hidden] { display:none; }
.confirm { display:flex; gap:10px; align-items:flex-start; margin:0; font-size:14.5px; padding:10px 12px; border:1px solid var(--ink); background:var(--field); }
.confirm .bm { margin-top:4px; }
.confirm[hidden] { display:none; }
.toasts { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:50; display:grid; gap:8px; pointer-events:none; width:min(440px, calc(100vw - 32px)); }
.toast { pointer-events:auto; display:flex; gap:10px; align-items:center; padding:12px 14px; background:var(--ink); color:var(--on-ink); font-size:14px; border-radius:var(--r-2); animation:toastin .18s var(--ease); }
.toast .bm { color:var(--on-ink); }
.toast.static { position:relative; animation:none; }
@keyframes toastin { from { opacity:0; transform:translateY(6px) scale(.97); } to { opacity:1; transform:none; } }
.pager { display:flex; align-items:center; gap:4px; flex-wrap:wrap; margin:28px 0 0; padding:0; list-style:none; font-size:14px; }
.pager a, .pager span { min-width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; padding:0 10px; border:1px solid transparent; border-radius:var(--r-1); text-decoration:none; color:var(--ink-2); font-stretch:75%; font-weight:600; font-variant-numeric:tabular-nums; font-size:15px; }
.pager a[aria-current="page"] { border-color:var(--ink); color:var(--ink); }
.pager .pg-step { font-stretch:100%; font-weight:500; font-size:14px; gap:6px; }
.pager [aria-disabled="true"] { color:var(--ink-3); opacity:.6; cursor:not-allowed; }
@media (hover:hover) { .pager a:not([aria-current]):not([aria-disabled="true"]):hover { background:var(--hover); color:var(--ink); } }

/* ── Access Agreement request ───────────────────────── */
.ac-sheet { display:grid; grid-template-columns:minmax(0,1fr) 300px; }
.ac-form { padding:24px; display:grid; grid-template-columns:1fr 1fr; gap:16px 18px; align-content:start; }
.ac-form .choices, .ac-form .ac-actions, .ac-form .confirm, .ac-form .wide { grid-column:1 / -1; }
.ac-form .field.half { grid-column:1 / -1; max-width:calc(50% - 9px); }
.ac-margin { border-left:1px solid var(--rule); padding:24px 22px; font-size:14px; color:var(--ink-2); }
.ac-margin ol { margin:0 0 16px; padding-left:18px; display:grid; gap:10px; }
.ac-k { margin:0 0 10px; font-size:13px; font-weight:600; color:var(--ink); }
.ac-margin .ac-k:last-child { margin:0; font-weight:500; color:var(--ink-2); }
.ac-sim { grid-column:1 / -1; margin:0; font-size:12.5px; color:var(--ink-3); }

/* ── Footer ─────────────────────────────────────────── */
.foot { margin-top:120px; border-top:1px solid var(--ink); background:var(--sheet); }
.foot-in { max-width:var(--max); margin:0 auto; padding:32px var(--gut) 26px; display:grid; grid-template-columns:300px minmax(0,1fr); gap:28px 64px; }
.foot .wordmark { font-size:17px; }
.foot-brand p { margin:6px 0 0; font-size:13px; color:var(--ink-3); max-width:22em; }
.foot-where { margin-top:22px; font-size:14px; color:var(--ink-2); border:1px solid var(--rule); padding:12px 14px; position:relative; background:var(--field); }
.foot-where p { margin:0; }
.foot-where p + p { margin-top:6px; }
.foot-where b { color:var(--ink); font-weight:600; }
.foot-where .bm { vertical-align:-2px; margin-right:6px; }
.foot-where .linkbtn { display:block; margin-top:8px; }
.foot-cols { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:24px 32px; }
.foot-cols h2 { margin:0 0 10px; font-size:13px; font-weight:600; color:var(--ink); }
.foot-cols ul { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.foot-cols a { display:inline-flex; min-height:30px; align-items:center; font-size:14px; color:var(--ink-2); text-decoration:none; }
@media (hover:hover) { .foot-cols a:hover { color:var(--ink); text-decoration:underline; text-underline-offset:3px; } }
.foot-meta { grid-column:1 / -1; display:grid; grid-template-columns:300px minmax(0,1fr); gap:12px 64px; padding-top:18px; border-top:1px solid var(--rule); font-size:13px; color:var(--ink-2); }
.foot-meta p { margin:0; }
.foot-meta .acc { color:var(--ink-3); }
.foot-base { grid-column:1 / -1; display:flex; justify-content:space-between; gap:10px 24px; flex-wrap:wrap; padding-top:16px; border-top:1px solid var(--rule); font-size:12.5px; color:var(--ink-3); }

/* ── Home hero ──────────────────────────────────────── */
.hero { display:grid; grid-template-columns:minmax(0,1fr) 620px; grid-template-rows:auto 1fr; grid-template-areas:"map head" "map margin"; height:calc(100svh - 65px); min-height:780px; max-height:1000px; max-width:var(--max); margin:0 auto; }
.hero .mapsheet { grid-area:map; margin:22px 0 22px var(--gut); }
.hero .head { grid-area:head; padding:34px var(--gut) 0 44px; }
.hero h1 { margin:0; font-size:50px; line-height:1.04; font-weight:650; font-stretch:96%; letter-spacing:-0.024em; text-wrap:balance; }
.hero h1 .l1 { display:block; }
.hero .margin { grid-area:margin; padding:16px var(--gut) 22px 44px; display:flex; flex-direction:column; min-height:0; }
.hero .sub { margin:0 0 18px; font-size:16px; line-height:1.5; color:var(--ink-2); max-width:33em; }
.hero .geo-note { margin:-6px 0 14px; }
.mini-route { margin:auto 0 0; padding-top:18px; font-size:13.5px; }
.mini-route a { color:var(--ink-2); text-decoration:none; border-bottom:1px solid var(--rule-strong); padding-bottom:2px; }
.mini-route a b { color:var(--ink); font-weight:600; }
@media (hover:hover) { .mini-route a:hover { color:var(--ink); border-color:var(--ink); } }
.firms { display:flex; flex-wrap:wrap; gap:6px 0; margin:0 0 18px; padding:0; list-style:none; font-size:52px; line-height:1.05; font-weight:600; font-stretch:122%; letter-spacing:-0.01em; }
.firms li + li::before { content:"·"; color:var(--ink-3); padding:0 .32em; font-weight:400; }
.coll-p { margin:0; font-size:17px; line-height:1.55; color:var(--ink-2); max-width:44em; }
.coll-p .cond { font-weight:650; font-size:19px; color:var(--ink); }

/* ── Case study detail ──────────────────────────────── */
.cs-top { max-width:var(--max); margin:0 auto; padding:28px var(--gut) 0; display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:0; }
.cs-fig { margin:0; position:relative; aspect-ratio:3/2; background:var(--inset); border:1px solid var(--rule); border-right:0; overflow:hidden; }
.cs-fig img { width:100%; height:100%; object-fit:cover; display:block; }
.cs-margin { border:1px solid var(--rule); background:var(--sheet); display:flex; flex-direction:column; min-width:0; position:relative; }
.cs-margin .cs-head { padding:24px 24px 20px; }
.cs-margin h1 { margin:10px 0 10px; font-size:40px; line-height:1.04; font-weight:650; letter-spacing:-0.022em; text-wrap:balance; }
.cs-margin .lede { margin:0; font-size:16px; color:var(--ink-2); line-height:1.5; }
.cs-margin .tb { margin:auto -1px -1px; }
.cs-body .ans-block:first-child { border-top:0; padding-top:0; }
.cs-body .ans-block .q { font-size:13px; font-weight:600; color:var(--ink); text-transform:none; }
.cs-next { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:center; border-top:1px solid var(--rule); padding-top:18px; margin-top:8px; }

/* ── Stub views (area agents replace these) ─────────── */
.stub-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); border-top:1px solid var(--ink); }
.stub-grid > a, .stub-grid > div { display:block; padding:18px 20px 22px 0; border-bottom:1px solid var(--rule); text-decoration:none; min-width:0; }
.stub-grid > * + * { padding-left:20px; border-left:1px solid var(--rule); }
.stub-grid > *:nth-child(3n+1) { padding-left:0; border-left:0; }
.stub-grid b { display:block; font-size:17px; font-weight:600; line-height:1.3; margin-bottom:4px; }
.stub-grid span { display:block; font-size:14px; color:var(--ink-2); line-height:1.45; }
@media (hover:hover) { .stub-grid > a:hover b { text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1.25px; } }
.nf { max-width:var(--max); margin:0 auto; padding:64px var(--gut) 0; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width:1360px) {
  .nav, .top-end .switch { display:none; }
  .menu-btn { display:inline-flex; }
  .hero { grid-template-columns:minmax(0,1fr) 540px; }
  .hero h1 { font-size:40px; }
}
@media (min-width:1361px) { .msheet, .msheet.open { display:none; } }
@media (max-width:980px) {
  :root { --gut:24px; }
  .hero { grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "map" "margin"; grid-template-rows:auto; height:auto; min-height:0; max-height:none; }
  .hero .head { padding:24px var(--gut) 14px; }
  .hero .mapsheet { margin:0 var(--gut); height:62svh; min-height:420px; }
  .hero .margin { padding:20px var(--gut) 0; }
  .sec { grid-template-columns:1fr; padding-top:64px; }
  .sec-m { margin-bottom:18px; }
  .ph { grid-template-columns:1fr; }
  .foot-in, .foot-meta { grid-template-columns:1fr; }
  .cs-top { grid-template-columns:1fr; }
  .cs-fig { border-right:1px solid var(--rule); border-bottom:0; }
  .stub-grid { grid-template-columns:1fr 1fr; }
  .stub-grid > *:nth-child(3n+1) { padding-left:20px; border-left:1px solid var(--rule); }
  .stub-grid > *:nth-child(2n+1) { padding-left:0; border-left:0; }
}
@media (max-width:720px) {
  :root { --gut:16px; --hdr:56px; }
  .top-in { gap:12px; }
  .wordmark { font-size:17px; }
  .top-end .theme-btn { display:none; }
  .crumbbar { padding-top:12px; }
  .ph { padding-top:18px; }
  .ph h1, .h1 { font-size:32px; line-height:1.06; letter-spacing:-0.02em; }
  .ph .lede { font-size:16px; }
  .hero .head { padding:16px var(--gut) 12px; }
  .hero h1 { font-size:25px; line-height:1.1; letter-spacing:-0.018em; }
  .hero .mapsheet { height:auto; min-height:0; }
  .hero .map-box { flex:none; height:240px; }
  .hero .margin { padding-top:14px; }
  .hero .margin .sub { order:3; margin:16px 0 0; }
  .hero .margin .geo-note { order:0; margin:0 0 10px; }
  .hero .margin .tb { order:1; }
  .hero .margin .cta-row { order:2; padding-top:12px; }
  .hero .margin .mini-route { order:4; display:block; }
  .hero .tb-v small { display:none; }
  .hero .tb-row[data-line="fw"] .tb-v small { display:block; }
  .tb-v b { font-size:14.5px; }
  .tb-head { flex-wrap:nowrap; }
  .rev-txt > .rev-n { display:none; }
  .hero .tb-foot .src, .hero .tb-foot .date { display:none; }
  .hero .tb-foot:not(:has(.diff:not([hidden]))) { display:none; }
  .cta-row { flex-wrap:wrap; }
  .cta-row .btn { width:100%; justify-content:space-between; }
  .cta-row .note { max-width:none; }
  .fw-sheet, .ac-sheet, .ac-form { grid-template-columns:1fr; }
  .fw-margin, .ac-margin { border-left:0; border-top:1px solid var(--rule); }
  .fw-main { padding:14px 14px 10px; }
  .ac-form { padding:18px 16px; }
  .ac-form .field.half { max-width:none; }
  .map .ftitle, .map .fref, .map .mbm, .map .scale, .map .sq { display:none; }
  .tabs { grid-template-columns:1fr 1fr; }
  .tabs legend { display:none; }
  .tab { padding:9px 12px; min-height:58px; }
  .tab .t-name { font-size:14.5px; }
  .tb-row { grid-template-columns:74px minmax(0,1fr); gap:0 10px; padding:8px 10px; }
  .tb.static .tb-row { grid-template-columns:96px minmax(0,1fr); }
  .tb-head { padding:8px 10px; flex-wrap:wrap; row-gap:4px; }
  .tb-title { font-size:10.5px; letter-spacing:0.1em; }
  .btn { white-space:normal; text-align:left; height:auto; min-height:48px; padding:10px 16px; }
  .btn-secondary, .btn-sm { min-height:40px; }
  .sec-m h2 { font-size:25px; }
  .sec { padding-top:56px; }
  .steps, .faq-grid { grid-template-columns:1fr; }
  .steps::before { left:4px; right:auto; top:8px; bottom:0; width:1px; height:auto; }
  .steps li { padding:0 0 26px 30px; }
  .steps .here { position:static; display:inline-flex; padding:0; margin-bottom:4px; }
  .steps .doc { font-size:18px; }
  .terms .bar-c, .terms th.bar-h, .terms tfoot { display:none; }
  .terms td { padding:12px 8px 12px 0; }
  .terms .r { width:44px; }
  .disc { columns:1; }
  .idx { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .case { grid-template-columns:1fr; }
  .case figure { border-right:0; border-bottom:1px solid var(--rule); }
  .case-body { padding:18px 16px 0; }
  .case .ctb { margin:16px -16px 0; }
  .firms { font-size:32px; }
  .lrow { grid-template-columns:1fr auto; padding-right:0; }
  .lrow .lr-date { grid-column:1 / -1; padding-left:0; }
  .lrow .lr-s { grid-column:1 / -1; }
  .lrow[aria-current="true"], .lrow.selected { padding-left:12px; }
  .tt-docs { grid-template-columns:1fr 1fr; }
  .tt-nums span:not(.on):not(.k) { visibility:hidden; }
  .cs-top { padding-top:16px; }
  .cs-margin .cs-head { padding:18px 16px 16px; }
  .cs-margin h1 { font-size:30px; }
  .foot-cols { grid-template-columns:1fr 1fr; }
  .stub-grid { grid-template-columns:1fr; }
  .stub-grid > * { padding-left:0 !important; border-left:0 !important; }
  .empty-state { padding:22px 18px; grid-template-columns:1fr; }
  .empty-state .es-mark { grid-row:auto; }
  .msheet .ms-sub { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration:0s !important; animation-duration:0s !important; }
  .btn:active { transform:none !important; }
  .btn.is-loading::after { animation:none; width:100%; opacity:.3; }
}
