/* George v. Rossum · interactive case guide
   Type: Overpass (display/UI), Source Serif 4 (reading), Overpass Mono (data + cites only)
   Color: pure white surface, olive ink chrome, highlighter marks, plaintiff blue, defense red. */

:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --surface: oklch(0.974 0.007 110);
  --surface-2: oklch(0.947 0.012 110);
  --line: oklch(0.885 0.014 110);
  --line-strong: oklch(0.78 0.02 110);
  --ink: oklch(0.21 0.018 110);
  --ink-2: oklch(0.39 0.02 110);
  --ink-3: oklch(0.5 0.018 110);
  --olive: oklch(0.36 0.075 110);
  --olive-2: oklch(0.47 0.09 110);
  --olive-soft: oklch(0.945 0.035 110);
  --hi: oklch(0.92 0.17 103);
  --hi-mark: oklch(0.93 0.15 103 / 0.85);
  --hi-soft: oklch(0.97 0.07 103);
  --pl: oklch(0.47 0.14 255);
  --pl-soft: oklch(0.955 0.025 255);
  --pl-line: oklch(0.82 0.06 255);
  --df: oklch(0.5 0.18 27);
  --df-soft: oklch(0.96 0.025 27);
  --df-line: oklch(0.84 0.07 27);
  --ex: oklch(0.32 0.02 110);
  --ex-soft: oklch(0.955 0.006 110);
  --court: oklch(0.42 0.09 300);
  --court-soft: oklch(0.955 0.02 300);
  --ok: oklch(0.5 0.13 150);
  --warn: oklch(0.58 0.14 70);
  --wall: oklch(0.86 0.012 80);
  --shadow: 0 1px 2px oklch(0.2 0.02 110 / 0.06), 0 8px 24px oklch(0.2 0.02 110 / 0.07);
  --shadow-lg: 0 2px 6px oklch(0.2 0.02 110 / 0.08), 0 24px 60px oklch(0.2 0.02 110 / 0.16);

  --f-ui: "Overpass", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --f-mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.75vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 4.4rem);

  --r-sm: 6px; --r: 10px; --r-lg: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --read: 68ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-sticky: 20; --z-menu: 30; --z-popover: 40; --z-dialog: 50;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.175 0.012 110);
  --surface: oklch(0.21 0.014 110);
  --surface-2: oklch(0.25 0.016 110);
  --line: oklch(0.32 0.016 110);
  --line-strong: oklch(0.42 0.02 110);
  --ink: oklch(0.94 0.01 110);
  --ink-2: oklch(0.8 0.014 110);
  --ink-3: oklch(0.68 0.014 110);
  --olive: oklch(0.83 0.1 110);
  --olive-2: oklch(0.76 0.11 110);
  --olive-soft: oklch(0.27 0.03 110);
  --hi: oklch(0.86 0.16 103);
  --hi-mark: oklch(0.86 0.16 103 / 0.28);
  --hi-soft: oklch(0.28 0.05 103);
  --pl: oklch(0.76 0.11 255);
  --pl-soft: oklch(0.25 0.035 255);
  --pl-line: oklch(0.42 0.07 255);
  --df: oklch(0.75 0.13 27);
  --df-soft: oklch(0.26 0.04 27);
  --df-line: oklch(0.45 0.08 27);
  --ex: oklch(0.88 0.012 110);
  --ex-soft: oklch(0.23 0.01 110);
  --court: oklch(0.78 0.09 300);
  --court-soft: oklch(0.25 0.03 300);
  --wall: oklch(0.42 0.014 80);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 8px 24px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 2px 6px oklch(0 0 0 / 0.4), 0 24px 60px oklch(0 0 0 / 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: oklch(0.175 0.012 110);
    --surface: oklch(0.21 0.014 110);
    --surface-2: oklch(0.25 0.016 110);
    --line: oklch(0.32 0.016 110);
    --line-strong: oklch(0.42 0.02 110);
    --ink: oklch(0.94 0.01 110);
    --ink-2: oklch(0.8 0.014 110);
    --ink-3: oklch(0.68 0.014 110);
    --olive: oklch(0.83 0.1 110);
    --olive-2: oklch(0.76 0.11 110);
    --olive-soft: oklch(0.27 0.03 110);
    --hi: oklch(0.86 0.16 103);
    --hi-mark: oklch(0.86 0.16 103 / 0.28);
    --hi-soft: oklch(0.28 0.05 103);
    --pl: oklch(0.76 0.11 255);
    --pl-soft: oklch(0.25 0.035 255);
    --pl-line: oklch(0.42 0.07 255);
    --df: oklch(0.75 0.13 27);
    --df-soft: oklch(0.26 0.04 27);
    --df-line: oklch(0.45 0.08 27);
    --ex: oklch(0.88 0.012 110);
    --ex-soft: oklch(0.23 0.01 110);
    --court: oklch(0.78 0.09 300);
    --court-soft: oklch(0.25 0.03 300);
    --wall: oklch(0.42 0.014 80);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 8px 24px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 2px 6px oklch(0 0 0 / 0.4), 0 24px 60px oklch(0 0 0 / 0.5);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-ui); font-size: var(--step-0); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--olive-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--olive-2); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-ui); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.012em; }
h1 { font-size: var(--step-4); font-weight: 850; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.022em; }
h3 { font-size: var(--step-1); font-weight: 750; }
h4 { font-size: var(--step-0); font-weight: 750; }
p { margin: 0 0 1em; text-wrap: pretty; }
mark { background: var(--hi-mark); color: inherit; padding: 0 0.12em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
kbd { font-family: var(--f-mono); font-size: 0.75em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 0.35em; color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.read { font-family: var(--f-read); font-size: calc(var(--step-0) * 1.06); line-height: 1.7; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.boot { padding: 30vh var(--gutter); text-align: center; color: var(--ink-2); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: var(--z-sticky); background: color-mix(in oklch, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 30px; height: 30px; }
.bm-bg { fill: var(--olive); }
.bm-edge { stroke: var(--bg); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.bm-line { stroke: var(--hi); stroke-width: 2; stroke-linecap: round; }
.bm-wall { fill: var(--bg); }
.brand-text { font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-text b { font-weight: 850; }
.brand-text i { font-family: var(--f-read); font-weight: 400; color: var(--ink-2); padding: 0 1px; }
.mainnav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1; min-width: 0; }
.mainnav a, .more-btn { text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: 0.93rem; padding: 7px 10px; border-radius: 8px; white-space: nowrap; border: 0; background: none; cursor: pointer; }
.mainnav a:hover, .more-btn:hover { color: var(--ink); background: var(--surface); }
.mainnav a[aria-current="page"] { color: var(--ink); background: var(--hi-soft); box-shadow: inset 0 -2px 0 var(--hi); }
.more-btn::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-3px) rotate(45deg); margin-left: 7px; }
.topbar-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; min-width: 36px; justify-content: center; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-btn { padding: 0 8px 0 10px; }
.search-label { font-size: 0.88rem; font-weight: 600; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
.menu-btn { display: none; }
.more-panel { position: absolute; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); top: 58px; width: min(360px, calc(100vw - 32px)); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 8px; z-index: var(--z-menu); }
.more-panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.more-panel a span { color: var(--ink-2); font-size: 0.86rem; }
.more-panel a:hover { background: var(--surface); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--olive-2); transform-origin: 0 50%; transform: scaleX(0); transition: transform 120ms linear; }
.mobile-menu { position: fixed; inset: 60px 0 0; z-index: var(--z-menu); background: var(--bg); overflow-y: auto; padding: 12px var(--gutter) 40px; }
.mobile-menu nav { display: grid; }
.mobile-menu a { font-size: 1.25rem; font-weight: 750; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
@media (max-width: 1080px) { .search-label, .search-btn kbd { display: none; } }
@media (max-width: 980px) { .mainnav { display: none; } .menu-btn { display: inline-flex; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 96px; background: var(--surface); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--gutter) 48px; display: grid; gap: 8px 48px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); font-size: 0.9rem; color: var(--ink-2); }

/* ---------- page scaffolding ---------- */
.page { padding: clamp(28px, 5vw, 56px) 0 0; animation: page-in 420ms var(--ease) both; }
@keyframes page-in { from { opacity: 0.001; transform: translateY(8px); } }
.page-head { max-width: var(--maxw); margin: 0 auto 28px; padding: 0 var(--gutter); }
.page-head h1 { font-size: var(--step-3); font-weight: 850; }
.page-head .lede { font-family: var(--f-read); font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; margin-top: 12px; line-height: 1.5; }
.crumbs { font-size: 0.86rem; color: var(--ink-3); margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section + .section { margin-top: clamp(40px, 6vw, 72px); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-title h2 { font-size: var(--step-2); }

/* ---------- chips, cites, badges ---------- */
.src { display: inline-flex; align-items: center; vertical-align: 0.12em; font-family: var(--f-mono); font-size: 0.66em; font-weight: 600; letter-spacing: 0.01em; line-height: 1; padding: 0.28em 0.42em 0.22em; margin: 0 0.08em; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--bg); cursor: pointer; text-decoration: none; white-space: nowrap; }
.src:hover { border-color: currentColor; }
.src.pl { color: var(--pl); background: var(--pl-soft); border-color: var(--pl-line); }
.src.df { color: var(--df); background: var(--df-soft); border-color: var(--df-line); }
.src.ex { color: var(--ex); background: var(--ex-soft); border: 1px solid var(--ink-3); border-radius: 2px; }
.src.ct { color: var(--court); background: var(--court-soft); border-color: color-mix(in oklch, var(--court) 35%, transparent); }
.cite { font-family: var(--f-mono); font-size: 0.74em; color: var(--ink-3); white-space: nowrap; letter-spacing: -0.01em; }
.cite::before { content: "["; } .cite::after { content: "]"; }
.side { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px 2px; border-radius: 99px; }
.side::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.side.plaintiff { color: var(--pl); background: var(--pl-soft); }
.side.defense { color: var(--df); background: var(--df-soft); }
.side.neutral { color: var(--ex); background: var(--surface-2); }
.side.court { color: var(--court); background: var(--court-soft); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- buttons, segmented, tabs ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 0.95rem; padding: 10px 16px 9px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease), background 160ms; }
.btn:hover { background: var(--surface); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--olive); border-color: var(--olive); color: var(--bg); }
.btn.primary:hover { background: var(--olive-2); border-color: var(--olive-2); color: var(--bg); }
.btn.pl { background: var(--pl); border-color: var(--pl); color: var(--bg); }
.btn.df { background: var(--df); border-color: var(--df); color: var(--bg); }
.btn.small { font-size: 0.84rem; padding: 6px 11px 5px; border-radius: 8px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 12px 6px; border-radius: 8px; font-weight: 700; font-size: 0.88rem; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px oklch(0 0 0 / 0.12); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--olive-2); }
.tabs button:hover { color: var(--ink); }

/* ---------- popover ---------- */
.popover { position: fixed; z-index: var(--z-popover); width: min(340px, calc(100vw - 24px)); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 16px 12px; font-size: 0.92rem; animation: pop 180ms var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(0.98); } }
.popover h4 { font-size: 1rem; margin-bottom: 2px; }
.popover .pop-meta { color: var(--ink-2); font-size: 0.85rem; margin-bottom: 8px; }
.popover p { margin: 0 0 10px; color: var(--ink-2); }
.popover .pop-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- search ---------- */
.search-dialog { width: min(680px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 80px)); margin: 8vh auto auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-dialog::backdrop { background: oklch(0.2 0.02 110 / 0.35); backdrop-filter: blur(2px); }
.search-dialog[open] { display: flex; flex-direction: column; animation: pop 200ms var(--ease) both; }
.search-form { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search-form svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; flex: none; }
.search-form input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.1rem; color: var(--ink); outline: none; min-width: 0; }
.search-form input::placeholder { color: var(--ink-3); }
.search-form .esc { font-family: var(--f-mono); font-size: 0.75rem; border: 1px solid var(--line-strong); background: none; border-radius: 6px; padding: 3px 6px; color: var(--ink-2); cursor: pointer; }
.search-results { overflow-y: auto; padding: 6px; }
.sr-item { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.sr-item[aria-selected="true"], .sr-item:hover { background: var(--surface-2); }
.sr-item .sr-kind { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.sr-item .sr-title { font-weight: 750; display: block; }
.sr-item .sr-text { font-size: 0.88rem; color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sr-empty { padding: 28px 16px; color: var(--ink-2); text-align: center; }

/* ---------- generic content blocks ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 24px); }
.grid-auto { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.two-col { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.callout { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r); padding: 14px 16px 12px; margin: 1.3em 0; font-family: var(--f-ui); font-size: 0.97rem; line-height: 1.55; }
.callout .callout-label { display: inline-block; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; margin-right: 8px; padding: 2px 7px 1px; border-radius: 5px; background: var(--ink); color: var(--bg); vertical-align: 0.08em; }
.callout.k-clash, .callout.k-tension { background: var(--hi-soft); border-color: color-mix(in oklch, var(--hi) 70%, var(--ink) 10%); }
.callout.k-clash .callout-label, .callout.k-tension .callout-label { background: var(--hi); color: oklch(0.2 0.02 110); }
.callout.k-interpretation, .callout.k-ask-coach { background: var(--olive-soft); border-color: color-mix(in oklch, var(--olive) 30%, transparent); }
.callout.k-interpretation .callout-label, .callout.k-ask-coach .callout-label { background: var(--olive); color: var(--bg); }
.callout.k-watch .callout-label, .callout.k-notice .callout-label { background: var(--df); }
.callout.k-gap .callout-label { background: var(--ink-3); }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-family: var(--f-ui); font-size: 0.92rem; line-height: 1.45; }
table.t caption { caption-side: bottom; text-align: left; padding: 10px 12px; font-size: 0.82rem; color: var(--ink-2); border-top: 1px solid var(--line); }
table.t th { text-align: left; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); background: var(--surface); padding: 10px 12px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child { font-weight: 700; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.facts li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .cite { margin-left: 4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 0.94rem; }
.kv dt { color: var(--ink-2); font-weight: 650; } .kv dd { margin: 0; }
.empty-note { color: var(--ink-2); font-style: italic; }
details.fold { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
details.fold + details.fold { margin-top: 8px; }
details.fold > summary { cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 750; display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font-family: var(--f-mono); color: var(--ink-3); font-weight: 400; }
details.fold[open] > summary::after { content: "−"; }
details.fold > .fold-body { padding: 0 16px 14px; }

/* ---------- reveal motion (visible by default; enhancement only) ---------- */
.rise { animation: rise 600ms var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0.001; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
