/* callfrombrowser.org — site styles.
   Design: logo A "Slug", type pair 1 "Wedge" (Piazzolla / Commissioner / JetBrains Mono), palette I "Petrol".
   Naming: newsroom nouns joined by one underscore (slate_score), variants in data-v, state in ARIA/native attributes.
   Mobile-first, logical properties only (RTL), no inline styles (CSP style-src 'self'). */

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --paper: #F4F5F1; --ink: #151B1E; --muted: #586469; --rule: #D3D9D6;
  --accent: #0A6A73; --accent-ink: #FFFFFF; --ok: #1D6B43; --warn: #8A5600; --bad: #AD2E28;
  --sponsor-tint: #E2EEEB; --link: #0A6A73; --panel: #E9ECE7; --logo-acc: #0A6A73;
  --bar: #6E7C80; --shade: rgba(21, 27, 30, .16);

  --f-head: "Piazzolla", Georgia, "Times New Roman", serif;
  --f-body: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-num: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --h-wght: 700; --h-track: -0.004em; --h-word: .07em; --h-lh: 1.12;
  --body-lh: 1.6;
  --caps: uppercase; --track: .1em; --label-size: .74rem;

  --gut: 16px; --measure: 44rem; --wide: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101618; --ink: #E6ECEA; --muted: #9AA8AC; --rule: #2A3438;
    --accent: #5CC2C6; --accent-ink: #071214; --ok: #6BCB92; --warn: #E2B354; --bad: #F08A80;
    --sponsor-tint: #14272A; --link: #6FCFD2; --panel: #172024; --logo-acc: #5CC2C6;
    --bar: #7D8D92; --shade: rgba(0, 0, 0, .5);
  }
}
@media (min-width: 720px) { :root { --gut: 32px; } }
@media (min-width: 1100px) { :root { --gut: 48px; } }

/* Non-Latin scripts: no letter-spacing, no uppercase, a sans heading face that matches the script face,
   and taller lines for scripts with stacked marks. The Latin face stays first so Latin words keep it. */
html[data-script]:not([data-script="latin"]) {
  --caps: none; --track: 0; --h-track: 0; --h-word: normal; --label-size: .86rem;
  --f-head: var(--f-body); --h-lh: 1.35; --body-lh: 1.75;
}
html[data-script="arabic"] { --f-body: "Commissioner", "Noto Sans Arabic", system-ui, sans-serif; --body-lh: 1.85; }
html[data-script="persian"] { --f-body: "Commissioner", "Vazirmatn", system-ui, sans-serif; --body-lh: 1.85; }
html[data-script="hebrew"] { --f-body: "Commissioner", "Noto Sans Hebrew", system-ui, sans-serif; --body-lh: 1.7; }
html[data-script="devanagari"] { --f-body: "Commissioner", "Noto Sans Devanagari", system-ui, sans-serif; --body-lh: 1.8; --h-lh: 1.45; }
html[data-script="bengali"] { --f-body: "Commissioner", "Noto Sans Bengali", system-ui, sans-serif; --body-lh: 1.8; --h-lh: 1.45; }
html[data-script="thai"] { --f-body: "Commissioner", "Anuphan", system-ui, sans-serif; --body-lh: 1.8; --h-lh: 1.45; }
html[data-script="jp"] { --f-body: "Commissioner", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; --body-lh: 1.8; }
html[data-script="kr"] { --f-body: "Commissioner", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; --body-lh: 1.75; }
html[data-script="sc"] { --f-body: "Commissioner", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --body-lh: 1.8; }
html[data-script="tc"] { --f-body: "Commissioner", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; --body-lh: 1.8; }
html:is([data-script="jp"], [data-script="sc"], [data-script="tc"]) { line-break: strict; }
html[data-script="kr"] { word-break: keep-all; }
html[lang|="ja"] :is(h1, h2, h3, .qa summary) { word-break: auto-phrase; }

/* Chevrons (summary::after) use physical borders on purpose: rotated 45deg they point down in LTR and RTL alike. */
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: var(--body-lh);
  font-kerning: normal; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--f-head); font-weight: var(--h-wght); letter-spacing: var(--h-track); word-spacing: var(--h-word);
  line-height: var(--h-lh); margin: 0; text-wrap: balance; hyphens: manual;
}
p, ul, ol, dl, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
strong, b { font-weight: 700; }
a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: from-font; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--sponsor-tint); color: var(--ink); }
.num { font-family: var(--f-num); font-size: .92em; font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; }
bdi { unicode-bidi: isolate; }
time { white-space: nowrap; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a.vh:focus, a.vh:focus-visible {
  position: fixed; z-index: 100; inset-block-start: 8px; inset-inline-start: 8px; width: auto; height: auto; clip-path: none;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); font-weight: 600; text-decoration: none;
}

/* small uppercase labels (Latin only; see the script block above) */
.kicker, .brief_h, .slate_pch, .toc summary, .ledger thead th, .notice[data-v="tag"] {
  text-transform: var(--caps); letter-spacing: var(--track);
}

/* ---------- masthead ---------- */
.mast { position: relative; border-block-end: 1px solid var(--rule); background: var(--paper); }
.mast_in {
  max-width: calc(var(--wide) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut);
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px;
}
.mast_logo { display: inline-flex; align-items: center; min-height: 60px; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.mast_svg { width: auto; height: 28px; }
.mast_acc, .mast_caret { fill: var(--logo-acc); }
.mast_caret { animation: caret 1.1s steps(1, end) 1s 5; }
@keyframes caret { 50% { opacity: 0; } }
.mast_word { font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; letter-spacing: 0; }
.mast_word b { color: var(--logo-acc); }

.mast_nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px;
  width: calc(100% + 24px); margin-inline: -12px; border-block-start: 1px solid var(--rule);
}
.mast_nav > a, .drop > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding-inline: 12px;
  color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 2px;
}
.mast_nav > a:hover, .drop > summary:hover { color: var(--accent); }
.drop > summary { list-style: none; user-select: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after {
  content: ""; width: 7px; height: 7px; margin-block-start: -4px; margin-inline-start: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.drop[open] > summary::after { transform: rotate(-135deg); margin-block-start: 3px; }
.drop[data-v="lang"] { margin-inline-start: auto; }
.drop[data-v="lang"] > summary { font-family: var(--f-num); font-weight: 600; font-size: .88rem; letter-spacing: 0; border: 1px solid var(--rule); min-height: 40px; margin-block: 4px; }
.drop > ul {
  position: absolute; z-index: 30; inset-inline: 0; inset-block-start: 100%;
  list-style: none; margin: 0; padding: 8px var(--gut) 16px;
  background: var(--paper); border-block: 1px solid var(--ink); box-shadow: 0 12px 24px -12px var(--shade);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); column-gap: 16px;
}
.drop[data-v="lang"] > ul { max-height: min(70vh, 34rem); overflow-y: auto; overscroll-behavior: contain; }
.drop > ul a {
  display: flex; align-items: center; min-height: 44px; padding-inline: 8px; border-radius: 2px;
  color: var(--ink); text-decoration: none; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.drop > ul a:hover { background: var(--panel); }
.drop > ul a[aria-current] { font-weight: 700; color: var(--accent); }
.drop > ul a[aria-current]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-inline-end: 8px; flex: none; }

@media (min-width: 900px) {
  .mast_logo { min-height: 72px; }
  .mast_svg { height: 30px; }
  .mast_nav { width: auto; margin-inline: 0 -12px; border: 0; }
  .drop { position: relative; }
  .drop > ul {
    inset-inline: auto; inset-inline-start: 0; inset-block-start: calc(100% + 6px); min-width: 17rem;
    padding: 8px; border: 1px solid var(--ink); border-radius: 3px; grid-template-columns: 1fr;
  }
  .drop[data-v="lang"] { margin-inline-start: 8px; }
  .drop[data-v="lang"] > ul { inset-inline-start: auto; inset-inline-end: 0; width: min(36rem, 80vw); grid-template-columns: repeat(3, 1fr); }
}

/* ---------- sheet: centred text measure, wide breakouts ---------- */
.sheet {
  max-width: calc(var(--wide) + 2 * var(--gut)); margin-inline: auto;
  padding: 8px var(--gut) 64px;
}
.sheet > :not(.part), .part > * { max-width: var(--measure); margin-inline: auto; }
.sheet > :is(.teases, .cats, .langs),
.part > :is(.slates, .teases[data-v="hubs"]),
.part > .ledger_scroll:has(thead th:nth-child(5)),
.part > .ledger_scroll:has(thead th:nth-child(5)) + .ledger_note { max-width: var(--wide); }

/* breadcrumbs: slashes echo the logo */
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: .86rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--logo-acc); font-weight: 700; margin-inline: 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration-color: var(--rule); }
.crumbs a:hover { color: var(--ink); }
.crumbs li[aria-current] { display: block; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36ch; }
@media (max-width: 719px) { .crumbs li[aria-current] { display: none; } }

/* headline */
.headline { padding-block: 16px 8px; display: grid; gap: 14px; }
.kicker { font-size: var(--label-size); font-weight: 700; color: var(--accent); line-height: 1.4; }
.headline h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.3rem); line-height: calc(var(--h-lh) - .04); }
html[data-script]:not([data-script="latin"]) .headline h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
.headline .lead { font-size: 1.12em; color: var(--muted); line-height: 1.55; }
.partof { font-size: .92rem; color: var(--muted); }
.partof a { color: var(--ink); font-weight: 600; }
.byline { font-size: .88rem; color: var(--muted); border-block-start: 1px solid var(--rule); padding-block-start: 12px; line-height: 1.7; }
.byline a { color: var(--ink); font-weight: 600; text-decoration-color: var(--rule); }

/* TL;DR */
.brief { margin-block-start: 28px; border: 2px solid var(--ink); padding: 18px 18px 20px; display: grid; gap: 12px; }
.brief h2 { font-size: 1.3rem; display: flex; align-items: baseline; gap: 10px; }
.brief h2::before { content: ""; width: 10px; height: 10px; background: var(--logo-acc); flex: none; transform: skewX(-17deg); }
.brief_h { font-size: var(--label-size); font-weight: 700; color: var(--muted); margin-block-start: 4px; border-block-start: 1px solid var(--rule); padding-block-start: 12px; }
.brief ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.brief li { position: relative; padding-inline-start: 22px; line-height: 1.55; }
.brief li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: .62em; width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; }
@media (min-width: 720px) { .brief { padding: 24px 28px 26px; } }

/* table of contents */
.toc { margin-block-start: 28px; border-block: 1px solid var(--rule); }
.toc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; font-size: var(--label-size); font-weight: 700; color: var(--muted);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-inline-end: 6px; margin-block-start: -4px; }
.toc details[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.toc ol { list-style: none; padding: 0 0 14px; counter-reset: toc; }
.toc li { counter-increment: toc; break-inside: avoid; }
.toc a {
  display: grid; grid-template-columns: 2.2em 1fr; align-items: baseline; padding-block: 9px; min-height: 44px;
  color: var(--ink); text-decoration: none; line-height: 1.4; font-size: .98rem;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-num); font-size: .8em; color: var(--muted); }
.toc a:hover { color: var(--accent); }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }

/* ---------- sections ---------- */
.part { padding-block-start: 48px; }
.part > * + * { margin-block-start: 1.1rem; }
.part > h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.35vw, 2.2rem); border-block-start: 3px solid var(--ink); padding-block-start: 16px;
  scroll-margin-top: 16px;
}
html[data-script]:not([data-script="latin"]) .part > h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.part > h2 + * { margin-block-start: 1rem; }
.part > h3 { font-size: clamp(1.22rem, 1.1rem + .45vw, 1.45rem); margin-block-start: 2rem; }
.part > .lead { font-size: 1.08em; line-height: 1.6; }
.part > :is(ul, ol):not([class]) { padding-inline-start: 1.4em; display: grid; gap: .5em; }
.part > ul:not([class]) > li::marker { color: var(--accent); }
.part > ol:not([class]) > li::marker { font-family: var(--f-num); font-size: .88em; color: var(--muted); }
.part > :is(ul, ol):not([class]) > li { padding-inline-start: .2em; }
/* hyphenate only where the column is narrow */
@media (max-width: 719px) {
  .part > p, .part li, .qa_a, .callout, .brief { hyphens: auto; hyphenate-limit-chars: 8 4 4; }
}

sup.cite { line-height: 0; font-size: .7em; vertical-align: super; }
sup.cite a { font-family: var(--f-num); text-decoration: none; padding-inline: 1px; color: var(--muted); }
sup.cite a:hover { color: var(--accent); }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.money[title] { text-decoration: underline dotted; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: .22em; cursor: help; }
a .money[title] { text-decoration: none; }

/* callouts */
.callout { --c: var(--accent); border-inline-start: 4px solid var(--c); background: var(--panel); padding: 14px 16px 14px 16px; border-radius: 0 3px 3px 0; }
.callout[data-v="warn"] { --c: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--paper)); }
[dir="rtl"] .callout { border-radius: 3px 0 0 3px; }
.callout p { position: relative; padding-inline-start: 30px; line-height: 1.55; }
.callout p::before {
  content: "i"; position: absolute; inset-inline-start: 0; inset-block-start: .15em;
  width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: var(--paper);
  font: 700 13px/20px var(--f-head); text-align: center;
}
.callout[data-v="warn"] p::before { content: "!"; font-family: var(--f-body); }

/* formula, fx note */
.formula { font-size: .95rem; background: var(--panel); border-inline-start: 4px solid var(--ink); padding: 12px 16px; }
.fxnote { margin-block-start: 40px; font-size: .86rem; color: var(--muted); border-block-start: 1px solid var(--rule); padding-block-start: 12px; }

/* ---------- figures ---------- */
figure.shot { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--panel); }
figure.shot::before {
  content: ""; display: block; height: 22px; border-block-end: 1px solid var(--rule);
  background:
    radial-gradient(circle, var(--rule) 3.5px, transparent 4px) 10px 50% / 12px 12px no-repeat,
    radial-gradient(circle, var(--rule) 3.5px, transparent 4px) 26px 50% / 12px 12px no-repeat,
    radial-gradient(circle, var(--rule) 3.5px, transparent 4px) 42px 50% / 12px 12px no-repeat;
}
[dir="rtl"] figure.shot::before { background-position: calc(100% - 10px) 50%, calc(100% - 26px) 50%, calc(100% - 42px) 50%; }
figure.shot img { width: 100%; background: var(--paper); }
figure.shot figcaption { padding: 10px 14px 12px; font-size: .86rem; line-height: 1.5; color: var(--ink); border-block-start: 1px solid var(--rule); background: var(--paper); }
.shot_meta { display: block; color: var(--muted); font-size: .92em; margin-block-start: 2px; }
@media (prefers-color-scheme: dark) { figure.shot img { filter: brightness(.88) contrast(1.04); } }

figure.chart { border-block: 1px solid var(--rule); padding-block: 16px 12px; }
figure.chart svg { width: 100%; height: auto; overflow: visible; }
figure.chart figcaption { font-size: .86rem; color: var(--muted); margin-block-start: 10px; line-height: 1.5; }
/* every chart ships a wide and a narrow drawing; show one */
figure.chart svg[data-v="narrow"] { display: none; }
@media (max-width: 559px) {
  figure.chart svg[data-v="wide"] { display: none; }
  figure.chart svg[data-v="narrow"] { display: block; }
}

/* SVG drawing (classes from scripts/lib/svg.mjs) */
.svg_t { fill: var(--ink); font-family: var(--f-body); font-weight: 600; }
.svg_n { fill: var(--muted); font-family: var(--f-num); font-weight: 400; }
.svg_h { fill: var(--muted); font-family: var(--f-body); font-weight: 700; }
.svg_v { fill: var(--ink); font-family: var(--f-num); font-weight: 600; }
.route_box { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.route_end { fill: var(--sponsor-tint); stroke: var(--accent); }
.route_line { stroke: var(--accent); stroke-width: 4; fill: none; stroke-linecap: round; }
.route_line2 { stroke: var(--ink); stroke-width: 4; fill: none; stroke-linecap: round; }
.route_head { fill: var(--accent); }
.route_head2 { fill: var(--ink); }
.route_ico { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.route_tile { fill: var(--panel); }
.costs_bar { fill: var(--bar); }
.costs_bar.costs_sp { fill: var(--bar); }
.costs_row { fill: var(--sponsor-tint); }
.svg_t.costs_sp { font-weight: 700; }
.costs_axis { stroke: var(--rule); stroke-width: 1; }
.cov_yes { fill: var(--ok); }
.cov_partial { fill: var(--paper); stroke: var(--warn); stroke-width: 2; }
.cov_half { fill: var(--warn); }
.cov_no { fill: var(--bad); }
.cov_line { stroke: var(--rule); stroke-width: 1; }
html[data-script]:not([data-script="latin"]) :is(.svg_t, .svg_h) { letter-spacing: 0; }

/* ---------- comparison tables ---------- */
.ledger_scroll {
  position: relative; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  border-block-start: 2px solid var(--ink); border-block-end: 1px solid var(--rule);
  /* scroll shadow at the inline end: the cover moves with the table, the shade stays with the box */
  background:
    linear-gradient(to left, var(--paper) 35%, transparent) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, var(--shade), transparent) right / 14px 100% no-repeat scroll;
}
[dir="rtl"] .ledger_scroll {
  background:
    linear-gradient(to right, var(--paper) 35%, transparent) left / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--shade), transparent) left / 14px 100% no-repeat scroll;
}
.ledger { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .9rem; line-height: 1.4; }
.ledger caption { caption-side: top; text-align: start; padding: 12px 12px 10px 0; font-weight: 700; font-size: .95rem; color: var(--ink); }
[dir="rtl"] .ledger caption { padding: 12px 0 10px 12px; }
.ledger th, .ledger td { padding: 11px 12px; border-block-end: 1px solid var(--rule); text-align: start; vertical-align: top; }
.ledger td { min-width: 9.5rem; }
.ledger thead th {
  background: var(--panel); font-size: .72rem; font-weight: 700; color: var(--muted); vertical-align: bottom; line-height: 1.3;
  border-block-end: 1px solid var(--ink);
}
html[data-script]:not([data-script="latin"]) .ledger thead th { font-size: .82rem; }
.ledger tbody th { font-family: var(--f-head); font-weight: var(--h-wght); font-size: .98rem; }
.ledger tbody th a { color: var(--ink); text-decoration-color: var(--rule); }
.ledger th[scope="row"], .ledger thead th:first-child {
  position: sticky; inset-inline-start: 0; z-index: 1; min-width: 7rem; max-width: 9.5rem; background: var(--paper);
  box-shadow: inset -1px 0 0 var(--rule);
}
[dir="rtl"] .ledger :is(th[scope="row"], thead th:first-child) { box-shadow: inset 1px 0 0 var(--rule); }
.ledger thead th:first-child { background: var(--panel); z-index: 2; }
.ledger tbody tr:last-child > * { border-block-end: 0; }
.ledger tr[data-v="sponsor"] > * { background: var(--sponsor-tint); }
.ledger td.num { text-align: end; white-space: nowrap; font-size: .86rem; min-width: 4.5rem; }
.ledger td .money { font-family: var(--f-num); font-size: .92em; }
.ledger td[data-v] { white-space: nowrap; }
.ledger td[data-v]::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; vertical-align: -.02em; border-radius: 50%;
}
.ledger td[data-v="yes"]::before { background: var(--ok); }
.ledger td[data-v="no"]::before { width: 10px; height: 3px; border-radius: 2px; vertical-align: .22em; background: var(--bad); }
.ledger td:is([data-v="partial"], [data-v="unstated"], [data-v="business"])::before { border: 2px solid var(--warn); background: linear-gradient(90deg, var(--warn) 50%, transparent 50%); }
[dir="rtl"] .ledger td:is([data-v="partial"], [data-v="unstated"], [data-v="business"])::before { background: linear-gradient(270deg, var(--warn) 50%, transparent 50%); }
.ledger td[data-v="unknown"] { color: var(--muted); }
.ledger td[data-v="unknown"]::before { border: 1.5px dashed var(--muted); }
.ledger_note { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-block-start: 8px !important; }
.ledger_note:empty { display: none; }
@media (min-width: 720px) {
  .ledger { font-size: .94rem; }
  .ledger th, .ledger td { padding: 12px 14px; }
  .ledger td { min-width: 7rem; }
  .ledger th[scope="row"], .ledger thead th:first-child { min-width: 9rem; max-width: 13rem; }
}

/* ---------- slates (service cards) ---------- */
.slates { display: grid; gap: 24px; }
.slate {
  position: relative; display: grid; gap: 14px; align-content: start; min-width: 0;
  border: 1px solid var(--rule); border-block-start: 3px solid var(--ink); padding: 18px 16px 18px; background: var(--paper);
}
.slate[data-v="sponsor"] { background: var(--sponsor-tint); border-color: var(--sponsor-tint); border-block-start-color: var(--ink); }
.slate_head { display: grid; row-gap: 4px; align-items: baseline; }
.slate_head:has(> .slate_rank) { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
.slate_head:has(> .slate_rank) > * { grid-column: 2; }
.slate_head > .slate_rank {
  grid-column: 1; grid-row: 1 / span 3; font-family: var(--f-head); font-weight: 700; font-size: 2.4rem; line-height: 1;
  min-width: 1.6em; letter-spacing: var(--h-track); align-self: start; font-variant-numeric: lining-nums;
}
.slate_name { font-size: 1.45rem; line-height: 1.15; }
.slate_tag { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.notice[data-v="tag"] {
  justify-self: start; font-size: .68rem; font-weight: 700; line-height: 1; color: var(--ink);
  border: 1px solid currentColor; border-radius: 2px; padding: 4px 7px 3px; margin-block: 2px;
}
html[data-script]:not([data-script="latin"]) .notice[data-v="tag"] { font-size: .8rem; }
.slate_score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-block-start: 6px; font-size: .86rem; }
.slate_score .num { font-size: 1.35rem; font-weight: 600; color: var(--ink); line-height: 1.2; unicode-bidi: isolate; }
.slate_score a { color: var(--muted); }
/* small inline links in headers: a 44 px hit area without changing the layout */
:is(.slate_score, .byline, .partof) a { padding-block: 12px; margin-block: -12px; }
.slate_best { line-height: 1.5; }
.slate_best strong, .slate_price strong { font-weight: 700; }
.slate_pc { display: grid; gap: 14px; border-block: 1px solid var(--rule); padding-block: 14px; }
.slate[data-v="sponsor"] .slate_pc { border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.slate_pch { font-size: var(--label-size); font-weight: 700; color: var(--muted); margin-block-end: 6px; }
.slate_pc ul { list-style: none; padding: 0; display: grid; gap: 6px; font-size: .95rem; line-height: 1.45; }
.slate_pc li { position: relative; padding-inline-start: 22px; }
.slate_pc li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .36em; width: 12px; height: 12px; }
.slate_pc [data-v="pro"] li::before {
  background: linear-gradient(var(--ok), var(--ok)) center / 12px 2px no-repeat, linear-gradient(var(--ok), var(--ok)) center / 2px 12px no-repeat;
}
.slate_pc [data-v="con"] li::before { background: linear-gradient(var(--bad), var(--bad)) center / 12px 2px no-repeat; }
.slate_price, .slate_note { font-size: .95rem; line-height: 1.5; }
.slate_note { color: var(--muted); }
.slate_go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-block-start: 2px; }
.slate_go a:not(.cta) { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.slate_go a:not(.cta)::after { content: "\2192"; font-family: var(--f-num); text-decoration: none; display: inline-block; }
[dir="rtl"] .slate_go a:not(.cta)::after { content: "\2190"; }
/* the one button on the site: calm, inside the sponsor card */
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 3px;
  font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.2; text-align: center;
}
.cta:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.slate .shot { border-radius: 4px; }
.slate .shot::before { height: 16px; background-size: 9px 9px; }
.slate .shot figcaption { font-size: .78rem; padding: 8px 10px; }

/* ranked and picks: one card per row; the screenshot sits beside the text on wide screens */
@media (min-width: 860px) {
  .slates:is([data-v="ranked"], [data-v="picks"]) .slate { padding: 24px 28px 26px; column-gap: 32px; }
  /* row-gap 0 + margins: the screenshot spans spare rows without adding empty gaps */
  .slates:is([data-v="ranked"], [data-v="picks"]) .slate:has(> .shot) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); row-gap: 0;
  }
  .slates:is([data-v="ranked"], [data-v="picks"]) .slate:has(> .shot) > * { grid-column: 1; }
  .slates:is([data-v="ranked"], [data-v="picks"]) .slate:has(> .shot) > * + * { margin-block-start: 16px; }
  .slates:is([data-v="ranked"], [data-v="picks"]) .slate:has(> .shot) > .shot { grid-column: 2; grid-row: 1 / span 9; align-self: start; margin: 0; }
  .slate_head > .slate_rank { font-size: 3rem; }
  .slate_name { font-size: 1.65rem; }
  .slates:is([data-v="ranked"], [data-v="picks"]) .slate_pc { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
.pick { display: grid; gap: 10px; }
.pick_when { font-family: var(--f-head); font-weight: var(--h-wght); font-size: 1.15rem; line-height: 1.3; display: flex; gap: 10px; align-items: baseline; }
.pick_when::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--logo-acc); transform: skewX(-17deg); }
.pick_when:empty { display: none; }
.slates[data-v="cards"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 16px; }
.slates[data-v="cards"] .slate { padding: 16px; }
.slates[data-v="cards"] .slate_name { font-size: 1.3rem; }

/* ---------- FAQ and score reasons ---------- */
.qa { border-block: 1px solid var(--rule); }
.qa + .qa { border-block-start: 0; }
.part > .qa + .qa { margin-block-start: 0; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding-block: 12px; font-family: var(--f-head); font-weight: 600; font-size: 1.12rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-inline-end: 6px; margin-block-start: -4px;
}
.qa[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.qa summary:hover { color: var(--accent); }
.qa_a { padding-block-end: 18px; display: grid; gap: 8px; line-height: 1.6; }
.reasons { display: grid; margin-block-start: 1.6rem !important; }
.reasons .qa summary { font-size: 1rem; }
.reasons dl { padding-block-end: 16px; display: grid; gap: 4px; font-size: .95rem; }
.reasons dt { font-weight: 700; margin-block-start: 8px; }
.reasons dt:first-child { margin-block-start: 0; }
.reasons dd { margin: 0; color: var(--ink); line-height: 1.55; }

/* ---------- teasers, categories, languages ---------- */
.teases { list-style: none; padding: 0; display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.part > .teases { margin-block-start: 1.2rem; }
.tease { position: relative; display: grid; gap: 6px; align-content: start; padding-block: 16px 20px; border-block-start: 1px solid var(--rule); }
.tease .kicker { font-size: calc(var(--label-size) * .95); }
.tease > a {
  font-family: var(--f-head); font-weight: var(--h-wght); font-size: 1.22rem; line-height: 1.25; letter-spacing: var(--h-track);
  color: var(--ink); text-decoration: none;
}
.tease > a::after { content: ""; position: absolute; inset: 0; }
.tease > a:hover { text-decoration: underline; text-decoration-thickness: from-font; color: var(--accent); }
.tease > a:focus-visible { outline: none; }
.tease:has(> a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.tease p:last-child { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.teases[data-v="hubs"] .tease { border-block-start: 3px solid var(--ink); }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 28px 8px; }
.cats a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px; border: 1px solid var(--rule); border-radius: 22px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.cats a:hover { border-color: var(--ink); }
.cats a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.langs { list-style: none; padding: 0; margin-block-start: 28px !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 0 16px; }
.langs a { display: flex; align-items: center; min-height: 48px; border-block-end: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; }
.langs a:hover { color: var(--accent); }

/* ---------- ask AI, sources, author ---------- */
.askai { margin-block-start: 48px; border: 1px solid var(--rule); background: var(--panel); padding: 16px 18px; display: grid; gap: 6px; }
.askai h2 { font-size: 1.15rem; }
.askai p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.askai ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.askai a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .95rem; }

.src { margin-block-start: 48px; }
.src h2 { font-size: 1.3rem; border-block-start: 3px solid var(--ink); padding-block-start: 14px; }
.src ol { list-style: none; padding: 0; margin-block-start: 10px; counter-reset: s; font-size: .88rem; line-height: 1.5; }
.src li { counter-increment: s; position: relative; padding-block: 9px; padding-inline-start: 3.2em; border-block-end: 1px solid var(--rule); scroll-margin-top: 16px; color: var(--muted); }
.src li::before { content: "[" counter(s) "]"; position: absolute; inset-inline-start: 0; font-family: var(--f-num); font-size: .9em; color: var(--muted); padding-block-start: .08em; }
.src li a { overflow-wrap: anywhere; }
.src li:target { background: var(--sponsor-tint); }
.src_date { color: var(--muted); white-space: nowrap; }

.writer { margin-block-start: 48px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; border-block-start: 2px solid var(--ink); padding-block-start: 18px; }
.writer_mono {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper);
  font-family: var(--f-head); font-weight: 700; font-size: 1.15rem;
}
.writer > div { display: grid; gap: 4px; }
.writer_name { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.writer_name a { color: var(--ink); }
.writer_role { font-size: .86rem; color: var(--muted); }
.writer p:last-child { font-size: .94rem; line-height: 1.55; }
.part > .writer_role { font-size: .95rem; }

/* page-type touches */
.sheet[data-v="home"] .headline h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }
.sheet:is([data-v="blog-index"], [data-v="category"]) > .headline { padding-block-end: 0; }
body[data-page="404"] .headline { padding-block-start: 40px; }

/* ---------- footer ---------- */
.foot { border-block-start: 3px solid var(--ink); background: var(--panel); color: var(--muted); font-size: .88rem; line-height: 1.55; }
.foot_in { max-width: calc(var(--measure) + 2 * var(--gut)); margin-inline: auto; padding: 22px var(--gut) 36px; display: grid; gap: 10px; }
.foot .notice { color: var(--ink); font-size: .92rem; }
.foot .notice a { font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; border-block: 1px solid var(--rule); }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
.foot_small { font-size: .8rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mast_caret { animation: none; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- print ---------- */
@media print {
  :root { --paper: #fff; --ink: #000; --muted: #444; --rule: #bbb; --panel: #fff; --sponsor-tint: #f2f2f2; --link: #000; }
  body { font-size: 11pt; }
  .mast_nav, .toc, .askai, .slate_go, .vh, .foot nav, figure.shot::before { display: none !important; }
  .mast { border: 0; }
  .ledger_scroll { overflow: visible; background: none; }
  .ledger th[scope="row"], .ledger thead th:first-child { position: static; }
  .slate, .qa, figure, tr { break-inside: avoid; }
  .part > h2 { break-after: avoid; }
  a { text-decoration: none; }
  .mast_caret { animation: none; }
}
