/* qday.co.il · המדד הקוונטי. Design system v2 (tokens, scale and component rules: frontend-notes.md).
   Rules of the system: colours only as tokens, 4/8 spacing, radii 4/8/12/16, one shadow (the result card),
   transitions on named properties only, hover inside @media (hover: hover). No inline style="" anywhere:
   the CSP has no 'unsafe-inline' for styles. */

/* ---------- colour tokens: light, dark by preference, dark by choice ---------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --fg: #0c0e12;
  --fg-hover: #2b303a;
  --on-fg: #ffffff;
  --muted: #474c56;
  --rule: #e3e5e9;
  --rule-strong: #80858f;
  --accent: #1a3ccc;
  --ok: #0b6b4a;
  --mid: #8a5a00;
  --danger: #a1281b;
  --shadow-card: 0 0 0 1px rgba(12, 14, 18, 0.1), 0 1px 2px -1px rgba(12, 14, 18, 0.08), 0 12px 32px -16px rgba(12, 14, 18, 0.14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d10;
    --surface: #121317;
    --fg: #f2f3f5;
    --fg-hover: #d6d9df;
    --on-fg: #0c0d10;
    --muted: #b1b6c0;
    --rule: #23262d;
    --rule-strong: #6f7581;
    --accent: #a6baff;
    --ok: #5ccb9c;
    --mid: #e6b556;
    --danger: #ffa193;
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d10;
  --surface: #121317;
  --fg: #f2f3f5;
  --fg-hover: #d6d9df;
  --on-fg: #0c0d10;
  --muted: #b1b6c0;
  --rule: #23262d;
  --rule-strong: #6f7581;
  --accent: #a6baff;
  --ok: #5ccb9c;
  --mid: #e6b556;
  --danger: #ffa193;
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block-start: 16px; }
body { margin: 0; background: var(--bg); color: var(--fg); }

.q {
  /* type */
  --f-sans: "IBM Plex Sans Hebrew", "Heebo", "Noto Sans Hebrew", "Arial Hebrew", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --t-meta: 0.8125rem;
  --t-small: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lead: 1.25rem;
  --t-h2: 1.375rem;
  --t-stat: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem);
  --t-h1: clamp(2.25rem, 1.35rem + 4vw, 4rem);
  --t-score: clamp(5.5rem, 4rem + 6.6vw, 8rem);
  /* space: 4 / 8 grid */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --sec: clamp(64px, 9vw, 96px);
  --pad: clamp(20px, 4vw, 32px);
  /* radii: concentric */
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 16px;
  /* motion */
  --measure: 680px;
  --dur-1: 120ms; --dur-2: 160ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  /* grade thresholds on the 0-100 scale. app.js overwrites --seg1/2/3 with the backend values. */
  --th1: calc(var(--seg1, 20) * 1%);
  --th2: calc((var(--seg1, 20) + var(--seg2, 70)) * 1%);

  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: start;
  font-synthesis: none;
}
.q *, .q *::before, .q *::after { box-sizing: border-box; }
.q :where(h1, h2, h3, p, ul, ol, dl, dd, dt, figure) { margin: 0; padding: 0; }
.q :where(ul, ol) { list-style: none; }
.q :where(h1, h2, h3) { text-wrap: balance; font-weight: 600; }
.q :where(p, li, dd) { text-wrap: pretty; }
.q a { color: inherit; text-decoration-thickness: from-font; text-underline-offset: 0.22em; }
.q :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.q :where(a, summary, h1, h2, h3) { border-radius: var(--r-1); }
.q svg { flex: none; }
.q [hidden] { display: none !important; }
.q ::selection { background: var(--fg); color: var(--on-fg); }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
/* The page grid: a label rail and one content axis */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--s-8); }
.grid > * { min-width: 0; }
@media (min-width: 960px) { .grid { grid-template-columns: 208px minmax(0, 1fr); } }

.ltr { direction: ltr; unicode-bidi: isolate; }
.ltr.nw { white-space: nowrap; }
.mono { font-family: var(--f-mono); direction: ltr; unicode-bidi: isolate; font-size: 0.94em; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.meta { font-size: var(--t-meta); line-height: 1.5; color: var(--muted); }

.skip { position: absolute; inset-block-start: var(--s-2); inset-inline-start: var(--s-2); z-index: 2; padding: var(--s-3) var(--s-4); background: var(--fg); color: var(--on-fg); border-radius: var(--r-2); font-size: var(--t-small); font-weight: 500; text-decoration: none; }
.skip:not(:focus-visible) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Status: the one recurring mark. Shape carries the meaning, colour only tints the glyph. */
.status { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); font-weight: 500; line-height: 1.4; white-space: nowrap; color: var(--fg); }
.status svg { color: var(--muted); }
.status[data-s="ok"] svg { color: var(--ok); }
.status[data-s="mid"] svg { color: var(--mid); }

/* Tag: demo labelling only (?mock=1) */
.tag { display: inline-flex; align-items: center; padding: 2px var(--s-2); border-radius: var(--r-1); box-shadow: inset 0 0 0 1px var(--rule-strong); font-size: var(--t-meta); font-weight: 500; line-height: 1.5; color: var(--fg); white-space: nowrap; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2) var(--s-3); padding: var(--s-2) var(--s-4); border-block-end: 1px solid var(--rule); font-size: var(--t-meta); line-height: 1.5; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; min-width: 44px; padding-inline: var(--s-4); border: 0; border-radius: var(--r-2); font: inherit; font-size: var(--t-small); font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule-strong); transition: background-color var(--dur-1) ease-out, box-shadow var(--dur-1) ease-out, scale var(--dur-2) var(--ease); }
.btn:active { scale: 0.96; }
.btn[disabled] { color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule); cursor: progress; }
.btn[disabled]:active { scale: 1; }
.btn-primary { background: var(--fg); color: var(--on-fg); box-shadow: none; font-weight: 600; }
.btn-primary[disabled] { background: var(--fg); color: var(--on-fg); box-shadow: none; }
@media (hover: hover) {
  .btn:not([disabled]):not(.btn-primary):hover { box-shadow: inset 0 0 0 1px var(--fg); }
  .btn-primary:not([disabled]):hover { background: var(--fg-hover); }
}

/* Header */
.hd .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-3); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; text-decoration: none; font-weight: 600; font-size: var(--t-body); line-height: 1; }
.hd-end { display: flex; align-items: center; gap: var(--s-2); margin-inline-end: -14px; } /* optical: the 16px icon in the 44px theme button sits on the column edge */
.nav { display: none; gap: var(--s-4); }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: var(--s-2); text-decoration: none; font-size: var(--t-small); color: var(--muted); transition: color var(--dur-1) ease-out; }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 500; }
.tbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-2); background: transparent; color: var(--muted); cursor: pointer; transition: color var(--dur-1) ease-out, scale var(--dur-2) var(--ease); }
.tbtn:active { scale: 0.96; }
@media (hover: hover) { .nav a:hover, .tbtn:hover { color: var(--fg); } }
@media (min-width: 640px) { .nav { display: flex; } }

/* Icon swap: both icons stay in the DOM */
.swap { position: relative; display: block; width: 16px; height: 16px; }
.swap svg { position: absolute; inset: 0; transition: opacity var(--dur-2) var(--ease), scale var(--dur-2) var(--ease), filter var(--dur-2) var(--ease); }
.swap svg:last-child { opacity: 0; scale: 0.25; filter: blur(4px); }
.btn[data-done] .swap svg:first-child, .tbtn[aria-pressed="true"] .swap svg:first-child { opacity: 0; scale: 0.25; filter: blur(4px); }
.btn[data-done] .swap svg:last-child, .tbtn[aria-pressed="true"] .swap svg:last-child { opacity: 1; scale: 1; filter: blur(0); }

/* Hero and page heads */
.hero .wrap { padding-block: clamp(40px, 8vw, 104px) var(--sec); }
.hero h1 { font-size: var(--t-h1); line-height: 1.1; letter-spacing: -0.02em; max-width: 14em; }
.hero .sub { margin-block-start: var(--s-5); font-size: var(--t-lead); line-height: 1.55; color: var(--muted); max-width: var(--measure); }
.hero .upd { margin-block-start: var(--s-4); }
.hero .eyebrow { margin-block-end: var(--s-3); font-family: var(--f-mono); font-size: var(--t-small); line-height: 1.4; color: var(--muted); direction: ltr; unicode-bidi: isolate; text-align: right; font-variant-numeric: tabular-nums; }
.hero-doc .wrap { padding-block: clamp(40px, 6vw, 80px) var(--s-8); }
.check { margin-block-start: var(--s-7); max-width: var(--measure); }
.sec .check { margin-block-start: 0; }
.check label { display: block; font-size: var(--t-small); font-weight: 500; margin-block-end: var(--s-2); }
.field { display: flex; gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule-strong); transition: box-shadow var(--dur-1) ease-out; }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--fg); }
.field:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--danger); }
.field input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; color: var(--fg); font-family: var(--f-mono); font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.375rem); padding-inline: var(--s-4); direction: ltr; text-align: left; border-radius: var(--r-2); }
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:focus { outline: none; }
.field .btn { min-height: 56px; min-width: 104px; padding-inline: var(--s-5); font-size: var(--t-body); }
.err { display: flex; gap: var(--s-2); align-items: center; margin-block-start: var(--s-3); font-size: var(--t-small); font-weight: 500; color: var(--danger); }
.fine { margin-block-start: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.why { margin-block-start: var(--s-7); padding-block-start: var(--s-4); border-block-start: 1px solid var(--rule); max-width: var(--measure); font-size: var(--t-small); color: var(--muted); }
.why b { color: var(--fg); font-weight: 600; }
.lnk { color: var(--fg); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-strong); transition: text-decoration-color var(--dur-1) ease-out; }
@media (hover: hover) { .lnk:hover { text-decoration-color: var(--fg); } }
/* Stand-alone links get a 44px row; links inside a sentence do not. */
.lnk-row { display: inline-flex; align-items: center; min-height: 44px; }
.links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin-block-start: var(--s-4); font-size: var(--t-small); }

/* Sections */
.sec { border-block-start: 1px solid var(--rule); }
.sec > .wrap { padding-block: var(--sec); }
.rail :where(h1, h2) { font-size: var(--t-h2); line-height: 1.25; letter-spacing: -0.01em; }
.rail h1, .state h2 { inline-size: fit-content; }
.rail .tag { margin-block-start: var(--s-3); }
.rail .meta { margin-block-start: var(--s-3); max-width: 24em; }
.rail .btn { margin-block-start: var(--s-4); }
.rail .dom { display: block; margin-block-start: var(--s-1); font-weight: 400; color: var(--muted); letter-spacing: 0; text-align: right; }
.sec :where(h3, .h3), .sec-first .h3 { font-size: var(--t-body); line-height: 1.4; }
.sec-first > .wrap { padding-block: clamp(24px, 5vw, 64px) var(--sec); }

/* Result card: the shareable object */
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-4); box-shadow: var(--shadow-card); }
.card-ft { margin-block-start: auto; }
.card-top, .card-ft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); padding: var(--s-4) var(--pad); }
.card-top { border-block-end: 1px solid var(--rule); }
.card-top:has(> [data-demo][hidden]) { display: none; }
.card-ft { border-block-start: 1px solid var(--rule); font-size: var(--t-meta); color: var(--muted); }
.card-ft b { color: var(--fg); font-weight: 600; }
.dom { font-family: var(--f-mono); font-weight: 500; font-size: var(--t-body); direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; min-width: 0; }

.score { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--s-7); align-items: end; padding: var(--s-6) var(--pad) 0; }
.score-num { display: flex; align-items: baseline; gap: var(--s-2); direction: ltr; justify-content: flex-end; line-height: 0.8; }
.score-num b { font-size: var(--t-score); font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.score-num span { font-family: var(--f-mono); font-size: var(--t-body); color: var(--muted); line-height: 1; }
/* No score: no numeral at all. The status ("ללא ציון") and the verdict say why. */
.score-num[data-empty] { display: none; }
.score .status { font-size: var(--t-lead); font-weight: 600; gap: var(--s-3); }
.verdict { margin-block-start: var(--s-2); color: var(--muted); max-width: 28em; }
@media (min-width: 640px) { .score { grid-template-columns: auto minmax(0, 1fr); } }

/* Scale: 0 at the inline start. Ticks sit on the grade thresholds. */
.scale { padding: var(--s-6) var(--pad) var(--s-6); }
.scale-track { position: relative; height: 2px; background: var(--rule); }
.scale-fill { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--at, 0%); background: var(--fg); }
.scale-fill::after { content: ""; position: absolute; inset-inline-end: -1px; inset-block-start: -5px; inline-size: 2px; block-size: 12px; background: var(--fg); }
.scale-tick { position: absolute; inset-block-start: 0; inline-size: 1px; block-size: 8px; background: var(--rule-strong); }
.scale-tick:nth-child(1) { inset-inline-start: var(--th1); }
.scale-tick:nth-child(2) { inset-inline-start: var(--th2); }
.scale-lbls { display: flex; margin-block-start: var(--s-3); font-size: var(--t-meta); line-height: 1.5; color: var(--muted); }
.scale-lbls span { flex: none; white-space: nowrap; }
.scale-lbls span:nth-child(1) { min-inline-size: var(--th1); padding-inline-end: var(--s-3); }
.scale-lbls span:nth-child(2) { flex: 1; min-width: 0; }
.scale-lbls span:nth-child(3) { text-align: end; }
.scale-lbls span[data-on] { color: var(--fg); font-weight: 600; }
.scale-lbls i { font-style: normal; display: block; text-align: end; font-weight: 400; }
.scale-lbls span:nth-child(3) i { text-align: start; }

.finds { border-block-start: 1px solid var(--rule); }
.scale[hidden] + .finds { margin-block-start: var(--s-6); }
.find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: baseline; padding: var(--s-5) var(--pad); }
.find + .find { border-block-start: 1px solid var(--rule); }
.find dt { grid-column: 1 / -1; font-size: var(--t-small); color: var(--muted); }
.find .val { font-family: var(--f-mono); font-weight: 500; font-size: var(--t-lead); line-height: 1.4; direction: ltr; unicode-bidi: isolate; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.find .val.plain { font-family: var(--f-sans); direction: rtl; text-align: start; color: var(--muted); }
.find .expl { grid-column: 1 / -1; font-size: var(--t-small); color: var(--muted); max-width: 38em; }
.find .expl .sub { display: block; margin-block-start: var(--s-1); font-size: var(--t-meta); line-height: 1.5; }
@media (min-width: 640px) {
  .find { grid-template-columns: 144px minmax(0, 1fr) auto; }
  .find dt { grid-column: auto; grid-row: 1 / span 2; }
  .find .expl { grid-column: 2 / -1; }
}
.note { display: flex; gap: var(--s-3); padding: var(--s-4) var(--pad); border-block-start: 1px solid var(--rule); font-size: var(--t-small); color: var(--muted); }
.note svg { margin-block-start: 5px; }

.checking { padding: var(--s-6) var(--pad); }
.checking > p { font-weight: 500; }
.prog { margin-block-start: var(--s-4); }
.prog li { display: flex; align-items: center; gap: var(--s-3); min-height: 40px; color: var(--muted); }
.prog li[data-st="on"], .prog li[data-st="done"] { color: var(--fg); }
.prog .dot { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--rule-strong); }
.prog .dot svg { display: none; }
.prog li[data-st="on"] .dot { border-color: var(--rule); border-block-start-color: var(--fg); animation: spin 800ms linear infinite; }
.prog li[data-st="done"] .dot { border-color: transparent; }
.prog li[data-st="done"] .dot svg { display: block; }
@keyframes spin { to { rotate: 360deg; } }

/* States inside the card: not checked yet, invalid, unreachable, rate limited, server error, offline */
.state { display: flex; gap: var(--s-3); padding: var(--s-6) var(--pad); }
.state > svg { margin-block-start: 6px; color: var(--muted); }
.state > div { min-width: 0; }
.state h2 { font-size: var(--t-lead); line-height: 1.4; }
.state p { margin-block-start: var(--s-2); color: var(--muted); max-width: 38em; }
.state p .mono { color: var(--fg); overflow-wrap: anywhere; }
.state ul { margin-block-start: var(--s-4); max-width: 38em; }
.state .acts { margin-block-start: var(--s-5); }
.acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-block-start: var(--s-5); }
@media (max-width: 479px) { .share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .share > :first-child { grid-column: 1 / -1; } .share .btn { justify-content: center; padding-inline: var(--s-2); } }
.share-note { margin-block-start: var(--s-2); min-block-size: 1.5em; overflow-wrap: anywhere; }

.next { margin-block-start: var(--s-7); }
.steps { counter-reset: s; margin-block-start: var(--s-3); max-width: var(--measure); }
.steps li { counter-increment: s; display: grid; grid-template-columns: var(--s-5) minmax(0, 1fr); gap: var(--s-2); padding-block: var(--s-3); color: var(--fg); }
.steps li + li { border-block-start: 1px solid var(--rule); }
.steps li::before { content: counter(s); font-family: var(--f-mono); font-size: var(--t-small); color: var(--muted); line-height: 1.87; }

/* Hairline lists: rows of like things */
.rows { max-width: var(--measure); }
.rows li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.rows li + li { border-block-start: 1px solid var(--rule); }
.rows li::before { content: ""; inline-size: 8px; block-size: 1.5px; margin-block-start: 0.8em; margin-inline: var(--s-1); border-radius: 1px; background: var(--rule-strong); }
.rows li b { color: var(--fg); font-weight: 600; }
.rows .lnk { font-weight: 500; }

/* Index */
.stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.stat b { font-size: var(--t-stat); font-weight: 600; line-height: 1; letter-spacing: -0.035em; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.stat b[data-empty] { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.stat span { font-size: var(--t-lead); line-height: 1.4; }
.stat + .meta { margin-block-start: var(--s-2); }
.tabs-scroll { overflow-x: auto; margin-block-start: var(--s-7); margin-inline: calc(var(--s-2) * -1); scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: var(--s-2); width: max-content; }
#panel { border-block-start: 1px solid var(--rule); }
.tab { display: inline-flex; align-items: baseline; gap: var(--s-2); min-height: 48px; padding: var(--s-3) var(--s-2); border: 0; border-block-end: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: var(--t-small); font-weight: 500; line-height: 1.4; white-space: nowrap; cursor: pointer; transition: color var(--dur-1) ease-out; }
.tab .mono { font-size: var(--t-meta); font-weight: 400; }
.tab[aria-selected="true"] { color: var(--fg); border-block-end-color: var(--fg); font-weight: 600; }
.tab:focus-visible { outline-offset: -2px; }
@media (hover: hover) { .tab:hover { color: var(--fg); } }

.tablewrap { overflow-x: auto; }
.tablewrap:focus-visible { outline-offset: 4px; }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: var(--t-small); line-height: 1.4; }
th, td { padding: var(--s-4) var(--s-5) var(--s-4) 0; text-align: start; vertical-align: middle; border-block-end: 1px solid var(--rule); white-space: nowrap; }
th:first-child, td:first-child { padding-inline-start: 0; }
th:last-child, td:last-child { padding-inline-end: 0; }
thead th { padding-block: var(--s-3); font-size: var(--t-meta); font-weight: 500; color: var(--muted); }
tbody tr:last-child > * { border-block-end: 0; }
tbody th { font-weight: 500; }
.c-rk { width: 2.5em; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-sc { width: 4em; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-sc[data-empty] { color: var(--muted); font-weight: 400; }
.c-kx { direction: ltr; text-align: left; }
.c-kx .plain { direction: rtl; unicode-bidi: isolate; color: var(--muted); }
@media (max-width: 639px) { #index table { min-width: 0; } #index .c-kx, #index .c-dt { display: none; } #index th, #index td { padding-inline-end: var(--s-3); white-space: normal; } #index .org .dm { overflow-wrap: anywhere; } #index .status { white-space: nowrap; } #index .sub { display: none; } #index .c-sc { width: 3em; } #index .c-rk { width: 1.5em; } }
.c-dt { text-align: end; color: var(--muted); font-variant-numeric: tabular-nums; }
td .status { vertical-align: middle; }
.org a { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; text-decoration: none; }
.org .nm { text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: 0.22em; text-decoration-color: var(--rule-strong); transition: text-decoration-color var(--dur-1) ease-out; }
.org .dm { display: block; }
.org .dm.mh { opacity: .85; }
td .sub { display: block; font-size: var(--t-meta); color: var(--muted); margin-top: 2px; }
.org .dm { font-family: var(--f-mono); font-size: var(--t-meta); font-weight: 400; color: var(--muted); direction: ltr; unicode-bidi: isolate; text-align: right; }
@media (hover: hover) { .org a:hover .nm { text-decoration-color: var(--fg); } }
tbody:has(.org) th, tbody:has(.org) td { padding-block: var(--s-2); }
.skel { display: block; block-size: 8px; border-radius: var(--r-1); background: var(--rule); }
.skel.w1 { inline-size: 1.5em; } .skel.w2 { inline-size: 11em; } .skel.w3 { inline-size: 2em; } .skel.w4 { inline-size: 6em; } .skel.w5 { inline-size: 9em; } .skel.w6 { inline-size: 5em; margin-inline-start: auto; }
tbody tr[aria-hidden="true"] td { block-size: 61px; }
.board-state { padding-block: var(--s-6); max-width: var(--measure); }
.board-state p { margin-block-start: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.board-state .acts { margin-block-start: var(--s-4); }
.board-note { margin-block-start: var(--s-4); }
.board-note + .board-note { margin-block-start: var(--s-1); }

/* Prose */
.prose { display: grid; gap: var(--s-4); max-width: var(--measure); align-content: start; }
.prose p:first-child { font-size: var(--t-lead); line-height: 1.55; }
.prose p + p { color: var(--muted); }

.scope { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7) var(--s-8); }
.scope > div { min-width: 0; }
.scope h3 { padding-block-end: var(--s-3); border-block-end: 1px solid var(--fg); }
.scope li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.scope li + li { border-block-start: 1px solid var(--rule); }
.scope li svg { margin-block-start: 5px; color: var(--fg); }
.scope .nope li svg { color: var(--rule-strong); }
.scope li b { color: var(--fg); font-weight: 600; }
.scope-foot { margin-block-start: var(--s-6); max-width: var(--measure); }
.scope-foot + p { margin-block-start: var(--s-2); font-size: var(--t-small); }
@media (min-width: 640px) { .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.faq { max-width: var(--measure); border-block-start: 1px solid var(--fg); }
.faq details { border-block-end: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; padding-block: var(--s-3); cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--muted); transition: rotate var(--dur-2) var(--ease); }
.faq details[open] summary svg { rotate: 45deg; }
.faq details p { padding-block-end: var(--s-5); padding-inline-end: var(--s-6); font-size: var(--t-small); line-height: 1.7; color: var(--muted); }

/* Text pages: methodology, privacy */
.toc { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); align-content: start; font-size: var(--t-small); }
.toc h2 { flex-basis: 100%; font-size: var(--t-meta); font-weight: 500; line-height: 1.5; color: var(--muted); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--muted); text-decoration: none; transition: color var(--dur-1) ease-out; }
@media (hover: hover) { .toc a:hover { color: var(--fg); } }
@media (min-width: 960px) {
  .hero-doc .toc { grid-column: 1; grid-row: 1; flex-direction: column; flex-wrap: nowrap; gap: 0; padding-block-start: var(--s-2); }
  .hero-doc .pagehd { grid-column: 2; grid-row: 1; }
}
.doc .sec > .wrap { padding-block: var(--s-7); }
.doc-body { display: grid; gap: var(--s-4); max-width: var(--measure); align-content: start; }
.doc-body > * { min-width: 0; }
.doc-body h3 { margin-block-start: var(--s-3); }
.doc-body .rows, .doc-body .tablewrap { max-width: none; }
.doc-body .fine { margin-block-start: 0; }
.doc-body table { min-width: 520px; }
.doc-body td { white-space: normal; vertical-align: top; }
.doc-body td:first-child { white-space: nowrap; }
.doc-body td b { font-weight: 600; }
.doc-body .pt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.doc-body thead th:last-child { text-align: end; }
.doc-body tfoot td { border-block-start: 1px solid var(--fg); border-block-end: 0; font-weight: 600; }

/* Footer */
.ft { border-block-start: 1px solid var(--rule); }
.ft .wrap { padding-block: var(--s-7) var(--s-8); font-size: var(--t-small); color: var(--muted); }
.brand-a { gap: var(--s-3); }
.brand-a .wm-latin { font-family: var(--f-mono); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; direction: ltr; unicode-bidi: isolate; }
.brand-a .wm-rule { inline-size: 1px; block-size: 16px; background: currentColor; opacity: .45; }
.ft .brand { min-height: 0; color: var(--fg); }
.ft-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--s-8); }
.ft-cols > * { min-width: 0; }
.ft h2 { font-size: var(--t-meta); font-weight: 500; color: var(--muted); margin-block-end: var(--s-1); }
.ft h2 ~ h2 { margin-block-start: var(--s-4); }
.ft li, .ft p { color: var(--fg); }
.ft .links { margin-block-start: var(--s-2); }
.ft .press { font-family: var(--f-mono); font-size: 0.94em; direction: ltr; unicode-bidi: isolate; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 640px) { .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  .q *, .q *::before, .q *::after { transition-duration: 0.01ms !important; }
  .prog li[data-st="on"] .dot { animation: none; border-color: var(--fg); border-inline-end-color: var(--rule); }
  .btn:active, .tbtn:active { scale: 1; }
}
