/* ============================================================= SELF-HOSTED WEBFONT (theme-runtime.js)
   Public Sans Variable (OFL-1.1, https://github.com/uswds/public-sans) - the one webfont
   theme-runtime.js's font resolver currently ships as a real self-hosted @font-face (matches
   apps/web's own curated "Public Sans" registry entry, theme/fonts.ts). Served from THIS
   generator's own asset path (go:embed'd woff2, generate.go) - never a font-CDN request
   (CSP/ADR-0004). Declared unconditionally here (cheap - the browser only fetches the woff2 if
   something actually applies "Public Sans Variable", which theme-runtime.js only does when a
   tenant's embed-config genuinely names Public Sans). font-display:swap avoids invisible text
   while the file downloads. */
@font-face{
  font-family:'Public Sans Variable';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('fonts/public-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Public Sans Variable';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('fonts/public-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ============================================================= TOKENS (tokens.json, light)
   Reused verbatim from docs/design/ordinance-library/mockup-ordinance.html - one design
   system, authored once by Sue, emitted server-side by the generator (architecture §4.1). */
:root{
  --paper:#FBFAF7; --surface:#FFFFFF; --surface-2:#F3F2EC;
  --border:#E3E1D8; --border-strong:#C9C7BB;
  --ink:#1A1A17; --ink-2:#4A4A42; --ink-3:#6E6E63; --ink-invert:#FBFAF7;
  --accent:#2F6B4F; --accent-hover:#265A42; --accent-active:#1E4A36;
  --accent-weak:#E7F0EA; --accent-contrast:#FBFAF7;
  --success-fg:#1E5A3C; --success-bg:#E1F0E7;
  --warning-fg:#7A4B10; --warning-bg:#FBEFD9;
  --danger-fg:#8A2F2F; --danger-bg:#F8E4E4; --danger-border:#D98B8B;
  --info-fg:#1C4E80; --info-bg:#E4EEF8;
  --focus:#2F6B4F; --focus-offset:#FBFAF7;
  --shadow-sm:0 1px 2px rgba(26,26,23,.06);
  --shadow-md:0 2px 8px rgba(26,26,23,.08),0 1px 2px rgba(26,26,23,.06);
  --shadow-lg:0 8px 28px rgba(26,26,23,.12),0 2px 6px rgba(26,26,23,.08);
  --font-display:'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;
  --font-body:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --font-mono:ui-monospace,'SF Mono','Cascadia Code','Roboto Mono',Menlo,Consolas,monospace;
  --r-sm:6px; --r-md:8px; --r-lg:12px; --r-pill:999px; --ctl:48px; --ctl-sm:40px;
  --ease:cubic-bezier(.2,0,0,1);
}
[data-theme="dark"]{
  --paper:#14150F; --surface:#1D1E17; --surface-2:#26271F;
  --border:#34362B; --border-strong:#474A3B;
  --ink:#F2F1E9; --ink-2:#C3C3B7; --ink-3:#93938A; --ink-invert:#14150F;
  --accent:#5CB98C; --accent-hover:#74C79E; --accent-active:#8FD5B5;
  --accent-weak:#16281F; --accent-contrast:#0F1712;
  --success-fg:#7FD6A6; --success-bg:#123322;
  --warning-fg:#E7B871; --warning-bg:#3A2A0F;
  --danger-fg:#EC9A9A; --danger-bg:#3A1717; --danger-border:#7A3232;
  --info-fg:#8FC2F0; --info-bg:#12283D;
  --focus:#5CB98C; --focus-offset:#14150F;
}
/* Linn Valley reskin: themeColor #1D4E6F (lake blue), server-derived ramp, contrast auto-picks white */
[data-tenant="linnvalley"]{
  --accent:#1D4E6F; --accent-hover:#193F5A; --accent-active:#143046;
  --accent-weak:#E4EDF2; --accent-contrast:#FBFAF7;
  --focus:#1D4E6F;
}
[data-tenant="linnvalley"][data-theme="dark"]{
  --accent:#6FA8C9; --accent-hover:#87B7D3; --accent-active:#9FC6DD;
  --accent-weak:#132732; --accent-contrast:#0F1712;
  --focus:#6FA8C9;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font-body);color:var(--ink);background:var(--paper);
  line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:var(--accent)}
h1,h2,h3,h4{font-family:var(--font-display);text-wrap:balance;margin:0}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:var(--r-sm)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
::selection{background:var(--accent-weak);color:var(--ink)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.skip-link{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--accent-contrast);
  padding:.6rem 1rem;border-radius:0 0 var(--r-md) 0;z-index:1000;font-weight:700;font-size:.85rem}
.skip-link:focus{left:0}

/* --- ?embed=1 chrome-stripped mode (apps/widget "inline"/"modal" code-action
   display modes iframe /code/?embed=1 into a foreign page). The <html>
   class is set by an inline <script> in <head> (toc.html.tmpl), before
   first paint, so there is no header/footer flash. Hides the outer site
   chrome only - the town wordmark header, the TownDesk module nav, the
   footer - NEVER removes them from the DOM (content stays in the served
   HTML per this module's crawlability rule; a resident with JS off simply
   sees the full chrome inside the iframe instead of a broken/blank one -
   a safe degrade, not a dead embed). The skip-link stays functional (its
   target, #main, is untouched) and every landmark/tab inside .v-main is
   fully unaffected. */
.td-embed .v-header,
.td-embed .v-appnav,
.td-embed .v-footer,
.td-embed .v-a11y{display:none}
/* !important: toc.html.tmpl's <main> carries an inline padding-top (shared
   with search.html.tmpl) that a plain stylesheet rule can't out-specificity
   - this is a deliberate, narrowly-scoped override for the one embed mode
   that needs the header's vertical space reclaimed, not a general pattern.
   Horizontal padding is also zeroed BY DEFAULT so the widget content sits
   flush with the host page's own content gutters instead of double-indenting
   (data-td-padding="flush", the default - apps/widget embed.ts). Scoped with
   :not(.td-embed-padded) so data-td-padding="normal" (?padding=normal,
   theme-runtime.js's applyPaddingParam) can restore the standard gutters via
   the more-specific rule right below, without fighting this one on
   specificity (same selector shape, later-declared .td-embed-padded .v-main
   would tie without the :not() here). */
.td-embed:not(.td-embed-padded) .v-main{padding-top:16px!important;padding-left:0!important;padding-right:0!important}
/* data-td-padding="normal": restore the viewer's standard .v-main horizontal
   gutters (still reclaiming the header's vertical space like the flush
   default above) - for a host page with no gutters of its own around the
   mount point, where flush-to-host would otherwise run content edge-to-edge. */
.td-embed.td-embed-padded .v-main{padding-top:16px!important}
/* THE auto-resize over-report fix: .viewer's `min-height:100vh` (below, in
   the base ruleset) is correct for the standalone page — it must fill at
   least the viewport — but inside an embed iframe it forces the iframe's
   reported content height to at least one full viewport regardless of how
   short the actual visible content (header/appnav/footer/a11y-link already
   hidden above) really is. That's the ~370px desktop / ~550px mobile dead
   gap below the Ask panel with topics=off: the iframe was being told to be
   viewport-tall, not content-tall. Zeroed here so the embed's real height IS
   its content height, which is what ordinance-ask.js's postMessage resize
   sender now measures and reports. */
.td-embed .viewer{min-height:0}
/* In an embed the viewer sits inside a host page — the whole widget canvas
   inherits the host's background (e.g. a white city site) instead of the cream
   product surfaces. The base (.viewer), the ask hero (.v-qhero) and the answer
   wrapper (.v-grounded) all go transparent; only the discrete answer cards
   (.v-answer = plain language, .v-official = official text) keep their boxes.
   --paper/--surface vars are untouched, so those card tints stay correct.
   (Standalone viewer keeps its cream canvas.) */
.td-embed body,
.td-embed .viewer,
.td-embed .v-qhero,
.td-embed .v-grounded{background:transparent}
.td-embed .v-grounded{border-bottom:0}
/* The sticky browse rail's `top` offset (below, .v-toc.rail) is tuned to
   clear the standalone page's sticky .v-header (65px tall). That header is
   display:none in embed mode (above), so the rail should stick to the very
   top of the iframe instead of leaving a 65px dead gap above it. */
.td-embed .v-toc.rail{top:0;max-height:100vh}

/* --- SECTION pages only, in embed mode (rule #3 of the lean-chrome ask):
   .td-embed-lean-section is added by theme-runtime.js alongside .td-embed,
   gated on data-page="section" (section.html.tmpl's <html> tag) - never on
   the landing/TOC/ask-entry page, whose question-first Ask hero (.v-qhero,
   with the 👍/👎 rating flow) stays exactly as prominent as it is today.
   Demotes the big "Search the code of ordinances" .v-searchbar block down
   to a compact single-line bar so the actual ordinance text (the resident's
   reason for being on this page) leads instead of sitting below a hero -
   the resident's exact complaint this mode exists to fix. CSS-only (no
   markup removed - the label text stays in the DOM for a screen reader,
   just visually condensed/hidden per WCAG 2.1 AA "content available to
   assistive tech" - the <label for="q"> the input already carries stays the
   accessible name regardless). */
.td-embed-lean-section .v-searchbar{padding:8px 20px;background:transparent;border-bottom:1px solid var(--border)}
.td-embed-lean-section .v-searchbar-inner{max-width:100%}
.td-embed-lean-section .v-searchbar-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.td-embed-lean-section .v-searchbar input{font-size:.85rem;padding:8px 12px 8px 38px;min-height:var(--ctl-sm);
  border-width:1px;border-color:var(--border-strong)}
.td-embed-lean-section .v-searchbar svg{width:15px;height:15px;left:12px}

.viewer{font-family:var(--font-body);color:var(--ink);background:var(--paper);min-height:100vh}
.v-header{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--border);
  background:var(--surface);position:sticky;top:0;z-index:20}
.v-logo{width:32px;height:32px;border-radius:7px;background:var(--accent);color:var(--accent-contrast);
  display:grid;place-items:center;font-family:var(--font-display);font-weight:700;font-size:1rem;flex:none}
.v-town{font-family:var(--font-display);font-weight:600;font-size:1rem;line-height:1.2}
.v-town small{display:block;font-family:var(--font-body);font-weight:400;font-size:.68rem;color:var(--ink-3)}
.v-header .sp{flex:1}
.v-modetoggle{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;color:var(--ink-2)}
.v-modetoggle button{border:1px solid var(--border-strong);background:var(--surface);color:var(--ink);
  border-radius:var(--r-sm);padding:6px 9px;font-size:.72rem;font-weight:600;cursor:pointer;min-height:32px}
.v-modetoggle button[aria-pressed="true"]{background:var(--accent);color:var(--accent-contrast);border-color:transparent}

/* --- native-only: full app top nav with module links --- */
.v-appnav{display:flex;gap:2px;padding:0 20px;background:var(--surface);border-bottom:1px solid var(--border);
  overflow-x:auto}
.v-appnav a{padding:10px 12px;font-size:.82rem;font-weight:600;color:var(--ink-2);text-decoration:none;
  border-bottom:2px solid transparent;white-space:nowrap}
.v-appnav a:hover{color:var(--ink)}
.v-appnav a.on{color:var(--accent);border-bottom-color:var(--accent)}

/* --- native + question-first only: Option 1 "Tabbed" Ask-vs-Browse landing
   (spec §4b, Lister's pick 2026-08-18). Standard WAI-ARIA tabs pattern —
   [role="tab"]/[role="tabpanel"], no custom-widget ARIA reinvention (spec
   §5's "no custom-widget ARIA" principle). Both panels are ALWAYS in the
   served HTML (spec §4b's load-bearing crawlability constraint); the tab
   only toggles [hidden] via ordinance-ask.js — never a fetch/inject. --- */
.v-tablist{display:flex;gap:4px;border-bottom:1px solid var(--border);margin:18px 0 0}
[role="tab"],.v-navtab{border:0;background:none;font:inherit;padding:11px 16px;font-size:.88rem;font-weight:700;
  color:var(--ink-3);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;
  display:flex;align-items:center;gap:7px}
[role="tab"]:hover,.v-navtab:hover{color:var(--ink)}
[role="tab"][aria-selected="true"],.v-navtab.v-navtab-active{color:var(--accent);border-bottom-color:var(--accent)}
/* .v-main already supplies the outer page padding, same as before the tab
   wrapper was introduced — .v-tabpanel adds no padding of its own so
   .v-qhero/.v-grounded/.v-toc sit exactly where they did previously. */
.v-tabpanel{padding:18px 0 0}
.v-tabpanel[hidden]{display:none}

/* --- native + question-first only: section-page "Ask a question | Browse
   the full code" NAV (chrome-consistency fix, town feedback 2026-08-20).
   .v-navtab is plain <a> page-nav, not [role="tab"] (a section page is a
   separate static URL, never an in-place panel switch) - it reuses the
   .v-tablist container + the same padding/weight/underline rules as
   [role="tab"] above (shared selectors) purely for visual parity; a link
   never gets role="tab"/role="tablist" semantics. .v-navtab-active plays
   the same role aria-selected="true" plays on the landing (paired with
   aria-current="page" in the markup, the correct static-link equivalent). */
.v-navtab{text-decoration:none}
.v-navtablist{margin:18px 0 20px}

/* --- native-only: question-first hero (Nice tier, gated — ledger §1.1) --- */
.v-qhero{padding:30px 24px 26px;background:linear-gradient(180deg,var(--accent-weak),var(--surface) 130%);
  border-bottom:1px solid var(--border);text-align:center}
.v-qhero-kicker{font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);
  font-weight:700;margin:0 0 8px}
.v-qhero h2{font-size:1.35rem;line-height:1.25;margin:0 0 6px;letter-spacing:-.01em}
.v-qhero p{margin:0 auto 18px;color:var(--ink-2);font-size:.9rem;max-width:52ch}
.v-qhero form{position:relative;max-width:560px;margin:0 auto}
.v-qhero input{width:100%;font:inherit;font-size:1.02rem;color:var(--ink);background:var(--surface);
  border:2px solid var(--border-strong);border-radius:var(--r-pill);padding:15px 20px 15px 48px;
  min-height:52px;box-shadow:var(--shadow-sm)}
.v-qhero input:focus{outline:2px solid var(--focus);outline-offset:2px;border-color:var(--accent)}
.v-qhero input::placeholder{color:var(--ink-3)}
.v-qhero form svg{position:absolute;left:18px;top:50%;transform:translateY(-50%);color:var(--accent);pointer-events:none}
.v-qhero-ask{position:absolute;right:6px;top:6px;bottom:6px;background:var(--accent);color:var(--accent-contrast);
  border:0;border-radius:var(--r-pill);padding:0 18px;font-weight:700;font-size:.85rem;cursor:pointer}
.v-qhero-ask:hover{background:var(--accent-hover)}
.v-qhero-ask[aria-busy="true"]{opacity:.75;cursor:progress}

/* ?tiles=off / apps/widget data-td-topics="off" - before-paint hide. The
   <html> class (td-tiles-off) is set synchronously in <head> by
   theme-runtime.js's param-persistence IIFE (from the URL OR its
   sessionStorage fallback, so this also covers the generated internal nav
   links, which carry no query string), BEFORE .v-tiles exists in the DOM -
   so this CSS rule is what actually prevents the flash-then-remove a
   DOMContentLoaded-time removeChild alone would cause; the JS removal
   (applyTilesParam) still runs afterward as belt-and-suspenders so the node
   isn't left inert in the tree. */
.td-tiles-off .v-tiles{display:none}

.v-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;max-width:640px;
  margin:20px auto 0}
.v-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 8px;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);color:var(--ink);
  text-decoration:none;font-size:.8rem;font-weight:600;cursor:pointer;font-family:inherit}
.v-tile:hover{border-color:var(--accent);background:var(--accent-weak);color:var(--accent)}
.v-tile .ic{font-size:1.35rem;line-height:1}
.v-tile[aria-current="true"]{border-color:var(--accent);color:var(--accent);background:var(--accent-weak)}

/* --- grounded-result: plain-language answer ABOVE official text, always cited --- */
.v-grounded{padding:20px 24px;background:var(--surface-2);border-bottom:1px solid var(--border)}
.v-grounded-inner{max-width:640px;margin:0 auto}
.v-grounded-q{font-size:.78rem;color:var(--ink-3);margin:0 0 10px}
.v-grounded-q b{color:var(--ink-2)}
.v-answer{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);
  padding:16px 18px;margin:0 0 10px}
.v-answer-label{display:flex;align-items:center;gap:6px;font-size:.7rem;letter-spacing:.05em;
  text-transform:uppercase;color:var(--ink-3);font-weight:700;margin:0 0 8px}
.v-answer p{margin:0;font-size:.94rem;color:var(--ink);line-height:1.6}
.v-official{background:var(--accent-weak);border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);
  border-radius:var(--r-md);padding:14px 18px;margin:0 0 10px}
.v-official+.v-official{margin-top:10px}
.v-official-label{display:flex;align-items:center;gap:6px;font-size:.7rem;letter-spacing:.05em;
  text-transform:uppercase;color:var(--accent);font-weight:700;margin:0 0 8px}
.v-official a.gotosection{font-family:var(--font-mono);font-size:.85rem;font-weight:700;color:var(--ink);
  text-decoration:none;display:inline-flex;align-items:center;gap:5px}
.v-official a.gotosection:hover{color:var(--accent);text-decoration:underline}
.v-official p{margin:6px 0 0;font-size:.86rem;color:var(--ink-2);line-height:1.55}
.v-official-text{margin:10px 0 0;padding:10px 12px;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-sm);font-size:.85rem;color:var(--ink-2);line-height:1.6;max-height:220px;overflow:auto}
.v-disclaimer{display:flex;align-items:flex-start;gap:7px;font-size:.76rem;color:var(--ink-3);
  padding:2px 2px 0}
.v-disclaimer svg{flex:none;margin-top:1px;color:var(--ink-3)}

/* --- "Was this helpful?" rating control (rendered under every answer,
   optimistic per loading-feedback.md - swaps to the "Thanks" confirmation
   immediately on click, no network wait, silent on error). --- */
.v-rating{display:flex;align-items:center;gap:10px;margin:14px 2px 0;font-size:.8rem;color:var(--ink-3)}
.v-rating-label{font-weight:600;color:var(--ink-2)}
.v-rating-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  border:1px solid var(--border-strong);background:var(--surface);color:var(--ink-2);border-radius:var(--r-md);
  cursor:pointer;font-size:1rem;line-height:1;padding:0}
.v-rating-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-weak)}
.v-rating-thanks{font-size:.8rem;color:var(--ink-2);font-weight:600}

/* --- "thinking" state: shown in #groundedResult while the ask/topic fetch is
   in flight (the real backend call is a ~2.5-3s Claude round-trip - a dead
   wait reads as broken). Mirrors apps/web's Skeleton/SkeletonRegion idiom
   (kit.css ".td-skel"/"@keyframes td-shimmer") for product-wide consistency:
   a shimmering muted block, decorative (aria-hidden), wrapped in a
   role="status" aria-busy region with ONE stable SR-announced label - the
   staged status text below rotates VISUALLY only, never re-announced per
   stage (loading-feedback.md: don't spam aria-live). Deliberate exception to
   "no per-screen spinners" per Sue's staff-publish-step precedent - a
   multi-second AI op earns real progress feedback. --- */
.v-thinking{padding:2px 2px 0}
.v-thinking-status{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--ink-2);
  font-weight:600;margin:0 0 12px}
.v-thinking-dots{display:inline-flex;gap:3px;flex:none}
.v-thinking-dots span{width:5px;height:5px;border-radius:50%;background:var(--accent);
  animation:v-thinking-pulse 1.1s ease-in-out infinite}
.v-thinking-dots span:nth-child(2){animation-delay:.18s}
.v-thinking-dots span:nth-child(3){animation-delay:.36s}
@keyframes v-thinking-pulse{0%,80%,100%{opacity:.25;transform:scale(.85)}40%{opacity:1;transform:scale(1)}}
.v-thinking-skel{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);
  padding:16px 18px;margin:0 0 10px}
.v-skel{display:block;position:relative;overflow:hidden;height:.9rem;background:var(--surface-2);
  border-radius:var(--r-sm);margin:0 0 8px}
.v-skel:last-child{margin-bottom:0}
.v-skel--60{width:60%}
.v-skel--85{width:85%}
.v-skel--40{width:40%}
.v-skel::after{content:"";position:absolute;inset:0;transform:translateX(-100%);
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.28) 50%,transparent 100%);
  animation:v-shimmer 1.4s ease-in-out infinite}
[data-theme="dark"] .v-skel::after{background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.08) 50%,transparent 100%)}
@keyframes v-shimmer{100%{transform:translateX(100%)}}
.v-thinking-official{background:var(--accent-weak);border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);
  border-radius:var(--r-md);padding:14px 18px}
/* Reduced motion (WCAG 2.3.3-adjacent, product-wide convention): drop the
   shimmer sheen AND the dot pulse - the skeleton bars stay as a calm static
   muted block, the status text still advances (text change isn't motion),
   but a plain "Thinking…" is available as the always-safe fallback label. */
@media (prefers-reduced-motion:reduce){
  .v-skel::after{display:none}
  .v-thinking-dots span{animation:none;opacity:.6}
}

/* --- demoted TOC: collapsed "Browse the full code" fallback, native shape only --- */
.v-tocfallback{border-top:1px solid var(--border)}
.v-tocfallback>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;
  padding:14px 24px;font-size:.86rem;font-weight:700;color:var(--ink-2);background:var(--surface)}
.v-tocfallback>summary::-webkit-details-marker{display:none}
.v-tocfallback>summary:hover{color:var(--ink);background:var(--surface-2)}
.v-tocfallback>summary::before{content:"▸";color:var(--ink-3);transition:transform .15s var(--ease)}
.v-tocfallback[open]>summary::before{transform:rotate(90deg)}
.v-tocfallback>summary .n{font-weight:400;color:var(--ink-3);margin-left:2px}

.v-searchbar{padding:16px 20px;background:var(--accent-weak);border-bottom:1px solid var(--border)}
.v-searchbar-inner{display:flex;flex-direction:column;gap:6px;max-width:640px}
.v-searchbar-label{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);
  font-weight:700;display:flex;align-items:center;gap:6px}
.v-searchbar form{position:relative}
.v-searchbar input{width:100%;font:inherit;font-size:1rem;color:var(--ink);background:var(--surface);
  border:2px solid var(--border-strong);border-radius:var(--r-md);padding:12px 16px 12px 44px;min-height:var(--ctl)}
.v-searchbar input:focus{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--accent)}
.v-searchbar input::placeholder{color:var(--ink-3)}
.v-searchbar svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--ink-3);pointer-events:none}
.v-searchbar .v-search-results{margin-top:12px;max-width:640px}

.v-body{display:grid;grid-template-columns:240px 1fr;gap:0;align-items:start}
@media (max-width:640px){.v-body{grid-template-columns:1fr}}

.v-toc{border-right:1px solid var(--border);padding:16px 12px;background:var(--surface)}
.v-toc.rail{position:sticky;top:65px;max-height:calc(100vh - 65px);overflow:auto}
@media (max-width:640px){.v-toc.rail{position:static;border-right:0;border-bottom:1px solid var(--border);max-height:none}}
.v-toc h2{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);
  font-family:var(--font-body);font-weight:700;margin:0 0 10px;padding:0 6px}
.v-toc ul{list-style:none;margin:0;padding:0}
.v-toc li{margin:0}
.v-toc details{margin-bottom:1px}
.v-toc summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;padding:7px 6px;
  border-radius:var(--r-sm);font-size:.85rem;font-weight:600;color:var(--ink)}
.v-toc summary::-webkit-details-marker{display:none}
.v-toc summary:hover{background:var(--surface-2)}
.v-toc summary::before{content:"";width:0;height:0;border-left:5px solid var(--ink-3);border-top:4px solid transparent;
  border-bottom:4px solid transparent;transition:transform .15s var(--ease);flex:none}
.v-toc details[open]>summary::before{transform:rotate(90deg)}
.v-toc .sub{padding-left:14px;border-left:1px solid var(--border);margin-left:10px}
.v-toc .sub a{display:block;padding:6px 8px;border-radius:var(--r-sm);font-size:.82rem;color:var(--ink-2);
  text-decoration:none}
.v-toc .sub a:hover{background:var(--surface-2);color:var(--ink)}
.v-toc .sub a[aria-current="page"]{background:var(--accent-weak);color:var(--accent);font-weight:700}
.v-toc .sub a .num{font-family:var(--font-mono);font-size:.72rem;color:var(--ink-3);margin-right:6px}
.v-toc .sub a[aria-current="page"] .num{color:var(--accent)}

.v-main{padding:22px 26px 60px;max-width:74ch}
@media (max-width:640px){.v-main{padding:18px 16px 50px}}
.v-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.78rem;color:var(--ink-3);margin:0 0 16px}
.v-crumb a{color:var(--ink-3);text-decoration:none}
.v-crumb a:hover{color:var(--accent);text-decoration:underline}
.v-crumb .sep{color:var(--border-strong)}
.v-crumb .here{color:var(--ink-2);font-weight:600}

.v-secnum{font-family:var(--font-mono);font-size:.8rem;color:var(--accent);font-weight:600;
  letter-spacing:.02em;margin:0 0 4px}
.v-h1{font-size:1.55rem;line-height:1.25;margin:0 0 10px;letter-spacing:-.01em}
.v-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:.78rem;color:var(--ink-3);margin:0 0 6px}
.v-meta b{color:var(--ink-2);font-weight:600}

.v-permalink{display:inline-flex;align-items:center;gap:7px;font-family:var(--font-mono);font-size:.76rem;
  color:var(--ink-2);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-pill);
  padding:5px 6px 5px 12px;margin:10px 0 22px}
.v-permalink .u{color:var(--ink-3)}
.v-permalink button{border:0;background:var(--surface);color:var(--ink);border:1px solid var(--border-strong);
  border-radius:var(--r-pill);padding:4px 11px;font-size:.72rem;font-weight:700;cursor:pointer;
  display:inline-flex;align-items:center;gap:5px;min-height:26px}
.v-permalink button:hover{border-color:var(--accent);color:var(--accent)}
.v-permalink button[data-copied="true"]{background:var(--success-bg);color:var(--success-fg);border-color:transparent}

.v-article{font-size:.98rem;color:var(--ink)}
.v-article h2{font-size:1.12rem;margin:26px 0 8px;letter-spacing:-.005em}
.v-article p{margin:0 0 14px;max-width:66ch}
.v-article ul,.v-article ol{margin:0 0 14px;padding-left:1.4rem}
.v-article li{margin-bottom:5px}
.v-article .xref{font-weight:600;text-decoration:underline;text-decoration-color:var(--border-strong);
  text-underline-offset:2px}
.v-article .xref:hover{text-decoration-color:var(--accent)}

.v-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--r-md);margin:0 0 18px;background:var(--surface)}
table.v-fees{border-collapse:collapse;width:100%;font-size:.86rem;min-width:420px}
table.v-fees caption{text-align:left;font-size:.76rem;color:var(--ink-3);padding:10px 12px 0;font-weight:600}
table.v-fees thead th{text-align:left;font-size:.7rem;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink-3);font-weight:700;padding:10px 12px;border-bottom:1px solid var(--border);background:var(--surface-2)}
table.v-fees td{padding:9px 12px;border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums}
table.v-fees tbody tr:last-child td{border-bottom:0}

.v-provenance{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.78rem;color:var(--ink-3);
  border-top:1px solid var(--border);padding-top:14px;margin-top:22px}
.v-provenance b{color:var(--ink-2);font-weight:600}

/* Cross-module reference panel (spec §3.9 "Referenced by this platform", native-shape only).
   Hydrated client-side by ordinance-refs.js from the PUBLIC reverse-counts endpoint - counts
   only, never entity ids (complainant privacy). [hidden] until hydration succeeds with at least
   one nonzero count, so a section with zero citations shows nothing rather than an empty card. */
.v-refpanel{margin-top:22px;padding:14px 16px;background:var(--accent-weak);border:1px solid var(--border);
  border-radius:var(--r-md)}
.v-refpanel h2{font-size:.78rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;
  color:var(--ink-2);margin:0 0 8px}
.v-refpanel ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.v-refpanel li{font-size:.86rem;color:var(--ink)}
.v-refpanel a{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:8px}
.v-refpanel a:hover,.v-refpanel a:focus-visible{color:var(--accent)}

.v-a11y{margin-top:26px;padding-top:14px;border-top:1px dashed var(--border)}
.v-a11y a{font-size:.8rem;color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--border-strong)}
.v-a11y a:hover{color:var(--accent)}

.v-prevnext{display:flex;justify-content:space-between;gap:12px;margin-top:26px;padding-top:14px;border-top:1px solid var(--border)}
.v-prevnext a{flex:1;text-decoration:none;color:var(--ink);border:1px solid var(--border);border-radius:var(--r-md);
  padding:10px 14px;font-size:.82rem}
.v-prevnext a:hover{border-color:var(--accent);background:var(--accent-weak)}
.v-prevnext .lbl{display:block;font-size:.68rem;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3);margin-bottom:2px}
.v-prevnext .next{text-align:right}

.v-footer{padding:16px 20px;border-top:1px solid var(--border);font-size:.72rem;color:var(--ink-3);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.v-footer b{color:var(--ink-3);font-weight:600}

.v-search-results{margin-top:10px;padding:10px 12px;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-md);font-size:.83rem}
.v-search-results .rescount{font-size:.72rem;color:var(--ink-3);margin:0 0 8px}
.v-search-results ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.v-search-results li a{display:block;text-decoration:none;color:var(--ink);padding:6px 6px;border-radius:var(--r-sm)}
.v-search-results li a:hover{background:var(--surface-2)}
.v-search-results .rnum{font-family:var(--font-mono);font-size:.72rem;color:var(--accent);font-weight:600}
.v-search-results .rtitle{font-weight:600;font-size:.86rem;margin:2px 0 3px}
.v-search-results .rsnippet{color:var(--ink-2);font-size:.8rem;line-height:1.5}
.v-search-results mark{background:var(--accent-weak);color:var(--ink);border-radius:2px;padding:0 1px;font-weight:600}

.statement{max-width:70ch;margin:0 auto;padding:32px 20px 60px}
.statement h1{font-size:1.5rem;margin-bottom:14px}
.statement p{margin:0 0 14px;color:var(--ink-2)}

/* --- global top progress bar (loading-feedback.md convention, ported for
   this static/no-framework surface: decorative/aria-hidden, respects
   prefers-reduced-motion, only appears for in-flight requests) --- */
.td-top-bar{position:fixed;top:0;left:0;height:3px;width:0;background:var(--accent);z-index:1000;
  transition:width .3s var(--ease),opacity .2s linear;opacity:0}
.td-top-bar.active{opacity:1}
@media (prefers-reduced-motion:reduce){.td-top-bar{transition:opacity .2s linear}}

/* --- toast (errors + meaningful confirmations only, per loading-feedback.md) --- */
.td-toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(8px);
  background:var(--ink);color:var(--ink-invert);border-radius:var(--r-md);padding:10px 16px;
  font-size:.85rem;box-shadow:var(--shadow-lg);z-index:1000;opacity:0;pointer-events:none;
  transition:opacity .2s var(--ease),transform .2s var(--ease);max-width:min(92vw,440px)}
.td-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.td-toast--error{background:var(--danger-fg);color:var(--ink-invert)}
@media (prefers-reduced-motion:reduce){.td-toast{transition:opacity .2s linear}}
