/* The Indus Script, Measured — styles after the Cuvadi (tamil-corpus) theme,
   "Literary Modernism": ink blue, persimmon, warm white, sky, graphite.
   One typeface, Inter, for headings and text. Light is the default;
   dark is opt-in from the header toggle (data-theme="dark"). */
:root {
  --paper: #fbfaf8;      /* page: warm white */
  --paper-2: #f3f1ec;    /* tags, notices */
  --card: #ffffff;
  --heading: #14233d;    /* ink blue */
  --ink: #292c35;        /* graphite */
  --ink-2: #4f5565;
  --ink-3: #6b7180;
  --rule: #e5e2db;
  --accent: #b84a26;     /* persimmon for text */
  --accent-soft: #fdeee7;
  --persimmon: #f27a54;
  --persimmon-display: #d65d36;
  --sky: #a9d7e8;
  --sky-soft: #f1f8fb;
  --settled: #2f8f86;
  --open: #e39a3b;
  /* chart series (validated on the card surface: CVD, contrast, chroma) */
  --s1: #c2522c;         /* persimmon: main series, "each text once" */
  --s2: #3d5f99;         /* ink blue: "every copy" */
  --ref: #d6d2c8;
  --shadow: 0 1px 2px rgba(20, 35, 61, .04), 0 2px 10px rgba(20, 35, 61, .05);
  --radius: 12px;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--ui);   /* headings share the text face */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --shadow: none;
  --paper: #101b2e; --paper-2: #16233a; --card: #16243c; --heading: #fbfaf8; --ink: #ece9e2; --ink-2: #c3c9d6;
  --ink-3: #8e97ab; --rule: #27385a; --accent: #f58d6b; --accent-soft: #2c2632; --persimmon: #f27a54;
  --persimmon-display: #f27a54; --sky: #a9d7e8; --sky-soft: #142a40; --settled: #4fb7a9; --open: #f0b45a;
  --s1: #e8693f; --s2: #4a8fe0; --ref: #34476b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; font-family: var(--display); font-weight: 650; letter-spacing: -.015em; color: var(--heading); }
p { margin: 0 0 .9em; }
strong, b { font-weight: 600; color: var(--heading); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.glyph { font-family: "indus", serif; font-weight: 400; line-height: 1; }
@font-face { font-family: "indus"; src: url("fonts/sk_indus_script-webfont.ttf") format("truetype"); font-display: swap; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 62px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); line-height: 1; }
.brand:hover { text-decoration: none; }
.brand .mark { font-size: 30px; color: var(--persimmon-display); }
.brand .name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.brand .tag { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; display: block; }
.nav { margin-left: auto; display: flex; gap: 24px; font-size: .9rem; font-weight: 500; letter-spacing: .01em; }
.nav a { color: var(--ink-2); padding: 8px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { text-decoration: none; color: var(--heading); border-bottom-color: color-mix(in srgb, var(--persimmon) 50%, transparent); }
.header-tools { display: flex; align-items: center; gap: 12px; padding-left: 18px; margin-left: 4px; border-left: 1px solid var(--rule); }
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; color: var(--heading); background: none; border: 0; cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--paper-2); color: var(--accent); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- hero ---------- */
.hero-band { border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, var(--card), var(--paper)); }
.hero { padding-top: 56px; padding-bottom: 8px; }
.hero h1 { max-width: none; }
.eyebrow { font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.03; letter-spacing: -.02em; margin-bottom: .35em; }
.hero h1 em { color: var(--persimmon-display); font-style: normal; }
.lede { font-family: var(--ui); font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); }

/* stat row, as on Cuvadi's home page */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 26px 0; }
.stat-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-row > div { display: flex; flex-direction: column; padding: 0 24px; border-left: 1px solid var(--rule); }
.stat-row > div:first-child { border-left: 0; padding-left: 0; }
.stat-row dd { order: 1; margin: 0; font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 2rem; line-height: 1.1; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat-row dt { order: 2; font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--heading); line-height: 1.3; margin-top: 2px; }
.stat-row .sub { order: 3; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.card .stat-row { padding: 6px 0; }

/* ---------- sections ---------- */
.section { padding: 56px 0 24px; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.section-head .n { font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--persimmon-display); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.01em; margin: 0; }
.lead { font-family: var(--ui); font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 22px; }
.prose { color: var(--ink); }
.note { margin: 8px 0 28px; padding: 14px 18px; background: var(--sky-soft); border-left: 3px solid var(--sky); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); font-size: .95rem; }
.note b, .note strong { color: var(--heading); }

/* findings */
.findings { list-style: none; counter-reset: f; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.findings li { counter-increment: f; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow); }
.findings li::before { content: counter(f, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 700; color: var(--persimmon-display); font-size: .9rem; margin-bottom: 4px; }
.findings h3 { font-size: 1.15rem; margin-bottom: 4px; }
.findings p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* ---------- figures (cards) ---------- */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin: 10px 0 26px; min-width: 0; }
.card figcaption { font-size: .92rem; color: var(--ink-2); margin: 0 0 12px; }
.fig-label { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-right: 8px; }
.fig-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.fig-pair .card { margin: 10px 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--ui); fill: var(--ink-2); font-size: 13px; }
.chart .lab { fill: var(--heading); font-weight: 500; }
.chart .sub { fill: var(--ink-3); font-size: 11.5px; }
.chart .val { fill: var(--heading); font-variant-numeric: tabular-nums; font-weight: 600; }
.chart .gridline { stroke: var(--rule); stroke-width: 1; }
.chart .baseline { stroke: var(--ink-3); stroke-width: 1; }
.chart .sep { fill: var(--ink-3); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; }
.chart .row:hover .rowbg { fill: var(--accent-soft); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); margin-bottom: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend i.sw-s1 { background: var(--s1); }
.legend i.sw-s2 { background: var(--s2); }

/* controls: pill tabs, as Cuvadi's section tabs */
.controls { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 14px; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg::before { content: attr(data-label); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.seg button { font: inherit; font-size: .84rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink-2); cursor: pointer; }
.seg button:hover { color: var(--accent); border-color: var(--accent); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* tables */
.table-view { margin-top: 10px; font-size: .88rem; }
.table-view summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-view table, .data-table { border-collapse: collapse; min-width: 100%; margin-top: 8px; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { padding: 6px 14px 6px 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--rule); }
.table-view thead th { color: var(--ink-3); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.table-view td.n, .table-view th.n { text-align: right; }

.le-grid table { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .88rem; }
.le-grid th { color: var(--ink-3); font-weight: 600; font-size: .72rem; padding: 2px 4px; }
.le-grid td { background: var(--paper-2); border-radius: 6px; text-align: center; padding: 5px 2px; color: var(--heading); min-width: 34px; }
.le-grid td.empty { background: transparent; color: var(--ink-3); }

/* ---------- sign list ---------- */
.sign-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 14px; }
.sign-tools input[type="search"] { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 12px; min-width: 260px; flex: 1 1 260px; max-width: 420px; }
.sign-tools input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sign-count { font-size: .82rem; color: var(--ink-3); }
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sign-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 12px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.sign-card:hover { border-color: color-mix(in srgb, var(--persimmon) 60%, var(--rule)); }
.sign-glyph { height: 70px; display: grid; place-items: center; font-size: 52px; color: var(--heading); }
.sign-glyph.is-num { font-family: var(--ui); font-size: .9rem; color: var(--ink-3); }
.sign-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.sign-id { font-weight: 600; color: var(--heading); font-size: .92rem; }
.sign-n { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sign-mix { display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin: 6px 0 4px; background: var(--paper-2); gap: 1px; }
.sign-mix span { display: block; height: 100%; }
.sign-mix .m-seal { background: var(--s1); }
.sign-mix .m-tab { background: var(--s2); }
.sign-mix .m-oth { background: var(--ref); }
.sign-desc { font-size: .76rem; color: var(--ink-2); line-height: 1.35; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sign-pos { font-size: .7rem; color: var(--ink-3); margin-top: 4px; }
.more { margin-top: 16px; }
.more button { font: inherit; font-size: .88rem; cursor: pointer; border-radius: 8px; padding: 7px 14px; border: 1px solid var(--accent); background: transparent; color: var(--accent); }

/* ---------- verdict ---------- */
.verdict { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 28px; }
.verdict > div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); border-top: 3px solid var(--ink-3); }
.verdict .v-robust { border-top-color: var(--settled); }
.verdict .v-qualified { border-top-color: var(--open); }
.verdict h4 { font-size: 1.15rem; }
.verdict ul { padding-left: 1.1em; margin: 0; color: var(--ink-2); font-size: .92rem; }
.verdict li + li { margin-top: 6px; }
.closing { font-family: var(--ui); font-size: 1.1rem; line-height: 1.6; color: var(--heading); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); margin-top: 40px; padding: 28px 0 44px; font-size: .84rem; color: var(--ink-3); }
.site-footer h3 { font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 12px; columns: 2; column-gap: 32px; }
.site-footer li { break-inside: avoid; margin-bottom: 6px; }
.site-footer li b { color: var(--ink-2); font-weight: 600; }

.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 11px; font-size: .84rem; line-height: 1.4; max-width: 280px; box-shadow: 0 8px 28px rgba(20, 35, 61, .14); }
.tip b { font-variant-numeric: tabular-nums; }
.spaced { margin-top: 18px; }

@media (max-width: 900px) {
  .nav { order: 3; margin-left: 0; width: 100%; gap: 6px 16px; flex-wrap: wrap; font-size: .86rem; }
  .header-tools { margin-left: auto; border-left: 0; padding-left: 0; }
  .findings, .verdict { grid-template-columns: minmax(0, 1fr); }
  .fig-pair { grid-template-columns: minmax(0, 1fr); }
  .site-footer ul { columns: 1; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .stat-row, .stat-row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .stat-row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat-row dd { font-size: 1.6rem; }
  .card { padding: 14px; }
  .sign-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .hero { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.legend i.sw-ref { background: var(--ref); }

/* ---------- methodology page ---------- */
.nav a.on { color: var(--heading); border-bottom-color: var(--persimmon); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 5px; padding: 0 4px; }
.method { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-top: 36px; }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; font-size: .86rem; }
.toc-title { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc li a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); }
.toc li a:hover { color: var(--accent); text-decoration: none; }
.toc li a.on { color: var(--heading); border-left-color: var(--persimmon); font-weight: 600; }
.method-body section { padding: 8px 0 26px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; scroll-margin-top: 84px; }
.method-body section:last-child { border-bottom: 0; }
.method-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.method-body h3 { font-size: 1.12rem; margin-top: 18px; }
.method-body ul, .method-body ol { padding-left: 1.2em; margin: 0 0 1em; }
.method-body li { margin: 5px 0; }
.method-body .data-table { font-size: .88rem; margin: 6px 0 16px; }
.method-body .data-table th, .method-body .data-table td { padding: 7px 14px 7px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; white-space: normal; }
.method-body .data-table thead th { color: var(--ink-3); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.method-body .data-table td.n, .method-body .data-table th.n { text-align: right; white-space: nowrap; }
@media (max-width: 900px) {
  .method { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .toc { position: static; max-height: none; }
  .toc ol { columns: 2; column-gap: 24px; }
}
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* methodology sub-navigation, pager and timeline */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; }
.subnav a { font-size: .86rem; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink-2); }
.subnav a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.subnav a.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.pager { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 30px; font-weight: 500; }
.timeline { list-style: none; padding: 0 0 0 22px; margin: 18px 0 26px; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--persimmon); }
.timeline li.tl-stage::before { background: var(--persimmon); width: 14px; height: 14px; left: -30px; top: 5px; }
.timeline li.tl-stage h3 { margin: 0 0 4px; font-size: 1.25rem; }
.timeline h4 { margin: 0 0 4px; font-size: 1.05rem; }
.tl-date { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.timeline p { margin: 0 0 6px; color: var(--ink-2); }
.tl-note { background: var(--sky-soft); border-left: 3px solid var(--sky); padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: .92rem; }
.method { animation: method-in .18s ease-out; }
@keyframes method-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hero h1:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .method { animation: none; } }
.le-grid td img { display: block; width: 100%; max-width: 120px; height: auto; margin: 0 auto 3px; border-radius: 4px; background: #fff; }
.le-grid td span { display: block; font-size: .74rem; color: var(--ink-2); }
.le-credit { font-size: .76rem; color: var(--ink-3); margin-top: 8px; }
.le-grid table { min-width: 640px; }
.fail-list { counter-reset: fl; list-style: none; padding: 0; margin: 10px 0 0; }
.fail-list li { counter-increment: fl; position: relative; padding: 14px 16px 10px 54px; margin: 0 0 10px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.fail-list li::before { content: counter(fl); position: absolute; left: 16px; top: 12px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--persimmon-display); }
.fail-list h3 { margin: 0 0 4px; font-size: 1.1rem; }
.fail-list p { margin: 0; color: var(--ink-2); }

/* Claims dropdown, after Cuvadi's nav-menu */
.nav-menu { position: relative; display: flex; }
.nav-menu > button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); padding: 8px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-menu > button:hover, .nav-menu.open > button { color: var(--heading); border-bottom-color: color-mix(in srgb, var(--persimmon) 50%, transparent); }
.nav-menu > button.on { color: var(--heading); border-bottom-color: var(--persimmon); }
.nav-menu > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.nav-menu > button svg { transition: transform .15s; }
.nav-menu.open > button svg { transform: rotate(180deg); }
.nav-sub { display: none; position: absolute; top: 100%; left: -14px; z-index: 20; min-width: 240px; padding: 6px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 8px 28px rgba(20, 35, 61, .12); }
.nav-menu.open .nav-sub { display: flex; flex-direction: column; }
.nav .nav-sub a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 7px; border-bottom: 0; color: var(--heading); }
.nav .nav-sub a small { font-size: .76rem; font-weight: 400; color: var(--ink-3); }
.nav .nav-sub a:hover { background: var(--paper-2); text-decoration: none; }
.nav .nav-sub a.on { background: var(--accent-soft); }

/* one-page Claims: sub-sections and a nested contents list */
.subsection { scroll-margin-top: 84px; padding-top: 6px; margin-top: 14px; }
.subsection > h3 { font-size: 1.3rem; margin-top: 10px; }
.subsection h4 { margin: 0 0 4px; font-size: 1.08rem; }
.method-body section > .lead { font-size: 1.08rem; }
.toc ol ol { border-left: 0; margin: 2px 0 6px 12px; padding: 0; list-style: none; }
.toc ol ol a { padding: 2px 0 2px 10px; font-size: .8rem; color: var(--ink-3); }
.fail-list h4 { margin: 0 0 4px; font-size: 1.1rem; }

/* ---------- Findings: known/disputed cards, labels, finding cards ---------- */
.known-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 8px; }
.known { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.known h3 { font-size: 1.05rem; margin-bottom: 6px; }
.known p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.tag.s-robust { background: color-mix(in srgb, var(--settled) 14%, transparent); color: var(--settled); border-color: transparent; }
.tag.s-qualified { background: color-mix(in srgb, var(--open) 18%, transparent); color: color-mix(in srgb, var(--open) 75%, var(--ink)); border-color: transparent; }
.tag.s-being { background: var(--sky-soft); color: var(--heading); border-color: var(--sky); }
.tag.s-open { background: var(--sky-soft); color: var(--heading); border-color: var(--sky); }
.tag.s-closed { background: var(--paper-2); color: var(--ink-3); }
.tag.novelty { background: transparent; }
.labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 12px 0; }
.labels p { font-size: .9rem; color: var(--ink-2); margin: 6px 0 0; }
.label-note { font-size: .88rem; color: var(--ink-2); line-height: 2; }
.group-head { margin: 28px 0 10px; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.group-head .count { font-size: .75rem; font-weight: 600; color: var(--ink-3); background: var(--paper-2); border-radius: 999px; padding: 1px 8px; }
.findings-list { display: grid; gap: 14px; }
.finding { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px 14px; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.finding .f-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.finding .f-num { font-weight: 700; color: var(--persimmon-display); font-size: .85rem; margin-right: 2px; }
.finding h3 { font-size: 1.2rem; margin-bottom: 6px; }
.finding .plain { color: var(--ink); margin-bottom: 10px; }
.finding .card { box-shadow: none; background: var(--paper); margin: 12px 0; }
.finding .stat-row.card { background: var(--paper); }
.finding .fig-pair .card { margin: 6px 0; }
.tech { border-top: 1px solid var(--rule); padding-top: 8px; margin-top: 8px; }
.tech summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; }
.tech p { font-size: .92rem; color: var(--ink-2); margin: 8px 0 0; }
.tech .f-numbers { font-variant-numeric: tabular-nums; color: var(--heading); background: var(--paper-2); border-radius: 8px; padding: 8px 10px; }
.tech .f-link { font-size: .85rem; }
.closed-list { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.closed-list li { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--ink-3); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.closed-list.reversed li { border-left-color: var(--persimmon); }
.closed-list h4 { font-size: 1rem; margin: 0 0 4px; }
.closed-list p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.spaced-figure { margin-top: 18px; }
@media (max-width: 900px) {
  .known-grid, .labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closed-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { .known-grid, .labels { grid-template-columns: minmax(0, 1fr); } }
.brand .tag { background: none; border: 0; padding: 0; border-radius: 0; font-weight: 400; color: var(--ink-2); }

/* extra Findings charts */
.chart .glyph-label { font-family: "indus", serif; font-size: 20px; fill: var(--heading); }
.legend i.sw-ref { background: var(--ref); }
.typical { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.typ h4 { font-size: .95rem; margin: 0 0 6px; }
.typ-signs { display: flex; gap: 6px; flex-wrap: wrap; }
.typ-sign { display: flex; flex-direction: column; align-items: center; width: 52px; padding: 6px 2px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.typ-sign span.glyph { font-size: 30px; line-height: 1.1; color: var(--heading); }
.typ-sign span.is-num { font-size: .8rem; color: var(--ink-3); height: 33px; display: grid; place-items: center; }
.typ-sign b { font-size: .72rem; color: var(--heading); }
.typ-sign small { font-size: .68rem; color: var(--accent); font-weight: 600; }
table.robust { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
table.robust th, table.robust td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule); text-align: left; }
table.robust th { color: var(--ink-3); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
table.robust .n { text-align: right; }
table.robust .muted { color: var(--ink-3); }

/* Signs: detail sheet */
.chart .glyph-label { font-family: "indus", serif; font-size: 20px; fill: var(--heading); }
.sign-card { cursor: pointer; }
.sign-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 35, 61, .35); }
.sheet-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); overflow-y: auto; background: var(--card); border-left: 1px solid var(--rule); padding: 26px 24px 40px; box-shadow: -8px 0 32px rgba(20, 35, 61, .15); }
.sheet-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.sheet-head { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; }
.sheet-glyph { font-size: 78px; line-height: 1; color: var(--heading); min-width: 80px; text-align: center; }
.sheet-glyph.is-num { font-size: 1.4rem; color: var(--ink-3); }
.sheet-sub { color: var(--ink-3); font-size: .85rem; margin: 0; }
.sheet-desc { color: var(--ink-2); }
.sheet-stats { padding: 10px 0; }
.sheet-card h4 { margin: 16px 0 4px; font-size: 1rem; }
.sheet-note { font-size: .8rem; color: var(--ink-3); }
body.sheet-open { overflow: hidden; }

/* Findings: visuals on the known / disputed cards */
.kv { margin: -4px -4px 10px; background: var(--paper); border-radius: 10px; padding: 8px; min-height: 60px; }
.kv svg { display: block; width: 100%; height: auto; overflow: visible; }
.kv text { font-family: var(--ui); fill: var(--ink-2); font-size: 11px; }
.kv .lab { fill: var(--heading); font-weight: 600; font-size: 11.5px; }
.kv .sub { fill: var(--ink-3); font-size: 10px; }
.kv .val { fill: var(--heading); font-weight: 600; font-size: 11px; }
.kv .kv-glyph { font-family: "indus", serif; }
.kv-keys { list-style: none; margin: 0; padding: 2px; display: grid; gap: 6px; }
.kv-keys li { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; align-items: baseline; }
.kv-keys li b { font-size: .86rem; color: var(--heading); }
.kv-keys li small { grid-column: 2; font-size: .76rem; color: var(--ink-3); }
.kv-mark { grid-row: span 2; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.kv-keys li.ok .kv-mark { background: color-mix(in srgb, var(--settled) 18%, transparent); color: var(--settled); }
.kv-keys li.no .kv-mark { background: var(--accent-soft); color: var(--accent); }

/* Methodology figures */
.legend i.sw-open { background: transparent; border: 1.5px dashed var(--ink-3); box-sizing: border-box; }
.fig-note { font-size: .85rem; color: var(--ink-2); margin: 6px 0 0; }
.method-body figure.card { margin: 18px 0 22px; }
.legend i.sw-ink { background: var(--ink-3); }
