@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,400;0,500;0,600;1,500;1,600&family=JetBrains+Mono:wght@400&display=swap");
:root {
  --bg: #e9ebef; --card: #fff; --ink: #0f1115; --ink-2: #3b414b; --mute: #868c96; --faint: #b9bec6;
  --line: #eceef2; --soft: #f5f6f8;
  --fi: #2f6fed; --sv: #e0a91b; --en: #e5484d; --de: #12a594; --ru: #d6409f; --uk: #8e4ec6;
  --fact: #e5484d; --loaded: #f76b15; --omission: #f5a524; --emphasis: #8e4ec6; --audience: #30a46c;
  --r: 22px; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.05);
  font: 15px/1.5 "Inter Tight", system-ui, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: inherit; text-decoration: none; }
code, pre { font-family: "JetBrains Mono", monospace; }
.frame { max-width: 1320px; margin: 28px auto 60px; background: #f7f8fa; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(16,24,40,.12); }

/* hero */
.hero { position: relative; padding: 26px 34px 0; color: #fff; overflow: hidden; min-height: 330px; background: #0b1838;
  display: grid; grid-template-rows: auto 1fr auto auto; isolation: isolate; }
/* Hand-drawn globe loop, tuned in wikitime-globe-studio/ and rendered to media/hero-globe-* */
.hero-globe { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover;
  object-position: 100% 60%; pointer-events: none; background: #0b1838 url("media/hero-globe-poster.webp") 100% 60% / cover no-repeat; }
@media (max-width: 700px) { .hero-globe { opacity: .55; } }
.streaks { position: absolute; inset: -40px; z-index: -1; filter: blur(7px) saturate(1.15);
  background:
    linear-gradient(180deg, rgba(4,12,32,.15) 0%, rgba(4,12,32,.05) 45%, rgba(4,12,32,.55) 100%),
    radial-gradient(60% 80% at 75% 40%, rgba(160,205,255,.75), transparent 70%),
    repeating-linear-gradient(90deg, #0b2a6b 0 7px, #1d4fb8 7px 11px, #6fa3ff 11px 13px, #0d3384 13px 21px, #e9f2ff 21px 22px,
      #2357c9 22px 31px, #0a2560 31px 37px, #4d86f0 37px 41px, #0f2f74 41px 52px);
  transform: skewX(-2deg); }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.eyebrow { font-size: 14px; opacity: .85; }
.hero h1 { font-weight: 500; font-size: 58px; line-height: 1.02; letter-spacing: -.02em; margin: 26px 0 0; }
.hero h1 em { font-weight: 600; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 26px; }
.stat { display: inline-flex; gap: 7px; align-items: center; padding: 6px 13px; border-radius: 999px; font-size: 13px;
  background: rgba(5,12,30,.72); backdrop-filter: blur(8px); }
.stat b { font-weight: 600; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; }
.navpills { display: flex; gap: 4px; }
.navpills a { padding: 10px 14px; font-size: 15px; border-radius: 12px 12px 0 0; color: rgba(255,255,255,.88); }
.navpills a.on, .navpills a:hover { background: #f7f8fa; color: var(--ink); }
.pill-select select { appearance: none; font: 500 14px "Inter Tight", sans-serif; color: var(--ink); background: #fff
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230f1115'/%3E%3C/svg%3E")
  no-repeat right 14px center; border: 0; border-radius: 999px; padding: 10px 36px 10px 16px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: 360px; }

main { padding: 22px 34px 34px; display: grid; gap: 18px; }
.card { background: var(--card); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.hint { font-size: 12px; color: var(--mute); }
.hint code { color: var(--ink-2); font-size: 11px; }
.count { font-size: 13px; color: var(--mute); font-weight: 400; margin-left: 4px; }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); padding: 0; overflow: hidden; }
.kpi { all: unset; cursor: pointer; padding: 20px 22px; border-left: 1px solid var(--line); position: relative; transition: background .15s; }
.kpi:first-child { border-left: 0; cursor: default; }
.kpi:hover:not(:first-child) { background: var(--soft); }
.kpi.on { background: var(--soft); }
.kpi.on::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c); }
.kpi .lbl { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.kpi .lbl i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.kpi .big { font-size: 46px; font-weight: 400; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 8px; }
.kpi .big small { font-size: 20px; color: var(--mute); margin-left: 2px; }
.kpi .meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); }
.delta { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.delta.good { background: #e6f6ec; color: #218358; } .delta.mid { background: #fff4d6; color: #a06a00; }
.delta.bad { background: #ffe9e9; color: #ce2c31; } .delta.ref { background: #eaf1ff; color: var(--fi); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } .kpi:nth-child(4) { border-left: 0; } }

.grid3 { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

#timeline { width: 100%; height: 220px; display: block; }
#timeline text { fill: var(--mute); font: 11px "Inter Tight", sans-serif; }
#timeline .grid line { stroke: var(--line); }
#timeline .domain { display: none; }

.hbars { display: grid; gap: 14px; padding-top: 4px; }
.hbar { display: grid; grid-template-columns: 86px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; cursor: pointer; }
.hbar .track { height: 14px; border-radius: 7px; background: var(--soft); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 7px; background: color-mix(in srgb, var(--c) 30%, #fff); }
.hbar.on .fill { background: repeating-linear-gradient(-45deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 75%, #fff) 6px 10px); }
.hbar b { font-weight: 600; text-align: right; }
.hbar.on span:first-child { font-weight: 600; }

.mix { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 200px; align-items: end; }
.mixcol { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 6px; text-align: center; cursor: pointer; }
.mixcol .n { font-size: 13px; font-weight: 600; }
.mixcol .well { border-radius: 12px; display: flex; align-items: end; overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--soft) 0 5px, #fff 5px 9px); }
.mixcol .bar { width: 100%; border-radius: 12px; background: var(--k); min-height: 4px; }
.mixcol .l { font-size: 11px; color: var(--mute); }
.mixcol.off { opacity: .35; }

/* side by side */
.compare { padding: 26px 0 8px; }
.compare-head { display: flex; justify-content: space-between; gap: 24px; padding: 0 28px 18px; align-items: start; flex-wrap: wrap; }
.compare h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.summary { margin: 8px 0 0; color: var(--ink-2); max-width: 760px; font-size: 15px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { all: unset; cursor: pointer; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--k, var(--ink)); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.colheads { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding: 10px 28px; background: var(--soft);
  font-size: 13px; color: var(--mute); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.colheads span { display: flex; gap: 8px; align-items: center; }
.row { padding: 18px 28px 20px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .issue { display: flex; gap: 10px; align-items: baseline; margin-bottom: 12px; font-size: 15px; font-weight: 500; }
.tag { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px;
  color: var(--k); background: color-mix(in srgb, var(--k) 12%, #fff); }
.ok { margin-left: auto; font-size: 12px; font-weight: 500; color: #218358; white-space: nowrap; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.side { padding-left: 14px; border-left: 2px solid var(--c); }
.side .o { font-size: 15px; color: var(--ink); }
.side .t { font-size: 13px; color: var(--mute); margin-top: 5px; }
.side .none { font-size: 13px; color: var(--faint); font-style: italic; }
@media (max-width: 760px) { .sides, .colheads { grid-template-columns: 1fr; } }

.only { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.only .s { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.only .n { color: var(--mute); font-size: 13px; margin-top: 3px; }

details summary { list-style: none; cursor: pointer; margin: 0; }
details summary::-webkit-details-marker { display: none; }
details summary h3::before { content: "+ "; color: var(--mute); }
details[open] summary h3::before { content: "– "; }
.pair { display: grid; grid-template-columns: 1fr 50px 1fr; gap: 16px; font-size: 13px; color: var(--ink-2);
  padding: 12px 0; border-top: 1px solid var(--line); }
.pair .sim { text-align: center; font: 11px "JetBrains Mono", monospace; color: var(--mute); }
pre { white-space: pre-wrap; font-size: 12px; line-height: 1.6; color: var(--ink-2); background: var(--soft);
  border-radius: 14px; padding: 16px; margin: 6px 0 0; }
.foot { font-size: 12px; color: var(--mute); margin: 4px 4px 0; max-width: 900px; }
.pending { color: var(--mute); padding: 18px 28px; }
.tip { position: fixed; pointer-events: none; z-index: 50; padding: 8px 11px; font-size: 13px; background: #0f1115; color: #fff;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* Wikipedia logos */
.globe { width: 18px; height: 18px; object-fit: contain; flex: none; }
.wm { height: 13px; width: auto; flex: none; }
.wm.inv { filter: invert(1); height: 15px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .globe { width: 26px; height: 26px; background: #fff; border-radius: 50%; padding: 2px; }
.kpi .lbl { gap: 6px; }
.kpi .lname { font-size: 13px; color: var(--c); font-weight: 600; margin-top: 4px; }
.kpi.on::after { background: var(--c); }
.colheads { padding: 12px 28px; }
.wphead { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.wphead b { font-weight: 600; color: var(--c); font-size: 13px; padding-left: 8px; border-left: 1px solid var(--line); }
.wphead a { margin-left: auto; font-size: 12px; color: var(--mute); }
.wphead a:hover { color: var(--ink); }
.colheads .wphead + .wphead a { margin-right: 0; }
.hname { display: inline-flex; gap: 7px; align-items: center; }
.hname .globe { width: 15px; height: 15px; }

/* headline with the real Wikipedia logo */
.hero h1 .six { display: inline-flex; align-items: center; gap: .18em; font-weight: 600; font-style: italic; }
.hero h1 .hglobe { height: .95em; width: .95em; flex: none; display: block; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  border-radius: 50%; font-style: normal; }
.hero h1 .hwm { display: inline-flex; align-items: baseline; }
.hero h1 .hwm img { height: .62em; width: auto; filter: invert(1) drop-shadow(0 2px 8px rgba(0,0,0,.25)); }
.hero h1 .pl { font: 400 .64em/1 "Linux Libertine", "Hoefler Text", Georgia, "Times New Roman", serif; font-style: normal;
  font-variant: small-caps; letter-spacing: .02em; margin-left: .02em; }
.kpi .lbl i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* view switcher */
.ctrls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; }
.seg button { all: unset; cursor: pointer; font-size: 13px; padding: 5px 12px; border-radius: 8px; color: var(--mute); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
mark { background: color-mix(in srgb, var(--warm, #ffb46b) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.vchk { margin-left: auto; color: #30a46c; font-size: 13px; cursor: help; }
.tag { font-size: 10.5px; padding: 2px 7px; }

/* A: statement pairs */
.view-a { padding: 6px 28px 10px; }
.pa { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pa:last-child { border-bottom: 0; }
.pa-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.pa-note { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.pa-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sbox { background: color-mix(in srgb, var(--c) 6%, #fff); border-radius: 12px; padding: 12px 14px; }
.sbox .en { font-size: 15px; color: var(--ink); line-height: 1.45; }
.sbox .orig { font-size: 12.5px; color: var(--mute); margin-top: 6px; line-height: 1.45; }
.sbox .none { font-size: 13px; color: var(--faint); font-style: italic; }

/* B: diff lines */
.view-b { padding: 6px 28px 12px; }
.db { padding: 16px 0; border-bottom: 1px solid var(--line); }
.db:last-child { border-bottom: 0; }
.db-head { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.dlines { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dl { display: grid; grid-template-columns: 22px 48px 1fr; gap: 6px; padding: 8px 12px; font-size: 14.5px; line-height: 1.45;
  background: color-mix(in srgb, var(--c) 7%, #fff); }
.dl + .dl { border-top: 1px solid var(--line); }
.dl-sign { color: var(--c); font: 600 14px "JetBrains Mono", monospace; }
.dl-lang { font: 600 11px "JetBrains Mono", monospace; color: var(--c); padding-top: 3px; }
.dl-text em { color: var(--faint); }
.dl-orig summary { font-size: 12px; color: var(--mute); cursor: pointer; margin-top: 8px; }
.dl-orig p { font-size: 12.5px; color: var(--mute); margin: 6px 0 0; }
.dl-orig b { font: 600 11px "JetBrains Mono", monospace; margin-right: 6px; }

/* C: table */
.view-c { padding: 0 12px 8px; }
.dt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dt th { text-align: left; font-weight: 500; color: var(--mute); font-size: 12px; padding: 12px 16px; background: var(--soft); }
.dt td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.45; color: var(--ink); }
.dt td:first-child { width: 90px; } .dt-note { color: var(--ink-2); width: 34%; }
.dt-row { cursor: pointer; } .dt-row:hover td { background: #fafbfc; }
.dt em { color: var(--faint); }
.dt-more td { border-top: 0; padding-top: 0; }
.dt-origs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 12.5px; color: var(--mute); }
.dt-origs div { border-left: 2px solid var(--c); padding-left: 10px; }
.flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -1px; margin-right: 6px; }
.dl-lang { display: inline-flex; align-items: center; padding-top: 0; }

/* mirror */
.mirror { padding-bottom: 14px; }
#mirrorSvg { width: 100%; height: 300px; display: block; }
#mirrorSvg .mlab { font: 600 13px "Inter Tight", sans-serif; fill: var(--ink); }
#mirrorSvg .msub { font: 11px "Inter Tight", sans-serif; fill: var(--mute); }
#mirrorSvg rect, #mirrorSvg .mk { cursor: pointer; }
#mirrorSvg .rib { transition: fill-opacity .15s; cursor: pointer; }
#mirrorSvg .rib:hover { fill-opacity: .9 !important; }
#mirrorSvg rect:hover { opacity: .75; }
.mleg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.mleg span { display: inline-flex; align-items: center; gap: 5px; }
.mleg i { width: 14px; height: 8px; border-radius: 2px; display: inline-block; }
.mleg i.dot { width: 8px; height: 8px; border-radius: 50%; }
/* ring on KPI cards */
.kpi { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "lbl ring" "big ring" "meta meta"; align-items: center; }
.kpi .lbl { grid-area: lbl; } .kpi .big { grid-area: big; } .kpi .meta { grid-area: meta; }
.kpi .ring { grid-area: ring; width: 50px; height: 50px; }

/* grid items may shrink below their content (scrollable mirror, chip rows) */
main > *, .grid3 > *, .grid2 > *, .compare-head > *, .ctrls > *, .hero > *, .hero-top > *, .pickers > * { min-width: 0; }
.pill-select select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .frame { margin: 0; border-radius: 0; box-shadow: none; }
  .hero { padding: 18px 16px 0; min-height: 0; }
  .hero-top { flex-direction: column; align-items: stretch; gap: 12px; }
  .eyebrow { font-size: 13px; }
  .pickers, .pill-select, .pill-select select { width: 100%; max-width: none; }
  .pill-select select { font-size: 14px; padding: 11px 34px 11px 14px; }
  .hero h1 { font-size: 34px; margin-top: 22px; }
  .hero h1 .six { flex-wrap: wrap; row-gap: 4px; }
  .stats { gap: 6px; margin: 16px 0 18px; }
  .stat { font-size: 12px; padding: 5px 10px; }
  .navpills { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .navpills::-webkit-scrollbar { display: none; }
  .navpills a { white-space: nowrap; font-size: 14px; padding: 9px 12px; }

  main { padding: 12px 10px 24px; gap: 12px; }
  .card { padding: 16px; border-radius: 18px; }
  .card-head { flex-wrap: wrap; row-gap: 2px; }

  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 14px; border-left: 0; border-top: 1px solid var(--line); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--line); }
  .kpi .big { font-size: 34px; margin: 6px 0; }
  .kpi .big small { font-size: 15px; }
  .kpi .ring { width: 36px; height: 36px; }
  .kpi .meta { font-size: 12px; gap: 6px; white-space: nowrap; }
  .kpi .meta .delta { font-size: 11px; }
  .kpi.on::after { left: 14px; right: 14px; }

  #timeline { height: 200px; }
  .mix { height: 160px; gap: 6px; }
  .hbar { grid-template-columns: 74px 1fr 28px; }

  .mirror .mwrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  #mirrorSvg { min-width: 760px; height: 260px; }
  .mleg { display: none; }

  .compare { padding: 18px 0 4px; }
  .compare-head { padding: 0 16px 14px; gap: 12px; }
  .compare h2 { font-size: 22px; }
  .summary { font-size: 14px; }
  .ctrls { width: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .view-a, .view-b { padding: 4px 16px 10px; }
  .db-head, .pa-head { font-size: 13.5px; }
  .dl { grid-template-columns: 14px 44px 1fr; gap: 4px; padding: 8px 10px; font-size: 14px; }
  .pa-boxes { grid-template-columns: 1fr; }
  .view-c { overflow-x: auto; padding: 0; }
  .dt { min-width: 720px; }
  .colheads { grid-template-columns: 1fr; gap: 6px; padding: 10px 16px; }
  .wphead a { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; gap: 6px; }
  .pair .sim { text-align: left; }
  .foot { margin: 0 6px; }
}

/* flags */
.kpi .lbl .flag, .hname .flag { margin-right: 0; }
.kpi .lbl { gap: 8px; }
.kpi .lbl .flag { width: 20px; height: 14px; }
.hname { display: inline-flex; align-items: center; gap: 8px; }
.hbar { grid-template-columns: 112px 1fr 34px; }
.compare h2 .flag { width: 26px; height: 19px; border-radius: 3px; margin: 0 8px 0 0; vertical-align: -2px; }
.compare h2 .flag:not(:first-child) { margin-left: 4px; }
.stat .flag { margin-right: 0; width: 15px; height: 11px; }
.card-head h3 .flag { width: 18px; height: 13px; vertical-align: -1px; margin-right: 8px; }
.dt th .flag { width: 14px; height: 10px; margin-right: 6px; }
.sbox .sl { display: flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--c); margin-bottom: 6px; }
@media (max-width: 700px) { .hbar { grid-template-columns: 96px 1fr 28px; } .compare h2 .flag { width: 22px; height: 16px; } }

/* index on cards */
.kpi .big small { font-size: 13px; margin-left: 4px; letter-spacing: 0; }
.kpi .meta span:not(.delta) { white-space: nowrap; }

/* pair picker */
.ctrls { flex-direction: column; align-items: flex-start; gap: 10px; flex-basis: 100%; }
.pairpick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.pairpick .pp-l { color: var(--mute); margin: 0 2px; }
.pairpick select { font: 500 13px "Inter Tight", sans-serif; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: #fff; }
.pairpick .flag { margin-right: 0; }
.pairpick .chip .flag { margin-right: 2px; }

/* who resembles whom */
.rgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.yearbar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.yearbar .yr { all: unset; cursor: pointer; font-size: 13px; padding: 5px 10px; border-radius: 8px; color: var(--mute); }
.yearbar .yr.on { background: var(--ink); color: #fff; }
.yearbar #play { margin-right: 8px; }
table.heat { border-collapse: separate; border-spacing: 4px; width: 100%; font-size: 13px; }
.heat th { font-weight: 500; color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.heat thead th { text-align: center; } .heat thead th .flag { display: block; margin: 0 auto 3px; }
.heat tbody th { text-align: left; padding-right: 6px; } .heat tbody th .flag { margin-right: 7px; }
.heat td { height: 42px; text-align: center; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background .5s, outline-color .2s;
  outline: 2px solid transparent; outline-offset: 1px; }
.heat td:hover { outline-color: var(--ink); }
.heat td.sel { outline-color: var(--warm, #f76b15); }
.heat td.diag { background: repeating-linear-gradient(-45deg, var(--soft) 0 4px, #fff 4px 8px); cursor: default; }
.moves h4 { margin: 4px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.moves h4:not(:first-child) { margin-top: 18px; }
.move { all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
  box-sizing: border-box; padding: 10px 12px; border-radius: 12px; background: var(--soft); margin-bottom: 6px; font-size: 14px; }
.move:hover { background: #eceff4; }
.move span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.move small { flex-basis: 100%; font-size: 12px; color: var(--mute); }
.move b { font-size: 16px; color: #218358; } .move b.hot { color: #ce2c31; }
.move .flag { margin-right: 0; }
@media (max-width: 1000px) { .rgrid { grid-template-columns: 1fr; } .ctrls { align-items: stretch; } }
@media (max-width: 700px) {
  .heat { font-size: 11px; border-spacing: 2px; } .heat td { height: 34px; border-radius: 6px; }
  .heat tbody th span { display: none; } .heat thead th span { font-size: 10px; }
  .pairpick { font-size: 12px; }
}

/* sticky section bar: appears once the hero has scrolled away */
.stickynav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(16,24,40,.06); transform: translateY(-110%); transition: transform .25s ease; }
.stickynav.show { transform: none; }
.sn-row, .sn-links { max-width: 1320px; margin: 0 auto; padding: 0 34px; display: flex; align-items: center; gap: 12px; }
.sn-row { padding-top: 9px; }
.sn-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.sn-title .mute { font-weight: 400; color: var(--mute); }
.sn-title .flag { margin: 0 4px 0 2px; }
.sn-flags { display: flex; gap: 4px; flex: none; }
.sn-flags button { all: unset; cursor: pointer; padding: 5px 6px; border-radius: 8px; line-height: 0; }
.sn-flags button .flag { margin: 0; width: 22px; height: 16px; }
.sn-flags button.on { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sn-links { gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; padding-top: 4px; }
.sn-links::-webkit-scrollbar { display: none; }
.sn-links a { white-space: nowrap; font-size: 13.5px; color: var(--mute); padding: 6px 11px; border-radius: 999px; }
.sn-links a.on { background: var(--ink); color: #fff; }
main > section, #compare, #only { scroll-margin-top: 100px; }
html { scroll-behavior: smooth; }
.showall { all: unset; cursor: pointer; display: block; margin: 14px auto 6px; padding: 11px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; text-align: center; }
@media (max-width: 700px) {
  .sn-row, .sn-links { padding-left: 12px; padding-right: 12px; }
  .sn-title { font-size: 13px; }
  .sn-flags button { padding: 6px 5px; } .sn-flags button .flag { width: 24px; height: 17px; }
  .sn-links a { font-size: 13px; padding: 7px 12px; }
  main > section, #compare, #only { scroll-margin-top: 96px; }
}

/* ---------- load any article ---------- */
.loadform { display: flex; gap: 8px; margin: 22px 0 8px; max-width: 560px; }
.loadform input { flex: 1; min-width: 0; font: 15px "Inter Tight", sans-serif; padding: 12px 16px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.2); outline: none; }
.loadform button { all: unset; cursor: pointer; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.loadform button:hover { background: #eef2ff; }
.examples { font-size: 13px; color: rgba(255,255,255,.75); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.examples button { all: unset; cursor: pointer; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; }
.examples button:hover { background: rgba(255,255,255,.26); }
.prog { margin-top: 12px; max-width: 560px; display: grid; gap: 6px; font-size: 13px; color: #fff; }
.prog-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: #fff; border-radius: 3px; transition: width .6s ease; }
.stats { margin-top: 18px; }

/* ---------- consensus scores ---------- */
.overview { display: grid; gap: 12px; }
.ovhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 4px 4px 0; }
.ovhead h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.ovhead .hint { margin: 4px 0 0; font-size: 13px; line-height: 1.6; }
.ovhead .hint .flag { margin: 0 2px 0 6px; }
.method { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; max-width: 560px; font-size: 13px; }
.method summary { cursor: pointer; font-weight: 600; list-style: none; }
.method summary::before { content: "ⓘ "; color: var(--mute); }
.method p { margin: 10px 0 6px; } .method dt { font-weight: 600; margin-top: 8px; } .method dd { margin: 2px 0 0; color: var(--ink-2); }
.kpi.cons .parts { grid-area: meta; display: grid; gap: 4px; margin-top: 4px; }
.part { display: grid; grid-template-columns: 42px 1fr 24px; gap: 6px; align-items: center; font-size: 11px; color: var(--mute); }
.part .pbar { height: 4px; border-radius: 2px; background: var(--soft); overflow: hidden; }
.part .pbar i { display: block; height: 100%; background: var(--c); opacity: .8; }
.part b { color: var(--ink-2); font-weight: 600; text-align: right; }
.copy { margin-left: 6px; font-size: 10px; font-weight: 600; letter-spacing: .03em; color: #a06a00; background: #fff4d6; padding: 1px 6px; border-radius: 5px; }
.flagcode { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 14px; padding: 0 3px; border-radius: 3px;
  font: 700 9px "Inter Tight", sans-serif; background: var(--soft); color: var(--ink-2); box-shadow: 0 0 0 1px rgba(0,0,0,.08); margin-right: 6px; }

/* ---------- disagreements ---------- */
.report { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 900px; margin: 0 0 14px; }
#confFilters { margin-bottom: 6px; }
.conf { padding: 18px 0; border-top: 1px solid var(--line); }
.conf-head { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.conf-note { margin: 6px 0 10px; font-size: 13.5px; color: var(--mute); max-width: 900px; }
.vers { display: grid; gap: 6px; }
.ver { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: start; padding: 9px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--c) 5%, #fff); border-left: 3px solid color-mix(in srgb, var(--c) 55%, #fff); }
.ver.hl { background: color-mix(in srgb, var(--c) 11%, #fff); }
.ver.maj .ver-l b::after { content: " · majority"; font-weight: 400; color: var(--mute); font-size: 11px; }
.ver-l { display: flex; align-items: center; gap: 2px; font-size: 12px; white-space: nowrap; }
.ver-c .claim { font-size: 14.5px; color: var(--ink); }
.ver-c .q { font-size: 12.5px; color: var(--mute); margin-top: 3px; font-style: italic; }
.srcs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.src { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: #eef0f4; color: var(--ink-2); text-decoration: none; }
.src.supports { background: #e6f6ec; color: #218358; } .src.contradicts { background: #ffe9e9; color: #ce2c31; }
a.src[href]:hover { text-decoration: underline; }
.st { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.st.ok { background: #e6f6ec; color: #218358; } .st.bad { background: #ffe9e9; color: #ce2c31; }
.st.mid { background: #fff4d6; color: #a06a00; } .st.none { background: var(--soft); color: var(--mute); }
.resol { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); background: var(--soft); padding: 8px 12px; border-radius: 10px; }

/* ---------- index breakdown ---------- */
.breakdown { display: grid; gap: 11px; }
.bd { display: grid; grid-template-columns: 110px 1fr 30px; gap: 10px; align-items: center; font-size: 13px; cursor: pointer; }
.bd.on .hname { font-weight: 600; }
.stack { display: flex; height: 14px; border-radius: 7px; background: var(--soft); overflow: hidden; }
.stack i { display: block; height: 100%; } .stack .c, .bdleg .c { background: #2f6fed; } .stack .a, .bdleg .a { background: #12a594; }
.stack .s, .bdleg .s { background: #e0a91b; }
.bd b { text-align: right; font-weight: 600; }
.bdleg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--mute); margin-top: 4px; }
.bdleg span { display: inline-flex; align-items: center; gap: 5px; } .bdleg i { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 700px) {
  .loadform { margin-top: 16px; } .loadform input { font-size: 14px; padding: 11px 14px; }
  .ovhead h2 { font-size: 19px; }
  .ver { grid-template-columns: 1fr; gap: 4px; } .ver .st { justify-self: start; }
  .bd { grid-template-columns: 92px 1fr 26px; }
}
.prog[hidden] { display: none; }
.kpi .lbl { flex-wrap: wrap; row-gap: 3px; }
.copy { white-space: nowrap; margin-left: 0; flex-basis: auto; }
.kpi.cons .lbl .copy { order: 3; }

.addeds { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-left: 4px; }
.added { all: unset; cursor: pointer; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line);
  color: var(--ink-2); display: inline-flex; align-items: center; }
.added:hover { box-shadow: 0 0 0 1px var(--ink); color: var(--ink); }
.added .flag, .added .flagcode { margin: 0 4px 0 2px; width: 14px; height: 10px; }
.added[disabled] { opacity: .5; cursor: progress; }

.ver { grid-template-columns: 78px 1fr auto; }
.ver-l { flex-direction: column; align-items: flex-start; gap: 2px; }
.ver-l > :first-child { display: inline-flex; align-items: center; }
.ver.maj .ver-l b::after { content: none; }
.ver-l .majb { font-size: 10px; font-weight: 600; color: #218358; background: #e6f6ec; padding: 0 5px; border-radius: 4px; }

/* citations with visible text and links */
.srcs { display: grid; gap: 4px; margin-top: 8px; }
.cite { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--ink-2); text-decoration: none;
  padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px var(--line); max-width: 100%; }
a.cite[href]:hover { box-shadow: 0 0 0 1px var(--ink-2); color: var(--ink); }
a.cite[href]:hover .ct { text-decoration: underline; }
.cite .ck { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.cite .ct { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cite.supports { background: #e6f6ec; } .cite.supports .ck { color: #218358; }
.cite.contradicts { background: #ffe9e9; } .cite.contradicts .ck { color: #ce2c31; }
.cite.more { color: var(--mute); background: none; box-shadow: none; font-size: 12px; }
.inwiki { font-style: normal; font-size: 11.5px; margin-left: 6px; color: #2f6fed; white-space: nowrap; text-decoration: none; }
.inwiki:hover { text-decoration: underline; }
@media (max-width: 700px) { .cite { flex-direction: column; gap: 1px; } .cite .ct { white-space: normal; } }

.citewrap { display: grid; gap: 3px; }
.cite.book .ck { color: #1a73e8; }
.cbooks { display: flex; flex-wrap: wrap; gap: 4px 10px; padding-left: 8px; }
.cbooks a { font-size: 12px; color: #1a73e8; text-decoration: none; }
.cbooks a:hover { text-decoration: underline; }
.ver-c { min-width: 0; }
.citewrap, .cite { min-width: 0; }
.cbooks a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbooks a::before { content: "↗ "; }

/* compact disagreements: one line per edition, details on demand */
.report { font-size: 15px; margin-bottom: 12px; }
.report details.more { display: inline; }
.report details.more summary { display: inline; cursor: pointer; color: #2f6fed; font-size: 14px; list-style: none; }
.report details.more summary::-webkit-details-marker { display: none; }
.report details.more[open] summary { display: none; }
details.conf { padding: 14px 0; border-top: 1px solid var(--line); }
details.conf > summary { list-style: none; cursor: pointer; }
details.conf > summary::-webkit-details-marker { display: none; }
details.conf .conf-head { align-items: center; flex-wrap: wrap; }
details.conf .conf-head .st { margin-left: 4px; }
.conf-open { margin-left: auto; font-size: 12px; color: var(--mute); }
.conf-open::after { content: " ▾"; }
details.conf[open] .conf-open::after { content: " ▴"; }
details.conf > summary:hover .conf-open { color: var(--ink); }
.vlines { display: grid; gap: 3px; margin-top: 8px; }
.vline { display: grid; grid-template-columns: 18px 26px 1fr; gap: 6px; align-items: baseline; font-size: 13.5px; color: var(--ink-2); }
.vline .flag, .vline .flagcode { margin: 0; align-self: center; }
.vline b { font-size: 11px; color: var(--mute); }
.vline span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vline.hl span { color: var(--ink); font-weight: 500; }
details.conf[open] .vlines { display: none; }
details.conf .conf-note { margin-top: 10px; }
@media (max-width: 700px) { .vline span { white-space: normal; } }

/* calm expanded disagreement: plain rows, status only when a source decides */
.rows2 { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.row2 { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 10px 0 10px 10px; border-bottom: 1px solid var(--line);
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--c) 70%, #fff); }
.row2:last-child { border-bottom: 0; }
.r-lang { display: inline-flex; align-items: center; gap: 0; font-size: 11px; font-weight: 600; color: var(--mute); height: 22px; }
.r-lang .flag, .r-lang .flagcode { margin-right: 6px; }
.r-body { min-width: 0; }
.r-claim { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.row2.hl .r-claim { font-weight: 500; }
.v-st { margin-left: 8px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.v-st.ok { color: #218358; } .v-st.bad { color: #ce2c31; }
.r-quote { display: block; margin-top: 2px; font-size: 12.5px; font-style: italic; color: var(--mute); text-decoration: none; }
.r-quote:hover { color: var(--ink-2); text-decoration: underline; }
.r-src { margin-top: 3px; font-size: 12px; color: var(--mute); }
.r-src a { color: #2f6fed; text-decoration: none; } .r-src a:hover { text-decoration: underline; }
.resol2 { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); padding-left: 10px; border-left: 2px solid var(--line); }

/* sources: their own column, one chip per source */
.row2 { grid-template-columns: 54px minmax(0, 1fr) minmax(170px, 260px); align-items: start; }
.r-srccol { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; padding-top: 1px; }
.schip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px 4px 7px; border-radius: 8px;
  background: #fff; box-shadow: 0 0 0 1px #d9dee7; color: #1f4fd1; font-size: 12.5px; font-weight: 500; text-decoration: none; }
.schip:hover { box-shadow: 0 0 0 1.5px #1f4fd1; }
.schip svg { width: 14px; height: 14px; flex: none; color: #5b6b8c; }
.schip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schip em { font-style: normal; font-size: 11px; font-weight: 600; padding-left: 6px; border-left: 1px solid #e3e7ee; white-space: nowrap; }
.schip.ok { box-shadow: 0 0 0 1.5px #30a46c; } .schip.ok em { color: #218358; }
.schip.bad { box-shadow: 0 0 0 1.5px #e5484d; } .schip.bad em { color: #ce2c31; }
.schip.silent em { color: var(--mute); }
.snone { font-size: 12px; color: #b0b6c0; font-style: italic; padding-top: 4px; }
.smore { font-size: 11.5px; color: var(--mute); padding-left: 2px; }
@media (max-width: 760px) { .row2 { grid-template-columns: 54px minmax(0, 1fr); } .r-srccol { grid-column: 2; flex-direction: row; flex-wrap: wrap; } }

/* service and source logos */
img.logo { width: 14px; height: 14px; border-radius: 3px; object-fit: contain; flex: none; vertical-align: -2px; margin-right: 5px; }
.schip img.logo { margin-right: 0; width: 15px; height: 15px; }
.schip .fav { border-radius: 3px; }
.r-quote img.logo.wp { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; opacity: .85; }
.byline { display: inline-flex; align-items: center; gap: 0; font-size: 12px; font-weight: 600; color: #c15f3c; background: #fbeee8;
  padding: 2px 8px 2px 5px; border-radius: 999px; margin-right: 8px; vertical-align: 1px; }
.byline img.logo { margin-right: 5px; }
.eyebrow img.logo { width: 16px; height: 16px; margin: 0 4px 0 2px; background: #fff; border-radius: 4px; padding: 1px; }
.card-head h3 img.logo { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.count img.logo { vertical-align: -2px; margin: 0 3px; }
.method dt img.logo { margin-right: 6px; }
.ovhead .hint img.logo { margin: 0 3px; }

/* ---------- minimal disagreements (same information, less ink) ---------- */
details.conf { padding: 16px 0 14px; }
details.conf .tag { background: none; padding: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--k); }
details.conf .conf-head b { font-weight: 600; font-size: 15px; }
mark { background: none; color: inherit; font-weight: 600; padding: 0; }
.vline { font-size: 13.5px; padding: 2px 0; }
.vline b, .r-lang { font-weight: 500; }
/* expanded rows: same rhythm as the collapsed lines */
.rows2 { border-top: 0; margin-top: 6px; gap: 2px; }
.row2 { box-shadow: none; border-bottom: 0; padding: 5px 0; grid-template-columns: 44px minmax(0, 1fr) minmax(150px, 240px); gap: 8px; }
.r-lang { height: 20px; font-size: 11px; }
.r-claim { font-size: 13.5px; color: var(--ink-2); }
.row2.hl .r-claim { color: var(--ink); }
.r-quote { font-size: 12px; margin-top: 1px; }
.r-srccol { flex-direction: row; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding-top: 2px; }
.schip { padding: 0; box-shadow: none !important; background: none; font-weight: 500; font-size: 12.5px; color: #2f6fed; gap: 5px; }
.schip:hover span { text-decoration: underline; }
.schip em { border: 0; padding: 0; font-size: 11px; }
.schip.ok span { color: #218358; } .schip.bad span { color: #ce2c31; }
.snone { font-size: 11.5px; padding-top: 2px; color: #c2c7cf; font-style: normal; }
.resol2 { border: 0; padding: 0 0 0 52px; font-size: 12.5px; color: var(--mute); margin-top: 8px; }
.resol2::before { content: "Sources: "; font-weight: 600; color: var(--ink-2); }
@media (max-width: 760px) { .row2 { grid-template-columns: 44px minmax(0, 1fr); } .resol2 { padding-left: 0; } }

/* independent web evidence (Context.dev) */
.webchk { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; color: #5b4bd6; margin-left: 6px; }
.webchk img.logo { width: 13px; height: 13px; margin-right: 4px; }
.webrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 8px 0 0 52px; }
.wr-l { font-size: 12px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.wr-l .mute { font-weight: 400; }
.wr-c { display: flex; flex-wrap: wrap; gap: 3px 14px; }
.wr-c .schip em { color: var(--mute); font-weight: 500; }
#confHint img.logo { width: 13px; height: 13px; margin: 0 3px; vertical-align: -2px; }
@media (max-width: 760px) { .webrow { margin-left: 0; } }

/* mirror: gap kinds and the paragraph panel */
#mirrorSvg rect.gap { cursor: pointer; }
.mleg i.hatch { width: 14px; height: 8px; border-radius: 2px; display: inline-block;
  background: repeating-linear-gradient(45deg, #fde8c8 0 2px, #e0a91b 2px 3.5px); }
.mhint { margin: 6px 0 0; font-size: 12.5px; }
.mhint img.logo { width: 13px; height: 13px; margin: 0 3px; vertical-align: -2px; }
.para { margin-top: 12px; border-radius: 14px; background: var(--soft); padding: 14px 16px; }
.para-head { display: flex; align-items: center; gap: 6px; font-size: 13.5px; flex-wrap: wrap; }
.para-head .flag { margin-right: 2px; }
.para-kind { margin-left: 8px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #e9ecf1; color: var(--ink-2); }
.para-kind.concept { background: #fde8c8; color: #8a5a00; } .para-kind.context { background: #dbe4f3; color: #2d4a7a; }
.para-kind.content { background: #ffe9e9; color: #ce2c31; }
.para-x { all: unset; cursor: pointer; margin-left: auto; font-size: 20px; line-height: 1; color: var(--mute); padding: 0 4px; }
.para-gist { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.para-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.para-l { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.para-o, .para-en { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.para-en img.logo { width: 13px; height: 13px; margin: 0 3px; vertical-align: -2px; }
@media (max-width: 760px) { .para-cols { grid-template-columns: 1fr; } }

/* how the editions changed */
.growth { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 12px; }
.gchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.gchip .flag { margin: 0; } .gchip b { font-weight: 600; color: var(--ink); }
.gchip.up { background: #e6f6ec; color: #218358; } .gchip.down { background: #ffe9e9; color: #ce2c31; }
.gchip .mute { font-size: 11.5px; }
.story-head { font-size: 16px; font-weight: 500; color: var(--ink); margin: 4px 0 10px; max-width: 900px; }
.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 980px; }
.story-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.story-list .when { font-size: 12px; font-weight: 600; color: var(--mute); padding-top: 2px; }
#storyBy img.logo { width: 13px; height: 13px; margin: 0 3px; vertical-align: -2px; }
@media (max-width: 700px) { .story-list li { grid-template-columns: 1fr; gap: 0; } }
.gchip .dc { font-weight: 600; } .gchip .dc.pos { color: #218358; } .gchip .dc.neg { color: #ce2c31; }

/* "who resembles whom" as glass tiles */
.gh-stage { position: relative; width: 100%; height: 470px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 20%, #1b2c5e 0%, #0d1631 55%, #070c1d 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.gh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gh-labels { position: absolute; inset: 0; pointer-events: none; }
.gh-labels > span { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.gh-v { font: 600 13px "Inter Tight", sans-serif; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,20,.55); }
.gh-v.dark { color: #0d1a3d; text-shadow: none; }
.gh-row, .gh-col { display: inline-flex; align-items: center; gap: 6px; font: 500 12px "Inter Tight", sans-serif; color: rgba(225,233,255,.85); }
.gh-col { flex-direction: column; gap: 2px; font-size: 11px; }
.gh-row .flag, .gh-col .flag { margin: 0; }
.gh-row b, .gh-col b { font-weight: 500; }

/* glass score cards: separate glossy tiles that tilt toward the cursor and flip in when the article changes */
.kpis.card { background: none; box-shadow: none; overflow: visible; gap: 12px; perspective: 1100px; }
.kpis .kpi { border-left: 0 !important; border-top: 0 !important; border-radius: 20px; isolation: isolate;
  background: linear-gradient(150deg, rgba(255,255,255,.98) 0%, rgba(246,248,255,.92) 55%, color-mix(in srgb, var(--c) 7%, #fff) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(20,30,60,.06), 0 10px 26px -10px color-mix(in srgb, var(--c) 35%, rgba(16,24,40,.25));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .25s ease; }
.kpis .kpi::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.95), transparent 55%),
    conic-gradient(from 210deg at 70% 0%, transparent 0deg, color-mix(in srgb, var(--c) 18%, transparent) 40deg, transparent 90deg);
  opacity: .9; }
.kpis .kpi::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.kpis .kpi:hover { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(20,30,60,.06), 0 18px 34px -12px color-mix(in srgb, var(--c) 50%, rgba(16,24,40,.3)); }
.kpis .kpi.on { background: linear-gradient(150deg, #fff 0%, color-mix(in srgb, var(--c) 10%, #fff) 100%); }
.kpis .kpi.on::after { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent); }
.kpis .kpi .ring { transform: translateZ(18px); }
.kpis .kpi .big { transform: translateZ(12px); }
.kpi.flipin { animation: cardflip .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes cardflip { from { transform: rotateY(-100deg) translateZ(0); opacity: 0; } 60% { opacity: 1; } to { transform: rotateY(0deg); opacity: 1; } }
@media (max-width: 1100px) { .kpis .kpi:nth-child(4) { border-left: 0; } }
@media (max-width: 700px) { .kpis.card { gap: 8px; } .kpis .kpi { border-radius: 16px; } }
.kpis .kpi.on::before { opacity: 1; }
.kpis .kpi.on { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1.5px color-mix(in srgb, var(--c) 60%, transparent), 0 16px 30px -12px color-mix(in srgb, var(--c) 55%, rgba(16,24,40,.3)); }
.kpis .kpi.on::after { box-shadow: none; }
.kpi.on::after { display: none; }

/* ---------- Glass Tiles Studio look: score cards on the studio stage, purple glass heatmap ---------- */
.gh-stage { background: #04070f; }
.gh-v { color: #fff; text-shadow: 0 1px 8px rgba(0,10,40,.6); }
.gh-v.dark { color: #0d2050; text-shadow: none; }
.gh-row, .gh-col { color: rgba(214,230,255,.88); }
.kg-stage { position: relative; border-radius: 26px; overflow: hidden; background: #04070f; padding: 14px;
  box-shadow: 0 30px 60px -30px rgba(20,60,160,.55); }
.kg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.glass-on .kg-stage .kpis.card { position: relative; z-index: 1; background: none; box-shadow: none; perspective: none; gap: 12px; }
.glass-on .kg-stage .kpis .kpi { background: none !important; box-shadow: none !important; transform: none; animation: none; color: #fff; }
.glass-on .kg-stage .kpis .kpi::before, .glass-on .kg-stage .kpis .kpi::after { display: none; }
.glass-on .kg-stage .kpi .lbl { color: rgba(240,246,255,.95); }
.glass-on .kg-stage .kpi .big { color: #fff; text-shadow: 0 2px 14px rgba(0,20,80,.55); }
.glass-on .kg-stage .kpi .big small, .glass-on .kg-stage .part span { color: rgba(214,230,255,.78); }
.glass-on .kg-stage .part b { color: #fff; }
.glass-on .kg-stage .part .pbar { background: rgba(255,255,255,.18); }
.glass-on .kg-stage .part .pbar i { background: #fff; opacity: .85; }
.glass-on .kg-stage .kpi .ring circle:first-child { stroke: rgba(255,255,255,.18); }
.glass-on .kg-stage .kpi .ring circle:last-child { stroke: #fff; }
.glass-on .kg-stage .copy { background: rgba(255,255,255,.18); color: #fff; }
.glass-on .kg-stage .kpi:hover { background: none; }

/* pressing a card flips it once (with the glass slab behind it) */
.kpis .kpi.press, .glass-on .kg-stage .kpis .kpi.press { animation: cardpress .9s cubic-bezier(.65,0,.35,1) both; }
@keyframes cardpress { 0% { transform: perspective(900px) rotateY(0); } 50% { transform: perspective(900px) rotateY(180deg) scale(.96); }
  100% { transform: perspective(900px) rotateY(360deg); } }
.kpis .kpi.press > * { backface-visibility: hidden; }

/* the mirror on a dark glass stage */
.mirror .mwrap { background: radial-gradient(120% 140% at 70% 0%, #13224a 0%, #070c1d 55%, #04070f 100%); border-radius: 18px;
  padding: 6px 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
#mirrorSvg .mlab { fill: #e8f0ff; } #mirrorSvg .msub { fill: rgba(200,215,245,.65); }
#mirrorSvg .blk { cursor: pointer; }
#mirrorSvg .blk .edge { fill: none; stroke: rgba(207,227,255,.55); stroke-width: .6; }
#mirrorSvg .blk.gap .edge { stroke: rgba(120,140,190,.35); }
#mirrorSvg .blk:hover rect:first-child { filter: brightness(1.25); }
#mirrorSvg rect:hover { opacity: 1; }
#mirrorSvg .ribs .rib { mix-blend-mode: screen; transition: fill-opacity .2s; }
#mirrorSvg .rib.lit { fill-opacity: .95 !important; }
#mirrorSvg .mk { stroke: #04070f !important; }
.mleg i.hatch { background: repeating-linear-gradient(45deg, #3a2f1a 0 2px, #f0b73c 2px 3.5px); }
@media (max-width: 700px) { .mirror .mwrap { padding: 4px 8px; } }

/* =====================================================================================================
   Glass theme for the whole app: the page is the dark navy stage, every card is a blue glass tile
   (translucent tint, gloss on top, bright edge, soft glow), small tiles flip when pressed.
   ===================================================================================================== */
:root {
  --bg: #04070f; --card: rgba(16, 28, 64, .55); --ink: #eef4ff; --ink-2: #c4d1ec; --mute: #8b9cbf; --faint: #51618a;
  --line: rgba(140, 175, 255, .14); --soft: rgba(110, 150, 255, .08); --warm: #ffb46b;
  --glass-tint: linear-gradient(160deg, rgba(91, 140, 255, .18) 0%, rgba(30, 60, 140, .12) 40%, rgba(6, 12, 30, .55) 100%);
  --glass-gloss: linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .02) 38%, rgba(255, 255, 255, 0) 60%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(150, 190, 255, .16);
  --shadow: var(--glass-edge), 0 24px 48px -28px rgba(30, 90, 255, .55);
}
html, body { background: radial-gradient(1200px 700px at 75% -10%, #13235a 0%, #070d22 45%, #04070f 100%) fixed; color: var(--ink); }
.frame { background: #050913; box-shadow: 0 40px 120px -40px rgba(20, 70, 255, .45), inset 0 0 0 1px rgba(140, 175, 255, .08); }
.navpills a.on, .navpills a:hover { background: #050913; color: var(--ink); }

/* glass tiles */
.card, .method, .stickynav, .tip, .added, .move, .gchip, .para, .resol, .cite, details.conf, .db .dlines, .sbox, .ver, .chip, .seg, .yearbar .yr {
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.card, .method {
  background: var(--glass-gloss), var(--glass-tint), rgba(10, 18, 42, .6);
  box-shadow: var(--shadow); color: var(--ink);
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--glass-edge), 0 28px 56px -26px rgba(40, 110, 255, .7); }
.kg-stage .kpis.card, .kpis.card { background: none; box-shadow: none; }
.method { border-radius: 14px; }
.move, .gchip, .added, .para, .resol, .resol2, pre { background: var(--glass-gloss), rgba(91, 140, 255, .09); box-shadow: inset 0 0 0 1px rgba(150, 190, 255, .14); }
.move:hover { background: var(--glass-gloss), rgba(91, 140, 255, .18); }
details.conf { border-top-color: var(--line); }

/* light fallbacks of the score cards (phones, no WebGL) become glass too */
body:not(.glass-on) .kpis .kpi { background: var(--glass-gloss), linear-gradient(150deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(10, 18, 42, .7)) !important;
  box-shadow: var(--glass-edge), 0 14px 30px -18px color-mix(in srgb, var(--c) 60%, transparent) !important; }
body:not(.glass-on) .kpis .kpi::before { opacity: .25; }

/* controls */
.chip { color: var(--ink-2); border-color: rgba(150, 190, 255, .2); background: rgba(91, 140, 255, .06); }
.chip:hover { background: rgba(91, 140, 255, .16); }
.chip.on, .yearbar .yr.on, .sn-links a.on, .showall { background: linear-gradient(180deg, #7aa7ff, #3a6dff); color: #fff; border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(60, 120, 255, .8); }
.seg { background: rgba(91, 140, 255, .08); }
.seg button.on { background: rgba(122, 167, 255, .3); color: #fff; box-shadow: inset 0 0 0 1px rgba(170, 200, 255, .3); }
.pairpick select { background: rgba(10, 18, 42, .8); color: var(--ink); border-color: rgba(150, 190, 255, .25); }
.stickynav { background: rgba(5, 9, 19, .78); border-bottom-color: rgba(140, 175, 255, .14); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.sn-flags button.on { background: rgba(91, 140, 255, .2); box-shadow: inset 0 0 0 1.5px #7aa7ff; }
.tip { background: rgba(8, 14, 34, .92); box-shadow: inset 0 0 0 1px rgba(150, 190, 255, .2), 0 12px 30px rgba(0, 0, 0, .5); color: var(--ink); }

/* badges and tags on dark glass */
.tag, details.conf .tag { background: color-mix(in srgb, var(--k) 18%, transparent); }
.delta.good, .st.ok, .gchip.up, .para-kind.context { background: rgba(48, 164, 108, .18); color: #6fe0a6; }
.delta.mid, .st.mid, .copy, .para-kind.concept { background: rgba(245, 165, 36, .16); color: #ffcf7a; }
.delta.bad, .st.bad, .gchip.down, .para-kind.content { background: rgba(229, 72, 77, .18); color: #ff9aa0; }
.delta.ref { background: rgba(91, 140, 255, .2); color: #a9c6ff; }
.st.none, .para-kind { background: rgba(140, 160, 200, .14); color: var(--mute); }
.gchip .dc.pos, .v-st.ok, .vchk, .schip.ok span, .schip.ok em { color: #6fe0a6; }
.gchip .dc.neg, .v-st.bad, .schip.bad span, .schip.bad em { color: #ff9aa0; }
.byline { background: rgba(193, 95, 60, .18); color: #ffb08a; }
.webchk { color: #a9b4ff; }
.schip, .r-src a, .inwiki, .cbooks a, .report details.more summary, a.cite[href] .ct { color: #8ab4ff; }
.r-quote, .q, .ver-c .q { color: var(--mute); }
.snone { color: #4d5d80; }

/* data views on dark */
.sbox, .dl, .ver { background: color-mix(in srgb, var(--c) 10%, rgba(10, 18, 42, .6)); }
.dlines, .db .dlines { border-color: rgba(150, 190, 255, .14); }
.dt th { background: rgba(91, 140, 255, .08); }
.dt-row:hover td { background: rgba(91, 140, 255, .08); }
.mixcol .well { background: repeating-linear-gradient(-45deg, rgba(110, 150, 255, .08) 0 5px, transparent 5px 9px); }
.heat td.diag { background: repeating-linear-gradient(-45deg, rgba(110, 150, 255, .08) 0 4px, transparent 4px 8px); }
.hbar .fill { background: color-mix(in srgb, var(--c) 55%, transparent); }
.stack { background: rgba(110, 150, 255, .1); }
.part .pbar, .kpi .bar { background: rgba(150, 190, 255, .14); }
.colheads { background: rgba(91, 140, 255, .07); }
code { color: #ffcf7a; }
mark { color: #fff; }
.foot { color: var(--mute); }

/* small tiles flip when pressed */
.tilepress { animation: tilepress .7s cubic-bezier(.65, 0, .35, 1); transform-style: preserve-3d; }
@keyframes tilepress { 0% { transform: perspective(700px) rotateX(0); } 50% { transform: perspective(700px) rotateX(180deg) scale(.97); }
  100% { transform: perspective(700px) rotateX(360deg); } }
details.conf.tilepress { animation-duration: .6s; }
@media (prefers-reduced-motion: reduce) { .tilepress { animation: none; } }
.method summary::before { content: "i"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 6px; border-radius: 50%;
  font: 700 10px/1 Georgia, serif; font-style: italic; color: #a9c6ff; box-shadow: inset 0 0 0 1.2px #7aa7ff; vertical-align: 1px; }

/* =====================================================================================================
   Slab vibe (like the glass heatmap): chunky glossy periwinkle slabs with a bright top edge, thickness and a
   blue glow, on a near-black stage with deep blue halos. No backdrop blur anywhere (it made the page slow).
   ===================================================================================================== */
*, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html, body { background:
  radial-gradient(900px 600px at 80% 8%, rgba(40, 90, 255, .28), transparent 70%),
  radial-gradient(800px 700px at 10% 55%, rgba(30, 70, 220, .16), transparent 70%),
  radial-gradient(900px 800px at 70% 95%, rgba(40, 90, 255, .14), transparent 70%), #02040b; }
.frame { background: linear-gradient(180deg, #060b1c 0%, #040812 40%, #03060f 100%); }
.navpills a.on, .navpills a:hover { background: #060b1c; }

/* large panels: dark glass with the slab bevel and a blue halo */
.card, .method {
  background: linear-gradient(180deg, rgba(48, 72, 160, .32) 0%, rgba(16, 26, 64, .7) 30%, rgba(7, 12, 30, .92) 100%);
  box-shadow: inset 0 1px 0 rgba(190, 210, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 0 0 1px rgba(110, 150, 255, .2),
    0 30px 70px -34px rgba(40, 100, 255, .65);
}
.card:hover { box-shadow: inset 0 1px 0 rgba(190, 210, 255, .32), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 0 0 1px rgba(130, 170, 255, .3),
  0 34px 80px -30px rgba(50, 120, 255, .8); }
.kg-stage .kpis.card, .kpis.card { background: none; box-shadow: none; }

/* small elements: bright glass slabs */
.chip, .yearbar .yr, .seg button, .move, .added, .schip, .gchip, .sn-links a, .showall, .pairpick select {
  border: 0 !important; border-radius: 10px; color: #fff;
  background: linear-gradient(180deg, #6e8cf0 0%, #4a68d8 55%, #3550bd 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(20, 35, 110, .55), 0 0 0 1px rgba(150, 180, 255, .35),
    0 6px 16px -6px rgba(60, 110, 255, .85);
  text-shadow: 0 1px 2px rgba(10, 20, 70, .45);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.chip:hover, .yearbar .yr:hover, .seg button:hover, .move:hover, .added:hover, .schip:hover, .sn-links a:hover { filter: brightness(1.12); transform: translateY(-1px); }
.chip.on, .yearbar .yr.on, .seg button.on, .sn-links a.on, .showall {
  color: #0d1b45; text-shadow: none;
  background: linear-gradient(180deg, #e6eeff 0%, #b9cbff 50%, #93acf5 100%);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 0 rgba(60, 90, 190, .45), 0 0 0 1px rgba(200, 220, 255, .7),
    0 8px 22px -6px rgba(90, 140, 255, 1), 0 0 30px -8px rgba(120, 170, 255, .9);
}
.chip i { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.yearbar .yr { padding: 6px 12px; }
.seg { background: rgba(20, 35, 90, .6); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); padding: 4px; gap: 3px; }
.move { padding: 11px 14px; border-radius: 12px; }
.move small { color: rgba(225, 235, 255, .8); }
.move b { color: #b9ffd9 !important; text-shadow: 0 0 10px rgba(80, 255, 170, .5); } .move b.hot { color: #ffd0d4 !important; text-shadow: 0 0 10px rgba(255, 90, 110, .5); }
.schip { padding: 4px 10px 4px 7px; } .schip em { color: rgba(225, 235, 255, .85) !important; }
.schip.ok { background: linear-gradient(180deg, #4fd6a0, #239a6c); } .schip.bad { background: linear-gradient(180deg, #ff7a86, #c9323f); }
.schip.ok span, .schip.bad span, .schip.ok em, .schip.bad em { color: #fff !important; }
.gchip { color: #fff; } .gchip .mute { color: rgba(225, 235, 255, .75); }
.gchip.up { background: linear-gradient(180deg, #4fd6a0, #239a6c); } .gchip.down { background: linear-gradient(180deg, #ff7a86, #c9323f); }
.gchip .dc.pos, .gchip .dc.neg { color: #fff; }
.added { color: #fff; } .pairpick select { padding: 6px 10px; }

/* status badges as small coloured slabs */
.st, .delta, .copy, .para-kind, .byline, .webchk, .v-st { border-radius: 8px; padding: 2px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 3px 10px -4px currentColor; }
.st.ok, .delta.good, .v-st.ok { background: linear-gradient(180deg, #4fd6a0, #239a6c); color: #fff; }
.st.bad, .delta.bad, .v-st.bad { background: linear-gradient(180deg, #ff7a86, #c9323f); color: #fff; }
.st.mid, .delta.mid, .copy { background: linear-gradient(180deg, #ffd27a, #d99a1f); color: #2a1a00; }
.delta.ref { background: linear-gradient(180deg, #e6eeff, #93acf5); color: #0d1b45; }
.webchk { background: linear-gradient(180deg, #6e8cf0, #3550bd); color: #fff; }
.byline { background: linear-gradient(180deg, #ff9c72, #c95a32); color: #fff; }

/* the info toggle and the load button keep their shapes */
.method { border-radius: 14px; }
.tilepress { animation-duration: .55s; }
.gchip.up, .gchip.down, .gchip.up b, .gchip.down b { color: #fff; }
.gchip.up .mute, .gchip.down .mute { color: rgba(255, 255, 255, .8); }
.gchip b { color: #fff; }

/* glass mode: only the slab turns; the card's text fades out at mid-turn and back (no separate CSS spin) */
.glass-on .kg-stage .kpis .kpi.press { animation: cardfade .9s cubic-bezier(.65,0,.35,1) both !important; transform: none !important; }
@keyframes cardfade { 0% { opacity: 1; } 30% { opacity: 0; } 70% { opacity: 0; } 100% { opacity: 1; } }
.glass-on .kg-stage .kpis .kpi { pointer-events: auto; }

/* a little less glow */
html, body { background:
  radial-gradient(900px 600px at 80% 8%, rgba(40, 90, 255, .17), transparent 70%),
  radial-gradient(800px 700px at 10% 55%, rgba(30, 70, 220, .09), transparent 70%),
  radial-gradient(900px 800px at 70% 95%, rgba(40, 90, 255, .08), transparent 70%), #02040b; }
.frame { box-shadow: 0 40px 120px -50px rgba(20, 70, 255, .28), inset 0 0 0 1px rgba(140, 175, 255, .08); }
.card, .method { box-shadow: inset 0 1px 0 rgba(190, 210, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 0 0 1px rgba(110, 150, 255, .16),
  0 30px 60px -38px rgba(40, 100, 255, .38); }
.card:hover { box-shadow: inset 0 1px 0 rgba(190, 210, 255, .26), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 0 0 1px rgba(130, 170, 255, .24),
  0 32px 64px -34px rgba(50, 120, 255, .5); }
.chip, .yearbar .yr, .seg button, .move, .added, .schip, .gchip, .sn-links a, .showall, .pairpick select {
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(20, 35, 110, .5), 0 0 0 1px rgba(150, 180, 255, .28),
    0 5px 12px -7px rgba(60, 110, 255, .6); }
.chip.on, .yearbar .yr.on, .seg button.on, .sn-links a.on, .showall {
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 0 rgba(60, 90, 190, .4), 0 0 0 1px rgba(200, 220, 255, .55),
    0 6px 16px -8px rgba(90, 140, 255, .75); }
.st, .delta, .copy, .para-kind, .byline, .webchk, .v-st { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .22); }
.move b, .move b.hot { text-shadow: none; }
.kg-stage { box-shadow: 0 24px 48px -32px rgba(20, 60, 160, .4); }
.gh-stage { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
#mirrorSvg .ribs .rib { opacity: .85; }


/* =====================================================================================================
   LIGHT THEME (blue tone): pale blue-white page, white glass panels, navy text, blue glass slabs.
   ===================================================================================================== */
:root {
  --bg: #eef3fb; --card: #fff; --ink: #0d1b3e; --ink-2: #34446a; --mute: #6b7a99; --faint: #a8b3c9;
  --line: rgba(40, 80, 180, .11); --soft: rgba(60, 110, 255, .06); --warm: #b45309;
}
html, body { color: var(--ink); background:
  radial-gradient(900px 600px at 85% 0%, rgba(70, 120, 255, .16), transparent 70%),
  radial-gradient(800px 700px at 0% 60%, rgba(70, 120, 255, .08), transparent 70%), #f1f5fc; }
.frame { background: linear-gradient(180deg, #f8faff 0%, #f3f6fd 100%);
  box-shadow: 0 30px 90px -40px rgba(40, 90, 220, .25), inset 0 0 0 1px rgba(60, 100, 200, .08); }

/* hero: the globe as a blue-on-white blueprint */
.hero { color: var(--ink); background: linear-gradient(180deg, #f6f9ff, #eaf1ff); }
.hero-globe { filter: invert(1) hue-rotate(180deg) saturate(1.3) contrast(.95); mix-blend-mode: multiply; }
.hero h1, .hero h1 em, .eyebrow { color: var(--ink); }
.hero h1 .hwm img { filter: none; }
.hero h1 .hglobe { box-shadow: 0 6px 18px rgba(40, 80, 200, .25); }
.eyebrow img.logo { background: none; }
.stat { background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: 0 0 0 1px rgba(60, 100, 200, .14), 0 4px 12px -6px rgba(40, 80, 200, .3); }
.navpills a { color: var(--ink-2); }
.navpills a.on, .navpills a:hover { background: #f8faff; color: var(--ink); }
.examples { color: var(--mute); }
.examples button { background: rgba(60, 110, 255, .1); color: #1f45b8; }
.examples button:hover { background: rgba(60, 110, 255, .18); }
.loadform input { box-shadow: 0 0 0 1px rgba(60, 100, 200, .18), 0 6px 18px -8px rgba(40, 80, 200, .35); }
.loadform button { background: linear-gradient(180deg, #4a7bff, #2f55d8); color: #fff; box-shadow: 0 8px 20px -8px rgba(40, 90, 230, .7); }
.loadform button:hover { background: linear-gradient(180deg, #5b88ff, #3560e6); }
.pill-select select { box-shadow: 0 0 0 1px rgba(60, 100, 200, .18), 0 6px 18px -8px rgba(40, 80, 200, .3); }
.prog { color: var(--ink); } .prog-bar { background: rgba(60, 110, 255, .15); } .prog-bar i { background: #2f63e6; }

/* panels: white glass with a blue edge */
.card, .method { color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(60, 100, 200, .1), 0 18px 40px -28px rgba(40, 90, 220, .35); }
.card:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(60, 100, 200, .16), 0 22px 46px -26px rgba(40, 90, 220, .45); }
.kg-stage .kpis.card, .kpis.card { background: none; box-shadow: none; }
.move, .gchip, .added, .para, .resol, .resol2, pre { background: linear-gradient(180deg, #f6f9ff, #eef3ff); box-shadow: inset 0 0 0 1px rgba(60, 100, 200, .12); }
.stickynav { background: rgba(250, 252, 255, .94); border-bottom-color: rgba(60, 100, 200, .12); box-shadow: 0 8px 24px -14px rgba(40, 80, 200, .3); }
.sn-flags button.on { background: rgba(60, 110, 255, .12); box-shadow: inset 0 0 0 1.5px #2f63e6; }

/* slabs: blue glass, selected = deep blue */
.chip.on, .yearbar .yr.on, .seg button.on, .sn-links a.on, .showall { color: #fff; text-shadow: 0 1px 2px rgba(10, 20, 70, .4);
  background: linear-gradient(180deg, #3d6cf0 0%, #2a4fcf 55%, #1d3aa8 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(10, 20, 80, .45), 0 0 0 1px rgba(40, 80, 200, .3), 0 6px 14px -7px rgba(30, 70, 220, .7); }
.chip, .yearbar .yr, .seg button, .move, .added, .schip, .gchip, .sn-links a, .pairpick select {
  background: linear-gradient(180deg, #8eaaf7 0%, #6a8cf0 55%, #5577e2 100%); color: #fff; }
.move small { color: rgba(255, 255, 255, .88); }
.move b { color: #fff !important; } .move b.hot { color: #fff !important; }
.seg { background: rgba(60, 110, 255, .1); box-shadow: inset 0 1px 3px rgba(30, 60, 160, .2); }

/* text accents for a light page */
.schip, .r-src a, .inwiki, .cbooks a, .report details.more summary, a.cite[href] .ct, .mhint b { color: #2f55d8; }
.schip { color: #fff; }
.byline { color: #fff; } code { color: #b45309; } mark { color: inherit; }
.r-quote, .q, .ver-c .q { color: var(--mute); } .snone { color: #a8b3c9; }
.tag, details.conf .tag { background: color-mix(in srgb, var(--k) 12%, #fff); }
.sbox, .dl, .ver { background: color-mix(in srgb, var(--c) 7%, #fff); }
.part .pbar, .kpi .bar { background: rgba(40, 80, 180, .12); }
.hbar .fill { background: color-mix(in srgb, var(--c) 45%, #fff); }
.stack { background: rgba(60, 110, 255, .1); }
.tip { background: rgba(13, 27, 62, .94); color: #eef4ff; }
.para-kind.concept { background: #fde8c8; color: #8a5a00; } .para-kind.context { background: #dbe4f3; color: #2d4a7a; }
.para-kind.content { background: #ffe9e9; color: #ce2c31; } .para-kind { background: #e9ecf1; color: var(--ink-2); }

/* the light-mode stages for the 3D scenes and the mirror */
.kg-stage { background: linear-gradient(180deg, #f3f7ff, #e6eeff); box-shadow: inset 0 0 0 1px rgba(60, 100, 200, .12), 0 18px 40px -30px rgba(40, 90, 220, .35); }
.gh-stage { background: #eef3ff; box-shadow: inset 0 0 0 1px rgba(60, 100, 200, .12); }
.gh-row, .gh-col { color: var(--ink-2); }
.mirror .mwrap { background: linear-gradient(180deg, #f6f9ff, #edf2ff); box-shadow: inset 0 0 0 1px rgba(60, 100, 200, .12); }
#mirrorSvg .mlab { fill: var(--ink); } #mirrorSvg .msub { fill: var(--mute); }
#mirrorSvg .blk .edge { stroke: rgba(255, 255, 255, .7); }
#mirrorSvg .blk.gap .edge { stroke: rgba(60, 100, 200, .18); }
#mirrorSvg .ribs .rib { mix-blend-mode: multiply; opacity: .9; }
#mirrorSvg .mk { stroke: #fff !important; }
.mleg i.hatch { background: repeating-linear-gradient(45deg, #fde8c8 0 2px, #e0a91b 2px 3.5px); }
body:not(.glass-on) .kpis .kpi { background: linear-gradient(150deg, #fff, color-mix(in srgb, var(--c) 10%, #fff)) !important;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent), 0 12px 26px -16px color-mix(in srgb, var(--c) 50%, transparent) !important; }
body:not(.glass-on) .kpis .kpi .big, body:not(.glass-on) .kpis .kpi .lbl { color: var(--ink); }
.foot { color: var(--mute); }
.gh-stage, .kg-stage { background: #eaedfb; }

/* ---------- minimal layout: one sentence, three steps, a main path, the rest folded ---------- */
.hero { min-height: 0; padding-bottom: 30px; }
.hero h1 { margin-top: 18px; }
.lede { max-width: 560px; margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 4px; padding: 0; font-size: 14px; color: var(--ink-2); }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; color: #fff;
  background: linear-gradient(180deg, #4a7bff, #2f55d8); box-shadow: 0 3px 8px -3px rgba(40, 90, 230, .6); }
.loadform { margin-top: 18px; }
.ovhead h2 { font-size: 22px; }
main { gap: 22px; }
details#more { border-radius: var(--r); background: linear-gradient(180deg, #fff, #f7f9ff);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(60, 100, 200, .1), 0 18px 40px -28px rgba(40, 90, 220, .3); }
details#more > summary { list-style: none; cursor: pointer; padding: 18px 24px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
details#more > summary::-webkit-details-marker { display: none; }
details#more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 600;
  color: #fff; background: linear-gradient(180deg, #6a8cf0, #4a68d8); align-self: center; }
details#more[open] > summary::before { content: "–"; }
.more-t { font-size: 17px; font-weight: 600; color: var(--ink); }
.more-s { font-size: 13px; color: var(--mute); }
.more-body { display: grid; gap: 18px; padding: 0 18px 18px; }
@media (max-width: 700px) { .lede { font-size: 15px; } .steps { font-size: 13px; } .more > summary { padding: 14px 16px; } .more-body { padding: 0 8px 10px; } }

.stats[hidden] { display: none !important; }
.steps { margin-bottom: 0; }

/* even more minimal */
.hero h1 { font-size: 48px; margin-top: 8px; }
.lede { font-size: 16px; max-width: 460px; margin-top: 12px; }
.examples { font-size: 13px; gap: 10px; }
.examples button { background: none !important; padding: 0; color: #2f55d8; text-decoration: underline; text-underline-offset: 3px; }
.ovhead { align-items: center; }
.ovhead h2 { font-size: 20px; }
.method #editionsLine { margin: 10px 0 4px; font-size: 12.5px; }
.kpi .mini-line { grid-area: meta; font-size: 12px; margin-top: 6px; color: var(--mute); white-space: nowrap; }
.glass-on .kg-stage .kpi .mini-line { color: rgba(235, 242, 255, .85); }
.card-head h3 .count { font-weight: 400; }

.webchk { display: none !important; }

/* the globe is rendered for the light page now (navy ink, blue accent, white paper): no colour inversion */
.hero-globe { filter: none; mix-blend-mode: multiply; }

/* the article picker stays on screen: top right on desktop (the sticky bar makes room), bottom on phones */
.pickers { position: fixed; z-index: 60; top: 18px; right: max(20px, calc((100vw - 1320px) / 2 + 34px)); }
.pill-select select { min-width: 300px; max-width: 360px; box-shadow: 0 0 0 1px rgba(60, 100, 200, .2), 0 10px 26px -10px rgba(30, 70, 200, .45); }
.stickynav .sn-row { padding-right: calc(max(20px, calc((100vw - 1320px) / 2 + 34px)) + 380px - max(0px, calc((100vw - 1320px) / 2))); }
.stickynav.show ~ .frame .pickers, body:has(.stickynav.show) .pickers { top: 10px; }
@media (max-width: 760px) {
  .pickers { top: auto; bottom: 14px; left: 12px; right: 12px; }
  .pill-select, .pill-select select { width: 100%; max-width: none; min-width: 0; }
  .stickynav .sn-row { padding-right: 12px; }
  main { padding-bottom: 76px; }
}
@media (max-width: 760px) { body .pickers, body:has(.stickynav.show) .pickers { top: auto; bottom: 14px; left: 12px; right: 12px; } }
@media (max-width: 760px) { body .pickers { width: auto; } }

/* loading status: stages with ticks, the current one live */
.prog { margin-top: 14px; max-width: 620px; padding: 14px 16px 12px; border-radius: 16px; display: grid; gap: 10px; color: var(--ink);
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(60, 100, 200, .14), 0 14px 34px -18px rgba(40, 80, 200, .45); }
.prog[hidden] { display: none; }
.prog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.prog-head b { font-weight: 600; } .prog-time { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.prog-bar { height: 6px; border-radius: 3px; background: rgba(60, 110, 255, .14); overflow: hidden; }
.prog-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4a7bff, #2f55d8); transition: width .8s ease; }
.prog-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; }
.prog-steps li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; color: var(--faint); }
.prog-steps .via { font-size: 11px; color: var(--faint); white-space: nowrap; }
.prog-steps li.done { color: var(--ink-2); } .prog-steps li.done .via { color: var(--mute); }
.prog-steps li.now { color: var(--ink); font-weight: 600; } .prog-steps li.now .via { color: #2f55d8; font-weight: 500; }
.prog-steps .ic { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; display: grid; place-items: center; }
.prog-steps li.done .ic { background: #2f63e6; box-shadow: none; }
.prog-steps li.done .ic::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.prog-steps li.now .ic { box-shadow: inset 0 0 0 2px rgba(47, 99, 230, .25); border-top: 2px solid #2f63e6; animation: spin .8s linear infinite; }
.prog-steps li.err { color: #ce2c31; } .prog-steps li.err .ic { background: #e5484d; box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .prog-steps .via { display: none; } }

#filters[hidden], #views[hidden], #rows[hidden], #colheads[hidden] { display: none !important; }

/* "More analysis" is always open: a plain section header */
details#more > summary { cursor: default; }
details#more > summary::before { display: none; }

/* the analysis block sits right under the scores */
.analysis { display: grid; gap: 18px; }
.sec-h { margin: 6px 4px 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sec-s { font-size: 13px; font-weight: 400; color: var(--mute); letter-spacing: 0; }

/* ---------- pages ---------- */
main [data-page][hidden] { display: none !important; }
.pagetabs { display: flex; gap: 4px; padding: 10px 34px 0; position: relative; z-index: 2; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid rgba(60, 100, 200, .12); background: linear-gradient(180deg, #eef3ff, #f6f9ff); }
.pagetabs::-webkit-scrollbar { display: none; }
.pagetabs a { padding: 11px 16px 12px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 12px 12px 0 0; white-space: nowrap;
  border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; transition: color .15s, background .15s; }
.pagetabs a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.pagetabs a.on { color: #1d3aa8; background: #f8faff; border-color: rgba(60, 100, 200, .14); box-shadow: inset 0 3px 0 #2f63e6; }
main { padding-top: 26px; }
@media (max-width: 700px) { .pagetabs { padding: 8px 10px 0; } .pagetabs a { padding: 10px 12px; font-size: 14px; } }

.nodata { display: none !important; }

/* the article picker lives in the search row: choose a loaded article, or load a new one */
.loadform { max-width: 820px; align-items: stretch; }
.loadform .pill-select { flex: 0 0 auto; }
.loadform .pill-select select { min-width: 0; width: 290px; max-width: 290px; height: 100%; padding: 12px 36px 12px 16px; font-size: 14px;
  box-shadow: 0 0 0 1px rgba(60, 100, 200, .18), 0 6px 18px -8px rgba(40, 80, 200, .35); text-overflow: ellipsis; }
.loadform input { min-width: 180px; }
@media (max-width: 760px) {
  .loadform { flex-wrap: wrap; }
  .loadform .pill-select { flex: 1 1 100%; } .loadform .pill-select select { width: 100%; max-width: none; }
  .loadform input { flex: 1 1 auto; }
  main { padding-bottom: 24px; }
}
