/* Unvault design v2: the v1 look (money atlas structure, Ergo neutrals, Inter Tight) with green in place of orange.
   v2 adds area dropdown menus, "I need to…" starters, a step-by-step finder, a full service directory and an area side menu. */
:root {
  --bg: #eeeeec;
  --surface: #f7f7f5;
  --line: #d3d3cf;
  --line-strong: #b9b9b5;
  --text: #1c1c1c;
  --text-2: #4d4d4d;
  --text-3: #6b6b68;
  --accent: #0e3b31;          /* logo green, replaces v1 orange */
  --accent-hover: #155244;
  --accent-text: #0e3b31;
  --accent-soft: #dcefe5;     /* mint tint: icon tiles, selected rows */
  --field: #5dbb94;           /* mint hero field (same as dark mode, which the user preferred) */
  --on-field: #0b231c;
  --mint-soft: #e4f3ec;
  --mint-line: #b7dcc9;
  --on-accent: #ffffff;
  --door: #da9b22;            /* logo door only */
  --surface-2: #e4e4e1;
  --grey-block: #cfcfcb;      /* Ergo's grey hero panel */
  --on-grey: #1c1c1c;
  --field-input: #f2f2f0;
  --illo-acc: #2d8a64;        /* brighter green for drawn accents, so they read as color */
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 4px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 140ms;
  --max: 1240px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #18181b;
  --surface: #222226;
  --line: #303036;
  --line-strong: #45454c;
  --text: #f7f7f5;
  --text-2: #c9c9c6;
  --text-3: #a1a1a6;
  --accent: #5dbb94;
  --accent-hover: #74c9a5;
  --accent-text: #6cc39f;
  --accent-soft: #1f3029;
  --field: #5dbb94;
  --on-field: #0f1a16;
  --mint-soft: #1b2722;
  --mint-line: #2c4a3d;
  --on-accent: #0f1a16;
  --surface-2: #2a2a30;
  --grey-block: #b9b9b9;
  --on-grey: #18181b;
  --field-input: #ececea;
  --illo-acc: #6cc39f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font-sans); -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 50; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.ico { width: 20px; height: 20px; flex: none; }

/* Independent bar */
.indie { border-bottom: 1px solid var(--line); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.indie .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; padding-bottom: 9px; }

/* Header */
#site-top { position: relative; z-index: 30; background: var(--bg); }
.top { border-bottom: 1px solid var(--line); position: relative; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 24px; letter-spacing: -0.04em; color: var(--accent-text); }
.brand svg { width: 38px; height: 28px; }
.brand .ring { stroke: var(--accent-text); }
.brand .door { fill: var(--door); transform-box: fill-box; transform-origin: left center; transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .brand:hover .door { transform: translateX(1.5px) scaleX(.8); } }
.nav { display: flex; align-items: center; gap: 2px; }
.nav .area { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); padding: 12px 11px; border-radius: var(--radius); transition: color var(--t-fast) ease, background-color var(--t-fast) ease; text-decoration: none; white-space: nowrap; }
.nav .area svg { width: 10px; height: 10px; transition: transform 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav .area:hover { color: var(--text); background: var(--surface); } }
.nav .area[aria-expanded="true"] { color: var(--text); background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
.nav .area[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav .area[data-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.theme { border: 1px solid var(--line-strong); background: transparent; color: var(--text); width: 36px; height: 36px; border-radius: var(--radius); cursor: pointer; font: 500 14px var(--font-mono); margin-left: 8px; flex: none; transition: transform 120ms ease-out; }
.theme:active { transform: scale(.95); }

/* Area dropdown (one panel, content swapped per area) */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms; }
.mega.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
.mega .wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.mega-intro { padding: 28px 28px 28px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.mega-intro p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.mega-intro .btn { margin-top: auto; align-self: flex-start; height: 42px; font-size: 14px; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.mega-col { padding: 26px 24px; border-right: 1px solid var(--line); }
.mega-col:last-child { border-right: 0; }
.mega-col h4, .dir-body h4, .side h4 { font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; }
.svc { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-decoration: none; padding: 7px 8px; margin: 0 -8px; border-radius: var(--radius); font-size: 14.5px; font-weight: 500; transition: background-color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .svc:hover { background: var(--bg); } }
.kind { font: 500 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.kind.tool { color: var(--accent-text); }

/* Area icon tile */
.atile { width: 40px; height: 40px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.atile .ico { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .top .wrap { flex-wrap: wrap; row-gap: 10px; }
  .nav { order: 3; width: calc(100% + 20px); overflow-x: auto; scrollbar-width: none; margin: 0 -10px; }
  .nav::-webkit-scrollbar { display: none; }
  .theme { position: absolute; right: 16px; top: 13px; }
  .indie .wrap span + span { display: none; }
  .mega { max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; }
  .mega .wrap { grid-template-columns: minmax(0, 1fr); }
  .mega-intro { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .mega-cols { grid-template-columns: minmax(0, 1fr); }
  .mega-col { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .mega-col:last-child { border-bottom: 0; }
}

/* Grid of cells (money atlas pattern) */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid + .grid { border-top: 0; }
.cell { background: var(--surface); padding: 32px; min-width: 0; position: relative; }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s6 { grid-column: span 6; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; } .s3 { grid-column: span 3; }
@media (max-width: 900px) { .s8, .s7, .s6, .s5, .s3 { grid-column: span 12; } .s4 { grid-column: span 6; } .cell { padding: 24px; } }
@media (max-width: 600px) { .s4 { grid-column: span 12; } .wrap { padding: 0 16px; } }

/* Type */
.label { font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.hero { font-weight: 700; font-size: clamp(46px, 7.2vw, 98px); line-height: .93; letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
.h2 { font-weight: 500; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.h3 { font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
.lead { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 600px; margin: 0; text-wrap: pretty; }
.small { font-size: 13px; color: var(--text-3); margin: 0; }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px; border: 1.5px solid var(--text); background: transparent; color: var(--text); text-decoration: none; font: 600 15px var(--font-sans); border-radius: var(--radius); cursor: pointer; transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform 120ms ease-out; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--text); color: var(--bg); } }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); } }

/* Home hero: headline left, search right, so the width is used without a side panel */
/* Home hero, after Ergo's Shift5 block: a solid green field with the headline,
   beside a grey panel that holds the explanation and the search. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); margin-top: 24px; min-height: 440px; }
.hero-main { container-type: inline-size; background: var(--field); color: var(--on-field); padding: 26px 40px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-radius: var(--radius) 0 0 var(--radius); position: relative; overflow: hidden; }
.hero-eyebrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin: 0; }
/* Always two lines; "open to everyone." is about 7.9em wide at this weight, so 100cqi / 8.2 fits. */
.display { font-size: min(118px, 100cqi / 8.2); font-weight: 400; letter-spacing: -0.035em; line-height: .95; white-space: nowrap; margin: 0; }
.display .door-word { position: relative; display: inline-block; }
.swoosh { position: absolute; left: -2%; right: -4%; bottom: -.16em; width: 106%; height: .3em; overflow: visible; fill: none; stroke: var(--on-field); stroke-width: 7; stroke-linecap: round; }
.swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: illo-draw 1100ms var(--ease-out) 450ms forwards; }
@media (prefers-reduced-motion: reduce) { .swoosh path { stroke-dashoffset: 0; } }
/* Big faint vault ring, the logo's shape, sitting behind the field */
.hero-ring { position: absolute; right: -70px; bottom: -130px; width: 470px; height: 400px; z-index: 0; pointer-events: none; color: color-mix(in srgb, var(--on-field) 9%, transparent); }
.hero-main > :not(.hero-ring) { position: relative; z-index: 1; }
.hero-side { container-type: inline-size; background: var(--grey-block); color: var(--on-grey); padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.hero-line { font-size: 26px; line-height: 1.18; letter-spacing: -0.015em; margin: 0; text-wrap: pretty; }
.hero-side .search { margin-top: auto; }
.hero-side .search input { background: var(--field-input); color: var(--on-grey); border-color: var(--on-grey); }
.hero-side .search input::placeholder { color: #5f5f5c; }
.hero-side .search > .ico { color: var(--on-grey); }
.hero-side .hint { color: #4a4a48; }
.hero-side .hint button { color: var(--on-grey); text-decoration-color: rgba(0,0,0,.35); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-top: 12px; }
  .hero-main { padding: 18px 20px 26px; gap: 28px; border-radius: var(--radius) var(--radius) 0 0; }
  .display { font-size: min(96px, 100cqi / 8.2); }
  .hero-side { padding: 18px 20px 22px; border-radius: 0 0 var(--radius) var(--radius); }
  .hero-line { font-size: 21px; }
  .hero-ring { width: 260px; height: 260px; right: -70px; bottom: -110px; }
}

/* Section headings carry an index, like Ergo's numbered cards */
.sec .label { margin: 0 0 8px; color: var(--accent-text); }

/* Search */
.search { position: relative; }
.search input { width: 100%; height: 58px; border: 1.5px solid var(--text); border-radius: var(--radius); background: var(--bg); color: var(--text); font: 500 17px var(--font-sans); padding: 0 18px 0 48px; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--text-3); }
.search > .ico { position: absolute; left: 17px; top: 19px; }
.hint { font-size: 13px; color: var(--text-3); margin: 10px 0 0; }
.hint button { border: 0; background: none; padding: 0; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); position: absolute; left: 0; right: 0; z-index: 5; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35); }
.results[hidden] { display: none; }
.results a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; text-decoration: none; border-top: 1px solid var(--line); font-weight: 500; }
.results li:first-child a { border-top: 0; }
.results a:hover, .results a[aria-selected="true"] { background: var(--bg); }
.results .where { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); white-space: nowrap; }

/* Section heading row */
.sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 64px 0 18px; }
.sec .small { max-width: 440px; text-align: right; }
@media (max-width: 700px) { .sec { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 48px; } .sec .small { text-align: left; } }

/* "I need to…" starters: Ergo option cards (separate cards, index, sliding arrow, drawn illustration) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 236px;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, transform 80ms ease; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.card .idx { font: 500 12px var(--font-mono); color: var(--text-3); }
.card .h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 22px; font-weight: 500; line-height: 1.18; letter-spacing: -0.015em; }
.card .arrow { color: var(--text-3); flex: none; transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) ease; }
.card .meta { color: var(--text-2); font-size: 15px; line-height: 1.4; margin: 0; }
.card .to { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.card:active { border-color: var(--text-2); background: var(--surface-2); transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--text-2); }
  .card:hover .arrow { color: var(--accent-text); transform: translateX(3px); }
}
/* Kind marks: a tool is the thing to use, so it gets the accent square (Ergo's "needs attention" mark) */
.mark { display: inline-flex; align-items: center; gap: 7px; }
.mark::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--text-3); flex: none; }
.mark.tool::before { background: var(--accent); }
.mark.data::before { border-radius: 50%; }
.mark.guide::before { background: transparent; border: 1.5px solid var(--text-3); width: 7px; height: 7px; box-sizing: border-box; }
.svc .kind.tool { color: var(--accent-text); }

/* Line illustrations that draw themselves in (after Ergo's Illo component).
   Every stroke has pathLength="1"; motion on hover lives on .mv groups, never on drawn strokes. */
.illo { width: var(--illo-size, 52px); height: var(--illo-size, 52px); flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--text); }
.illo .acc { stroke: var(--illo-acc); }
.illo .dot { fill: var(--door); stroke: none; }
.illo .fill { fill: var(--door); stroke: none; }
.illo [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: illo-draw 900ms var(--ease-out) forwards; animation-delay: calc(var(--illo-delay, 0ms) + var(--d, 0) * 110ms); }
.illo .dot, .illo .fill { opacity: 0; transform-box: fill-box; transform-origin: center; animation: illo-pop 320ms var(--ease-out) forwards; animation-delay: calc(var(--illo-delay, 0ms) + 520ms); }
@keyframes illo-draw { to { stroke-dashoffset: 0; } }
@keyframes illo-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.illo .mv { transform-box: view-box; transform-origin: 24px 24px; }
.illo-host:hover .illo .mv, .illo-host:focus-visible .illo .mv, .illo-host:active .illo .mv { animation: var(--illo-move, illo-rise) 560ms var(--ease-out); }
.illo-pulse { --illo-move: illo-pulse; } .illo-nudge { --illo-move: illo-nudge; } .illo-tip { --illo-move: illo-tip; } .illo-rise { --illo-move: illo-rise; }
@keyframes illo-pulse { 50% { transform: scale(1.12); } }
@keyframes illo-rise { 50% { transform: translateY(-3px); } }
@keyframes illo-nudge { 50% { transform: translateX(3px); } }
@keyframes illo-tip { 30% { transform: rotate(-7deg); } 70% { transform: rotate(4deg); } }
/* Before the draw-in runs (reduced motion, or a paused page), show the finished drawing */
@media (prefers-reduced-motion: reduce) { .illo [pathLength] { stroke-dashoffset: 0; } .illo .dot, .illo .fill { opacity: 1; } }

/* Finder */
.finder-q { min-height: 400px; display: flex; flex-direction: column; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; max-width: 220px; }
.steps i { height: 3px; flex: 1; background: var(--line); border-radius: 2px; transition: background-color 200ms ease; }
.steps i.on { background: var(--accent); }
.qbody { transition: opacity 160ms ease-out, transform 160ms var(--ease-out); }
.qbody.swap { opacity: 0; transform: translateY(4px); transition-duration: 0ms; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
@media (max-width: 600px) { .opts { grid-template-columns: minmax(0, 1fr); } }
.opt { display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line-strong); background: var(--bg); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; font-size: 15px; font-weight: 500; line-height: 1.35; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, transform 120ms ease-out; }
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--text); } }
.opt:active { transform: scale(.98); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt .opt-key { font: 500 12px var(--font-mono); color: var(--text-3); flex: none; width: 22px; height: 22px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 4px; }
.opt[aria-pressed="true"] .opt-key { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.finder-q, .finder-r { border-radius: 0; }
.finder-r.has { background: var(--accent-soft); }
:root[data-theme="dark"] .finder-r.has { background: #1d2a25; }
.back { margin-top: auto; padding: 20px 0 0; align-self: flex-start; border: 0; background: none; color: var(--text-3); cursor: pointer; font: 500 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.back[hidden] { display: none; }
.finder-r { display: flex; flex-direction: column; gap: 14px; }
.finder-r .path { font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 0; }
.finder-r ul { margin: 0; padding: 0; list-style: none; }
.finder-r li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); position: relative; font-size: 15px; color: var(--text-2); }
.finder-r li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 11px; height: 6px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.finder-r .btnrow { margin-top: auto; }
.finder-r.empty .h3 { color: var(--text-3); }
.finder-r.empty li { color: var(--text-3); }
.finder-r.empty li::before { border-color: var(--line-strong); }

/* Directory */
.dir { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dir-area { background: var(--surface); min-width: 0; }
.dir-area summary { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 18px; border-bottom: 1px solid var(--line); cursor: default; }
.dir-area summary::-webkit-details-marker { display: none; }
@media (min-width: 701px) { .dir-area summary { min-height: 238px; } }
.dir-area summary .num { font: 500 12px var(--font-mono); color: var(--accent-text); }
.dir-area summary .top-row { display: flex; justify-content: space-between; align-items: flex-start; }
.dir-area summary .chev { display: none; }
.dir-area summary p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.dir-body { padding: 4px 22px 22px; }
.dir-body h4 { margin: 18px 0 4px; }
.dir-body .svc { font-size: 14px; padding: 6px 8px; }
.dir-body .all { display: inline-block; margin-top: 18px; font: 500 12px var(--font-mono); color: var(--accent-text); text-decoration: none; }
@media (max-width: 1100px) and (min-width: 701px) { .dir { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .dir { grid-template-columns: minmax(0, 1fr); }
  .dir-area summary { cursor: pointer; border-bottom: 0; padding: 16px; flex-direction: row; align-items: center; gap: 14px; }
  .dir-area summary .num, .dir-area summary p { display: none; }
  .dir-area summary .chev { display: block; margin-left: auto; width: 12px; height: 12px; color: var(--text-3); transition: transform 180ms var(--ease-out); }
  .dir-area[open] summary .chev { transform: rotate(180deg); }
  .dir-area[open] summary { border-bottom: 1px solid var(--line); }
  .dir-body { padding: 4px 16px 18px; }
}

/* Promise strip */
.promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 64px; }
.promise div { background: var(--surface); padding: 20px 22px; font-size: 14px; color: var(--text-2); }
.promise b { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 900px) { .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .promise { grid-template-columns: minmax(0, 1fr); } }

/* Inside an area: breadcrumbs + side menu */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 18px; font-size: 13.5px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.side { background: var(--surface); padding: 22px 18px; }
.side-inner { position: sticky; top: 16px; }
.side .area-name { display: flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.side h4 { margin: 18px 0 4px; }
.side a.svc { font-size: 14px; }
.side a.svc[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.main-col { background: var(--surface); padding: 40px; min-width: 0; }
@media (max-width: 860px) { .layout { grid-template-columns: minmax(0, 1fr); } .side { order: 2; } .main-col { padding: 26px 20px; } }

/* Footer */
.foot { margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.foot a { color: var(--text-2); }

/* Entrance motion: only after JS adds .anim, so nothing can get stuck hidden.
   The cell stays put (grid lines never show through); its content rises in. */
.anim [data-reveal] > * { opacity: 0; transform: translateY(8px); }
.anim [data-reveal].in > * { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: var(--d, 0ms); }
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
}

/* ================= Service pages (v2.1) ================= */
.page-title { font-size: clamp(36px, 4.6vw, 60px); font-weight: 500; }
.sample-flag { margin: 16px 0 0; display: inline-flex; gap: 8px; align-items: center; font: 500 11px/1.4 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: #7a5200; background: #fbefd5; border: 1px solid #ecd39a; padding: 6px 10px; border-radius: var(--radius); }
:root[data-theme="dark"] .sample-flag { color: #f1c770; background: #3a2c0e; border-color: #5a4415; }
.page-body { margin-top: 32px; display: flex; flex-direction: column; gap: 28px; }
.page-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; }
.page-foot a { display: inline-block; margin-right: 16px; font-size: 14px; color: var(--accent-text); text-decoration: none; }
.page-foot a:hover { text-decoration: underline; }
.page-foot .label { margin-bottom: 6px; }
.h4 { font-size: 17px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 12px; color: var(--text-2); max-width: 68ch; }

/* Key facts row */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--bg); padding: 16px 18px; }
.fact b { display: block; font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.35; }
.fact.hot b { color: var(--accent-text); }

/* Boxes */
.box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 22px 24px; }
.box.tint { background: var(--accent-soft); border-color: transparent; }
:root[data-theme="dark"] .box.tint { background: #1d2a25; }
.callout { border-left: 3px solid var(--accent); background: var(--bg); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; color: var(--text-2); }
.callout b { color: var(--text); }
.callout.warn { border-left-color: var(--door); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
.sticky { position: sticky; top: 16px; }
@media (max-width: 1000px) { .two, .tool-split { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; } }

/* Numbered steps (guides) */
.ladder { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.ladder > li { counter-increment: st; position: relative; padding: 0 0 22px 52px; }
.ladder > li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 500 12px var(--font-mono); }
.ladder > li::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.ladder > li:last-child::after { display: none; }
.ladder b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.ladder p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 64ch; }
.ladder .when { display: inline-block; margin-top: 8px; font: 500 11px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 6px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field legend { font-size: 14px; font-weight: 600; }
.field small { font-size: 12.5px; color: var(--text-3); }
.field input[type=text], .field input[type=email], .field input[type=date], .field input[type=number], .field input[type=search], .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: 500 15px var(--font-sans); padding: 10px 12px; min-height: 44px; transition: border-color var(--t-fast) ease; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; padding: 6px 0; }
.tick input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.tick small { display: block; color: var(--text-3); font-size: 12.5px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, transform 120ms ease-out; }
.seg button:active { transform: scale(.97); }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Letter preview */
.letter-wrap { display: flex; flex-direction: column; gap: 10px; }
.letter-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.letter-bar .btnrow { margin: 0; }
.letter-bar .btn { height: 40px; padding: 0 14px; font-size: 14px; }
.letter { background: #fffffe; color: #1c1c1c; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -30px rgba(0,0,0,.45); padding: 34px 36px; font: 400 14.5px/1.6 var(--font-sans); white-space: pre-wrap; overflow-wrap: anywhere; min-height: 420px; }
.letter mark { background: #fbefd5; color: #7a5200; border-radius: 2px; padding: 0 2px; }
.toast { font: 500 12px var(--font-mono); color: var(--accent-text); opacity: 0; transition: opacity 160ms ease-out; }
.toast.on { opacity: 1; }

/* Timeline (deadlines) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline .d { font: 500 12px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.timeline .d b { display: block; font: 500 20px/1.2 var(--font-sans); letter-spacing: -0.02em; text-transform: none; color: var(--text); }
.timeline li.key .d b { color: var(--accent-text); }
.timeline p { margin: 2px 0 0; font-size: 14.5px; color: var(--text-2); }
.timeline strong { font-weight: 600; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.meter { height: 10px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 2px; transition: width 400ms var(--ease-out); }
.meter.over i { background: var(--door); }
.meter-axis { display: flex; justify-content: space-between; font: 500 11px var(--font-mono); color: var(--text-3); margin-top: 6px; }

/* Data tables and pills */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.toolbar .field { flex: 1 1 240px; }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--bg); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:first-child td { border-top: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr { transition: background-color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .tbl tbody tr:hover { background: var(--surface); } }
.tbl .sub { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: #1d7a4f; border-color: #a9d8bf; background: #e8f5ee; }
.pill.bad { color: #a8321f; border-color: #eab7ab; background: #fbeeea; }
.pill.soon { color: #7a5200; border-color: #ecd39a; background: #fbefd5; }
.pill.neutral::before { background: var(--text-3); }
:root[data-theme="dark"] .pill.ok { color: #6fd6a3; background: #16271f; border-color: #285a41; }
:root[data-theme="dark"] .pill.bad { color: #ff8a75; background: #2c1915; border-color: #5c2b22; }
:root[data-theme="dark"] .pill.soon { color: #f1c770; background: #2e2410; border-color: #5a4415; }
.empty-note { padding: 28px; text-align: center; color: var(--text-3); font-size: 14px; }

/* Bars */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: 190px minmax(0, 1fr) 110px; gap: 12px; align-items: center; font-size: 14px; }
.bar .track { height: 14px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.bar .track i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 2px; transition: width 500ms var(--ease-out); }
.bar.alt .track i { background: #9c7a3c; }
.bar.mute .track i { background: var(--text-3); }
.bar .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 600px) { .bar { grid-template-columns: 1fr 90px; } .bar .track { grid-column: 1 / -1; order: 3; } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--accent); }
.legend i.alt { background: #9c7a3c; }
.stack { display: flex; height: 16px; border-radius: 2px; overflow: hidden; background: var(--line); }
.stack i { display: block; height: 100%; }

/* Result card (routers) */
.result { border: 1px solid var(--accent); border-radius: var(--radius); background: var(--bg); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.result .h3 { font-size: 24px; }
.result .btnrow { margin-top: 4px; }

/* Expandable list items (orders, bills) */
.items { display: flex; flex-direction: column; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.item > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; }
.item > summary::-webkit-details-marker { display: none; }
.item .t { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.item .m { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 11.5px var(--font-mono); letter-spacing: .03em; color: var(--text-3); text-transform: uppercase; }
.item .r { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.item[open] > summary { border-bottom: 1px solid var(--line); }
.item .body { padding: 16px 18px 18px; font-size: 15px; color: var(--text-2); }
.item .body p { margin: 0 0 10px; }
@media (hover: hover) and (pointer: fine) { .item > summary:hover { background: var(--surface); } }

/* Member cards */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.member { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 600; flex: none; }
.member b { display: block; font-size: 15.5px; }
.member span { display: block; font-size: 13px; color: var(--text-3); }
.member a { font-size: 13px; color: var(--accent-text); }
.vote-yea { color: #1d7a4f; font-weight: 600; } .vote-nay { color: #a8321f; font-weight: 600; } .vote-nv { color: var(--text-3); }
:root[data-theme="dark"] .vote-yea { color: #6fd6a3; } :root[data-theme="dark"] .vote-nay { color: #ff8a75; }

/* Console band (Watch government) */
.console { background: #18181b; color: #f7f7f5; border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.console .label { color: #a1a1a6; margin: 0; }
.console .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #303036; border: 1px solid #303036; border-radius: var(--radius); overflow: hidden; }
.console .stats div { background: #222226; padding: 14px 16px; }
.console .stats b { display: block; font-size: 34px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.console .stats span { font-size: 12.5px; color: #a1a1a6; }
.console .live { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #6fd6a3; }
.console .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #46c989; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 700px) { .console .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Print: only the letter */
@media print {
  body * { visibility: hidden; }
  .letter, .letter * { visibility: visible; }
  .letter { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; padding: 0; }
}

/* ================= v2.2 refinements ================= */
/* Header: brand, area menus, About, then search + theme */
.top .wrap { gap: 20px; }
.nav { margin-left: auto; }
.nav .area.plain { padding: 12px 11px; }
.tools { display: flex; gap: 6px; align-items: center; }
.iconbtn { width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; text-decoration: none; font: 500 14px var(--font-mono); transition: background-color var(--t-fast) ease, transform 120ms ease-out; }
.iconbtn .ico { width: 17px; height: 17px; }
.iconbtn:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .iconbtn:hover { background: var(--surface); } }
.theme { margin-left: 0; width: 38px; height: 38px; }
@media (max-width: 860px) {
  .tools { position: absolute; right: 16px; top: 13px; }
  .theme { position: static; }
  .nav { margin-left: -10px; }
}

/* Logo: thin vault ring; the round door is drawn in 3D and rests swung open (edge-on, so it reads as a slim bar). */
.logo { position: relative; width: 37px; height: 26px; flex: none; perspective: 80px; color: var(--accent-text); }
.logo .ring { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border: 2.4px solid currentColor; border-radius: 50%; }
.logo .door { position: absolute; left: 10px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--door); transform-origin: 100% 50%; transform: rotateY(-74deg); }
.logo.swing .door { animation: uv-swing 1200ms cubic-bezier(0.65, 0, 0.35, 1) 300ms both; }
@keyframes uv-swing { from { transform: rotateY(0deg); } to { transform: rotateY(-74deg); } }
@keyframes uv-wobble { 0%, 100% { transform: rotateY(-74deg); } 45% { transform: rotateY(-38deg); } }
@media (hover: hover) and (pointer: fine) { .brand:hover .logo .door { animation: uv-wobble 700ms cubic-bezier(0.65, 0, 0.35, 1); } }
.brand:hover .door { transform: rotateY(-74deg); }

/* Kind marks: a colored chip with its own symbol (Tool = wrench, Guide = open book, Data = bars) */
.kc { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font: 600 11px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.kc svg, .kb svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.kc-tool { background: var(--accent); color: var(--on-accent); }
.kc-guide { background: #fbefd5; color: #7a5200; border-color: #ecd39a; }
.kc-data { background: #e3ecf5; color: #2c5476; border-color: #c3d5e8; }
:root[data-theme="dark"] .kc-guide { background: #33280f; color: #f1c770; border-color: #5a4415; }
:root[data-theme="dark"] .kc-data { background: #182634; color: #8fbbe3; border-color: #2c4560; }
.kb { width: 24px; height: 24px; border-radius: 6px; display: inline-grid; place-items: center; flex: none; padding: 0; border-width: 1px; }
.kb svg { width: 13px; height: 13px; }
.klegend { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.klegend > span { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; }
.klegend b { font-weight: 600; } .klegend em { font-style: normal; color: var(--text-3); font-size: 13px; }
/* Service rows: badge first, then the name, with a hairline between rows so each is its own target */
.svc { justify-content: flex-start; align-items: center; gap: 11px; padding: 8px 8px; }
.svc-n { line-height: 1.3; }
.mega-col .svc + .svc, .dir-body .svc + .svc, .side .svc + .svc, .topic .svc + .svc { box-shadow: 0 -1px 0 var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.side a.svc[aria-current="page"] { box-shadow: none; }
.mega-count { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px !important; }

/* Mint tints in light mode */
.box.tint, .finder-r.has { background: var(--mint-soft); }
:root[data-theme="dark"] .box.tint, :root[data-theme="dark"] .finder-r.has { background: var(--mint-soft); }
.atile { background: var(--mint-soft); }
.band { background: var(--mint-soft); border: 1px solid var(--mint-line); border-radius: 8px; padding: 6px 22px 22px; margin-top: 56px; }
.band .sec { padding-top: 26px; }
.card { border-radius: 6px; }
.card-top .kc { margin-top: 4px; }
.card .to { border-top: 1px solid var(--line); }
.promise div { display: flex; gap: 14px; align-items: flex-start; }
.promise .illo { --illo-size: 34px; margin-top: 2px; }

/* Finder options with drawings */
.opt.has-illo { align-items: center; gap: 14px; padding: 12px 14px; }
.opt.has-illo .illo { --illo-size: 30px; }
.fr-top { display: flex; justify-content: space-between; align-items: flex-start; }

/* Area home pages */
.area-hero { min-height: 400px; }
.area-hero .hero-main { justify-content: space-between; }
.ah-body { max-width: 62%; }
.area-hero .display { font-size: min(124px, 100cqi / 5.2); }
.ah-line { margin: 16px 0 0; font-size: 20px; line-height: 1.35; max-width: 34ch; }
.ah-art { position: absolute !important; right: 34px; bottom: 30px; z-index: 0 !important; }
.ah-art .illo { color: var(--on-field); }
.ah-art .illo .acc { stroke: var(--on-field); opacity: .65; }
.start-big { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--field-input); color: var(--on-grey); border: 1.5px solid var(--on-grey); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; transition: transform 120ms ease-out, background-color var(--t-fast) ease; }
.start-big b { display: block; font-size: 17px; font-weight: 600; }
.start-big em { display: block; font-style: normal; font-size: 13.5px; color: #4a4a48; margin-top: 2px; }
.start-big .illo { color: #1c1c1c; }
.start-big .arrow { transition: transform var(--t-fast) var(--ease-out); }
.start-big:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .start-big:hover { background: #fff; } .start-big:hover .arrow { transform: translateX(3px); } }
.jump { display: flex; flex-direction: column; }
.jump a { display: flex; justify-content: space-between; padding: 10px 2px; border-top: 1px solid rgba(0,0,0,.14); text-decoration: none; font-weight: 500; font-size: 15px; }
.jump a span { font: 500 12px var(--font-mono); opacity: .7; }
@media (hover: hover) and (pointer: fine) { .jump a:hover { text-decoration: underline; } }
.kcounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.kcount { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 6px; text-decoration: none; border: 1px solid transparent; transition: transform 120ms ease-out; }
.kcount:active { transform: scale(.98); }
.kcount-i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.22); }
.kc-guide .kcount-i, .kc-data .kcount-i { background: rgba(255,255,255,.6); }
.kcount-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kcount b { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.kcount > span:last-child { font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.kcount em { display: block; font: 400 13px var(--font-sans); text-transform: none; letter-spacing: 0; opacity: .8; margin-top: 3px; }
.kg-label { display: flex; align-items: center; gap: 10px; }
.kgroup .card { min-height: 0; }
.kgroup-tool .card { border-top: 3px solid var(--accent); }
.kgroup-guide .card { border-top: 3px solid #d9a63a; }
.kgroup-data .card { border-top: 3px solid #5b8bb8; }
.card .idx { font: 500 11px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); text-align: right; max-width: 14ch; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 18px 12px; scroll-margin-top: 20px; }
@media (max-width: 900px) {
  .area-hero { min-height: 0; }
  .ah-body { max-width: none; }
  .area-hero .display { font-size: min(84px, 100cqi / 5.2); }
  .ah-line { font-size: 17px; }
  .ah-art { right: 16px; bottom: 14px; opacity: .35; }
  .ah-art .illo { --illo-size: 110px !important; }
}

/* Service page header */
.ph-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.ph-label { display: flex; align-items: center; gap: 10px; }
.ph-art { flex: none; width: 104px; height: 104px; border-radius: 50%; background: var(--mint-soft); display: grid; place-items: center; }
.soon { margin-top: 28px; border: 1px dashed var(--line-strong); border-radius: 6px; padding: 22px 24px; }
@media (max-width: 600px) { .ph-art { width: 72px; height: 72px; } .ph-art .illo { --illo-size: 52px !important; } }

/* Search dropdown + results page */
.results li.r-none { padding: 12px 16px; color: var(--text-3); font-size: 14px; }
.results li.r-all a { background: var(--mint-soft); font-weight: 600; color: var(--accent-text); }
.results a { align-items: center; justify-content: flex-start; }
.results .r-n { flex: 1; }
.s-hero { margin-top: 24px; background: var(--field); color: var(--on-field); border-radius: 6px; padding: 30px 32px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.s-hero h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 400; letter-spacing: -0.035em; margin: 0 0 16px; }
.s-hero .search input { background: var(--field-input); color: var(--on-grey); border-color: var(--on-field); }
.s-hero .illo { color: var(--on-field); }
.s-hero .illo .acc { stroke: var(--on-field); }
@media (max-width: 700px) { .s-hero { grid-template-columns: 1fr; padding: 22px 20px; } .s-hero > .illo { display: none; } }
.s-count { margin: 22px 0 12px; }
.s-top { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 26px 28px; border: 1.5px solid var(--accent); border-radius: 8px; background: var(--surface); text-decoration: none; transition: transform 120ms ease-out; }
.s-top:active { transform: scale(.99); }
.s-top-art { width: 140px; height: 140px; border-radius: 50%; background: var(--mint-soft); display: grid; place-items: center; }
.s-top-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.s-top-body .lead { margin: 0; }
@media (max-width: 600px) { .s-top { grid-template-columns: 1fr; padding: 20px; } .s-top-art { width: 90px; height: 90px; } .s-top-art .illo { --illo-size: 60px !important; } }
.s-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.s-list a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; transition: border-color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .s-list a:hover { border-color: var(--text-2); } .s-list a:hover .arrow { transform: translateX(3px); color: var(--accent-text); } }
.s-list .arrow { color: var(--text-3); transition: transform var(--t-fast) var(--ease-out); }
.s-l-body b { display: block; font-weight: 600; font-size: 16px; }
.s-l-body em { display: block; font-style: normal; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.s-l-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
@media (max-width: 600px) { .s-list a { grid-template-columns: auto 1fr; } .s-l-meta { grid-column: 2; flex-direction: row; align-items: center; } .s-list .arrow { display: none; } }
.s-empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.s-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.s-areas a { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.s-areas b { font-weight: 600; } .s-areas span { font-size: 13px; color: var(--text-3); }

/* Footer */
.foot { margin-top: 80px; background: var(--surface); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 36px; }
.foot-brand .brand { font-size: 20px; }
.foot-brand p { margin: 10px 0 0; font-size: 15px; color: var(--text-2); }
.foot-cols { display: flex; flex-direction: column; gap: 8px; }
.foot-cols a { color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.foot-cols a:hover { color: var(--text); text-decoration: underline; }
.foot-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* About page */
.about-hero .hero-main { min-height: 360px; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 20px; }
.about-card .h3 { font-size: 22px; }
.about-card p { margin: 0; color: var(--text-2); }
.about-card .checks li { font-size: 15px; }
.isnt { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .isnt { grid-template-columns: 1fr; } }
.isnt > div { border-radius: 8px; padding: 22px 24px; }
.isnt .yes { background: var(--mint-soft); border: 1px solid var(--mint-line); }
.isnt .no { background: var(--surface); border: 1px dashed var(--line-strong); }
.isnt ul { margin: 10px 0 0; padding: 0; list-style: none; }
.isnt li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--line); font-size: 15px; }
.isnt li:first-child { border-top: 0; }
.isnt .yes li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent-text); font-weight: 700; }
.isnt .no li::before { content: "✕"; position: absolute; left: 4px; color: var(--text-3); }

.hero-areas { display: flex; flex-direction: column; }
.hero-areas a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 9px 2px; border-top: 1px solid rgba(0,0,0,.13); text-decoration: none; font-weight: 500; font-size: 16px; }
.hero-areas a:last-child { border-bottom: 1px solid rgba(0,0,0,.13); }
.hero-areas .illo { color: var(--on-grey); }
.hero-areas .illo .acc { stroke: #1f6b4c; }
.hero-areas .arrow { opacity: .5; transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .hero-areas a:hover .arrow { opacity: 1; transform: translateX(3px); } }
@media (max-width: 900px) { .hero-areas { display: none; } }
/* Icon-only badges need stronger fills than the labelled chips to read at 24px */
.kb { border-style: solid; }
.kb.kc-guide { background: #f2d38a; color: #4f3500; border-color: #e0b75a; }
.kb.kc-data { background: #c6daee; color: #1b3f61; border-color: #9fbfe0; }
:root[data-theme="dark"] .kb.kc-guide { background: #5a4415; color: #ffd98a; border-color: #7a5c1c; }
:root[data-theme="dark"] .kb.kc-data { background: #22405e; color: #b5d6f5; border-color: #345b82; }
.card .idx { max-width: 18ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.no-draw .illo [pathLength] { animation: none; stroke-dashoffset: 0; }
.no-draw .illo .dot, .no-draw .illo .fill { animation: none; opacity: 1; }

/* Author display rules (flex, grid) would otherwise beat the hidden attribute */
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .anim .area-hero [data-reveal].in > .ah-art, .ah-art { opacity: 1; top: 44px; bottom: auto; right: 16px; }
  .ah-art .illo { --illo-size: 64px !important; }
  .ah-body { padding-right: 0; }
  .area-hero .display { padding-right: 76px; }
}

/* ================= v2.3 ================= */
/* Logo B4: open ring, angled gold door with a shaded side, and the gold "contents" revealed in the ring. */
.logo { width: 40px; height: 28px; overflow: visible; flex: none; perspective: none; }
.lg-ring { fill: none; stroke: var(--accent-text); stroke-width: 2.6; stroke-linecap: round; }
.lg-core, .lg-face, .lg-shut { fill: var(--door); }
.lg-side { fill: #a8720f; }
.lg-shut { opacity: 0; transform-box: fill-box; transform-origin: 100% 50%; }
.lg-door { transform-box: fill-box; transform-origin: 0% 50%; }
.lg-core { transform-box: fill-box; transform-origin: center; }
/* First visit: the closed door narrows toward its hinge, swings out the other side, and the contents appear. */
.logo.swing .lg-shut { animation: lg-shut 1100ms cubic-bezier(0.65, 0, 0.35, 1) 250ms both; }
.logo.swing .lg-door { animation: lg-door 1100ms cubic-bezier(0.65, 0, 0.35, 1) 250ms both; }
.logo.swing .lg-core { animation: lg-core 1100ms var(--ease-out) 250ms both; }
@keyframes lg-shut { 0% { opacity: 1; transform: scaleX(1); } 42% { opacity: 1; transform: scaleX(0.06); } 43%, 100% { opacity: 0; transform: scaleX(0); } }
@keyframes lg-door { 0%, 42% { opacity: 0; transform: scaleX(0); } 43% { opacity: 1; transform: scaleX(0.08); } 100% { opacity: 1; transform: scaleX(1); } }
@keyframes lg-core { 0%, 50% { opacity: 0; transform: scale(0.2); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lg-flap { 0%, 100% { transform: scaleX(1); } 45% { transform: scaleX(0.3); } }
@keyframes lg-glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@media (hover: hover) and (pointer: fine) {
  .brand:hover .lg-door { animation: lg-flap 700ms cubic-bezier(0.65, 0, 0.35, 1); }
  .brand:hover .lg-core { animation: lg-glow 700ms var(--ease-out); }
}
.foot-brand .logo { width: 34px; height: 24px; }
.counting { font-variant-numeric: tabular-nums; }

/* Each symbol's own hover motion (on the .mv group). Short and one-shot; gated to real hover. */
.illo-blink { --illo-move: m-blink; } .illo-shuffle { --illo-move: m-shuffle; } .illo-lift { --illo-move: m-lift; } .illo-bounce { --illo-move: m-bounce; }
.illo-flip { --illo-move: m-flip; } .illo-wave { --illo-move: m-wave; } .illo-open { --illo-move: m-open; } .illo-drop { --illo-move: m-drop; }
.illo-pop { --illo-move: m-pop; } .illo-write { --illo-move: m-write; } .illo-sway { --illo-move: m-sway; } .illo-grow { --illo-move: m-grow; }
.illo-turn { --illo-move: m-turn; } .illo-spin { --illo-move: m-spin; } .illo-scan { --illo-move: m-scan; } .illo-ring { --illo-move: m-ring; }
.illo-unlock { --illo-move: m-unlock; } .illo-tip { --illo-move: illo-tip; } .illo-pulse { --illo-move: illo-pulse; }
.illo-host:hover .illo .mv, .illo-host:focus-visible .illo .mv, .illo-host:active .illo .mv { animation: var(--illo-move, illo-rise) 620ms var(--ease-out); }
@media (hover: none) { .illo-host:hover .illo .mv { animation: none; } .illo-host:active .illo .mv { animation: var(--illo-move, illo-rise) 620ms var(--ease-out); } }
@keyframes m-blink { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(0.12); } }
@keyframes m-shuffle { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(3px); } 70% { transform: translateX(-1.5px); } }
@keyframes m-lift { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-3.5px); } }
@keyframes m-bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } 55% { transform: translateY(0); } 75% { transform: translateY(-2px); } }
@keyframes m-flip { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes m-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 55% { transform: rotate(8deg); } 80% { transform: rotate(-3deg); } }
@keyframes m-open { 0%, 100% { transform: scaleX(1); } 45% { transform: scaleX(0.25); } }
@keyframes m-drop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(5px); } }
@keyframes m-pop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.25); } }
@keyframes m-write { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-2px, 2px); } 50% { transform: translate(1.5px, -1px); } 75% { transform: translate(-1px, 1.5px); } }
@keyframes m-sway { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } }
@keyframes m-grow { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(1.18); } }
@keyframes m-turn { 0%, 100% { transform: scaleX(1); } 45% { transform: scaleX(-0.6); } }
@keyframes m-spin { to { transform: rotate(360deg); } }
@keyframes m-scan { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(3px, -2px); } 65% { transform: translate(-2px, 2px); } }
@keyframes m-ring { 0%, 100% { transform: rotate(0); } 15%, 45% { transform: rotate(-7deg); } 30%, 60% { transform: rotate(7deg); } 75% { transform: rotate(0); } }
@keyframes m-unlock { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-4px); } }
@media (max-width: 600px) {
  [data-list] > a { grid-template-columns: auto minmax(0, 1fr) !important; }
  [data-list] > a .kc { grid-column: 2; justify-self: start; white-space: normal; height: auto; padding: 4px 10px; display: inline-block; max-width: 100%; line-height: 1.4; }
}

/* ================= Tabbed sections ================= */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 4px 0 18px; }
.sec-title { font-weight: 500; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.035em; line-height: 1; margin: 0; display: flex; align-items: center; gap: 14px; }
.sec-head .small { max-width: 460px; text-align: right; }
@media (max-width: 760px) { .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; } .sec-head .small { text-align: left; } }
.sec-tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 22px; padding-top: 6px; }
.sec-tabs::-webkit-scrollbar { display: none; }
.sec-tabs a { flex: none; text-decoration: none; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 12px 14px; border-radius: 4px 4px 0 0; transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease; }
@media (hover: hover) and (pointer: fine) { .sec-tabs a:hover { color: var(--text); background: var(--surface); } }
.sec-tabs a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
#sec-view { display: flex; flex-direction: column; gap: 22px; min-height: 50vh; }
#sec-view > h2.h2 { margin-top: 8px; }
.rowlist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.rowlist > a, .rowlist > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; align-items: start; }
.rowlist > :first-child { border-top: 0; }
@media (hover: hover) and (pointer: fine) { .rowlist > a:hover { background: var(--bg); } }
.rowlist .t { font-weight: 600; font-size: 16px; line-height: 1.35; }
.rowlist .m { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 11.5px var(--font-mono); letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.rowlist .d { grid-column: 1; font-size: 14px; color: var(--text-2); margin: 0; }
.rowlist .r { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
@media (max-width: 600px) { .rowlist > a, .rowlist > div { grid-template-columns: minmax(0, 1fr); } .rowlist .r { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; } }
.tally { display: flex; height: 26px; border-radius: 4px; overflow: hidden; background: var(--line); }
.tally i { display: block; height: 100%; }
.tally .y { background: var(--accent); } .tally .n { background: #9c7a3c; } .tally .o { background: var(--line-strong); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.kv > div { background: var(--surface); padding: 14px 16px; }
.kv b { display: block; font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.kv span { font-size: 15px; }
.pos { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 4px; font: 600 11px var(--font-mono); }
.pos.Y { background: var(--accent); color: var(--on-accent); } .pos.N { background: #9c7a3c; color: #fff; } .pos.P, .pos.\- { background: var(--line); color: var(--text-2); }
.party { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); font: 600 10.5px var(--font-mono); color: var(--text-2); flex: none; }
.steps-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.steps-bar i { height: 8px; border-radius: 2px; background: var(--line); }
.steps-bar i.on { background: var(--accent); }
.steps-bar + .meter-axis span { flex: 1; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { flex: 1 1 180px; }
.filters .field.grow { flex: 3 1 280px; }
.backlink { font: 500 12px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); text-decoration: none; }
.backlink:hover { color: var(--text); }
.portal { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.portal a { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-decoration: none; transition: border-color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .portal a:hover { border-color: var(--text-2); } }
.portal b { font-size: 17px; font-weight: 600; } .portal span { font-size: 14px; color: var(--text-2); }
.rowlist .t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Service page tabs */
.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 4px; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { flex: none; border: 0; background: transparent; cursor: pointer; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 13px 14px; border-radius: 4px 4px 0 0; transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease; }
@media (hover: hover) and (pointer: fine) { .ptabs button:hover { color: var(--text); background: var(--bg); } }
.ptabs button[aria-selected="true"] { color: var(--text); background: var(--bg); box-shadow: inset 0 -2px 0 var(--accent); }
.ptab-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--line); font-size: 10.5px; color: var(--text-2); }
.tab-panel { display: flex; flex-direction: column; gap: 28px; }
.page-foot.as-panel { margin-top: 0; border-top: 0; padding-top: 0; flex-direction: column; align-items: flex-start; }
.page-foot.as-panel a { display: block; margin: 0 0 8px; font-size: 15px; }
.portal a .kc { align-self: flex-start; margin-top: 2px; }

.mega-title { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.mega-title .h3 { display: inline-flex; align-items: center; gap: 8px; }
.mega-title .arrow { color: var(--accent-text); transition: transform var(--t-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mega-title:hover .h3 { text-decoration: underline; text-underline-offset: 4px; } .mega-title:hover .arrow { transform: translateX(3px); } }
.nav .area[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }

/* ================= v2.7: monoline icons (style C) ================= */
.ico-tile { width: var(--t); height: var(--t); flex: none; display: inline-grid; place-items: center; border: 1.25px solid currentColor; border-radius: calc(var(--t) * 0.24); color: var(--text); background: transparent; }
.ico-tile .illo { width: 54% !important; height: 54% !important; stroke-width: 1.5; color: inherit; }
.ico-tile .illo .acc { stroke: currentColor; }
.ico-tile .illo .dot { display: none; }
.ico-tile .illo .mv { transform-box: view-box; }
.hero-main .ico-tile, .area-hero .ico-tile { color: var(--on-field); }
.ah-art .ico-tile { border-width: 2px; }
.start-big .ico-tile, .hero-areas .ico-tile { color: var(--on-grey); }

/* ================= v2.7: hierarchy, grouping by kind, tabs ================= */
.kword { font: 600 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.kgh { font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 12px 0 2px; padding-top: 8px; border-top: 1px dashed var(--line); }
.kgh:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.svc { padding: 7px 8px; }
.mega-topic, .dir-topic { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--text); padding: 4px 0 8px; margin-bottom: 4px; border-bottom: 1.5px solid var(--text); }
.mega-topic span { color: var(--accent-text); transition: transform var(--t-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mega-topic:hover span { transform: translateX(3px); } .mega-topic:hover, .dir-topic:hover { color: var(--accent-text); } }
.dir-topic { font-size: 14px; margin-top: 18px; }
.mega-count { color: var(--text-3); font-size: 13px; gap: 8px !important; }
.side-topic { border-top: 1px solid var(--line); }
.side-topic:first-of-type { margin-top: 10px; }
.side-topic > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 11px 4px; font-weight: 600; font-size: 14.5px; }
.side-topic > summary::-webkit-details-marker { display: none; }
.side-topic > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(-45deg); transition: transform 180ms var(--ease-out); margin-left: 8px; }
.side-topic[open] > summary::after { transform: rotate(45deg); }
.side-n { margin-left: auto; font: 500 11px var(--font-mono); color: var(--text-3); }
.side-topic[open] { padding-bottom: 10px; }
.side-overview { display: block; font-size: 13.5px; color: var(--accent-text); text-decoration: none; padding: 4px 8px 8px; }
.side-overview.cur { font-weight: 600; }
.side h4 { display: none; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.glance > div { background: var(--bg); padding: 14px 16px; }
.glance b { display: block; font: 500 10.5px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.glance span { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.topic-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.topic-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; transition: border-color var(--t-fast) ease, transform 80ms ease; }
.topic-card .h3 { font-size: 22px; font-weight: 500; }
.topic-card .meta { margin: 0; color: var(--text-2); font-size: 14.5px; }
.topic-card .arrow { color: var(--text-3); transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) ease; }
.tc-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.tc-list span { font-size: 12.5px; color: var(--text-2); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
@media (hover: hover) and (pointer: fine) { .topic-card:hover { border-color: var(--text-2); } .topic-card:hover .arrow { color: var(--accent-text); transform: translateX(3px); } }
.topic-card:active { transform: translateY(1px); }
.kgroup .card, .kgroup-tool .card, .kgroup-guide .card, .kgroup-data .card { border-top: 1px solid var(--line); }
.related { border-top: 1px solid var(--line); margin-top: 12px; }
.ptabs { margin-top: 4px; }
.portal a .kword { margin-top: auto; }

/* v2.9: checkbox groups and Spanish summaries */
.checkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.es-box summary { cursor: pointer; list-style: none; }
.es-box summary::-webkit-details-marker { display: none; }
.es-box summary::after { content: " ▾"; color: var(--text-3, var(--text-2)); }
.es-box[open] summary::after { content: " ▴"; }
.es-box { margin-bottom: 18px; }

.reveal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.reveal-list li { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.reveal-list .ry { font: 600 15px/1.2 "JetBrains Mono", ui-monospace, monospace; color: var(--accent-text); }
@media (max-width: 640px) { .reveal-list li { grid-template-columns: 1fr; gap: 6px; } }

/* v2.10: clearer page tabs */
.ptabs { position: sticky; top: 0; z-index: 5; background: var(--bg); }
.ptabs button { font-size: 13px; padding: 15px 16px; }
.ptabs .tab-n { display: inline-block; min-width: 20px; padding: 2px 6px; margin-left: 4px; border-radius: 99px; background: var(--chip, rgba(14,59,49,.08)); color: var(--accent-text); font-size: 11px; letter-spacing: 0; text-align: center; }
.tab-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tab-step-top { margin: 6px 0 18px; }
.tab-step-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.tab-step button { border: 1px solid var(--line); background: var(--surface, #fff); color: var(--text); border-radius: 8px; height: 40px; padding: 0 14px; font: 600 14px/1 inherit; cursor: pointer; transition: border-color 140ms ease, transform 140ms ease; }
.tab-step .ts-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
@media (hover: hover) and (pointer: fine) { .tab-step button:hover { border-color: var(--accent); } }
.tab-step button:active { transform: scale(.97); }
.tab-step .ts-pos { font: 500 12px/1 var(--font-mono); color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
.tab-step-top .ts-prev, .tab-step-top .ts-pos { opacity: .85; }
@media (max-width: 560px) { .tab-step .ts-pos { display: none; } .tab-step button { font-size: 13px; padding: 0 10px; } }

/* v2.10: route cards (style C scenes), ticker line, minor tiles */
:root { --tint: #d3eadf; --gold: #da9b22; }
[data-theme="dark"] { --tint: rgba(93,187,148,.16); }
.scene { width: 100%; height: auto; display: block; overflow: visible; color: var(--text); }
.scene .sc-tint > * { fill: var(--tint); }
.scene .sc-main *, .scene .sc-badge g * { fill: none; stroke: currentColor; stroke-width: .7; stroke-linecap: round; stroke-linejoin: round; }
.scene .sc-badge > circle { fill: var(--surface, #fff); stroke: var(--gold); stroke-width: 1.8; }
.scene .sc-badge g * { stroke-width: 1.6; }
.scene .sc-dot { fill: var(--gold); }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.route-card { display: flex; flex-direction: column; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color 160ms ease, transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms ease; }
@media (hover: hover) and (pointer: fine) { .route-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 28px -18px rgba(14,59,49,.45); } .route-card:hover .scene .sc-main { transform: translate(28px,18px) scale(2.5); } }
.scene .sc-main { transition: transform 300ms cubic-bezier(.2,.8,.2,1); }
.rc-main { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 12px; color: inherit; text-decoration: none; flex: 1; }
.rc-art { display: block; background: var(--bg); border-radius: 8px; padding: 10px 26px; margin-bottom: 6px; }
.rc-t { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rc-d { color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.rc-num { font: 500 12px/1.3 var(--font-mono); color: var(--text-3); letter-spacing: .02em; }
.rc-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 16px; }
.rc-links a { font-size: 13px; font-weight: 600; color: var(--accent-text); background: var(--chip, rgba(14,59,49,.07)); padding: 5px 10px; border-radius: 99px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .rc-links a:hover { background: var(--accent); color: var(--on-accent); } }
.ticker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font: 500 12.5px/1.4 var(--font-mono); letter-spacing: .03em; color: var(--text-3); margin: 0 0 16px; }
.ticker b { color: var(--text); font-weight: 600; }
.ticker a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line); }
@media (hover: hover) and (pointer: fine) { .ticker a:hover { color: var(--accent-text); border-bottom-color: var(--accent); } }
.ticker .tk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.ticker .tk-note { color: var(--text-3); opacity: .8; }
.minor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.minor { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); color: inherit; text-decoration: none; transition: border-color 140ms ease; }
.minor b { display: block; font-size: 15px; } .minor em { display: block; font-style: normal; font-size: 13px; color: var(--text-2); line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .minor:hover { border-color: var(--accent); } }
.sec-hub { margin: 4px 0 26px; display: flex; flex-direction: column; gap: 18px; }
.sec-hub[hidden] { display: none !important; }
@media (max-width: 900px) { .route-grid { grid-template-columns: 1fr; } .rc-art { padding: 8px 60px; } }
@media (max-width: 520px) { .rc-art { padding: 6px 24px; } }
@media (prefers-reduced-motion: reduce) { .route-card, .scene .sc-main { transition: none; } }
.rc-art .scene { max-height: 150px; width: auto; margin: 0 auto; }
@media (max-width: 900px) { .rc-art { padding: 8px; } .rc-art .scene { max-height: 120px; } }
