/* Web Compliance Journal — editorial stylesheet (light edition).
   White paper, ink and one restrained claret accent. Libre Franklin for headings,
   Source Sans 3 for reading. Thin rules, a ~68ch measure, no external requests. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/libre-franklin-latin-wght-normal.woff2) format('woff2-variations'),
       url(../fonts/libre-franklin-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/libre-franklin-latin-ext-wght-normal.woff2) format('woff2-variations'),
       url(../fonts/libre-franklin-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-sans-3-latin-wght-normal.woff2) format('woff2-variations'),
       url(../fonts/source-sans-3-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2-variations'),
       url(../fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-sans-3-latin-wght-italic.woff2) format('woff2-variations'),
       url(../fonts/source-sans-3-latin-wght-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-sans-3-latin-ext-wght-italic.woff2) format('woff2-variations'),
       url(../fonts/source-sans-3-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f6f4ef;       /* boxes */
  --paper-3: #e7e3da;       /* bar tracks */
  --ink: #191919;
  --ink-2: #44423e;
  --ink-3: #66625b;
  --rule: #191919;
  --rule-soft: #d9d5cc;
  --accent: #7c1d2b;        /* claret, used sparingly */
  --accent-2: #5f1520;
  --on-accent: #ffffff;
  --mark: #f3e6c4;
  --focus: #7c1d2b;

  --display: 'Libre Franklin', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --text: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --measure: 68ch;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.38rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.6rem, 1.35rem + 1vw, 2.2rem);
  --step-4: clamp(1.95rem, 1.5rem + 1.9vw, 2.9rem);
  --step-5: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --radius: 2px;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -0.01em; }
strong, b { font-weight: 650; }
mark { background: var(--mark); color: inherit; padding: 0 0.15em; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.9em; background: var(--paper-2); padding: 0.05em 0.3em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; font-weight: 650; text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--paper); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }

/* Small caps label used for kickers and section heads */
.kicker, .label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker { color: var(--accent); display: inline-flex; gap: 0.6em; align-items: baseline; flex-wrap: wrap; }
.kicker .sep { color: var(--ink-3); }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-top {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--step--1); color: var(--ink-2);
  padding-block: 0.6rem; border-bottom: 1px solid var(--rule-soft);
}
.masthead-top p { margin: 0; }
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-name {
  font-family: var(--display); font-weight: 700;
  font-size: 1.65rem; letter-spacing: -0.02em; line-height: 1;
}
.masthead-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.masthead--front .masthead-brand { justify-content: center; padding-block: 2rem 1.6rem; }
.masthead--front .brand-name { font-size: clamp(2.3rem, 1.2rem + 5.5vw, 5.4rem); letter-spacing: -0.015em; }
.masthead--front .brand-mark { width: clamp(2.4rem, 1.6rem + 3vw, 4.6rem); height: clamp(2.4rem, 1.6rem + 3vw, 4.6rem); }

.nav { border-top: 1px solid var(--rule); }
.masthead--front .nav { border-top: 3px double var(--rule); }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.15rem 1.6rem; justify-content: center;
}
.nav a {
  display: inline-block; padding: 0.7rem 0;
  font-family: var(--display); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border-bottom: 3px solid transparent;
}
.nav a[aria-current='page'], .nav a.is-section { border-bottom-color: var(--accent); }
.nav a:hover { color: var(--accent); }

/* ---------- Generic page sections ---------- */
main { display: block; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 3px solid var(--rule); padding-top: 0.7rem; margin-bottom: 2rem;
}
.section-head h2 { font-size: var(--step-2); }
.section-head a { font-family: var(--display); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

.more { font-family: var(--display); font-weight: 650; text-decoration: none; color: var(--accent); }
.more:hover { text-decoration: underline; }
.more::after { content: ' \203A'; }

/* ---------- Front page ---------- */
.lead {
  display: grid; gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.lead-title { font-size: var(--step-5); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; margin-block: 0.8rem 1.4rem; }
.lead-title a { text-decoration: none; }
.lead-title a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 3px; }
.lead-dek { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 40ch; margin: 0 0 1.4rem; }
.lead-ranking { border-left: 1px solid var(--rule); padding-left: clamp(1.5rem, 3vw, 3rem); }
.lead-ranking h2 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.lead-ranking .rank-note { color: var(--ink-3); font-size: var(--step--1); margin: 0 0 1rem; }

.ranklist { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranklist li { border-top: 1px solid var(--rule-soft); }
.ranklist li:first-child { border-top: 2px solid var(--rule); }
.ranklist a {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 0.2rem 0.9rem; align-items: baseline;
  padding: 0.8rem 0; text-decoration: none;
}
.ranklist .pos { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.ranklist .name { font-family: var(--display); font-weight: 650; font-size: 1.12rem; line-height: 1.2; }
.ranklist .blurb { grid-column: 2 / 3; font-size: var(--step--1); color: var(--ink-2); line-height: 1.4; }
.ranklist .sc { grid-row: 1 / span 2; grid-column: 3; text-align: right; font-family: var(--display); line-height: 1.1; }
.ranklist .sc b { display: block; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ranklist .sc span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.ranklist a:hover .name { color: var(--accent); text-decoration: underline; }

/* Review grid on the front page: newspaper columns with vertical rules */
.story-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.story {
  padding: 1.4rem 1.4rem 1.6rem; border-bottom: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 0.55rem;
}
.story:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.story:nth-child(3n) { padding-right: 0; }
.story h3 { font-size: var(--step-1); line-height: 1.12; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.story .story-meta { margin-top: auto; padding-top: 0.6rem; font-size: var(--step--1); color: var(--ink-3); display: flex; gap: 0.5rem 1rem; flex-wrap: wrap; align-items: baseline; }
.story .story-meta strong { color: var(--ink); font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.story-no { display: block; font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1.08; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Guides list: big numerals */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); }
.guide-list li { border-top: 1px solid var(--rule); padding-block: 1.3rem 1.6rem; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 1rem; }
.guide-list .num { font-family: var(--display); font-size: 2.6rem; font-weight: 300; line-height: 1.08; color: var(--accent); font-variant-numeric: tabular-nums; }
.guide-list h3 { font-size: var(--step-1); margin-bottom: 0.45rem; }
.guide-list h3 a { text-decoration: none; }
.guide-list h3 a:hover { text-decoration: underline; }
.guide-list p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.guide-list .story-meta { margin-top: 0.5rem; font-size: var(--step--1); color: var(--ink-3); }

/* How-we-review teaser */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.teaser h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
.teaser p { color: var(--ink-2); }
.weights { margin: 0; padding: 0; list-style: none; }
.weights li { display: grid; grid-template-columns: minmax(0, 1fr) 3.2rem; gap: 0.3rem 1rem; align-items: center; padding-block: 0.6rem; border-top: 1px solid var(--rule-soft); }
.weights li:first-child { border-top: 2px solid var(--rule); }
.weights .w-label { font-family: var(--display); font-weight: 600; }
.weights .w-val { font-family: var(--display); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.weights .barsvg { grid-column: 1 / -1; }
main:focus { outline: none; }

/* ---------- Article pages ---------- */
.crumbs { font-size: var(--step--1); color: var(--ink-3); padding-top: 1.4rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.crumbs li + li::before { content: '/'; margin-right: 0.3rem; color: var(--rule-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

.article-head { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.article-head h1 { font-size: var(--step-5); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; margin-block: 0.9rem 1.2rem; max-width: 18ch; }
.article-head--long h1 { max-width: 22ch; font-size: var(--step-4); }
.dek { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 52ch; margin: 0; }
.byline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.4rem; font-size: var(--step--1); color: var(--ink-2); }
.byline span { display: inline-flex; gap: 0.35rem; }
.byline b { font-weight: 650; color: var(--ink); }

.article-grid {
  display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(15rem, 19rem);
  gap: clamp(2rem, 5vw, 5rem); justify-content: space-between;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.article-grid--toc-left { grid-template-columns: minmax(13rem, 16rem) minmax(0, var(--measure)); justify-content: start; }
.rail { position: relative; }
.rail-sticky { position: sticky; top: 1.5rem; display: grid; gap: 1.5rem; }

/* Prose */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: var(--step-3); letter-spacing: -0.01em; line-height: 1.02;
  margin-top: clamp(2.6rem, 5vw, 3.6rem); padding-top: 0.9rem; border-top: 3px solid var(--rule);
  scroll-margin-top: 1.5rem;
}
.prose h2 .no { display: block; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--accent); font-weight: 650; margin-bottom: 0.7rem; text-transform: uppercase; }
.prose h3 { font-size: var(--step-1); margin-top: 2em; scroll-margin-top: 1.5rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose > ul > li + li, .prose > ol > li + li, .box li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose .lede { font-size: 1.12em; }
.prose .dropcap::first-letter {
  font-family: var(--display); font-weight: 700;
  float: left; font-size: 4.9em; line-height: 0.78; margin: 0.06em 0.09em 0 -0.02em; color: var(--accent);
}
.prose blockquote, .pull {
  margin: 2em 0; padding: 1.1rem 0; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-size: var(--step-2); font-weight: 600; line-height: 1.18; letter-spacing: -0.015em;
}
.pull p { margin: 0; }
.pull p::before { content: '\201C'; color: var(--accent); margin-right: 0.05em; }
.pull p::after { content: '\201D'; color: var(--accent); margin-left: 0.03em; }
.pull cite { display: block; margin-top: 0.8rem; font-family: var(--text); font-size: var(--step--1); font-style: normal; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.prose table { width: 100%; }
.prose .footnote-ref { font-size: 0.72em; vertical-align: super; line-height: 0; text-decoration: none; font-weight: 650; color: var(--accent); margin-left: 0.1em; }

/* Boxes */
.box { background: var(--paper-2); border-top: 3px solid var(--rule); padding: 1.2rem 1.3rem 1.3rem; }
.box > * + * { margin-top: 0.8rem; }
.box h2, .box h3 { font-size: 1.15rem; border: 0; padding: 0; margin: 0; letter-spacing: 0; }
.box p { margin: 0; font-size: 1rem; }
.prose .box { margin-top: 2em; }
.note {
  border-left: 4px solid var(--accent); background: var(--paper-2); padding: 0.9rem 1.1rem; font-size: 1rem; line-height: 1.5;
}
.note .label { display: block; color: var(--accent); margin-bottom: 0.25rem; }
.note p { margin: 0; }
.legal-note { border-left-color: var(--ink); }
.legal-note .label { color: var(--ink); }

/* At a glance */
.glance { background: var(--paper-2); border-top: 3px solid var(--rule); padding: 1.2rem 1.25rem 1.3rem; }
.glance h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; color: var(--ink-2); margin: 0 0 0.9rem; border: 0; padding: 0; }
.glance dl { margin: 0; display: grid; gap: 0; }
.glance dl > div { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 0.6rem; padding-block: 0.5rem; border-top: 1px solid var(--rule-soft); font-size: 0.95rem; line-height: 1.4; }
.glance dt { color: var(--ink-3); font-weight: 600; }
.glance dd { margin: 0; overflow-wrap: anywhere; }
.glance .visit { display: block; margin-top: 1rem; text-align: center; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; text-decoration: none; font-family: var(--display); font-weight: 650; }
.glance .visit:hover { background: var(--accent); color: var(--on-accent); }

/* Score — numerals, never stars */
.score { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 0.9rem; margin-bottom: 1rem; }
.score-num { font-family: var(--display); font-weight: 700; font-size: 4.2rem; line-height: 1; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.score-of { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--ink-3); margin-left: 0.1em; letter-spacing: 0; }
.score-label { font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding-bottom: 0.25rem; border-bottom: 2px solid var(--accent); justify-self: start; }
.score--inline { display: inline-flex; align-items: baseline; gap: 0.6rem; margin: 0; }
.score--inline .score-num { font-size: 2.4rem; line-height: 1; }
.score--inline .score-label { padding-bottom: 0.1rem; }

/* Criteria breakdown */
.criteria { width: 100%; border-collapse: collapse; font-size: 1rem; }
.criteria caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding-bottom: 0.6rem; }
.criteria th, .criteria td { text-align: left; padding: 0.55rem 0; border-top: 1px solid var(--rule-soft); vertical-align: middle; }
.criteria thead th { border-top: 2px solid var(--rule); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; font-family: var(--display); }
.criteria td.num, .criteria th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--display); font-weight: 700; white-space: nowrap; padding-left: 0.8rem; }
.criteria td.w { color: var(--ink-3); font-weight: 500; font-family: var(--text); }
.criteria .bar { width: 38%; padding-left: 1rem; }
.barsvg { display: block; width: 100%; height: 6px; }
.barsvg .track { fill: var(--paper-3); }
.barsvg .fill { fill: var(--accent); }
.weights .barsvg .fill { fill: var(--ink); }
.criteria tfoot td, .criteria tfoot th { border-top: 2px solid var(--rule); font-weight: 700; font-family: var(--display); }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 1.6em; }
.features h3 { margin: 0 0 0.4rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.features ul { list-style: none; padding: 0; margin: 0; }
.features li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: 0.55rem; align-items: start; padding-block: 0.45rem; border-top: 1px solid var(--rule-soft); font-size: 1rem; line-height: 1.35; margin: 0; }
.features li svg { width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; }
.features .st { font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; }
.features .yes svg { color: var(--accent); }
.features .no { color: var(--ink-2); }
.features .no svg, .features .unknown svg { color: var(--ink-3); }
.facts-line { font-size: 1rem; color: var(--ink-2); }

/* Pros and cons */
.pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.2rem; margin-top: 1.4em; }
.pc h3 { margin: 0 0 0.4rem; font-size: 1.1rem; padding-bottom: 0.45rem; border-bottom: 2px solid var(--rule); }
.pc ul { list-style: none; margin: 0; padding: 0; }
.pc li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px solid var(--rule-soft); font-size: 1rem; line-height: 1.45; margin: 0; }
.pc li::before { position: absolute; left: 0.1rem; top: 0.42rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.pc .pros li::before { content: '+'; color: var(--accent); }
.pc .cons li::before { content: '\2212'; color: var(--ink-2); }

/* Verdict */
.verdict { margin-top: 2.2em; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 1.4rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.verdict .score { margin: 0; grid-template-columns: auto; }
.verdict .score-label { margin-top: 0.6rem; }
.verdict p { margin: 0; font-family: var(--display); font-size: var(--step-1); line-height: 1.35; font-weight: 500; }

/* Pricing */
.pricing-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule-soft); margin-top: 1.2em; }
.pricing-facts > div { padding: 0.8rem 0.9rem 0.9rem 0; }
.pricing-facts > div + div { border-left: 1px solid var(--rule-soft); padding-left: 0.9rem; }
.pricing-facts .label { display: block; color: var(--ink-3); margin-bottom: 0.25rem; font-size: 0.7rem; }
.pricing-facts b { font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.15; display: block; }
.checked { font-size: var(--step--1); color: var(--ink-3); }

/* Sources / footnotes */
.sources { font-size: 0.95rem; line-height: 1.45; padding-left: 1.6em; }
.sources li + li { margin-top: 0.45em; }
.sources a { overflow-wrap: anywhere; }
.sources .host { color: var(--ink-3); overflow-wrap: anywhere; }

/* TOC */
.toc { border-top: 3px solid var(--rule); padding-top: 0.8rem; }
.toc h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; color: var(--ink-2); margin-bottom: 0.6rem; border: 0; padding: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); padding-block: 0.38rem; border-top: 1px solid var(--rule-soft); font-size: 0.95rem; line-height: 1.3; margin: 0; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 0.82rem; padding-top: 0.08rem; font-variant-numeric: tabular-nums; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-mobile { display: none; }
.toc-mobile summary { cursor: pointer; font-family: var(--display); font-weight: 650; padding: 0.7rem 0; list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: '+'; font-weight: 700; color: var(--accent); }
.toc-mobile[open] summary::after { content: '\2212'; }

/* Quick picks */
.picks { border: 2px solid var(--rule); padding: 1.2rem 1.3rem 1.3rem; margin-top: 2em; background: var(--paper); }
.picks > h2 { font-size: 0.8rem !important; letter-spacing: 0.14em; text-transform: uppercase; border: 0 !important; padding: 0 !important; margin: 0 0 0.9rem !important; color: var(--ink-2); }
.picks ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.picks li { padding: 0.8rem 1rem 0.9rem 0; border-top: 1px solid var(--rule-soft); margin: 0; }
.picks li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--rule-soft); }
.picks .label { color: var(--accent); display: block; font-size: 0.72rem; }
.picks .pick-name { font-family: var(--display); font-weight: 650; font-size: 1.3rem; line-height: 1.15; text-decoration: none; display: inline-block; margin-top: 0.2rem; }
.picks .pick-name:hover { text-decoration: underline; }
.picks .pick-meta { display: block; font-size: 0.9rem; color: var(--ink-2); margin-top: 0.15rem; }
.picks .rule { display: block; font-size: 0.8rem; color: var(--ink-3); margin-top: 0.3rem; line-height: 1.35; }

/* Roundup entries */
.entry { margin-top: 3.2em; }
.entry-head { border-top: 3px solid var(--rule); padding-top: 0.9rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem 1.5rem; align-items: start; }
.entry-head h2 { border: 0 !important; padding: 0 !important; margin: 0 !important; font-size: var(--step-3); }
.entry-head .score { margin: 0; justify-items: end; grid-template-columns: auto; text-align: right; }
.entry-head .score-num { font-size: 3.4rem; }
.entry-head .score-label { justify-self: end; margin-top: 0.4rem; }
.entry .tagline { font-family: var(--display); font-size: var(--step-1); font-weight: 500; line-height: 1.3; color: var(--ink-2); margin-top: 0.7rem; }
.entry-facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; font-size: 0.95rem; color: var(--ink-2); margin-top: 1rem; padding-block: 0.6rem; border-block: 1px solid var(--rule-soft); }
.entry-facts b { color: var(--ink); font-weight: 650; }

/* Tables (comparison) */
.table-scroll { overflow-x: auto; margin-top: 1.4em; border-top: 2px solid var(--rule); }
.table-scroll:focus-visible { outline-offset: 2px; }
.compare { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 0.95rem; }
.compare caption { text-align: left; padding: 0.7rem 0; color: var(--ink-3); font-size: var(--step--1); caption-side: bottom; }
.compare th, .compare td { text-align: left; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.compare td.num { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare th[scope='row'] { font-family: var(--display); font-weight: 650; }
.compare th[scope='row'] a { text-decoration: none; }
.compare th[scope='row'] a:hover { text-decoration: underline; }
.compare .muted { color: var(--ink-3); }

/* Read next */
.read-next { border-top: 3px double var(--rule); padding-block: 2rem 3.5rem; }
.read-next h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; color: var(--ink-2); margin-bottom: 1rem; }
.read-next ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.read-next li { border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.read-next a { text-decoration: none; display: block; }
.read-next .t { font-family: var(--display); font-weight: 700; font-size: var(--step-1); line-height: 1.15; display: block; margin-top: 0.4rem; }
.read-next .d { display: block; font-size: 0.95rem; color: var(--ink-2); margin-top: 0.4rem; line-height: 1.45; }
.read-next a:hover .t { text-decoration: underline; color: var(--accent); }

/* Index pages */
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list > li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 0.4rem 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); align-items: start; }
.index-list .story-no { font-size: 3rem; }
.index-list h2 { font-size: var(--step-2); }
.index-list h2 a { text-decoration: none; }
.index-list h2 a:hover { text-decoration: underline; }
.index-list p { margin: 0.4rem 0 0; color: var(--ink-2); max-width: 62ch; }
.index-list .score { margin: 0; text-align: right; grid-template-columns: auto; justify-items: end; }
.index-list .score-num { font-size: 2.8rem; }
.index-list .score-label { margin-top: 0.35rem; }

/* Imprint / legal pages */
.facts { margin: 1.4em 0 0; border-top: 2px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--rule-soft); }
.facts dt { font-weight: 650; color: var(--ink-2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* 404 */
.notfound { padding-block: clamp(3rem, 10vw, 8rem); }
.notfound .big { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(6rem, 22vw, 16rem); line-height: 0.8; color: var(--accent); letter-spacing: -0.05em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 3px double var(--rule); margin-top: 0; padding-block: 2.5rem 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-grid h2 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; color: var(--ink-2); margin-bottom: 0.7rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 0.35rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid p { margin: 0.8rem 0 0; color: var(--ink-2); max-width: 36ch; }
.site-footer .brand-name { font-size: 1.35rem; }
.site-footer .brand-mark { width: 1.7rem; height: 1.7rem; }
.footer-disclosure { margin-top: 2rem; padding: 0.8rem 1rem; border-left: 4px solid var(--accent); background: var(--paper-2); color: var(--ink); }
.footer-base { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--rule-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--ink-3); font-size: var(--step--1); }
.footer-base p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .article-grid, .article-grid--toc-left { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .article-grid--toc-left .rail { display: none; }
  .toc-mobile { display: block; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule-soft); margin-bottom: 1.5rem; }
  .toc-mobile .toc { border-top: 0; padding-top: 0; padding-bottom: 0.8rem; }
  .rail-sticky { position: static; }
  .rail--review { order: -1; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story:nth-child(n) { border-left: 1px solid var(--rule-soft); padding-left: 1.4rem; padding-right: 1.4rem; }
  .story:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .story:nth-child(2n) { padding-right: 0; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 52rem) {
  .lead { grid-template-columns: minmax(0, 1fr); }
  .lead-ranking { border-left: 0; padding-left: 0; border-top: 3px solid var(--rule); padding-top: 1rem; }
  .teaser { grid-template-columns: minmax(0, 1fr); }
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .read-next ul { grid-template-columns: minmax(0, 1fr); }
  .read-next li + li { margin-top: 1.2rem; }
}
@media (max-width: 40rem) {
  body { line-height: 1.58; }
  .masthead-top { justify-content: center; text-align: center; }
  .masthead-top .tagline { display: none; }
  .masthead-brand { justify-content: center; }
  .nav ul { justify-content: flex-start; gap: 0 1.1rem; }
  .nav a { font-size: 0.92rem; padding: 0.6rem 0; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story, .story:nth-child(n) { border-left: 0; padding-inline: 0; }
  .features, .pc { grid-template-columns: minmax(0, 1fr); }
  .picks ol { grid-template-columns: minmax(0, 1fr); }
  .picks li:nth-child(even) { padding-left: 0; border-left: 0; }
  .pricing-facts { grid-template-columns: minmax(0, 1fr); }
  .pricing-facts > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-soft); }
  .verdict { grid-template-columns: minmax(0, 1fr); }
  .entry-head { grid-template-columns: minmax(0, 1fr); }
  .entry-head .score { justify-items: start; text-align: left; grid-template-columns: auto auto; align-items: end; gap: 0 0.8rem; }
  .entry-head .score-label { justify-self: start; }
  .index-list > li { grid-template-columns: 3rem minmax(0, 1fr); }
  .index-list .score { grid-column: 2; justify-items: start; text-align: left; grid-template-columns: auto auto; align-items: end; gap: 0 0.7rem; margin-top: 0.6rem; }
  .index-list .story-no { font-size: 2.2rem; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance dl > div { grid-template-columns: 6rem minmax(0, 1fr); }
  .criteria .bar { display: none; }
  .ranklist a { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.15rem 0.7rem; }
}

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

@media print {
  :root { --paper: #fff; --paper-2: #f3f3f3; --paper-3: #ddd; --ink: #000; --ink-2: #222; --ink-3: #444; --accent: #7d2116; }
  .nav, .skip, .rail, .toc-mobile, .read-next, .site-footer .footer-grid { display: none !important; }
  .article-grid { grid-template-columns: 1fr; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #444; }
}

.spacer { height: 3rem; }
.toc-desktop { display: block; }
@media (max-width: 64rem) { .toc-desktop { display: none; } }

/* Front-page feature (No. 1) */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1rem clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule); padding-block: 1.6rem 1.8rem;
}
.feature h3 { font-size: var(--step-3); letter-spacing: -0.01em; line-height: 1; margin: 0.5rem 0 1.1rem; }
.feature h3 a { text-decoration: none; }
.feature h3 a:hover { text-decoration: underline; }
.feature .story-no { font-size: 3.4rem; }
.feature .score { margin: 0; }
.feature-body p { margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.feature-body .story-meta { margin-top: 1.1rem; font-size: var(--step--1); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: baseline; }
.feature-body .story-meta strong { color: var(--ink); }
.feature-body .story-meta .more { font-size: 1rem; }

/* Quick picks on the front page */
.picks-mini { margin-top: 2.2rem; border-top: 2px solid var(--rule); padding-top: 0.7rem; max-width: 34rem; }
.picks-mini h3 { color: var(--ink-2); margin-bottom: 0.4rem; }
.picks-mini ul { list-style: none; margin: 0; padding: 0; }
.picks-mini li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1rem; padding-block: 0.5rem; border-bottom: 1px solid var(--rule-soft); font-size: 1rem; }
.picks-mini li span { color: var(--ink-3); }
.picks-mini a { font-family: var(--display); font-weight: 650; text-decoration: none; }
.picks-mini a:hover { text-decoration: underline; color: var(--accent); }
@media (max-width: 40rem) { .picks-mini li { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.pricing-facts .price-note { display: block; font-size: 0.85rem; color: var(--ink-2); margin-top: 0.3rem; line-height: 1.35; }
.pull blockquote { margin: 0; padding: 0; border: 0; font: inherit; }
.pull figcaption { margin: 0; }
.verdict + p { margin-top: 1.2rem; }
.toc li > .toc-sub { grid-column: 1 / -1; list-style: none; margin: 0.35rem 0 0 1.9rem; padding: 0; counter-reset: sub; }
.toc .toc-sub li { counter-increment: sub; grid-template-columns: 1.6rem minmax(0, 1fr); border-top: 1px dotted var(--rule-soft); padding-block: 0.3rem; font-size: 0.9rem; }
.toc .toc-sub li::before { content: counter(sub); color: var(--ink-3); font-weight: 600; }
.notfound h1 { font-size: var(--step-4); letter-spacing: -0.015em; margin: 1.2rem 0 1rem; }
.notfound .dek { margin-bottom: 1rem; }

/* ---------- Light edition: calmer, more formal type (round 4) ---------- */
body { line-height: 1.65; }
h1 { font-weight: 700; }
h2, h3, h4 { font-weight: 650; }
.kicker, .label { font-weight: 600; letter-spacing: 0.11em; }
.masthead-top { font-size: 0.82rem; }
.brand-name { font-weight: 700; letter-spacing: -0.01em; font-size: 1.35rem; }
.brand-mark { width: 1.8rem; height: 1.8rem; }
.masthead--front .masthead-brand { padding-block: 1.7rem 1.4rem; }
.masthead--front .brand-name { font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.1rem); letter-spacing: -0.015em; }
.masthead--front .brand-mark { width: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem); height: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem); }
.nav a { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; padding: 0.8rem 0; border-bottom-width: 2px; }
.nav a:hover { color: var(--accent); }

.lead-title { line-height: 1.1; margin-block: 0.7rem 1.2rem; }
.lead-dek, .dek { color: var(--ink-2); line-height: 1.5; }
.article-head h1 { line-height: 1.1; max-width: 24ch; margin-block: 0.8rem 1.1rem; }
.article-head--long h1 { font-size: var(--step-4); max-width: 28ch; }
.section-head { border-top-width: 2px; }
.section-head h2 { font-size: var(--step-2); }

.prose h2 { font-size: var(--step-3); line-height: 1.15; border-top: 1px solid var(--rule); padding-top: 1rem; }
.prose h2 .no { font-size: 0.74rem; letter-spacing: 0.12em; }
.prose .dropcap::first-letter { font-weight: 600; font-size: 3.7em; line-height: 0.86; margin: 0.07em 0.1em 0 0; color: var(--ink); }
.prose blockquote, .pull { font-size: var(--step-2); font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; border-top: 1px solid var(--rule); }
.pull blockquote { border: 0; }

.story-no { font-size: 0.95rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; line-height: 1.2; }
.feature .story-no { font-size: 0.95rem; }
.feature h3 { font-size: var(--step-3); line-height: 1.12; }
.story h3 { font-size: var(--step-1); line-height: 1.2; }
.index-list .story-no { font-size: 1.15rem; padding-top: 0.2rem; }
.index-list h2 { font-size: var(--step-2); line-height: 1.2; }
.guide-list .num { font-size: 1.35rem; font-weight: 400; color: var(--ink-3); line-height: 1.2; }
.guide-list li { grid-template-columns: 2.6rem minmax(0, 1fr); }
.ranklist .pos { font-size: 1.05rem; font-weight: 600; color: var(--ink-3); }
.ranklist .sc b { font-size: 1.2rem; }
.ranklist .name { font-weight: 650; }

.score-num { font-size: 2.9rem; letter-spacing: -0.01em; }
.score-of { font-size: 0.95rem; }
.score-label { font-weight: 650; font-size: 0.74rem; border-bottom-width: 1px; }
.entry-head .score-num { font-size: 2.5rem; }
.index-list .score-num { font-size: 2.1rem; }
.entry-head h2 { font-size: var(--step-3) !important; }
.entry .tagline { font-weight: 500; }
.verdict p { font-weight: 500; line-height: 1.4; }
.picks { border-width: 1px; }
.picks .pick-name { font-weight: 650; font-size: 1.2rem; }
.weights .w-val, .weights .w-label { font-weight: 600; }
.glance { border-top-width: 2px; }
.box { border-top-width: 2px; }
.toc { border-top-width: 2px; }
.read-next .t { font-weight: 650; }
.teaser h2 { font-size: var(--step-3); line-height: 1.15; }
.notfound .big { font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 300; line-height: 1; }
.notfound h1 { font-size: var(--step-4); }
.story .kicker, .feature .kicker, .index-list .kicker, .guide-list .kicker { font-size: 0.72rem; color: var(--accent); line-height: 1.4; }
.feature-body p { font-size: 1.1rem; line-height: 1.6; }

/* ---------- Round 5: language switcher, logos, Editor's choice, recommendations ---------- */
.masthead-top { align-items: center; }
.i18n-switcher ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; }
.i18n-switcher li { margin: 0; }
.i18n-switcher a, .i18n-switcher span { display: inline-block; padding: 0.1rem 0.45rem; font-family: var(--display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; }
.i18n-switcher span[aria-current] { border-color: var(--rule); color: var(--ink); }
.i18n-switcher a { color: var(--ink-2); }
.i18n-switcher a:hover { color: var(--accent); border-color: var(--rule-soft); }

/* Logos: small, restrained, on a quiet ground so mixed vendor artwork sits calmly in the type. */
.logo { display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--paper); border: 1px solid var(--rule-soft); padding: 0.18rem 0.35rem; vertical-align: middle; }
.logo img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.logo--sm { height: 1.45rem; max-width: 5rem; }
.logo--md { height: 2rem; max-width: 7.5rem; }
.logo--lg { height: 2.6rem; max-width: 9.5rem; }
.logo--mono { font-family: var(--display); font-weight: 650; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-2); min-width: 1.45rem; }
.logo--md.logo--mono { min-width: 2rem; font-size: 0.8rem; }
.logo--lg.logo--mono { min-width: 2.6rem; font-size: 0.9rem; }
.ranklist .name { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.entry-name { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.entry-name h2 { margin: 0; }
.glance-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.9rem; }
.glance-top h2 { margin: 0 !important; }

/* Editor's choice: a quiet claret label, not a badge or seal. */
.choice { display: inline-block; font-family: var(--display); font-size: 0.7rem; font-weight: 650; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent); border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); padding: 0.12rem 0; line-height: 1.3; margin-top: 0.45rem; }
.choice--sm { font-size: 0.62rem; margin: 0 0 0 0.4rem; vertical-align: middle; }
.choice--head { margin: 0.2rem 0 0; }
.entry--choice .entry-head { border-top-color: var(--accent); }
.row--choice th[scope='row'] { white-space: normal; }
.glance--choice { border-top-color: var(--accent); }

/* Calls to action */
.cta { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 0.65rem 1.1rem; font-family: var(--display); font-weight: 650; font-size: 0.98rem; text-decoration: none; border: 1px solid var(--accent); }
.cta:hover { background: var(--accent-2); color: var(--on-accent); }
.cta--secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
.cta--secondary:hover { background: var(--paper-2); color: var(--ink); }
.cta--small { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.5rem; }
.glance .visit.cta, .glance a.visit { display: block; text-align: center; margin-top: 1rem; }
.glance a.visit:not(.cta) { background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; text-decoration: none; font-family: var(--display); font-weight: 650; }

/* "Our recommendation" box */
.reco { margin-top: 2.4em; border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 1.3rem 1.4rem 1.4rem; background: var(--paper); }
.reco > * + * { margin-top: 0.8rem; }
.reco-head { display: flex; align-items: center; gap: 0.9rem; }
.reco-head .kicker { margin: 0; }
.reco h2 { font-size: var(--step-2) !important; border: 0 !important; padding: 0 !important; margin: 0.15rem 0 0 !important; }
.reco p { margin: 0; }
.reco-reasons { margin: 0; padding-left: 1.2em; }
.reco-reasons li + li { margin-top: 0.3em; }
.reco-note { font-size: 0.92rem; color: var(--ink-3); }
.reco-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.reco-inline { margin: 1.6em 0; border-left: 3px solid var(--accent); background: var(--paper-2); padding: 0.85rem 1.1rem; font-size: 1rem; }
.reco-inline .label { display: block; color: var(--accent); margin-bottom: 0.25rem; }
.reco-inline p { margin: 0; }
@media (max-width: 40rem) {
  .masthead-top { justify-content: space-between; text-align: left; }
  .reco { padding: 1rem; }
}
.glance a.visit.cta { background: var(--accent); color: var(--on-accent); }
.glance a.visit.cta:hover { background: var(--accent-2); }
@media (max-width: 64rem) {
  .feature { grid-template-columns: minmax(0, 1fr); }
}
.feature h3, .story h3, .index-list h2 { overflow-wrap: anywhere; }
.reco p, .reco ul { margin: 0.8rem 0 0; }
.reco .reco-head + p { margin-top: 1rem; }

/* ---------- Round 6: why-choice, benefits, client statements ---------- */
.why-choice { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; font-size: 1.02rem; color: var(--ink-2); }
.why-choice strong { color: var(--accent); font-family: var(--display); font-weight: 650; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.2rem; }
.benefits { counter-reset: benefit; }
.benefits p { position: relative; padding-left: 2.4rem; }
.benefits p::before { counter-increment: benefit; content: counter(benefit, decimal-leading-zero); position: absolute; left: 0; top: 0.1rem; font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--accent); }
.benefits p strong { font-family: var(--display); font-weight: 650; }
.client-reviews { list-style: none; padding: 0; margin: 1.2em 0 0; }
.client-review { border-top: 1px solid var(--rule-soft); padding-block: 1rem; }
.client-review blockquote { margin: 0; font-size: 1.05rem; }
.client-review blockquote p { margin: 0; }
.client-meta { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--ink-3); }

/* ---------- Round 7: alpha-tester pull quotes (editorial, no cards, no scores) ---------- */
.testers { margin: 2em 0; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0.9rem 0 1rem; }
.testers-title { margin: 0 0 0.6rem !important; font-family: var(--display); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tester { margin: 0; padding: 0.9rem 0; }
.tester + .tester { border-top: 1px solid var(--rule-soft); }
.tester blockquote { margin: 0; padding: 0; border: 0; font-family: var(--display); font-size: var(--step-1); font-weight: 500; line-height: 1.38; letter-spacing: -0.005em; color: var(--ink); }
.tester blockquote p { margin: 0; }
.tester figcaption { margin-top: 0.45rem; font-size: 0.9rem; color: var(--ink-3); }
.tester-name { font-weight: 650; color: var(--ink-2); }
.tester-role::before { content: ', '; }
.testers-note { margin: 0.5rem 0 0 !important; font-size: 0.82rem; color: var(--ink-3); }
.entry .testers { margin: 1.4em 0; }
.entry .tester blockquote { font-size: 1.12rem; }

/* ---------- Round 8: 22 editions ---------- */
/* Greek and Cyrillic: Libre Franklin has neither, so el and bg use Source Sans 3 (full variable
   font, loaded only for these ranges) for headings and text alike. */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/source-sans-3-greek-cyrillic-wght.woff2) format('woff2-variations'),
       url(../fonts/source-sans-3-greek-cyrillic-wght.woff2) format('woff2');
  unicode-range: U+0370-03FF, U+1F00-1FFF, U+0400-052F, U+1C80-1C88, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F, U+2116;
}
html:lang(el), html:lang(bg) { --display: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif; }
html:lang(el) h1, html:lang(el) h2, html:lang(el) h3, html:lang(bg) h1, html:lang(bg) h2, html:lang(bg) h3 { letter-spacing: 0; }

/* Long words (Finnish, Hungarian, German compounds) must never push the layout wider. */
h1, h2, h3, .dek, .kicker, .label, td, th, dd, dt, .pick-name, .ranklist .name, .nav a { overflow-wrap: break-word; hyphens: auto; }

/* Language switcher: a native disclosure menu listing every edition by endonym. */
.i18n-switcher { position: relative; }
.i18n-switcher details { position: relative; }
.i18n-switcher summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.55rem; font-family: var(--display); font-size: 0.78rem; font-weight: 600; border: 1px solid var(--rule-soft); color: var(--ink); }
.i18n-switcher summary::-webkit-details-marker { display: none; }
.i18n-switcher summary::after { content: ''; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.12rem) rotate(45deg); }
.i18n-switcher details[open] summary::after { transform: translateY(0.1rem) rotate(-135deg); }
.i18n-switcher summary:hover { border-color: var(--ink-3); }
.i18n-switcher .i18n-code { letter-spacing: 0.08em; color: var(--accent); }
.i18n-switcher ul { position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(8.5rem, 1fr)); gap: 0.1rem 0.4rem; width: max-content; max-width: calc(100vw - 2rem); padding: 0.6rem; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(25, 25, 25, 0.12); }
.i18n-switcher a, .i18n-switcher li > span { display: block; padding: 0.3rem 0.5rem; font-family: var(--text); font-size: 0.92rem; font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: none; border: 0; text-align: left; }
.i18n-switcher li > span[aria-current] { color: var(--accent); font-weight: 650; border: 0; }
.i18n-switcher a:hover { background: var(--paper-2); border: 0; }
@media (min-width: 48rem) { .i18n-switcher ul { grid-template-columns: repeat(3, minmax(8.5rem, 1fr)); } }
@media (max-width: 40rem) {
  .i18n-switcher { position: static; }
  .i18n-switcher details { position: static; }
  .masthead-top { position: relative; }
  .i18n-switcher ul { left: var(--gutter); right: var(--gutter); width: auto; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.i18n-switcher summary span { display: inline; padding: 0; border: 0; font-size: inherit; text-transform: none; letter-spacing: 0; }
.i18n-switcher summary .i18n-code { letter-spacing: 0.08em; }
.i18n-switcher details:not([open]) > ul { display: none; }
