/* "Bright Side": a deep green band, sunshine yellow, coral phones and Fraunces
   (self-hosted, OFL) for headings. Body text stays in the system sans. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  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: "Fraunces";
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: italic; font-display: swap;
  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: "Fraunces";
  src: url("fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-style: italic; font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f3f2f8;
  --text: #1a1a2e;
  --muted: #545468;
  --line: #e2e1ea;
  --field-line: #85849a;
  --accent: #0b5a46;
  --accent-text: #ffffff;
  --brand: #0b5a46;
  --brand-ink: #ffffff;
  --brand-soft: #d7eee5;
  --sun: #ffd23f;
  --sun-ink: #1a1500;
  --sun-shadow: #b8930f;
  --coral: #ff7a59;
  --coral-tint: #ffe3da;
  --sky-tint: #dbe9ff;
  --cream: #fff3c4;
  --works: #0f6b3e;
  --works-bg: #d8f2e3;
  --ok2g: #4a5f00;
  --ok2g-bg: #eaf2cc;
  --check: #865300;
  --check-bg: #fdeccb;
  --bad: #a3241a;
  --bad-bg: #fde2de;
  --unknown: #4f4f63;
  --unknown-bg: #ebeaf2;
  --ph-body: #e9e8f0;
  --ph-screen: #fff3c4;
  --ph-key: #d6d5e0;
  --ph-hinge: #d6d5e0;
  --shadow: 0 18px 40px -24px rgba(20, 20, 46, 0.45);
  --radius: 18px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-family: var(--font-body);
  color-scheme: light dark;
}

/* Dark theme: follows the device unless the visitor picked a theme with the
   header toggle (data-theme on <html>, set by theme.js). Keep both copies equal. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12121c;
    --surface: #191926;
    --tint: #1f1f2e;
    --text: #ecebf5;
    --muted: #a9a8bd;
    --line: #2e2e40;
    --field-line: #77768f;
    --accent: #7fe0bb;
    --accent-text: #08261d;
    --brand: #08382c;
    --brand-ink: #f1fbf6;
    --brand-soft: #b9dccf;
    --sun: #ffd23f;
    --sun-ink: #1a1500;
    --sun-shadow: #8f720c;
    --coral: #ff8a6b;
    --coral-tint: #3a2420;
    --sky-tint: #1c2a40;
    --cream: #3a3418;
    --works: #8fe3b4;
    --works-bg: #163324;
    --ok2g: #cde38a;
    --ok2g-bg: #2a3316;
    --check: #f5c86e;
    --check-bg: #352a12;
    --bad: #ff9e93;
    --bad-bg: #3d1d1a;
    --unknown: #c4c3d6;
    --unknown-bg: #26263a;
    --ph-body: #2a2a3c;
    --ph-screen: #3a3418;
    --ph-key: #3a3a50;
    --ph-hinge: #3a3a50;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12121c;
  --surface: #191926;
  --tint: #1f1f2e;
  --text: #ecebf5;
  --muted: #a9a8bd;
  --line: #2e2e40;
  --field-line: #77768f;
  --accent: #7fe0bb;
  --accent-text: #08261d;
  --brand: #08382c;
  --brand-ink: #f1fbf6;
  --brand-soft: #b9dccf;
  --sun: #ffd23f;
  --sun-ink: #1a1500;
  --sun-shadow: #8f720c;
  --coral: #ff8a6b;
  --coral-tint: #3a2420;
  --sky-tint: #1c2a40;
  --cream: #3a3418;
  --works: #8fe3b4;
  --works-bg: #163324;
  --ok2g: #cde38a;
  --ok2g-bg: #2a3316;
  --check: #f5c86e;
  --check-bg: #352a12;
  --bad: #ff9e93;
  --bad-bg: #3d1d1a;
  --unknown: #c4c3d6;
  --unknown-bg: #26263a;
  --ph-body: #2a2a3c;
  --ph-screen: #3a3418;
  --ph-key: #3a3a50;
  --ph-hinge: #3a3a50;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 1.0625rem; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin: 1.4rem 0 0.7rem; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 2rem 0 0.7rem; }
h3 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; }

/* Keyboard focus: always visible, never just a colour change. */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--sun); color: var(--sun-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Comfortable line length for reading. */
main p, main li, main dd { max-width: 70ch; }
.card p, .card li, .results li, .specs li, .chips li, .country-list li, .alternatives li, .doors li, .stats dd, .acard p { max-width: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.prose { max-width: 720px; }
.eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }

/* ---------- Header and footer: the green band ---------- */
header.site { background: var(--brand); color: var(--brand-ink); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1; color: var(--brand-ink); text-decoration: none; }
.logo i { font-style: italic; font-weight: 500; }
.brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.site-tagline { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--brand-ink); opacity: 0.85; }
/* Same flip phone as the favicon (scripts/make_icons.py), without its green tile. */
.logo-mark { flex: none; }
.logo-mark .logo-body { fill: var(--cream); }
.logo-mark .logo-screen { fill: var(--sun); }
.logo-mark .logo-hinge { fill: var(--coral); }
.logo-mark .logo-keys { fill: var(--brand); }
header.site nav { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; }
header.site nav a { color: var(--brand-ink); text-decoration: none; font-weight: 500; }
header.site nav a:hover { text-decoration: underline; }
/* The row of categories under the main menu: phones, watches, home phones, hotspots, TVs. */
header.site nav.categories { flex-basis: 100%; gap: 6px 8px; padding-top: 12px; border-top: 1px solid var(--brand-soft); }
header.site nav.categories a { padding: 3px 12px; border-radius: 999px; font-size: 0.92rem; }
header.site nav.categories a[aria-current="page"] { background: var(--brand-ink); color: var(--brand); }
header.site :focus-visible, .hero :focus-visible, footer.site :focus-visible { outline-color: var(--sun); }
.theme-toggle { background: none; border: 1px solid var(--brand-soft); color: var(--brand-ink); border-radius: 999px; padding: 4px 13px; font: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer; }
.theme-toggle:hover { background: rgba(255, 255, 255, 0.1); }

footer.site { background: var(--brand); color: var(--brand-soft); margin-top: 64px; padding: 36px 0; font-size: 0.92rem; }
footer.site a { color: var(--brand-ink); }
footer.site p { max-width: 70ch; }
.countries { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.countries a[aria-current] { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sun); }
footer.site + * { margin-top: 0; }
main + footer.site { margin-top: 64px; }
.sec + footer.site, main:has(> .sec:last-child) + footer.site { margin-top: 0; }

.notice { background: var(--check-bg); color: var(--check); padding: 10px 0; font-size: 0.95rem; }
.notice-inline { background: var(--unknown-bg); padding: 6px 12px; border-radius: 8px; display: inline-block; }

/* ---------- Homepage hero: the band continues, with the finder and a real answer ---------- */
.hero { background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: rgba(255, 210, 63, 0.1); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 32px 48px; align-items: start; padding-top: 28px; padding-bottom: 48px; }
@media (min-width: 900px) { .hero--answer .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0.4rem 0 1rem; font-variation-settings: "SOFT" 100; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--sun); }
.hero p { margin: 0 0 10px; }
.hero .tagline { font-size: 1.2rem; font-weight: 600; }
.hero .hero-sub { color: var(--brand-soft); font-size: 1.05rem; max-width: 56ch; margin-bottom: 24px; }
.hero a { color: var(--brand-ink); }

/* The finder: a white card sitting on the band. */
.filters { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; box-shadow: var(--shadow); }
.filters a { color: var(--accent); }
.field { display: block; min-width: 0; }
.field span, .features legend { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 5px; }
select, button { font: inherit; }
select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--field-line); border-radius: 12px; background: var(--surface); color: var(--text); }
.field--main select { min-height: 52px; font-size: 1.05rem; font-weight: 600; }
.more-filters { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.more-filters summary { cursor: pointer; font-weight: 700; font-size: 0.95rem; padding: 6px 0; color: var(--accent); }
.features { border: 0; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.features label { font-size: 0.95rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; }
.check { grid-column: 1 / -1; font-size: 0.95rem; border-top: 1px solid var(--line); padding-top: 12px; }
.check input { vertical-align: -0.2em; margin: 0 6px 0 0; }
.actions { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; }
.js .actions { justify-content: flex-end; }
button { background: var(--sun); color: var(--sun-ink); border: 0; padding: 12px 22px; border-radius: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 var(--sun-shadow); }
@media (max-width: 520px) {
  .filters { padding: 14px; gap: 12px; }
  .field--main { grid-column: 1 / -1; }
  .features label { white-space: normal; }
}

/* The answer card, with a sticker. */
.answer { position: relative; padding-top: 34px; min-width: 0; }
.sticker { position: absolute; right: -14px; top: -6px; z-index: 2; margin: 0; width: 112px; height: 112px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; text-align: center; padding: 14px; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 0.92rem; line-height: 1.15; transform: rotate(-12deg); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }
@media (max-width: 899px) { .answer { padding-top: 0; } .sticker { position: relative; left: auto; margin: 0 0 -46px auto; width: 96px; height: 96px; font-size: 0.82rem; } }
.acard { background: var(--surface); color: var(--text); border-radius: 22px; padding: 22px 22px 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 18px; margin-left: 24px; }
@media (max-width: 899px) { .acard { margin-left: 0; } }
.acard a { color: var(--text); }
.acard-q { grid-column: 1 / -1; margin: 0; padding-right: 86px; font-size: 0.9rem; color: var(--muted); }
.acard-img { align-self: start; }
.acard-img .phone-img { background: var(--tint); border-radius: 14px; }
.acard-main { display: grid; gap: 6px; align-content: start; min-width: 0; }
.acard-main .badge { justify-self: start; font-size: 0.95rem; }
.acard-main .acard-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: 2px 0 0; }
.acard-name a { text-decoration: none; }
.acard-name a:hover { text-decoration: underline; }
.acard-main p { margin: 0; font-size: 0.95rem; }
.acard-price { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.acard-price strong { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.acard-price .orig { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; }

/* ---------- Results ---------- */
.count { color: var(--muted); margin: 28px 0 10px; font-size: 1.05rem; }
.count strong { color: var(--text); font-family: var(--font-display); font-size: 1.3rem; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--field-line); transform: translateY(-2px); }
.card-band { padding: 10px 16px; }
.card--works .card-band { background: var(--works-bg); }
.card--works_on_2g .card-band { background: var(--ok2g-bg); }
.card--check .card-band { background: var(--check-bg); }
.card--issues .card-band, .card--no_calls .card-band { background: var(--bad-bg); }
.card--unknown .card-band { background: var(--unknown-bg); }
.card-band .badge { background: none; padding: 0; font-size: 1rem; }
.card-img { display: block; background: var(--tint); }
.card-img .phone-img { background: transparent; height: 190px; aspect-ratio: auto; padding: 16px; }
.card-main { padding: 16px 18px 4px; min-width: 0; }
.card h2 { margin: 0 0 6px; font-size: 1.35rem; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link target */
.card { position: relative; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0 0 8px; }
.card-main > p { color: var(--muted); font-size: 0.97rem; }
.card-side { padding: 4px 18px 18px; position: relative; z-index: 1; display: grid; gap: 6px; align-content: end; }
.card-side a { position: relative; z-index: 1; }
.specs { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.specs li { font-size: 0.84rem; background: var(--tint); border-radius: 999px; padding: 3px 11px; }
.why { font-size: 0.92rem; color: var(--muted); margin: 0 !important; }
.price { font-weight: 700; margin: 0; }
.card-side .price { font-family: var(--font-display); font-size: 1.35rem; padding-top: 10px; border-top: 1px solid var(--line); }
.card-side .price .orig, .card-side .price .muted { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; }
.empty { padding: 28px; text-align: center; color: var(--muted); grid-column: 1 / -1; background: var(--tint); border-radius: var(--radius); }
.empty p { margin: 4px auto; }

/* ---------- Verdict badges: an icon dot and a label ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 800; padding: 4px 12px 4px 5px; border-radius: 999px; white-space: nowrap; }
.dot { width: 1.35em; height: 1.35em; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: currentColor; }
.dot::before { font-size: 0.8em; font-weight: 900; line-height: 1; color: var(--surface); }
.v-works .dot::before, .v-works_on_2g .dot::before { content: "✓"; }
.v-check .dot::before, .v-unknown .dot::before { content: "?"; }
.v-issues .dot::before { content: "!"; }
.v-no_calls .dot::before { content: "✕"; }
.v-works { color: var(--works); background: var(--works-bg); }
.v-works_on_2g { color: var(--ok2g); background: var(--ok2g-bg); }
.v-check { color: var(--check); background: var(--check-bg); }
.v-issues, .v-no_calls { color: var(--bad); background: var(--bad-bg); }
.v-unknown { color: var(--unknown); background: var(--unknown-bg); }
.v-works .dot::before, .v-works_on_2g .dot::before, .v-check .dot::before, .v-issues .dot::before, .v-no_calls .dot::before, .v-unknown .dot::before { color: var(--bg); }

.verdict-box { border-radius: var(--radius); padding: 20px 22px; margin: 14px 0; }
.verdict-box .badge { font-size: 1.15rem; background: none; padding: 0; }
.verdict-box p { margin: 10px 0 0; font-size: 1.15rem; color: var(--text); }

/* ---------- Full-width sections after the results ---------- */
.sec { padding: 64px 0; }
.sec h2 { margin-top: 0; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.sec .intro { font-size: 1.08rem; max-width: 60ch; margin: 0 0 28px; }
.doors-sec { padding-bottom: 32px; }
.doors { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.doors a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: 22px; color: var(--text); text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s, border-color 0.15s; }
.doors a:hover { transform: translateY(-2px); border-color: var(--text); }
.door--kids a { background: var(--works-bg); }
.door--minimalist a { background: var(--sky-tint); }
.door--senior a { background: var(--coral-tint); }
.door--rugged a { background: var(--check-bg); }
.door-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.door-text { font-size: 0.97rem; }
.door-more { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }

.band { background: var(--sun); color: var(--sun-ink); }
.band .eyebrow { color: var(--sun-ink); }
.band a { color: var(--sun-ink); font-weight: 700; }
.band :focus-visible { outline-color: var(--sun-ink); }
.checks-3 { list-style: none; counter-reset: check; padding: 0; margin: 0; display: grid; gap: 22px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.checks-3 li { counter-increment: check; }
.checks-3 li::before { content: counter(check); display: block; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.checks-3 h3 { margin: 0 0 4px; font-size: 1.25rem; }
.checks-3 p { margin: 0; }
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 36px 0 0; padding-top: 26px; border-top: 1.5px solid rgba(26, 21, 0, 0.25); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 0.95rem; margin-top: 4px; }
.band-links { margin: 26px 0 0; }

/* The founder's letter. */
.letter { display: grid; gap: 28px 48px; align-items: start; border: 2px dashed var(--field-line); border-radius: 28px; padding: clamp(22px, 4vw, 48px); }
/* Sticky only in the two-column layout: in one column it would ride over the letter text. */
@media (min-width: 900px) { .letter { grid-template-columns: 300px minmax(0, 1fr); } .letter-side { position: sticky; top: 24px; } }
.pull { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.22; margin: 0; }
.letter-body h2 { margin-top: 0; }
.letter-body h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; }
.sig { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; font-weight: 600; margin-top: 18px; }
.pros-cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.story { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.story h3 { font-size: 1.05rem; margin-bottom: 4px; }
blockquote.founder-quote { margin: 0 0 16px; padding: 18px 22px; background: var(--tint); border-radius: var(--radius); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; }
.founder-quote > footer { color: var(--muted); margin: 6px 0 0; font-family: var(--font-body); font-size: 0.95rem; }
.founder-quote > footer::before { content: "— "; }

/* ---------- Finder extras ---------- */
.js .no-js-only { display: none; }
.n { color: var(--muted); font-size: 0.85em; }
.is-empty { color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; text-decoration: none; background: var(--tint); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 14px; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.chips a:hover { border-color: var(--text); }
.chips .clear a { background: none; border-style: dashed; color: var(--muted); }
.hidden-note { font-size: 0.95rem; }
#results { transition: opacity 0.15s; }
#results.loading { opacity: 0.55; }

/* ---------- Phone pages ---------- */
.crumbs { margin: 20px 0 0; font-size: 0.92rem; }
.phone-hero { display: grid; gap: 20px 40px; align-items: start; margin-top: 12px; }
@media (min-width: 760px) { .phone-hero { grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); } }
.phone-hero h1 { margin-top: 0.2rem; font-size: clamp(2.1rem, 4.6vw, 3rem); line-height: 1.05; }
.phone-hero--compact { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: center; }
@media (min-width: 760px) { .phone-hero--compact { grid-template-columns: 110px minmax(0, 1fr); } }
.phone-hero--compact h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 0; }
.checked { font-size: 0.9rem; }
.scoreboard { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; margin: 18px 0 6px; box-shadow: var(--shadow); }
.scoreboard p { margin: 0; max-width: none; }
.score { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.2; }
.meter { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.meter li { width: 20px; height: 12px; border-radius: 4px; background: currentColor; max-width: none; }
.meter li.v-works, .meter li.v-works_on_2g, .meter li.v-check, .meter li.v-issues, .meter li.v-no_calls, .meter li.v-unknown { background: currentColor; }
.meter li.v-check, .meter li.v-unknown { opacity: 0.55; }
.score-detail { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; color: var(--muted); }
.score-price strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); }
.score-price .orig { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; }

.ph { width: 100%; height: 100%; display: block; }
.ph-body { fill: var(--ph-body); stroke: var(--field-line); stroke-width: 1.5; }
.ph-screen { fill: var(--ph-screen); }
.ph-key { fill: var(--ph-key); }
.ph-hinge { fill: var(--ph-hinge); }
.phone-img { display: flex; align-items: center; justify-content: center; background: var(--tint); border-radius: 14px; overflow: hidden; }
.phone-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.phone-img--thumb { width: 100%; aspect-ratio: 3 / 4; padding: 8px; }
.phone-img--large { width: 100%; aspect-ratio: 1 / 1.05; padding: 28px; border-radius: 26px; }
.phone-img--placeholder.phone-img--large { padding: 48px; }
.gallery { margin: 0; max-width: 360px; }
@media (max-width: 759px) { .gallery { max-width: 260px; } }
.gallery figcaption { font-size: 0.85rem; margin-top: 8px; }
.gallery-more { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-more a { display: block; border: 2px solid transparent; border-radius: 12px; }
.gallery-more a:hover { border-color: var(--line); }
.gallery-more a[aria-current] { border-color: var(--accent); }
.gallery-more img { width: 60px; height: 60px; padding: 4px; object-fit: contain; border-radius: 10px; background: var(--tint); }

.two-col { display: grid; gap: 28px 48px; margin-top: 12px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.spec-table th { font-weight: 500; color: var(--muted); width: 50%; }
.yes { color: var(--works); font-weight: 700; }
.no { color: var(--muted); }
@media (max-width: 600px) { .hide-sm { display: none; } }

.checks, .reports { padding-left: 0; list-style: none; }
.checks li, .reports li { padding: 10px 12px 10px 38px; position: relative; border-bottom: 1px solid var(--line); }
.checks li::before { position: absolute; left: 12px; font-weight: 900; }
.c-pass::before { content: "✓"; color: var(--works); }
.c-fail::before { content: "✕"; color: var(--bad); }
.c-warn::before { content: "!"; color: var(--check); }
.c-unknown::before { content: "?"; color: var(--unknown); }
.reports li::before { position: absolute; left: 14px; content: "•"; }

.offers { list-style: none; padding: 0; }
.offers li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.offers .price { font-family: var(--font-display); font-size: 1.15rem; }
.sources { margin-top: 40px; font-size: 0.9rem; }
.sources a { word-break: break-word; }
.sources li { margin: 6px 0; }
.net-facts { padding-left: 18px; }
.net-list { columns: 2; padding-left: 18px; }
dl dt { margin-top: 14px; }
dl dd { margin: 4px 0 0; }

.country-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.country-list a { display: block; padding: 18px 20px; background: var(--tint); border: 1.5px solid transparent; border-radius: var(--radius); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; text-decoration: none; color: var(--text); }
.country-list a:hover { border-color: var(--text); }

/* Working alternatives on a "doesn't work / not confirmed" verdict page */
.alternatives ul { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.alternatives li a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.alternatives li a:hover { border-color: var(--text); }
.alternatives .alt-name { font-family: var(--font-display); font-weight: 700; }
.alternatives .badge { align-self: flex-start; }

/* Stock */
.stock { font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.stock--out { color: var(--unknown); background: var(--unknown-bg); }
.stock--back, .stock--pre { color: var(--check); background: var(--check-bg); }
.stock-notice { font-size: 0.9rem; border-radius: 10px; padding: 6px 10px; margin: 0; }
.stock-notice a { color: inherit; font-weight: 700; }

/* Linked maker photos: fall back to the outline if the maker's image fails to load */
.ph-fallback { display: none; width: 100%; height: 100%; }
.img-failed img { display: none; }
.img-failed .ph-fallback { display: block; }

/* 4G calling table */
.findings ul { padding-left: 18px; }
.findings li { margin: 6px 0; }
.findings li .muted { display: block; font-size: 0.9rem; }
.findings li:target { background: var(--cream); border-radius: 4px; }
.findings .permalink { color: var(--muted); margin-left: 2px; }
.findings .cite { font-size: 0.9rem; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--radius); margin: 16px 0; background: var(--surface); }
.table-scroll:focus { outline: 2px solid var(--accent); }
table.calling { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 0.85rem; }
table.calling th, table.calling td { padding: 7px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: center; }
table.calling thead th { vertical-align: bottom; font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 0.85rem; color: var(--text); }
table.calling thead th a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; }
table.calling thead th.mvno { font-weight: 500; color: var(--muted); }
table.calling .runs-on { display: block; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
table.calling .phone-col { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; border-right: 1px solid var(--line); }
table.calling tbody th a { color: var(--text); }
.cell { display: inline-block; border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: 0.78rem; text-decoration: none; }
.legend { display: grid; grid-template-columns: max-content 1fr; gap: 8px 12px; align-items: center; font-size: 0.92rem; }
.legend dd { margin: 0; }
.acard-stock { grid-column: 1 / -1; }
.acard-stock:empty { display: none; }
/* On a phone, once a network is picked the first result sits right below: don't repeat it. */
@media (max-width: 899px) { .hero:has(select[name="network"] option:checked:not([value=""])) .answer { display: none; } }

/* "Did it work for you?": the owner report form on phone pages. */
.report { background: var(--tint); border-radius: var(--radius); padding: 20px 22px; margin: 32px 0; max-width: 46rem; }
.report h2 { margin-top: 0; }
.report-form { display: grid; gap: 18px; }
.report-form .field label span, .choices legend { display: block; font-size: 1rem; font-weight: 700; letter-spacing: normal; text-transform: none; margin-bottom: 6px; }
.choices { border: 0; padding: 0; margin: 0; }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 20px; }
input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); margin: 0; }
.report-form textarea, .report-form input[type="email"] { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--field-line); border-radius: 12px; background: var(--surface); color: var(--text); }
.report-form [aria-invalid="true"] { border-color: var(--bad); }
.report-form .hint { margin: 0 0 6px; font-size: 0.92rem; color: var(--muted); }
.field-error { margin: 0 0 6px; color: var(--bad); font-weight: 700; }
.form-errors { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.form-errors p, .form-errors ul { margin: 0; }
.form-errors a { color: inherit; }
.report-thanks { background: var(--works-bg); color: var(--works); border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.hp { display: none; }

/* 2G and 3G switch-off page */
table.switch-off { width: max-content; min-width: 100%; }
table.switch-off th, table.switch-off td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.switch-off tbody th a { color: var(--text); }
table.switch-off td { min-width: 9rem; max-width: 18rem; }
.so { display: inline-block; font-size: 0.85rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.so-on { color: var(--works); background: var(--works-bg); }
.so-closing { color: var(--check); background: var(--check-bg); }
.so-off, .so-never { color: var(--bad); background: var(--bad-bg); }
.so-unknown { color: var(--unknown); background: var(--unknown-bg); }
.so-via, .so-when, .so-note { display: block; font-size: 0.85rem; margin-top: 3px; }
.so-via { color: var(--muted); }
.so-src { font-size: 0.8rem; }
/* Phones: one card per network, 2G and 3G side by side. */
@media (max-width: 600px) {
  table.switch-off { width: 100%; min-width: 0; }
  table.switch-off thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.switch-off tbody, table.switch-off tr { display: block; }
  table.switch-off tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px; border-bottom: 1px solid var(--line); }
  table.switch-off th, table.switch-off td { display: block; border: 0; padding: 0; min-width: 0; max-width: none; }
  table.switch-off tbody th { grid-column: 1; }
  table.switch-off td.uses { grid-column: 2; text-align: right; font-size: 0.85rem; }
  table.switch-off td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 800; color: var(--muted); }
}

/* Hotspots and TVs: cards like the alternatives grid */
.hotspot-list { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.hotspot-list li { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
.hotspot-list li > a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); }
.hotspot-list .alt-name { font-family: var(--font-display); font-weight: 700; }
.hotspot-list .badge { align-self: flex-start; }
.inline-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }

/* Owner reports published from the admin page */
.owner-voices ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.owner-voices li { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
.owner-voices blockquote { margin: 6px 0 0; padding-left: 12px; border-left: 3px solid var(--line); font-style: italic; }

/* A guide's short answer, under its introduction */
.short-answer { margin: 16px 0 0; padding: 14px 18px; background: rgba(255, 255, 255, 0.08); border: 1.5px solid var(--brand-soft); border-radius: var(--radius); }
.short-answer h2 { margin: 0 0 6px; font-size: 1.05rem; }
.short-answer p { margin: 4px 0; }
.short-answer a { color: inherit; }
.short-answer .muted { color: inherit; opacity: 0.8; }
