/* healthy100: a printed almanac, set in ink and ochre.
   Dark is the home key; light mode is parchment. No framework, one file. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/v/fraunces-latin-var.94bb7e04bb.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/v/fraunces-latin-ext-var.83d9cbb2b6.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-0148, U+014A-0151, U+0154-017E, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01C4-01CC, U+01D9-01DA, U+01E6-01E7, U+01EA-01EB, U+01FA-021B, U+022A-022D, U+0230-0233, U+0237, U+0259, U+1E08-1E09, U+1E0C-1E0F, U+1E14-1E17, U+1E1C-1E1D, U+1E20-1E21, U+1E24-1E25, U+1E2A-1E2B, U+1E2E-1E2F, U+1E36-1E37, U+1E3A-1E3B, U+1E42-1E43, U+1E46-1E49, U+1E4C-1E53, U+1E5A-1E5B, U+1E5E-1E5F, U+1E62-1E65, U+1E6C-1E6F, U+1E78-1E7B, U+1E80-1E85, U+1E92-1E93, U+1E97, U+1E9E, U+1EA0-1EF9, U+2020, U+20A1, U+20A3-20A4, U+20A6-20A7, U+20A9, U+20AB, U+20AD, U+20B1-20B2, U+20B5, U+20B9-20BA, U+20BC-20BD;
}
@font-face {
  font-family: 'Literata';
  src: url('/assets/v/literata-latin-var.55c10c2e81.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0102, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Literata';
  src: url('/assets/v/literata-latin-ext-var.8187df8a63.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-0101, U+0103-0130, U+0132-0151, U+0154-017E, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01C4-01DC, U+01E6-01E7, U+01EA-01EB, U+01FA-021B, U+022A-022D, U+0230-0233, U+0237, U+0259, U+1E08-1E09, U+1E0C-1E0F, U+1E14-1E17, U+1E1C-1E1D, U+1E20-1E21, U+1E24-1E25, U+1E2A-1E2B, U+1E2E-1E2F, U+1E36-1E3B, U+1E42-1E49, U+1E4C-1E53, U+1E5A-1E69, U+1E6C-1E6F, U+1E78-1E7B, U+1E80-1E85, U+1E8E-1E8F, U+1E92-1E93, U+1E97, U+1E9E, U+1EA0-1EF9, U+2020, U+20A1, U+20A3-20A4, U+20A6-20A7, U+20A9, U+20AB, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BC-20BD, U+2113;
}
@font-face {
  font-family: 'Literata';
  src: url('/assets/v/literata-cyrillic-var.812b3db6a4.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0401-044F, U+0451-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --display: 'Fraunces', 'Hoefler Text', Georgia, serif;
  --body: 'Literata', 'Iowan Old Style', Georgia, serif;

  /* ink: the default key */
  --bg: #100d0a;
  --bg-2: #181310;
  --bg-3: #221a15;
  --fg: #f4ece1;
  --fg-dim: #b9aa98;
  --fg-faint: #948676;
  --rule: rgba(244, 236, 225, 0.16);
  --rule-soft: rgba(244, 236, 225, 0.08);
  --accent: #eba445;
  --accent-2: #f6c47e;
  --accent-ink: #1a1206;
  --good: #83c9a0;
  --warn: #ef9272;
  --shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
  --grain: 0.05;

  --wrap: 64rem;
  --pad: clamp(1.1rem, 4vw, 3.4rem);
  --r: 2px;
}

html[data-theme='light'] {
  --bg: #d5c8ac;
  --bg-2: #e0d6bf;
  --bg-3: #ebe3d2;
  --fg: #211a11;
  --fg-dim: #574a3a;
  --fg-faint: #5f5241;
  --rule: rgba(33, 26, 17, 0.3);
  --rule-soft: rgba(33, 26, 17, 0.14);
  --accent: #7d4104;
  --accent-2: #5d2f02;
  --accent-ink: #fdf6e9;
  --good: #1b5539;
  --warn: #93331c;
  --shadow: 0 16px 34px -26px rgba(60, 44, 20, 0.7);
  --grain: 0.055;
}
@media (prefers-color-scheme: light) {
  html[data-theme='auto'] {
    --bg: #d5c8ac;
    --bg-2: #e0d6bf;
    --bg-3: #ebe3d2;
    --fg: #211a11;
    --fg-dim: #574a3a;
    --fg-faint: #5f5241;
    --rule: rgba(33, 26, 17, 0.3);
    --rule-soft: rgba(33, 26, 17, 0.14);
    --accent: #7d4104;
    --accent-2: #5d2f02;
    --accent-ink: #fdf6e9;
    --good: #1b5539;
    --warn: #93331c;
    --shadow: 0 16px 34px -26px rgba(60, 44, 20, 0.7);
    --grain: 0.055;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(0.975rem, 0.94rem + 0.2vw, 1.06rem);
  line-height: 1.62;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- masthead ---------- */

.masthead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto; padding: 1.4rem var(--pad) 1rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 40;
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark b { color: var(--accent); font-weight: 900; }
.masthead-nav { display: flex; align-items: center; gap: 0.6rem 1.2rem; flex-wrap: wrap; font-size: 0.86rem; }
.masthead-nav a { color: var(--fg-dim); }
/* Below 640px the web fonts push the nav onto its own row. Put it there from the first paint,
   so the swap from the fallback font cannot move the page (CLS on throttled mobile). */
@media (max-width: 639px) { .masthead-nav { flex-basis: 100%; } }

button { font: inherit; color: inherit; cursor: pointer; }
.ghost {
  background: none; border: 1px solid var(--rule); border-radius: var(--r);
  padding: 0.35rem 0.75rem; font-size: 0.8rem; color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.ghost:hover { border-color: var(--accent); color: var(--fg); }
.ghost.danger:hover { border-color: var(--warn); color: var(--warn); }
.linky {
  background: none; border: 0; padding: 0; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
}

.sample-banner {
  max-width: var(--wrap); margin: 0.9rem auto 0; padding: 0.6rem 0.9rem;
  border: 1px solid var(--accent); border-left-width: 5px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  font-size: 0.86rem;
  width: calc(100% - var(--pad) * 2);
}
.sample-banner b { font-family: var(--display); font-variation-settings: 'WONK' 1; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.2rem) var(--pad) 0;
  display: grid; grid-template-columns: 1fr; gap: 1.6rem;
}
.hero-copy { position: relative; z-index: 2; }
h1 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
  font-weight: 700;
  font-size: clamp(2.4rem, 7.2vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
  margin: 0 0 1.1rem;
  max-width: 17ch;
  text-wrap: balance;
}
h1 em {
  font-style: normal; color: var(--accent);
  font-variation-settings: 'SOFT' 90, 'WONK' 1, 'opsz' 144;
  position: relative;
}
h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 3px;
  background: var(--accent); opacity: 0.35;
}
.lede { max-width: 46ch; color: var(--fg-dim); font-size: 1.02em; margin: 0 0 1.2rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cta {
  font-family: var(--display); font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 40;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.005em;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: var(--r);
  padding: 0.7rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.cta:hover { transform: translateY(-2px); background: var(--accent-2); }
.cta:active { transform: translateY(0); }
.cta[aria-expanded='true'] { background: none; color: var(--fg); }
.hero-hint { color: var(--fg-faint); font-size: 0.88rem; }

.hero-figure {
  position: absolute; z-index: 1; right: -0.4rem; top: clamp(-1rem, 1vw, 0.2rem);
  line-height: 0.7; pointer-events: none; overflow: hidden;
}
.hero-numeral {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 144;
  font-weight: 900;
  font-size: clamp(6rem, 17vw, 12.5rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  opacity: 0.13;
  display: block;
}
@media (max-width: 700px) { .hero-figure { opacity: 0.3; top: auto; bottom: -1rem; right: -1.6rem; } }

.hero-ledger {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin: clamp(1.3rem, 3vw, 1.8rem) 0 0; padding: 0;
  border-top: 1px solid var(--rule);
  position: relative; z-index: 2;
}
.hero-ledger > div {
  padding: 0.55rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.hero-ledger dt {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-faint);
}
.hero-ledger dd {
  margin: 0.1rem 0 0; font-family: var(--display); font-weight: 600;
  font-variation-settings: 'WONK' 1, 'opsz' 60; font-size: 1.3rem;
}
@media (min-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-ledger {
    grid-column: 2; grid-row: 1; align-self: end;
    grid-template-columns: 1fr; margin: 0 0 0.2rem; border-top: 0;
  }
  .hero-ledger > div { padding: 0.5rem 0 0.55rem; border-bottom: 0; border-top: 1px solid var(--rule-soft); }
  .hero-ledger > div:first-child { border-top: 1px solid var(--rule); }
}

/* ---------- tailor panel ---------- */

.tailor {
  max-width: var(--wrap); margin: clamp(1.6rem, 5vw, 2.6rem) auto 0;
  padding: clamp(1.1rem, 3vw, 2rem) var(--pad);
  background: var(--bg-2);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  animation: unfurl 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes unfurl { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .tailor { animation: none; } }
.tailor-head h2 {
  font-family: var(--display); font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 72;
  font-weight: 600; font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
}
.tailor-head p { margin: 0 0 1.6rem; max-width: 62ch; color: var(--fg-dim); font-size: 0.94em; }
.tailor-head b { color: var(--fg); }

.step { display: grid; gap: 1.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .step { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .step { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step-grid { padding-top: 1.4rem; }
.field-wide { grid-column: 1 / -1; }
#f-country { max-width: 24rem; }
.field-label {
  display: block; font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--fg-faint); margin-bottom: 0.5rem;
}
.field-note { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--fg-faint); max-width: 44ch; }

input[type='number'], input[type='text'], input[type='search'] {
  font: inherit; font-family: var(--body);
  background: var(--bg-3); color: var(--fg);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: 0.5rem 0.7rem; width: 100%; min-width: 0;
}
input::placeholder { color: var(--fg-faint); opacity: 1; }
input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stepper { display: flex; align-items: center; gap: 0.4rem; }
.stepper input { width: 4.6rem; text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.stepper button {
  background: none; border: 1px solid var(--rule); border-radius: var(--r);
  width: 2.2rem; height: 2.2rem; flex: none; font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center;
}
.stepper button:hover { border-color: var(--accent); color: var(--accent); }
.stepper .unit { font-size: 0.82rem; color: var(--fg-faint); }
.pair { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.units { margin-bottom: 0.6rem; }
.uin { display: inline-flex; align-items: center; gap: 0.35rem; }
.uin[hidden] { display: none; }
.uin input { width: 4.6rem; }
.uin span { font-size: 0.78rem; color: var(--fg-faint); letter-spacing: 0.06em; }

.stat-cite {
  /* never nowrap: a long publisher name would set the row grid's minimum width */
  color: var(--accent); overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.stat-cite:hover { text-decoration-thickness: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips button {
  background: none; border: 1px solid var(--rule); border-radius: var(--r);
  padding: 0.42rem 0.8rem; font-size: 0.87rem; color: var(--fg-dim);
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}
.chips button:hover { border-color: var(--accent); color: var(--fg); }
.chips button.on {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  font-weight: 600;
}
.chips-toggle button.on::before { content: '\2713\a0'; }
.chips-sm button { padding: 0.28rem 0.6rem; font-size: 0.8rem; }
.catsel select {
  font: inherit; font-family: var(--body); font-size: 0.8rem;
  background: var(--bg-3); color: var(--fg-dim);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: 0.28rem 0.5rem; max-width: 12rem;
}
.catsel select:hover { border-color: var(--accent); }

.sharpen { margin-top: 1.9rem; border-top: 1px solid var(--rule); }
.sharpen > summary {
  cursor: pointer; list-style: none; padding: 1rem 0 0;
  display: flex; align-items: baseline; gap: 0.7rem;
}
.sharpen > summary::-webkit-details-marker { display: none; }
.sharpen > summary span {
  font-family: var(--display); font-variation-settings: 'WONK' 1, 'opsz' 40;
  font-weight: 600; font-size: 1.1rem;
}
.sharpen > summary span::before { content: '+\a0'; color: var(--accent); }
.sharpen[open] > summary span::before { content: '\2212\a0'; }
.sharpen > summary small { color: var(--fg-faint); font-size: 0.8rem; }

.tailor-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem;
  padding-top: 1rem; border-top: 1px solid var(--rule-soft);
}
.profile-count { font-size: 0.82rem; color: var(--fg-faint); }

/* ---------- toolbar ---------- */

.toolbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  margin-top: clamp(1.2rem, 2.5vw, 1.8rem);
}
.toolbar-row {
  max-width: var(--wrap); margin: 0 auto; padding: 0.7rem var(--pad);
  display: flex; align-items: center; gap: 0.7rem 1rem; flex-wrap: wrap;
}
.toolbar-row-2 { padding-top: 0; padding-bottom: 0.8rem; }
.mode { display: flex; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.mode button {
  background: none; border: 0; padding: 0.42rem 0.95rem; font-size: 0.88rem;
  color: var(--fg-faint);
  font-family: var(--display); font-variation-settings: 'WONK' 1, 'opsz' 30; font-weight: 600;
}
.mode button + button { border-left: 1px solid var(--rule); }
.mode button.on { background: var(--fg); color: var(--bg); }
.mode button[disabled] { opacity: 0.45; cursor: not-allowed; }
.search { flex: 1 1 12rem; min-width: 9rem; }
.quick {
  background: none; border: 1px solid var(--rule); border-radius: var(--r);
  padding: 0.4rem 0.8rem; font-size: 0.85rem; color: var(--fg-dim); white-space: nowrap;
}
.quick::before { content: '\2192\a0'; color: var(--accent); }
.quick[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.quick[aria-pressed='true']::before { color: var(--accent-ink); }
#filters-toggle { display: none; }
@media (max-width: 759px) {
  #filters-toggle { display: inline-block; }
  #filters-toggle[aria-expanded='true'] { border-color: var(--accent); color: var(--fg); }
  .toolbar-row-2 { display: none; }
  .toolbar.filters-open .toolbar-row-2 { display: flex; }
  .toolbar-row { padding-top: 0.55rem; padding-bottom: 0.55rem; gap: 0.5rem 0.6rem; }
  .search { flex-basis: 100%; order: -1; }
}
.tracker { margin: 0; font-size: 0.85rem; color: var(--fg-dim); white-space: nowrap; }
.tracker b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--accent); }

.rank-note {
  max-width: var(--wrap); margin: 0.85rem auto 0.15rem; padding: 0 var(--pad);
  font-size: 0.84rem; color: var(--fg-faint);
}

/* ---------- the ledger ---------- */

.ledger {
  list-style: none; margin: 0 auto; padding: 0 var(--pad) 1rem;
  max-width: var(--wrap);
  border-top: 1px solid var(--rule);
}
.row-wrap { position: relative; border-bottom: 1px solid var(--rule-soft); background-clip: padding-box; }
.row-wrap:last-child { border-bottom: 1px solid var(--rule); }
.row-wrap.enter { animation: fadein 0.5s both; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .row-wrap.enter { animation: none; } }

.row-head {
  display: grid; align-items: start;
  /* 2.85rem: "100" at the mobile rank size, tabular figures, with no overflow */
  grid-template-columns: 2.85rem minmax(0, 1fr) 2rem;
  grid-template-areas: 'rank main check' '. aside aside';
  gap: 0.2rem 0.6rem;
  padding: 1.15rem 0 1.25rem;
  transition: background 0.14s ease;
}
/* The toggle is an empty summary stretched under the whole row (see rowHTML). The header paints above it but lets
   clicks fall through, except on what is interactive in it; the open body sits above it too. Painting the header
   on top keeps its text measurable: axe cannot read contrast through an overlay. */
.row-toggle { position: absolute; inset: 0; cursor: pointer; list-style: none; }
.row-toggle::-webkit-details-marker { display: none; }
.row-head, .row-body { position: relative; z-index: 1; }
.row-head { pointer-events: none; }
.row-head .stat-cite, .row-head .grade, .row-check { pointer-events: auto; }
.row-head:hover, .row-wrap:has(> .row > .row-toggle:hover) .row-head { background: var(--bg-2); }
.row-head:hover .title, .row-wrap:has(> .row > .row-toggle:hover) .title { color: var(--accent); }
.row-wrap:has(> .row[open]) { background: var(--bg-2); }
@supports selector(:has(a)) {
  /* the ring goes round the header it opens, not round the whole card the stretched summary covers */
  .row-toggle:focus-visible { outline: none; }
  .row-wrap:has(> .row > .row-toggle:focus-visible) .row-head { outline: 2px solid var(--accent); outline-offset: 3px; }
}

.rank {
  grid-area: rank;
  font-family: var(--display); font-variation-settings: 'SOFT' 10, 'WONK' 1, 'opsz' 60;
  font-weight: 700; font-size: 1.5rem; line-height: 1.05;
  color: var(--fg-faint); font-variant-numeric: tabular-nums lining-nums;
  text-align: right;
}
.row-wrap:has(> .row[open]) .rank, .row-head:hover .rank, .row-wrap:has(> .row > .row-toggle:hover) .rank { color: var(--accent); }
.row-main { grid-area: main; display: block; }
.row-top { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.2rem; }
.cat {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--fg-faint);
}
.move {
  font-size: 0.72rem; letter-spacing: 0.04em; overflow-wrap: anywhere;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  padding: 0.05rem 0.4rem; border-radius: var(--r);
}
.move.down { color: var(--fg-faint); border-color: var(--rule); }
.move:empty { display: none; }
.title {
  display: block;
  font-family: var(--display); font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 60;
  font-weight: 600; font-size: clamp(1.12rem, 1rem + 0.7vw, 1.42rem);
  line-height: 1.16; letter-spacing: -0.012em;
  transition: color 0.14s ease;
}
.summary { display: block; color: var(--fg-dim); font-size: 0.93em; margin-top: 0.3rem; max-width: 62ch; }
.stat {
  display: block; margin-top: 0.55rem; font-size: 0.87em;
  padding-left: 0.7rem; border-left: 2px solid var(--accent);
  color: var(--fg);
}
.reasons { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.reasons:empty { display: none; }
.reasons .why-chip {
  font-size: 0.76rem; line-height: 1.35;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--fg-dim); padding: 0.22rem 0.5rem; border-radius: var(--r);
}
.reasons .why-lead {
  flex-basis: 100%; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--accent); margin-bottom: -0.1rem;
}
.reasons .why-chip.down { border-style: dotted; border-color: var(--rule); }

.row-aside {
  grid-area: aside; display: flex; align-items: center; gap: 0.6rem;
  margin-top: 0.7rem; flex-wrap: wrap; min-width: 0;
}
.grade {
  font-family: var(--display); font-variation-settings: 'WONK' 1, 'opsz' 30;
  font-weight: 700; font-size: 0.92rem; line-height: 1;
  width: 1.55rem; height: 1.55rem; flex: none;
  display: inline-grid; place-items: center;
  border: 1px solid currentColor; border-radius: var(--r);
  position: relative; cursor: help;
}
.grade[data-grade='A'] { color: var(--good); }
.grade[data-grade='B'] { color: var(--accent); }
.grade[data-grade='C'] { color: var(--fg-faint); }
.grade::after {
  content: attr(data-tip);
  display: none;
  position: absolute; bottom: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 17rem; z-index: 40;
  background: var(--fg); color: var(--bg); font-family: var(--body); font-weight: 400;
  font-size: 0.75rem; line-height: 1.4; padding: 0.4rem 0.6rem; border-radius: var(--r);
  opacity: 0; visibility: hidden; transition: opacity 0.14s ease;
  pointer-events: none; text-align: left;
}
.grade:hover::after, .grade:focus-visible::after { display: block; opacity: 1; visibility: visible; }
.impact {
  /* flex: none only. In the desktop column layout a flex-basis would set the HEIGHT. */
  position: relative; width: 5.2rem; max-width: 100%; height: 11px; flex: none;
  background: var(--rule-soft); border: 1px solid var(--rule-soft);
}
.impact i { display: block; height: 100%; background: var(--accent); width: 0; }
.impact::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1.5px), var(--bg) calc(10% - 1.5px) 10%);
}
.row-head:hover .impact::after, .row-wrap:has(> .row > .row-toggle:hover) .impact::after, .row-wrap:has(> .row[open]) .impact::after {
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1.5px), var(--bg-2) calc(10% - 1.5px) 10%);
}
.effort {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--fg-faint);
}
.row-check { grid-area: check; justify-self: end; padding-top: 0.35rem; }
.row-check input, .done-label input {
  appearance: none; width: 1.5rem; height: 1.5rem; margin: 0; /* 24px: the WCAG 2.2 target size */
  border: 1px solid var(--rule); border-radius: var(--r); background: none;
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.row-check input:hover, .done-label input:hover { border-color: var(--accent); }
.row-check input:checked, .done-label input:checked { background: var(--good); border-color: var(--good); }
.row-check input:checked::after, .done-label input:checked::after {
  content: '\2713'; color: var(--bg); font-size: 0.8rem; line-height: 1;
}
.row-wrap.done .title { text-decoration: line-through; text-decoration-color: var(--rule); }
.row-wrap.done .row-head { opacity: 0.62; }

/* expanded body */
.row-body {
  padding: 0.2rem 0 1.9rem;
  grid-column: 1 / -1;
  animation: open 0.26s ease both;
}
@keyframes open { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .row-body { animation: none; } }
@media (min-width: 640px) { .row-body { padding-left: 3.2rem; } }
.body-cols { display: grid; gap: 1.6rem; }
@media (min-width: 780px) { .body-cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.6rem; } }
.row-body h4 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--fg-faint); margin: 0 0 0.6rem; font-weight: 400;
}
.why p { margin: 0; max-width: 62ch; font-size: 1.02em; }
.how ol { margin: 0; padding-left: 1.3rem; }
.how li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
.how li::marker { color: var(--accent); font-family: var(--display); font-weight: 700; }
.caution {
  margin: 1.5rem 0 0; padding: 0.7rem 0.9rem; font-size: 0.9em;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  background: color-mix(in srgb, var(--warn) 9%, transparent);
}
.caution::before {
  content: attr(data-label); display: block;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--warn); margin-bottom: 0.25rem;
}
.sources { margin-top: 1.6rem; }
.sources ul { list-style: none; margin: 0; padding: 0; }
.sources li {
  padding: 0.55rem 0; border-top: 1px solid var(--rule-soft);
  display: flex; gap: 0.7rem; align-items: baseline; flex-wrap: wrap;
  font-size: 0.92em;
}
.sources .tier {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--rule); padding: 0.1rem 0.4rem; color: var(--fg-faint);
  white-space: nowrap;
}
.sources .tier[data-tier='1'] { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.sources .pub { color: var(--fg-dim); font-size: 0.85em; }
.sources a { flex: 1 1 18rem; }
.sources a::after { content: '\a0\2197'; color: var(--accent); }
.row-foot {
  display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap;
  margin-top: 1.5rem; padding-top: 0.9rem; border-top: 1px solid var(--rule-soft);
  font-size: 0.85rem;
}
.done-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; color: var(--fg-dim); }
.anchor { color: var(--fg-faint); font-size: 0.82rem; }

/* ---------- sunk section ---------- */

.sunk { max-width: var(--wrap); margin: 1.4rem auto 0; padding: 0 var(--pad); }
.sunk > details { border: 1px solid var(--rule); background: var(--bg-2); }
.sunk > details > summary {
  cursor: pointer; padding: 0.85rem 1rem; list-style: none;
  font-family: var(--display); font-variation-settings: 'WONK' 1, 'opsz' 40; font-weight: 600;
  display: flex; gap: 0.5rem; align-items: baseline;
}
.sunk > details > summary::-webkit-details-marker { display: none; }
.sunk > details > summary::before { content: '+'; color: var(--accent); }
.sunk > details[open] > summary::before { content: '\2212'; }
.sunk > details > summary span { color: var(--fg-faint); font-weight: 400; font-family: var(--body); font-size: 0.9rem; }
.sunk-note { margin: 0 1rem; padding-bottom: 0.4rem; font-size: 0.86rem; color: var(--fg-dim); max-width: 64ch; }
.ledger-sunk { padding: 0 0.9rem 0.6rem; border-top: 0; }
.ledger-sunk .row-head { opacity: 0.72; }
.empty { max-width: var(--wrap); margin: 2rem auto; padding: 0 var(--pad); color: var(--fg-dim); }

/* ---------- method ---------- */

.method {
  max-width: var(--wrap); margin: clamp(3rem, 9vw, 6rem) auto 0;
  padding: clamp(2rem, 5vw, 3.2rem) var(--pad);
  border-top: 2px solid var(--accent);
  background: var(--bg-2);
}
.method h2 {
  font-family: var(--display); font-variation-settings: 'SOFT' 50, 'WONK' 1, 'opsz' 100;
  font-weight: 700; font-size: clamp(1.9rem, 5.5vw, 3rem); margin: 0 0 1.8rem;
  letter-spacing: -0.02em;
}
.method-grid { display: grid; gap: 1.8rem 2.6rem; }
@media (min-width: 700px) { .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.method h3 {
  font-family: var(--display); font-variation-settings: 'WONK' 1, 'opsz' 40;
  font-weight: 600; font-size: 1.14rem; margin: 0 0 0.5rem;
}
.method p { margin: 0; color: var(--fg-dim); max-width: 60ch; }
.method b { color: var(--fg); }
.grade-legend { list-style: none; margin: 0; padding: 0; }
.grade-legend li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.6rem; color: var(--fg-dim); font-size: 0.94em; }
.grade-legend .grade { cursor: default; }
.method-sub { margin-top: 2.6rem !important; font-size: 1.25rem !important; }
.method-p { margin-bottom: 1rem !important; }
.rules-dump { border: 1px solid var(--rule); }
.rules-dump summary { cursor: pointer; padding: 0.7rem 0.9rem; font-size: 0.9rem; }
.rules-dump summary span { color: var(--fg-faint); }
.table-wrap { overflow-x: auto; }
#rules-table { border-collapse: collapse; width: 100%; font-size: 0.82rem; }
#rules-table th, #rules-table td {
  text-align: left; padding: 0.45rem 0.7rem; border-top: 1px solid var(--rule-soft);
  vertical-align: top;
}
#rules-table th { color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; font-weight: 400; }
#rules-table td.d { font-family: var(--display); font-weight: 700; white-space: nowrap; }
#rules-table td.d.plus { color: var(--good); }
#rules-table td.d.minus { color: var(--warn); }
#rules-table code {
  font-family: var(--body); font-size: 0.95em; color: var(--accent);
  white-space: nowrap;
}
.disclaimer {
  margin: 2.6rem 0 0 !important; padding: 1rem 1.1rem;
  border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent);
  max-width: 68ch !important;
}
.reviewed { margin-top: 1.4rem !important; font-size: 0.85rem; color: var(--fg-faint) !important; }

.foot {
  max-width: var(--wrap); margin: 0 auto; padding: 2.4rem var(--pad) 3.4rem;
  font-size: 0.84rem; color: var(--fg-faint);
}
.foot p { margin: 0 0 0.7rem; max-width: 70ch; }
.foot b { color: var(--fg-dim); font-family: var(--display); font-variation-settings: 'WONK' 1; }
.noscript { max-width: var(--wrap); margin: 2rem auto; padding: 1rem var(--pad); color: var(--fg-dim); font-size: 0.88rem; }

/* ---------- support pages, 404, provenance ---------- */

.start-page, .notfound-page, .support-page { max-width: var(--wrap); margin: 0 auto; padding: 1rem var(--pad) 2rem; }
.notfound-page h1, .support-page h1 {
  font-family: var(--display); font-variation-settings: 'SOFT' 50, 'WONK' 1, 'opsz' 100;
  font-weight: 700; font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0 0 0.8rem; max-width: 22ch;
}
.check-us dl, .prov dl { margin: 0; display: grid; gap: 0.45rem; }
.check-us dl { margin-bottom: 1.2rem; }
.check-us dl > div, .prov dl > div { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: 0.2rem 1rem; }
.check-us dt, .prov dt { color: var(--fg-faint); font-size: 0.85rem; }
.check-us dd, .prov dd { margin: 0; }
.check-us .stat { margin-top: 0; }
@media (max-width: 520px) { .check-us dl > div, .prov dl > div { grid-template-columns: 1fr; } }
.item-page .disclaimer { margin: 2rem 0 0 !important; padding: 0.8rem 1rem; font-size: 0.88rem; color: var(--fg-dim); max-width: 70ch !important; }
.prov { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--rule-soft); font-size: 0.88rem; color: var(--fg-dim); }
.prov p { margin: 0 0 0.6rem; }
.support-page > p, .support-page section { max-width: 68ch; }
.support-page section { margin-top: 1.8rem; }
.support-page h2 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 0.5rem; }
.support-page .grades { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.support-page .downloads { padding-left: 1.2rem; margin: 0 0 0.6rem; }
.support-page .downloads a { font-weight: 600; }
.support-page .fields { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.support-page .fields th, .support-page .fields td {
  text-align: left; padding: 0.5rem 0.7rem 0.5rem 0; border-top: 1px solid var(--rule-soft); vertical-align: top;
}
.support-page .fields thead th { color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; font-weight: 400; }
.support-page .fields tbody th { font-weight: 400; width: 34%; }
.support-page .fields code { font-family: var(--body); font-size: 0.95em; color: var(--accent); }
.start-page { padding: 0 0 1rem; max-width: none; }
.start-page .disclaimer { max-width: var(--wrap); margin: 1.6rem auto 0 !important; width: calc(100% - var(--pad) * 2); font-size: 0.86rem; }
.do-card .caution { margin: 0.4rem 0 0; font-size: 0.86em; padding: 0.45rem 0.7rem; }
.start-empty { color: var(--fg-dim); margin: 0.4rem 0 0; padding: 0.7rem 0; border-top: 1px solid var(--rule); }

@media (min-width: 640px) {
  .row-head {
    grid-template-columns: 3.2rem minmax(0, 1fr) 10.5rem 2rem;
    grid-template-areas: 'rank main aside check';
    gap: 0.9rem 1.2rem;
  }
  .row-aside { flex-direction: column; align-items: flex-start; margin-top: 0.15rem; gap: 0.5rem; }
  .effort, .move { white-space: nowrap; }
  .rank { font-size: 1.85rem; }
}

/* ==================== v2 (design/prototypes/v2.css, ported) ====================
   Section numbers match DESIGN-v2.md. Everything here uses the v1 tokens; new tokens are declared in section 0. */

/* ---------- 0. tokens added in v2 ---------- */
:root {
  --ink-hatch: repeating-linear-gradient(135deg, transparent 0 3px, currentColor 3px 4px);
  --tile: 4.6rem;
  --stamp: var(--good);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --press: cubic-bezier(0.3, 1.6, 0.4, 1);
}

/* ---------- 6. fonts across scripts ---------- */
/* Latin-ext (pl, cs, de, nl, es fall inside latin + latin-ext) and Cyrillic (uk) are extra faces with unicode-range:
   an English visitor downloads nothing new. Same family names, so no selector change is needed for Latin languages. */
/* Ukrainian: Fraunces has no Cyrillic. The display face becomes Literata at its largest optical size.
   Every Fraunces rule sets font-variation-settings with SOFT/WONK; Literata ignores unknown axes, opsz is capped at 72 by the font. */
:lang(uk) { --display: 'Literata', 'Iowan Old Style', Georgia, serif; }
:lang(uk) h1, :lang(uk) h2, :lang(uk) .title, :lang(uk) .item-title, :lang(uk) .tile-n, :lang(uk) .ev-num, :lang(uk) .ev-big, :lang(uk) .do-text {
  font-variation-settings: 'opsz' 72; letter-spacing: -0.015em;
}
:lang(uk) h1 { font-weight: 800; line-height: 1.02; }
/* German compounds: allow a hyphenation point inside long words in titles and card copy, never in the wordmark. */
:lang(de) .title, :lang(de) .item-title, :lang(de) .do-text, :lang(de) .summary { hyphens: auto; overflow-wrap: anywhere; }
:lang(pl) .title, :lang(cs) .title, :lang(nl) .title, :lang(uk) .title { overflow-wrap: anywhere; }
/* long compounds in any language ("baarmoederhalsscreening"): hyphenate where the browser knows the language
   (every page sets lang), and break the word rather than widen the page where it does not */
.title, .item-title, .rel-t, .do-sub a { hyphens: auto; overflow-wrap: break-word; }
.item-title { overflow-wrap: anywhere; }
/* phone numbers in country notes stay on one line (keepNumbersHTML) */
.nw { white-space: nowrap; }
:lang(de) h1 { hyphens: auto; overflow-wrap: anywhere; }

/* ---------- 1. category marks ---------- */
.mk {
  width: 24px; height: 24px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  --mk-hair: 1;
  vertical-align: -0.3em;
}
.mk-20 { width: 20px; height: 20px; stroke-width: 1.7; --mk-hair: 1.1; }
.mk-48 { width: 48px; height: 48px; stroke-width: 1.2; --mk-hair: 0.6; }
.mk-96 { width: 96px; height: 96px; stroke-width: 0.9; --mk-hair: 0.42; }
.medal {
  display: inline-grid; place-items: center;
  width: 8.4rem; height: 8.4rem; border-radius: 50%;
  border: 1px solid var(--rule); color: var(--accent);
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  position: relative;
}
.medal::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed var(--rule-soft); }
.medal .mk { width: 96px; height: 96px; stroke-width: 0.9; --mk-hair: 0.42; }
/* the category line on a card: mark + name */
.cat { display: inline-flex; align-items: center; gap: 0.4rem; }
.cat .mk { color: var(--accent); }

/* ---------- 1b. gauges: impact (v1), evidence (v1), effort pips (new) ---------- */
.effort-pips { display: inline-flex; gap: 3px; align-items: center; vertical-align: middle; }
.effort-pips i {
  display: block; width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid currentColor; color: var(--fg-faint);
}
.effort-pips i.on { background: currentColor; }
.effort-pips[data-effort='high'] i.on { color: var(--warn); }
.effort-pips[data-effort='medium'] i.on { color: var(--accent); }
.effort-pips[data-effort='low'] i.on { color: var(--good); }
.effort { display: inline-flex; align-items: center; gap: 0.45rem; }

/* ---------- 1c. stat visual (effect) ---------- */
.effect { margin: 0; color: var(--fg); display: grid; gap: 0.7rem; }
.effect .ev { display: block; width: 100%; height: auto; }
.effect .ev-fill { fill: var(--accent); }
.effect .ev-base { color: var(--fg-dim); }
.effect .ev-t { font-family: var(--body); font-size: 11px; fill: var(--fg-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.effect .ev-t-strong { font-family: var(--display); font-size: 13px; font-weight: 700; fill: var(--fg); text-transform: none; letter-spacing: 0; }
.effect .ev-tick { color: var(--fg-faint); }
.effect .ev-dots circle { fill: var(--fg-faint); opacity: 0.55; }
.effect .ev-dots circle.ev-dot-on { fill: var(--accent); opacity: 1; }
.effect .ev-cell { fill: none; stroke: var(--rule); stroke-width: 1; }
.effect .ev-cell-on { fill: var(--accent); stroke: none; }
.effect .ev-cell-part { fill: var(--accent); stroke: none; clip-path: inset(0 50% 0 0); }
.effect-share_of_people { grid-template-columns: minmax(7rem, 11rem) 1fr; align-items: end; gap: 1.2rem; }
.effect-absolute_per_1000 .ev { max-width: 32rem; }
.effect figcaption { font-size: 0.92em; color: var(--fg-dim); max-width: 42ch; }
.effect .ev-num {
  display: block; font-family: var(--display); font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 72;
  font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1; color: var(--fg);
  letter-spacing: -0.02em; margin-bottom: 0.25rem;
}
.effect .ev-out { display: block; color: var(--fg); }
.effect .ev-cmp { display: block; font-size: 0.86em; color: var(--fg-faint); margin-top: 0.2rem; }
.effect .ev-cite { color: var(--accent); }
.effect .ev-cite::before { content: '\a0/\a0'; color: var(--fg-faint); }
.effect .ev-amount { display: grid; gap: 0.3rem; justify-items: start; width: auto; }
.ev-amount .ev-big {
  font-family: var(--display); font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 144;
  font-weight: 800; font-size: clamp(3.4rem, 2.6rem + 4vw, 5.6rem); line-height: 0.9; letter-spacing: -0.03em;
  color: var(--accent);
}
.ev-amount .ev-big small {
  /* the display face's tight tracking runs a multi-word unit together ("yearsbetweenscreens"): reset it, keep the
     unit on the number's line when it fits and let it wrap as a block when it does not */
  display: inline-block; max-width: 100%; vertical-align: baseline;
  font-size: 0.42em; font-weight: 600; margin-left: 0.2em; color: var(--fg);
  letter-spacing: normal; word-spacing: 0.06em; line-height: 1.15;
}
.ev-amount .ev-bracket { width: 8rem; height: 12px; color: var(--fg-faint); }
.ev-amount .ev-qual { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-faint); }
.effect-guideline_amount .ev-num { display: none; }
/* compact: inside a card. Same SVG, no in-figure text, number inline. */
.effect.compact { display: inline-block; vertical-align: -0.35em; margin: 0 0.5rem 0 0; }
.effect.compact .ev { width: 3.6rem; height: auto; display: inline-block; }
.effect.compact .ev-t { display: none; }
.effect.compact .ev-share { width: 2.4rem; }
.effect.compact .ev-1000 { width: 4.8rem; }
.effect.compact .ev-num { font-size: 1.15rem; margin: 0; }
.effect.compact .ev-amount .ev-big { font-size: 1.5rem; }
.effect.compact .ev-amount .ev-bracket, .effect.compact .ev-amount .ev-qual { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .effect .ev-fill, .effect .ev-cell-on, .effect .ev-dot-on { transform-origin: left center; animation: ev-in 0.7s var(--ease-out) both; }
  @keyframes ev-in { from { opacity: 0; } }
}

/* ---------- 2. item page ---------- */
.item-page { max-width: var(--wrap); margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.4rem) var(--pad) 0; }
.crumb {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-faint);
}
.crumb a { color: var(--fg-dim); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--rule); }
.crumb .cat { color: var(--fg); }
.item-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 1.2rem; align-items: start;
  margin-top: 1rem;
}
.item-rank {
  font-family: var(--display); font-variation-settings: 'SOFT' 10, 'WONK' 1, 'opsz' 144;
  font-weight: 900; font-size: clamp(3.2rem, 2rem + 6vw, 6.4rem); line-height: 0.82; color: var(--accent);
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.04em;
  grid-row: 1 / 3;
  padding-top: 0.15em;
}
.item-rank small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-top: 0.5rem; }
.item-title {
  font-family: var(--display); font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
  font-weight: 700; font-size: clamp(2rem, 1.3rem + 4.2vw, 3.6rem); line-height: 0.98; letter-spacing: -0.025em;
  margin: 0; max-width: 20ch; text-wrap: balance;
}
.item-summary { margin: 0.8rem 0 0; color: var(--fg-dim); font-size: 1.08em; max-width: 52ch; grid-column: 2; }
.item-gauges {
  grid-column: 1 / -1; display: flex; gap: 1.4rem 2.2rem; flex-wrap: wrap; align-items: center;
  margin-top: 1.4rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule-soft);
  font-size: 0.82rem; color: var(--fg-dim);
}
.item-gauges .g { display: inline-flex; align-items: center; gap: 0.55rem; }
.item-gauges .g-lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-faint); }
.item-gauges .impact { width: 7rem; }
.item-gauges .done-label { margin-left: auto; }
@media (max-width: 639px) {
  .item-head { grid-template-columns: 1fr; }
  .item-rank { grid-row: auto; font-size: 2.6rem; display: flex; align-items: baseline; gap: 0.6rem; }
  .item-rank small { margin: 0; }
  .item-summary { grid-column: 1; }
}

.item-effect {
  display: grid; gap: 1.6rem 3rem; margin: clamp(1.6rem, 4vw, 2.6rem) 0 0;
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
  background: var(--bg-2); border-top: 2px solid var(--accent);
}
.item-effect h2 { margin: 0 0 0.9rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-faint); font-weight: 400; font-family: var(--body); }
@media (min-width: 780px) { .item-effect { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; } .item-effect .medal-col { justify-self: end; } }
.medal-col { display: grid; justify-items: center; gap: 0.6rem; text-align: center; font-size: 0.78rem; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.14em; }

.item-cols { display: grid; gap: 1.8rem; margin-top: clamp(1.8rem, 4vw, 2.8rem); }
@media (min-width: 780px) { .item-cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; } }
.item-page h2.sec, .practice h2, .related h2 {
  font-family: var(--display); font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 72;
  font-weight: 600; font-size: clamp(1.4rem, 1rem + 1.6vw, 1.9rem); letter-spacing: -0.015em; margin: 0 0 0.7rem;
}
.item-page h2.sec small { display: block; font-family: var(--body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-faint); font-weight: 400; margin-bottom: 0.3rem; }
.why p { font-size: 1.04em; }
.how ol { margin: 0; padding-left: 1.4rem; }
.how li { margin-bottom: 0.55rem; }
.how li::marker { color: var(--accent); font-family: var(--display); font-weight: 700; }

/* ---------- 2b. the practice block ("Do it") ---------- */
.practice {
  margin-top: clamp(2rem, 5vw, 3.2rem); padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.practice-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.practice-head p { margin: 0; color: var(--fg-dim); max-width: 60ch; }
.practice-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .practice-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; } }
.practice h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-faint); font-weight: 400; margin: 0 0 0.7rem; }

/* time-boxed starts: a rail of tiles, one panel */
.do-strip { display: flex; gap: 0.5rem; flex-wrap: wrap; --tile: min(4.6rem, calc((100% - 2rem) / 5)); }
.tile {
  --arc: 0;
  display: grid; grid-template-rows: auto auto; place-items: center; gap: 0.15rem;
  width: var(--tile); aspect-ratio: 1; height: auto; flex: none; text-decoration: none;
  background: none; border: 1px solid var(--rule); border-radius: var(--r);
  color: var(--fg-dim); padding: 0.4rem 0.2rem 0.3rem;
  position: relative; transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease, transform 0.14s var(--press);
}
.tile:hover { border-color: var(--accent); color: var(--fg); }
.tile:active { transform: translateY(1px); }
.tile .tile-n {
  font-family: var(--display); font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 60;
  font-weight: 700; font-size: 1.35rem; line-height: 1; letter-spacing: -0.02em;
}
.tile .tile-u { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; }
.tile .tile-arc { position: absolute; right: 5px; top: 5px; width: 14px; height: 14px; }
/* the text sits below the arc's corner, never under it: a long plan word ("план", "Plan") used to cross it */
.tile { padding-top: calc(5px + 14px + 2px); }
.tile .tile-arc circle { fill: none; stroke: currentColor; stroke-width: 2; }
.tile .tile-arc .track { opacity: 0.25; }
.tile .tile-arc .fill { stroke-dasharray: calc(var(--arc) * 31.4) 31.4; transform: rotate(-90deg); transform-origin: center; }
.tile[aria-selected='true'], .tile[aria-pressed='true'] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.tile[aria-selected='true']::after, .tile[aria-pressed='true']::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px;
  background: var(--accent); transform: translateX(-50%) rotate(45deg);
}
.tile-plan .tile-arc .fill { stroke-dasharray: 3 2.2; }
/* the plan tile carries a word, not a numeral: its word and unit scale with the tile's own width (cqi), so the
   longest language ("план", "TÝDNY", "WEKEN") stays inside the tile and clear of the arc from 320 up; the plain size before each min() is for browsers without cqi */
.tile { container-type: inline-size; }
.tile-plan .tile-n { font-size: 1.05rem; font-size: min(1.05rem, 32cqi); }
.tile.tile-plan .tile-u { font-size: 0.56rem; font-size: min(0.62rem, 15cqi); letter-spacing: 0.1em; }
.do-panel {
  margin-top: 0.9rem; padding: 1rem 1.1rem 1.1rem;
  background: var(--bg-3); border: 1px solid var(--rule-soft); border-left: 3px solid var(--accent);
  animation: open 0.22s ease both;
}
.do-panel[hidden] { display: none; }
.do-text {
  margin: 0; font-family: var(--display); font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 40;
  font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); line-height: 1.3; letter-spacing: -0.01em;
}
.do-plan-title { margin: 0 0 0.5rem; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.do-plan { margin: 0; padding-left: 1.4rem; }
.do-plan li { margin-bottom: 0.45rem; }
.do-plan li::marker { color: var(--accent); font-family: var(--display); font-weight: 700; }
.do-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.9rem; font-size: 0.85rem; }

/* examples, pitfalls, guides */
.ex { list-style: none; margin: 0; padding: 0; }
.ex li { position: relative; padding: 0.5rem 0 0.5rem 1.5rem; border-top: 1px solid var(--rule-soft); }
.ex li::before { content: ''; position: absolute; left: 0.2rem; top: 1.05rem; width: 7px; height: 7px; border: 1px solid var(--accent); transform: rotate(45deg); }
.pit { list-style: none; margin: 0; padding: 0; }
.pit li { padding: 0.55rem 0.8rem; margin-bottom: 0.45rem; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 7%, transparent); font-size: 0.94em; }
.pit b { font-family: var(--display); font-variation-settings: 'WONK' 1; font-weight: 600; color: color-mix(in srgb, var(--warn) 80%, var(--fg)); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.15rem; }
.guides { list-style: none; margin: 0; padding: 0; }
.guides li { border-top: 1px solid var(--rule-soft); }
.guide { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; padding: 0.6rem 0; text-decoration: none; align-items: center; }
.guide:hover .guide-t { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide .kind {
  grid-row: 1 / 3; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-faint);
  border: 1px solid var(--rule); padding: 0.35rem 0.4rem; min-width: 3.4rem; text-align: center;
}
.guide .kind[data-kind='video'] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.guide .kind[data-kind='tool'], .guide .kind[data-kind='finder'], .guide .kind[data-kind='app'] { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.guide .guide-t { font-weight: 500; }
.guide .guide-t::after { content: '\a0\2197'; color: var(--accent); }
.guide .guide-p { font-size: 0.82rem; color: var(--fg-faint); }

/* related items */
.related { margin-top: clamp(2rem, 5vw, 3.2rem); padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.rel-grid { display: grid; gap: 0.7rem; }
@media (min-width: 640px) { .rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rel-card {
  display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; align-items: start;
  padding: 0.9rem 1rem; border: 1px solid var(--rule-soft); background: var(--bg-2); text-decoration: none;
  transition: border-color 0.14s ease;
}
.rel-card:hover { border-color: var(--accent); }
.rel-card .rank { grid-area: auto; grid-column: 1; grid-row: 1 / 3; font-size: 1.4rem; text-align: left; }
.rel-card .cat { font-size: 0.66rem; }
.rel-card .rel-t { font-family: var(--display); font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 40; font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.item-foot { margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.86rem; align-items: center; }
.share { display: inline-flex; gap: 0.6rem; align-items: center; }

/* ---------- 2c. practice inside an expanded card ---------- */
.row-practice { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule-soft); }
.row-practice .do-strip .tile { --tile: 3.9rem; }
.row-practice .tile .tile-n { font-size: 1.15rem; }
.row-practice .ex { margin-top: 1rem; }
.row-practice .ex li { padding-top: 0.4rem; padding-bottom: 0.4rem; font-size: 0.94em; }
.row-body .row-stat { margin: 0.2rem 0 1.4rem; }
.row-body .effect { max-width: 34rem; }
.more-link { font-family: var(--display); font-variation-settings: 'WONK' 1; font-weight: 600; color: var(--accent); }

/* ---------- 3. "What can I do right now?" ---------- */
.start-hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.2rem) var(--pad) 0; }
.start-hero h1 { max-width: 14ch; }
.start-hero .lede { max-width: 50ch; }
.tiles { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.tiles { --tile: min(5.6rem, calc((100% - 2.4rem) / 5)); }
.tiles .tile .tile-n { font-size: clamp(1.15rem, 5vw, 1.9rem); }
/* the plan word is wider than a numeral: keep it clear of the arc on narrow tiles */
.tiles .tile-plan .tile-n { font-size: clamp(0.95rem, 3.4vw, 1.35rem); font-size: min(clamp(0.95rem, 3.4vw, 1.35rem), 32cqi); }
@media (max-width: 520px) { .tiles .tile .tile-arc { width: 10px; height: 10px; right: 4px; top: 4px; } .tiles .tile { padding-top: calc(4px + 10px + 2px); padding-bottom: 0.2rem; } }
.start-results { max-width: var(--wrap); margin: 1.2rem auto 0; padding: 0 var(--pad); }
.order-note {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.84rem; color: var(--fg-faint); margin: 0 0 0.4rem;
  padding: 0.7rem 0; border-top: 1px solid var(--rule);
}
.order-note b { color: var(--fg-dim); font-weight: 500; }
.order-note .who-chip {
  font-size: 0.74rem; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); padding: 0.15rem 0.5rem; color: var(--fg-dim);
}
.do-list { list-style: none; margin: 0; padding: 0; }
.do-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1rem; align-items: start;
  padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--rule-soft);
  position: relative; animation: fadein 0.4s both;
}
.do-card .do-top { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.72rem; }
.do-card .do-top .rank { grid-area: auto; font-size: 0.95rem; text-align: left; color: var(--fg-faint); }
.do-card > :not(.did):not(.stamp) { grid-column: 1; }
.do-card .do-top a { color: var(--fg-dim); text-decoration: none; }
.do-card .do-top a:hover { color: var(--accent); text-decoration: underline; }
.do-card .do-text { max-width: 44ch; margin-top: 0.15rem; }
.do-card .do-sub { font-size: 0.85rem; color: var(--fg-faint); margin: 0.35rem 0 0; }
.do-card .do-sub a { color: var(--fg-dim); }
.did {
  grid-column: 2; grid-row: 1 / 4; align-self: center;
  font-family: var(--display); font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 40; font-weight: 700;
  background: none; border: 1px solid var(--rule); border-radius: var(--r); color: var(--fg-dim);
  padding: 0.55rem 0.9rem; white-space: nowrap; font-size: 0.92rem;
  transition: border-color 0.14s ease, color 0.14s ease, transform 0.14s var(--press);
}
.did:hover { border-color: var(--stamp); color: var(--stamp); }
.did:active { transform: scale(0.96); }
.do-card.done-now .did { visibility: hidden; }
.do-card.done-now .do-text { color: var(--fg-dim); }
/* the stamp: an ink postmark pressed onto the card */
.stamp {
  position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%) rotate(-8deg);
  font-family: var(--display); font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 30; font-weight: 800;
  font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stamp);
  border: 2px solid var(--stamp); border-radius: 4px; padding: 0.35rem 0.6rem 0.3rem;
  box-shadow: inset 0 0 0 1px var(--bg), inset 0 0 0 2px var(--stamp);
  mix-blend-mode: multiply; pointer-events: none;
}
html:not([data-theme='light']) .stamp { mix-blend-mode: screen; }
@media (prefers-color-scheme: light) { html[data-theme='auto'] .stamp { mix-blend-mode: multiply; } }
.stamp small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: none; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: press 0.42s var(--press) both; }
  @keyframes press { 0% { opacity: 0; transform: translateY(-50%) rotate(-8deg) scale(1.8); } 60% { opacity: 1; transform: translateY(-50%) rotate(-8deg) scale(0.94); } 100% { transform: translateY(-50%) rotate(-8deg) scale(1); } }
}
.start-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 2rem; }
.start-foot .tally { font-size: 0.9rem; color: var(--fg-dim); margin: 0; }
.start-foot .tally b { font-family: var(--display); font-weight: 700; color: var(--stamp); font-size: 1.1rem; }
.start-foot .quick::before { content: '+\a0'; }
/* home page entry point */
.start-entry {
  max-width: var(--wrap); margin: clamp(1.6rem, 4vw, 2.4rem) auto 0; padding: 0 var(--pad);
}
.start-entry .box {
  display: grid; gap: 0.8rem 1.6rem; align-items: center;
  padding: 1.1rem 1.2rem; border: 1px solid var(--rule); background: var(--bg-2);
  border-left: 4px solid var(--accent);
}
@media (min-width: 720px) { .start-entry .box { grid-template-columns: minmax(0, 1fr) auto; } }
.start-entry h2 { margin: 0 0 0.2rem; font-family: var(--display); font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 60; font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.start-entry p { margin: 0; color: var(--fg-dim); font-size: 0.94em; }
.start-entry .tiles { margin-top: 0; }
.start-entry .tiles { --tile: min(3.6rem, calc((100% - 2.4rem) / 5)); }
.start-entry .tiles .tile .tile-n { font-size: 1.1rem; }
.start-entry .tiles .tile.tile-plan .tile-n { font-size: 0.95rem; font-size: min(1.1rem, 32cqi); }
/* in the two-column box the tiles sit in an auto column, where a % width resolves against itself: fixed size there */
@media (min-width: 720px) { .start-entry .tiles { --tile: 3.6rem; } }

/* ---------- 4. languages ---------- */
.lang { position: relative; }
.lang > summary { list-style: none; cursor: pointer; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary .ghost { display: inline-flex; align-items: center; gap: 0.4rem; }
.lang > summary .ghost::after { content: '\25BE'; font-size: 0.7em; color: var(--fg-faint); }
.lang[open] > summary .ghost { border-color: var(--accent); color: var(--fg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 50; min-width: 12rem;
  margin: 0; padding: 0.3rem 0; list-style: none;
  background: var(--bg-3); border: 1px solid var(--rule); box-shadow: var(--shadow);
  animation: unfurl 0.18s var(--ease-out) both;
}
.lang-menu a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 0.9rem; text-decoration: none; color: var(--fg-dim); font-size: 0.92rem;
}
.lang-menu a:hover { background: var(--bg-2); color: var(--fg); }
.lang-menu a[aria-current='true'] { color: var(--fg); font-weight: 600; }
.lang-menu a[aria-current='true']::before { content: '\2713'; color: var(--accent); margin-right: 0.4rem; }
.lang-menu small { font-size: 0.7rem; color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; }
/* the suggestion slip: shown once to a first-time visitor whose browser language has a version; never redirects */
.lang-slip {
  max-width: var(--wrap); margin: 0.9rem auto 0; width: calc(100% - var(--pad) * 2);
  display: flex; align-items: center; gap: 0.8rem 1.2rem; flex-wrap: wrap;
  padding: 0.65rem 0.9rem; border: 1px solid var(--rule); border-left: 5px solid var(--accent);
  background: var(--bg-2); font-size: 0.9rem;
  animation: unfurl 0.3s var(--ease-out) both;
}
.lang-slip p { margin: 0; flex: 1 1 18rem; }
.lang-slip b { font-family: var(--display); font-variation-settings: 'WONK' 1; }
.lang-slip .actions { display: flex; gap: 0.5rem; align-items: center; }
.lang-slip .cta { font-size: 0.9rem; padding: 0.45rem 0.9rem; box-shadow: none; }

/* ---------- misc ---------- */
.masthead-nav { gap: 0.8rem; }
.masthead-nav a { white-space: nowrap; }
@media (max-width: 560px) { .masthead-nav .nav-method { display: none; } }
.masthead-nav .ghost { white-space: nowrap; }

/* ---------- v2 integration ---------- */
[hidden] { display: none !important; }
/* the tier label inside a tab panel: the selected tile already says it; JS off (noscript) shows it */
.tier-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.practice .ex-h, .practice .guides-h { margin-top: 1.6rem; }
.practice .eyebrow { margin-top: 1rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); font-weight: 400; }
.practice-wait { color: var(--fg-faint); font-size: 0.9rem; }
/* the country note: the caution box's shape in neutral ink (it informs, it does not warn) */
.local {
  margin: 2.4rem 0 0; max-width: 40rem; padding: 0.7rem 0.9rem; font-size: 0.92em;
  border: 1px solid var(--rule-soft);
}
.local h2 {
  margin: 0 0 0.3rem; font-family: inherit; font-size: 0.68rem; font-weight: 400; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-faint);
}
.local-note p { margin: 0; }
.local-src { margin-top: 0.5rem !important; font-size: 0.85rem; color: var(--fg-faint); }
.local-src a { margin-right: 0.6rem; }
.sources .check-us { margin: 0 0 1.4rem; display: grid; gap: 0.45rem; }
.sources .check-us > div { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: 0.2rem 1rem; }
.sources .check-us dt { color: var(--fg-faint); font-size: 0.85rem; }
.sources .check-us dd { margin: 0; }
@media (max-width: 520px) { .sources .check-us > div { grid-template-columns: 1fr; } }
.do-card .did:disabled { opacity: 0.55; cursor: default; }
/* in a list row the glyph floats beside the verified sentence instead of splitting its first line */
.row-head .stat .effect.compact { float: left; margin: 0.2rem 0.7rem 0.2rem 0; vertical-align: top; }
.row-head .stat::after { content: ''; display: block; clear: both; }

/* the current language's check sits in a gutter: as a flex item it was pushed apart by space-between */
.lang-menu a { position: relative; padding-left: 1.7rem; }
.lang-menu a[aria-current='true']::before { position: absolute; left: 0.55rem; margin: 0; }
@media (max-width: 520px) { .lang-menu { right: auto; left: 0; } }

@media print {
  .toolbar, .tailor, .hero-figure, .grain, .row-check, .masthead-nav, .lang-slip, .lang, .do-strip, .tiles, .did, .start-foot, .share { display: none; }
  .practice .do-panel[hidden], .row-practice .do-panel[hidden], .do-list[hidden] { display: block !important; }
  body { background: #fff; color: #000; }
  .row-body { display: block !important; }
}
