/* Layout: tabbed single column. Overview tells the story top-down (answer, trend, week, examples);
   Jobs, Tasks and Method hold the detail. */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #12161c;
  --ink-2: #3c4452;
  --muted: #677082;
  --rule: #dce1e8;
  --rule-strong: #b9c1cd;
  --t0: #104281;   /* Frontier (now) */
  --t1: #2a78d6;   /* Frontier+1 */
  --t2: #86b6ef;   /* Frontier+2 */
  --open: #c9d0da; /* open to later generations (hatched) */
  --struct: #8a93a1; /* needs a person (solid grey) */
  --past: #9aa3b2; /* earlier snapshots */
  --accent: #1c5cab;
  --focus: #2a78d6;
  --tint: #e8f0fb;
  --banner-bg: #fff4d6;
  --banner-ink: #5a4300;
  --ok: #2a6f46; --warn: #7a5200; --bad: #9c3b2e;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem;
  --radius: 6px;
  --mast-row1: 44px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116; --surface: #161a21; --ink: #e9edf2; --ink-2: #c3cad5; --muted: #929bab;
    --rule: #272d37; --rule-strong: #3a4250;
    --t0: #9ec5f4; --t1: #3987e5; --t2: #184f95;
    --open: #3a414d; --struct: #6b7484; --past: #59616e; --accent: #86b6ef; --focus: #86b6ef;
    --tint: #1a2638; --banner-bg: #3a2f10; --banner-ink: #f3dd9c;
    --ok: #6fc78f; --warn: #e2b14a; --bad: #e58b7b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116; --surface: #161a21; --ink: #e9edf2; --ink-2: #c3cad5; --muted: #929bab;
  --rule: #272d37; --rule-strong: #3a4250;
  --t0: #9ec5f4; --t1: #3987e5; --t2: #184f95;
  --open: #3a414d; --struct: #6b7484; --past: #59616e; --accent: #86b6ef; --focus: #86b6ef;
  --tint: #1a2638; --banner-bg: #3a2f10; --banner-ink: #f3dd9c;
  --ok: #6fc78f; --warn: #e2b14a; --bad: #e58b7b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--f-body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700; font-stretch: 80%; line-height: 1.05; letter-spacing: -0.01em; max-width: 24ch; }
.lead-sm h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: 1.2rem; font-weight: 700; font-stretch: 90%; }
h3 { font-size: 0.95rem; font-weight: 700; }
p { margin: 0; }
code, .mono { font-family: var(--f-mono); font-size: 0.86em; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--ink); padding: var(--s-2) var(--s-3); z-index: 30; border-radius: var(--radius); }
.skip:focus { left: var(--s-3); top: var(--s-3); }

/* Masthead */
.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--rule); }
.mast-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); padding-block: var(--s-2); }
.brand { display: flex; align-items: baseline; gap: var(--s-2); text-decoration: none; color: var(--ink); min-width: 0; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.15rem; }
.brand-sub { color: var(--muted); font-size: 0.8rem; }
.tabs { display: flex; gap: var(--s-1); margin-right: auto; }
.tabs a { font-weight: 500; font-size: 0.9rem; color: var(--ink-2); text-decoration: none; padding: 0.45rem 0.7rem; border-radius: var(--radius); }
.tabs a:hover { background: var(--bg); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--tint); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.measure { display: flex; align-items: center; gap: var(--s-2); }
.measure-label { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 760px) {
  .brand-sub { display: none; }
  .tabs { order: 3; width: 100%; margin-right: 0; overflow-x: auto; }
  .measure { margin-left: auto; }
  /* The brand row scrolls away; the tabs row stays pinned. */
  .mast { top: calc(env(safe-area-inset-top, 0px) - var(--mast-row1)); }
  html { scroll-padding-top: 4rem; }
}

.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.seg button { font: 500 0.82rem var(--f-body); color: var(--ink-2); background: var(--surface); border: 0; padding: 0.35rem 0.75rem; cursor: pointer; min-height: 2rem; }
.seg button + button { border-left: 1px solid var(--rule-strong); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--surface); }
.ctl { display: flex; flex-direction: column; gap: 2px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ctl.grow { flex: 1 1 16rem; }
select, input[type="search"], input[type="number"] {
  font: 500 0.9rem var(--f-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0.4rem 0.55rem; min-height: 2.25rem;
}
input[type="search"] { width: 100%; }
.btn { font: 500 0.85rem var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0.4rem 0.8rem; cursor: pointer; }
.btn:disabled { color: var(--muted); cursor: default; opacity: 0.7; }
.link-btn { font: 500 0.85rem var(--f-body); color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Page */
main { padding-block: var(--s-6) var(--s-7); }
.view { display: flex; flex-direction: column; gap: var(--s-5); }
.lead { display: flex; flex-direction: column; gap: var(--s-3); padding-bottom: var(--s-2); }
.eyebrow { font: 500 0.8rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.lede { color: var(--ink-2); max-width: 66ch; font-size: 1.05rem; }
.banner { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; background: var(--banner-bg); color: var(--banner-ink); padding: var(--s-2) var(--s-3); border-radius: var(--radius); font-size: 0.9rem; margin-bottom: var(--s-4); }
.banner .link-btn { color: inherit; }

.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.stat-label { display: flex; align-items: center; gap: var(--s-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.stat-value { font-family: var(--f-display); font-weight: 700; font-stretch: 75%; font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.stat-value small { font-size: 0.45em; font-weight: 600; color: var(--muted); }
.stat-value .range { font: 500 0.95rem var(--f-mono); color: var(--ink-2); }
.stat-sub { font-size: 0.84rem; color: var(--ink-2); }
@media (max-width: 760px) { .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); } .readout .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Evidence-quality strip */
.evidence { display: flex; flex-direction: column; gap: var(--s-2); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-3) var(--s-4); }
.panel .evidence { border: 0; padding: 0; }
.evidence .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-size: 0.86rem; color: var(--ink-2); }
.evidence .bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; width: 100%; background: var(--rule); }
.evidence .bar > span { height: 100%; }
.conf-high { background: var(--ok); } .conf-medium { background: var(--warn); } .conf-low { background: var(--bad); }
.chip { display: inline-block; font: 500 0.75rem var(--f-body); padding: 1px 7px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.chip.high { border-color: var(--ok); color: var(--ok); } .chip.medium { border-color: var(--warn); color: var(--warn); } .chip.low { border-color: var(--bad); color: var(--bad); }
.chip.primary { border-color: var(--ok); color: var(--ok); } .chip.independent { border-color: var(--accent); color: var(--accent); } .chip.secondary { color: var(--muted); }

.swatch { width: 10px; height: 10px; border-radius: 2px; flex: none; display: inline-block; }
.swatch.open, .fill-open { background: repeating-linear-gradient(135deg, var(--open) 0 3px, transparent 3px 6px); background-color: color-mix(in srgb, var(--open) 35%, var(--surface)); }
.swatch.human, .fill-struct { background: var(--struct); }
.swatch.line { width: 14px; height: 2px; border-radius: 0; background: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: 0.82rem; color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: var(--s-2); }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.legend .dot.hollow { border: 2px solid var(--t0); background: var(--surface); width: 8px; height: 8px; }
.legend .dot.trend { border: 2px solid var(--muted); background: var(--surface); width: 8px; height: 8px; }
.legend .band { width: 14px; height: 10px; background: color-mix(in srgb, var(--t1) 25%, transparent); border-top: 2px solid var(--t1); border-bottom: 2px solid var(--t1); display: inline-block; }
.legend .tick { width: 2px; height: 12px; background: var(--ink); display: inline-block; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
@media (max-width: 600px) { .panel { padding: var(--s-4); } }
.panel-head { display: flex; flex-direction: column; gap: var(--s-1); }
.note { color: var(--muted); font-size: 0.88rem; max-width: 75ch; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: end; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--s-5); }

/* Charts */
.chart-box { width: 100%; min-width: 0; position: relative; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-box text { fill: var(--muted); font: 12px var(--f-mono); }
.chart-box .lbl-strong { fill: var(--ink); font-weight: 500; }
.chart-box .lbl-model { fill: var(--ink-2); font: 500 12px var(--f-body); }
.chart-box .lbl-axis { fill: var(--muted); font: 500 12px var(--f-body); }
.grid line { stroke: var(--rule); stroke-width: 1; }
.axis-base { stroke: var(--rule-strong); }

/* Week grid: one cell per hour */
.week { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.week > div { aspect-ratio: 1; border-radius: 3px; max-width: 100%; }
@media (max-width: 600px) { .week { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.legend-hours b { font-family: var(--f-mono); font-weight: 500; }

/* Ranked lists */
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.rank li a { display: grid; grid-template-columns: minmax(0, 1fr) 3rem; gap: 4px var(--s-3); align-items: center; font-size: 0.9rem; color: inherit; text-decoration: none; border-radius: var(--radius); }
.rank li a:hover .title { text-decoration: underline; text-underline-offset: 2px; color: var(--accent); }
.rank .val { font: 500 0.85rem var(--f-mono); text-align: right; }
.rank .sub { color: var(--muted); font-size: 0.8rem; }
.rank .stack { grid-column: 1 / -1; }

/* Stacked bar used in lists and job rows */
.stack { display: flex; gap: 2px; height: 12px; background: transparent; }
.stack > div { height: 100%; min-width: 0; }
.stack > div:first-child { border-radius: 2px 0 0 2px; }
.stack > div:last-child { border-radius: 0 2px 2px 0; }
.stack.tall { height: 14px; }

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--s-4) var(--s-5); margin: 0; }
.glossary div { display: flex; flex-direction: column; gap: var(--s-1); }
.glossary dt { font-weight: 600; display: flex; align-items: center; gap: var(--s-2); }
.glossary dd { margin: 0; color: var(--ink-2); font-size: 0.9rem; }

/* Jobs */
.groups-head { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) minmax(0, 14rem) 7.5rem; gap: var(--s-2) var(--s-3); padding: 0 var(--s-4); font: 0.78rem var(--f-mono); color: var(--muted); }
.groups-head .r { text-align: right; white-space: nowrap; }
.groups { display: flex; flex-direction: column; gap: var(--s-2); }
.group { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.row-btn {
  display: grid; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  grid-template-columns: 1.2rem minmax(0, 1fr) minmax(0, 14rem) 7.5rem; gap: var(--s-2) var(--s-3); align-items: center; padding: var(--s-3) var(--s-4);
}
.row-btn:hover { background: color-mix(in srgb, var(--tint) 60%, transparent); }
.row-btn .chev { color: var(--muted); transition: transform 150ms ease; font-size: 0.8rem; }
.row-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.row-btn .title { font-weight: 600; min-width: 0; }
.row-btn .meta { color: var(--muted); font-size: 0.8rem; font-weight: 400; display: block; }
.row-btn .meta .mono { font-size: 0.94em; }
.row-btn .nums { font: 0.8rem var(--f-mono); text-align: right; color: var(--ink-2); white-space: nowrap; }
.row-btn .nums b { color: var(--ink); font-weight: 500; }
.occ-list { border-top: 1px solid var(--rule); }
.occ .row-btn { padding-left: calc(var(--s-4) + 1.2rem); }
.occ .row-btn .title { font-weight: 500; }
.occ + .occ { border-top: 1px solid var(--rule); }
.flat .occ .row-btn { padding-left: var(--s-4); }
.flat .occ { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.flat .occ + .occ { border-top: 1px solid var(--rule); }
.occ-detail { padding: var(--s-2) var(--s-4) var(--s-4) calc(var(--s-4) + 2.4rem); display: flex; flex-direction: column; gap: var(--s-3); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.flat .occ-detail { padding-left: var(--s-4); }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem) 6.5rem; gap: 2px var(--s-3); align-items: center; font-size: 0.86rem; }
.task-row .tname { min-width: 0; }
.task-row .ttype { display: block; color: var(--muted); font-size: 0.78rem; }
.task-row .hrs { font: 0.78rem var(--f-mono); text-align: right; color: var(--ink-2); white-space: nowrap; }
.target { box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 680px) {
  .groups-head { display: none; }
  .row-btn { grid-template-columns: 1rem minmax(0, 1fr) 6.5rem; }
  .row-btn .stack { grid-column: 2 / -1; order: 4; }
  .occ .row-btn { padding-left: var(--s-4); }
  .occ-detail { padding-left: var(--s-4); }
  .task-row { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .task-row .stack { grid-column: 1 / -1; order: 3; }
}

/* Tasks: dot plot */
.dots { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.dot-row + .dot-row, .fam-head + .dot-row { border-top: 1px solid var(--rule); }
.fam-head { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-4); background: color-mix(in srgb, var(--bg) 70%, var(--surface)); border-top: 1px solid var(--rule); font: 500 0.8rem var(--f-body); color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
.fam-head .mono { color: var(--muted); }
.dot-row .row-btn { grid-template-columns: 1.2rem minmax(0, 15rem) minmax(0, 1fr) 4.5rem; }
.dot-row .meta .chip { margin-left: var(--s-1); }
.dot-track { position: relative; height: 22px; }
.dot-track .line { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--rule); }
.dot-track .reach { position: absolute; top: 9px; height: 4px; background: var(--t2); opacity: 0.55; border-radius: 2px; }
.dot-track .ceil { position: absolute; top: 3px; width: 2px; height: 16px; background: var(--ink); opacity: 0.7; }
.dot-track i { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--surface); }
.dot-track i.past { width: 8px; height: 8px; top: 7px; margin-left: -4px; background: var(--past); border-width: 1px; }
.dot-scale { display: grid; grid-template-columns: 1.2rem minmax(0, 15rem) minmax(0, 1fr) 4.5rem; gap: var(--s-3); padding: var(--s-2) var(--s-4) 0; font: 0.78rem var(--f-mono); color: var(--muted); }
.dot-scale .ticks { display: flex; justify-content: space-between; }
.dot-detail { padding: 0 var(--s-4) var(--s-4) calc(var(--s-4) + 1.2rem + var(--s-3)); display: flex; flex-direction: column; gap: var(--s-2); font-size: 0.88rem; color: var(--ink-2); max-width: 80ch; }
.dot-detail .kv { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font: 0.78rem var(--f-mono); color: var(--muted); }
.dot-detail .srcs { font-size: 0.82rem; }
.dot-detail .srcs a { margin-right: var(--s-2); }
@media (max-width: 680px) {
  .dot-row .row-btn, .dot-scale { grid-template-columns: 1rem minmax(0, 1fr) 4rem; }
  .dot-row .row-btn .dot-track, .dot-scale .ticks { grid-column: 1 / -1; order: 4; }
  .dot-scale .spacer { display: none; }
  .dot-detail { padding-left: var(--s-4); }
}

.editor summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.editor summary .note { font-family: var(--f-body); font-weight: 400; }
.editor:not([open]) { gap: 0; }
.editor-readout { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: 0.88rem; color: var(--ink-2); }
.editor-readout b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }

/* Tables */
.table-scroll { overflow-x: auto; min-width: 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 0.45rem var(--s-2); text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.data th { font-size: 0.76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
table.data td.num, table.data th.num { text-align: right; font-family: var(--f-mono); font-size: 0.8rem; white-space: nowrap; }
#arch-table input[type="number"] { width: 4.2rem; text-align: right; font-family: var(--f-mono); font-size: 0.82rem; padding: 0.25rem 0.35rem; min-height: 1.9rem; }
#arch-table input.edited { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
table.calib td.diff { font-family: var(--f-mono); font-size: 0.8rem; }

/* Method */
.snapshots { display: flex; flex-direction: column; gap: var(--s-3); }
.snap { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 5rem; gap: var(--s-1) var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); }
.snap:last-child { border-bottom: 0; padding-bottom: 0; }
.snap .when { font: 500 0.8rem var(--f-mono); color: var(--ink-2); }
.snap .when span { display: block; color: var(--muted); font-weight: 400; }
.snap .what { min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.snap .what ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: 0.86rem; }
.snap .frontier { font-size: 0.86rem; color: var(--ink-2); }
.snap .score { font-family: var(--f-display); font-weight: 700; font-stretch: 75%; font-size: 1.8rem; text-align: right; line-height: 1; }
.snap .score small { display: block; font: 0.75rem var(--f-body); color: var(--muted); }
.pill { display: inline-block; font-size: 0.75rem; padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--ink-2); margin-left: var(--s-2); vertical-align: middle; font-weight: 500; }
@media (max-width: 600px) { .snap { grid-template-columns: minmax(0, 1fr) 4.5rem; } .snap .what { grid-column: 1 / -1; order: 3; } }
.checks { display: flex; flex-direction: column; gap: var(--s-2); font-size: 0.9rem; color: var(--ink-2); }
.checks .check { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: baseline; }
.checks .verdict { font: 500 0.82rem var(--f-mono); white-space: nowrap; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--s-5); }
.method-grid > div { display: flex; flex-direction: column; gap: var(--s-2); color: var(--ink-2); font-size: 0.92rem; max-width: 65ch; }
.method-grid h3 { color: var(--ink); }
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: var(--s-5); }
.src-group { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.src-group ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: var(--s-1); font-size: 0.84rem; color: var(--ink-2); overflow-wrap: anywhere; }
.src-group li .chip { margin-left: var(--s-1); }
.src-group li .src-note { display: block; color: var(--muted); font-size: 0.78rem; }

/* Tooltip */
.tooltip { position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: var(--s-2) var(--s-3); font-size: 0.8rem; box-shadow: 0 4px 16px rgb(0 0 0 / 0.12); max-width: 18rem; }
.tooltip b { font-family: var(--f-display); font-weight: 700; }
.tooltip .row { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
