/* ============================================================================
   bestcloudmining.net - "datacenter noir" design system
   ----------------------------------------------------------------------------
   Near-black graphite, phosphor-green as the single signal colour, cold cyan
   for links/secondary, warm amber for warnings. Monospace (JetBrains Mono) for
   data and labels, Space Grotesk for display and body. Single self-hosted CSS
   file (CSP: style-src 'self', font-src 'self', img-src 'self' data:).

   Dark is the base theme (:root). Light applies when (a) the user explicitly
   picked light ([data-theme="light"]), or (b) no choice was made and the OS
   prefers light (media query). pages.js must NOT hardcode a data-theme
   attribute - that caused a dark flash for light-preference users.
   Keep the two light blocks in sync (CSS cannot share tokens across a media
   query and an attribute selector).
   ========================================================================== */

/* --- self-hosted OFL fonts (see assets/fonts/LICENSE.txt) ----------------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.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: dark "datacenter noir" (base) ------------------------------- */
:root {
  --bg: #06090e;
  --bg-2: #0b0f16;
  --bg-3: #111823;
  --bg-4: #16202e;
  --line: #1a2332;
  --line-2: #29354a;
  --border: #1a2332;

  --text: #e7edf6;
  --text-dim: #97a4b8;
  --text-faint: #747f92; /* AA >= 4.5:1 on #06090e */
  --text-ghost: #4a5568;

  --accent: #46f0a0;      /* phosphor green: the signal */
  --accent-2: #22c987;
  --accent-text: #04140c; /* dark ink on phosphor */
  --cyan: #4fd6f5;        /* cold cyan: links / secondary */
  --cyan-2: #2bb8dd;
  --magenta: #ff5fa2;
  --green: #46f0a0;
  --red: #ff5d6e;
  --gold: #ffc35c;        /* warm amber: warnings / mid scores */

  --glow: 0 0 22px rgba(70, 240, 160, .30);
  --glow-cyan: 0 0 20px rgba(79, 214, 245, .26);
  --glow-gold: 0 0 18px rgba(255, 195, 92, .28);
  --shadow: 0 14px 40px rgba(0, 0, 0, .55);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .4);
  --grid-line: rgba(84, 130, 180, .045);
  --grid-size: 40px;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
}

/* --- tokens: light "datacenter daylight" (kept in sync with media query) -- */
[data-theme="light"] {
  --bg: #eef1f6;
  --bg-2: #ffffff;
  --bg-3: #e8edf4;
  --bg-4: #dde4ee;
  --line: #d6dee9;
  --line-2: #b9c5d6;
  --border: #d6dee9;

  --text: #0e1622;
  --text-dim: #46536a;
  --text-faint: #5b6880; /* AA >= 4.5:1 on #eef1f6 */
  --text-ghost: #8a95a8;

  --accent: #07714c;      /* darkened phosphor for text/links on paper */
  --accent-2: #0b8d60;
  --accent-text: #ffffff;
  --cyan: #0a6f8f;        /* darkened cold cyan, AA on paper */
  --cyan-2: #0d84a8;
  --magenta: #ab2668;
  --green: #07714c;
  --red: #c02434;
  --gold: #8a5a00;

  --glow: none;
  --glow-cyan: none;
  --glow-gold: none;
  --shadow: 0 12px 30px rgba(21, 34, 58, .10);
  --shadow-sm: 0 4px 14px rgba(21, 34, 58, .08);
  --grid-line: rgba(30, 60, 110, .05);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef1f6;
    --bg-2: #ffffff;
    --bg-3: #e8edf4;
    --bg-4: #dde4ee;
    --line: #d6dee9;
    --line-2: #b9c5d6;
    --border: #d6dee9;

    --text: #0e1622;
    --text-dim: #46536a;
    --text-faint: #5b6880;
    --text-ghost: #8a95a8;

    --accent: #07714c;
    --accent-2: #0b8d60;
    --accent-text: #ffffff;
    --cyan: #0a6f8f;
    --cyan-2: #0d84a8;
    --magenta: #ab2668;
    --green: #07714c;
    --red: #c02434;
    --gold: #8a5a00;

    --glow: none;
    --glow-cyan: none;
    --glow-gold: none;
    --shadow: 0 12px 30px rgba(21, 34, 58, .10);
    --shadow-sm: 0 4px 14px rgba(21, 34, 58, .08);
    --grid-line: rgba(30, 60, 110, .05);
  }
}

/* --- base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* fixed datacenter grid + top phosphor bloom, fading toward the content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(58% 34% at 50% -8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%),
    radial-gradient(40% 30% at 88% 2%, color-mix(in srgb, var(--cyan) 7%, transparent), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 calc(var(--grid-size) - 1px), var(--grid-line) calc(var(--grid-size) - 1px) var(--grid-size)),
    repeating-linear-gradient(90deg, transparent 0 calc(var(--grid-size) - 1px), var(--grid-line) calc(var(--grid-size) - 1px) var(--grid-size));
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
}
[data-theme="light"] body::before { opacity: .5; }
@media (prefers-color-scheme: light) { html:not([data-theme="dark"]) body::before { opacity: .5; } }
main, .site-header, .site-footer { position: relative; z-index: 1; }

::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); color: var(--text); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono, code { font-family: var(--mono); }
.dim { color: var(--text-dim); }
.small { font-size: .85rem; }
.faint { color: var(--text-faint); }
.hl { font-family: var(--mono); color: var(--accent); text-shadow: var(--glow); letter-spacing: .01em; }
.hl.bad { color: var(--red); text-shadow: none; }
.mono-prefix { color: var(--accent); font-family: var(--mono); margin-right: .3rem; font-weight: 500; }
.icon { width: 1em; height: 1em; vertical-align: -.12em; }

/* --- typography ---------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.22; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; letter-spacing: -.025em; margin: .5em 0 .4em; }
h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.018em; margin: 1.4em 0 .5em; }
h3 { font-size: 1.09rem; font-weight: 600; margin: 1.1em 0 .4em; }
h4 { font-weight: 600; }
p { margin: .6em 0; }
.prose { max-width: 76ch; }
.prose p, .prose li { color: var(--text); }
.prose h2 { margin-top: 1.6em; }
code { font-size: .9em; background: var(--bg-3); border: 1px solid var(--line); border-radius: 5px; padding: .05em .4em; }

/* --- header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 40%, transparent) 22%, color-mix(in srgb, var(--cyan) 30%, transparent) 60%, transparent);
  opacity: .7;
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.06rem; color: var(--text); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line-2));
}
.logo-chip .icon { width: 1.25em; height: 1.25em; color: var(--accent); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 55%, transparent)); }
.logo-text em { color: var(--accent); font-style: normal; }
.main-nav { display: flex; gap: 16px; align-items: center; flex: 1; }
.main-nav a, .nav-drop summary { color: var(--text-dim); font-size: .92rem; padding: 4px 2px; transition: color .15s ease; }
.main-nav a:hover, .nav-drop summary:hover { color: var(--text); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--accent); }
.nav-drop { position: relative; }
.nav-drop summary { cursor: pointer; list-style: none; }
.nav-drop summary::-webkit-details-marker { display: none; }
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px 14px;
  box-shadow: var(--shadow); min-width: 320px; z-index: 60;
}
.drop-panel a { display: block; padding: 5px 8px; border-radius: var(--radius-sm); white-space: nowrap; }
.drop-panel a:hover { background: var(--bg-3); text-decoration: none; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.theme-toggle {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text-dim); padding: 6px 8px; cursor: pointer; line-height: 0;
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, var(--line-2)); box-shadow: var(--glow); }

/* --- buttons ------------------------------------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #ffffff) 0%, var(--accent) 42%, var(--accent-2) 100%);
  color: var(--accent-text); font-weight: 600; font-size: .95rem;
  padding: 10px 18px; border: none; border-radius: 9px; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 45%, transparent), 0 6px 18px color-mix(in srgb, var(--accent) 20%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary:hover { box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 45%, transparent), var(--glow), 0 8px 24px color-mix(in srgb, var(--accent) 26%, transparent); text-decoration: none; transform: translateY(-1px); filter: saturate(1.05); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-sm { padding: 6px 13px; font-size: .85rem; }
.btn-disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--cyan); border: 1px solid var(--line-2);
  padding: 9px 16px; border-radius: 9px; cursor: pointer; text-decoration: none; font-size: .92rem;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--cyan) 60%, var(--line-2)); color: var(--cyan); box-shadow: var(--glow-cyan); text-decoration: none; background: color-mix(in srgb, var(--cyan) 6%, transparent); }
.btn-ghost.btn-sm { padding: 6px 12px; font-size: .84rem; }

/* --- hero ---------------------------------------------------------------- */
.hero { position: relative; padding: 60px 0 40px; }
.hero::before {
  content: "";
  position: absolute; inset: -60px -30px auto; height: 440px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 20% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(42% 56% at 82% 10%, color-mix(in srgb, var(--cyan) 11%, transparent), transparent 72%);
  filter: blur(1px);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 56ch; }
.hero-answer { margin-top: 12px; font-size: .95rem; max-width: 60ch; border-left: 3px solid var(--accent); padding: 8px 14px; background: color-mix(in srgb, var(--accent) 6%, var(--bg-2)); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }
.hero-trust { font-size: .8rem; color: var(--text-faint); display: flex; gap: 6px 16px; flex-wrap: wrap; }
.hero-trust .icon { color: var(--green); }
.hero-trust .trust-item { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.fact-board {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-3) 60%, var(--bg-2)));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 18px 20px; font-size: .85rem; box-shadow: var(--shadow);
}
.fact-board::before {
  content: "";
  position: absolute; inset: 0 0 auto; height: 2px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 65%, transparent), color-mix(in srgb, var(--cyan) 45%, transparent), transparent);
}
.board-title { color: var(--accent); margin-bottom: 10px; font-weight: 600; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.board-title::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex-shrink: 0; }
.board-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--text-dim); }
.board-val { color: var(--text); font-weight: 600; font-family: var(--mono); font-size: .82rem; }
.board-val.ok { color: var(--green); }
.board-val.warn { color: var(--gold); }
.board-val a { color: inherit; }
.board-cursor { margin-top: 10px; color: var(--text-faint); }
.caret { animation: blink 1.1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* optional decorative overlay: a slow column of hashes (not required by any
 * template; available for hero/sections that opt in) */
.hashrain {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: .35em;
  opacity: .18;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

/* --- sections ------------------------------------------------------------ */
.section { padding: 36px 0; }
.section-head { margin-bottom: 20px; }
.section-head h1, .section-head h2 { margin: 0 0 6px; }
.section-sub { color: var(--text-dim); margin: 0 0 8px; max-width: 72ch; }
.fastlane-alt { margin-top: 16px; color: var(--text-dim); font-size: .86rem; }

/* --- cards --------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.provider-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 82%, var(--bg)));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.provider-card::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent), transparent);
  opacity: 0; transition: opacity .18s ease;
}
.provider-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); transform: translateY(-3px); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); }
.provider-card:hover::before { opacity: 1; }
.rank-chip {
  position: absolute; top: -12px; left: 16px;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text-dim);
  font-family: var(--mono); font-weight: 700; font-size: .8rem;
  padding: 2px 10px; border-radius: 20px;
}
.rank-chip.first { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 70%, transparent); box-shadow: var(--glow-gold); }
.card-head { display: flex; gap: 12px; align-items: flex-start; }
.card-head > div:first-of-type { flex: 1; min-width: 0; }
.card-name { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.card-name::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 7px var(--accent); flex-shrink: 0; }
.card-name a { color: var(--text); }
.card-name a:hover { color: var(--accent); text-decoration: none; }
.card-verdict { color: var(--text-dim); font-size: .86rem; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-price > span:first-of-type { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.provider-logo { border-radius: 10px; flex-shrink: 0; }
.provider-logo-img { object-fit: contain; border-radius: 0; max-width: 220px; vertical-align: middle; }
/* logo heights via classes - inline style attributes are blocked by CSP (style-src 'self') */
.provider-logo-img.logo-28 { height: 28px; width: auto; }
.provider-logo-img.logo-32 { height: 32px; width: auto; }
.provider-logo-img.logo-44 { height: 44px; width: auto; }
.provider-logo-img.logo-64 { height: 64px; width: auto; }
.vres-ok { color: var(--green); }
.vres-bad { color: var(--red); }
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; font-weight: 700; font-family: var(--mono);
  background: hsl(var(--h, 30) 40% 14%); color: hsl(var(--h, 30) 85% 72%);
  border: 1px solid hsl(var(--h, 30) 50% 34%);
  border-radius: 10px;
}
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.card-price { display: flex; gap: 8px; align-items: baseline; font-size: .86rem; color: var(--text-dim); flex-wrap: wrap; }
.card-price .icon { color: var(--gold); flex-shrink: 0; }
.price-wr { font-family: var(--mono); font-size: .78rem; color: var(--magenta); }
.card-meta { display: flex; gap: 16px; font-size: .8rem; color: var(--text-faint); flex-wrap: wrap; align-items: center; }
.card-meta .icon { color: var(--text-faint); }
.card-rating { color: var(--gold); }
.card-cat { margin-left: auto; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; border: 1px solid var(--line); padding: 2px 8px; border-radius: 12px; }
.card-ctas { display: flex; gap: 10px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.visit-note { font-size: .72rem; color: var(--text-faint); }
.stars { color: var(--gold); letter-spacing: 2px; }

/* --- badges: rack-unit LED status dots ----------------------------------- */
.badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .04em; padding: 2px 9px 2px 8px; border-radius: 6px; border: 1px solid; font-weight: 600;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; box-shadow: 0 0 7px currentColor; flex-shrink: 0; }
.badge.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 7%, transparent); }
.badge.warn { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 7%, transparent); }
.badge.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 7%, transparent); }
.badge.info { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); background: color-mix(in srgb, var(--cyan) 7%, transparent); }
.badge.tor, .badge.mag { color: var(--magenta); border-color: color-mix(in srgb, var(--magenta) 45%, transparent); background: color-mix(in srgb, var(--magenta) 7%, transparent); }

/* --- score ring ---------------------------------------------------------- */
.score-ring { flex-shrink: 0; }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; filter: drop-shadow(0 0 4px color-mix(in srgb, currentColor 40%, transparent)); }
.score-ring.good .ring-fg { stroke: var(--green); }
.score-ring.ok .ring-fg { stroke: var(--cyan); }
.score-ring.mid .ring-fg { stroke: var(--gold); }
.score-ring.bad .ring-fg { stroke: var(--red); }
.ring-num { fill: var(--text); font-family: var(--mono); font-size: 15px; font-weight: 700; }
.score-null { color: var(--text-faint); font-family: var(--mono); }

/* --- compare table ------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
table.compare { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 900px; }
table.compare thead th {
  position: sticky; top: 0; background: var(--bg-3); text-align: left;
  padding: 11px 12px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-dim); border-bottom: 1px solid var(--line-2); white-space: nowrap;
  z-index: 2;
}
table.compare thead th::after,
table.compare thead th:last-child { box-shadow: none; }
table.compare tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.compare tbody tr { transition: background .12s ease; }
table.compare tbody tr:hover { background: var(--bg-3); }
table.compare tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
table.compare tbody tr:last-child td { border-bottom: none; }
.col-rank { color: var(--text-faint); font-family: var(--mono); }
.col-trial { max-width: 170px; }
.col-price { max-width: 130px; }
.col-netflix, .col-bbc, .col-sports { white-space: nowrap; }
.row-name { display: flex; gap: 8px; align-items: center; color: var(--text); font-weight: 600; white-space: normal; }
.row-name:hover { color: var(--accent); text-decoration: none; }
.row-badges { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.sortable { cursor: pointer; user-select: none; }
.sortable::after { content: " \25BE"; opacity: .4; }
.sortable.asc::after { content: " \25B4"; opacity: 1; color: var(--accent); }
.sortable.desc::after { content: " \25BE"; opacity: 1; color: var(--accent); }
tr.filtered-out { display: none; }
.table-note { font-size: .8rem; margin-top: 10px; }
.filter-meta { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.table-count { font-size: .76rem; }

/* keep the row CTA reachable even while a wide table scrolls sideways */
@media (min-width: 901px) {
  table.compare th.col-cta, table.compare td.col-cta {
    position: sticky; right: 0; background: var(--bg-2);
    box-shadow: -1px 0 0 var(--line), -18px 0 18px -16px color-mix(in srgb, #000 60%, transparent);
  }
  table.compare thead th.col-cta { background: var(--bg-3); z-index: 3; }
  table.compare tbody tr:hover td.col-cta { background: var(--bg-3); }
}

/* Mobile: the comparison table becomes a card list - every decision-relevant
 * fact (KYC, payout, score, visit) is visible without horizontal scrolling. */
@media (max-width: 900px) {
  table.compare:not(.simple) { min-width: 0; border: 0; background: transparent; }
  .table-wrap:has(table.compare:not(.simple)) { overflow-x: visible; border: 0; background: transparent; }
  table.compare:not(.simple) thead { display: none; }
  table.compare:not(.simple), table.compare:not(.simple) tbody { display: block; }
  table.compare:not(.simple) tbody tr {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
    padding: 12px 14px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  }
  table.compare:not(.simple) tbody tr:hover { background: var(--bg-2); }
  table.compare:not(.simple) tbody tr:hover td:first-child { box-shadow: none; }
  table.compare:not(.simple) tbody td { display: block; padding: 2px 0; border-bottom: 0; }
  table.compare:not(.simple) td.col-rank { display: none; }
  table.compare:not(.simple) td.col-name { grid-column: 1; }
  table.compare:not(.simple) td.col-score { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding-top: 6px; }
  table.compare:not(.simple) td.col-price,
  table.compare:not(.simple) td.col-trial,
  table.compare:not(.simple) td.col-netflix,
  table.compare:not(.simple) td.col-bbc,
  table.compare:not(.simple) td.col-sports,
  table.compare:not(.simple) td.col-rating { grid-column: 1 / -1; font-size: .84rem; }
  table.compare:not(.simple) td.col-trial { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  table.compare:not(.simple) td[data-l]::before {
    content: attr(data-l) ': '; font-family: var(--mono); font-size: .66rem;
    text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint);
  }
  table.compare:not(.simple) td.col-cta { grid-column: 1 / -1; margin-top: 8px; }
  table.compare:not(.simple) td.col-cta .btn-primary { display: block; text-align: center; }
}
.cat-answer { margin: 4px 0 14px; font-size: .98rem; max-width: 68ch; border-left: 3px solid var(--accent); padding: 8px 14px; background: color-mix(in srgb, var(--accent) 6%, var(--bg-2)); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cat-related { font-size: .84rem; margin-bottom: 14px; }
.cat-related a { margin-right: 4px; }
.cat-faq { margin-top: 34px; max-width: 68ch; }
.cmp-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 20px; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.cmp-cols h2 { font-size: 1.2rem; }
.cmp-faq { margin-top: 34px; max-width: 72ch; }
.compare-facts td, .compare-facts th { text-align: left; }
@media (max-width: 820px) { .cmp-cols { grid-template-columns: 1fr; } }
table.compare.simple { min-width: 600px; }
table.compare.simple th { padding: 10px 12px; text-align: left; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--line-2); }
table.compare.simple tbody th { font-family: var(--font); text-transform: none; font-size: .92rem; }

/* --- filter bar ---------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 18px; align-items: flex-end; }
.filter-group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.flabel { font-size: .7rem; color: var(--text-faint); text-transform: uppercase; margin-right: 2px; font-family: var(--mono); letter-spacing: .04em; }
.fchip {
  font-family: var(--mono); font-size: .74rem; padding: 4px 12px;
  border: 1px solid var(--line-2); border-radius: 16px; background: transparent;
  color: var(--text-dim); cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.fchip:hover { border-color: color-mix(in srgb, var(--cyan) 60%, var(--line-2)); color: var(--cyan); }
.fchip.on { border-color: color-mix(in srgb, var(--accent) 70%, var(--line-2)); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); }
.filter-search input {
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); padding: 6px 10px; font-size: .88rem; width: 160px;
}
.filter-search input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }

/* --- category grid ------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cat-card {
  position: relative;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 10px; align-items: center; color: var(--text);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); text-decoration: none; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cat-num { font-size: 1.5rem; font-weight: 700; color: var(--accent); font-family: var(--mono); }
.cat-card .icon { width: 1.4em; height: 1.4em; color: var(--cyan); }
.cat-label { font-weight: 600; }

/* --- tools --------------------------------------------------------------- */
.tool-grid, .guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tool-card, .guide-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 84%, var(--bg)));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  color: var(--text); display: block;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover, .guide-card:hover { border-color: color-mix(in srgb, var(--cyan) 50%, var(--line-2)); text-decoration: none; box-shadow: var(--glow-cyan); transform: translateY(-2px); }
.tool-card h3, .guide-card h3 { margin: 0 0 6px; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.tool-card .icon { color: var(--accent); }
.tool-card p, .guide-card p { margin: 0; color: var(--text-dim); font-size: .86rem; }
.tool-page { max-width: 900px; }
.tool-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; }
.tool-panel.stack { grid-template-columns: 1fr; }
.tool-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tool-form label { font-size: .8rem; color: var(--text-dim); display: block; margin-bottom: 4px; }
.tool-form input, .tool-form select, .tool-form textarea {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); padding: 9px 12px; font-size: .95rem; font-family: var(--mono);
}
.tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.range-line { display: flex; gap: 8px; align-items: center; }
.range-line .mono { color: var(--accent); font-weight: 700; }
.tool-result { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; }
.tool-result .big { font-size: 1.6rem; font-weight: 700; color: var(--accent); font-family: var(--mono); }
.tool-result table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .84rem; }
.tool-result td { padding: 5px 4px; border-bottom: 1px dashed var(--line); }
.tool-result td:last-child { text-align: right; color: var(--cyan); }
.tool-expl { margin-top: 20px; }

/* --- verdict / review page ----------------------------------------------- */
.crumbs { font-size: .78rem; color: var(--text-faint); margin-bottom: 14px; font-family: var(--mono); }
.verdict-box { background: var(--bg-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.verdict-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.verdict-title { flex: 1; min-width: 240px; }
.verdict-title h1 { margin: 0 0 6px; font-size: 1.7rem; }
.verdict-line { color: var(--text-dim); margin: 0 0 8px; }
.verdict-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.verdict-scores { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.user-score { display: flex; gap: 6px; align-items: baseline; }
.verdict-ctas { display: flex; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.review-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 28px; margin-top: 26px; }
.review-side { display: flex; flex-direction: column; gap: 18px; }
.side-note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: .88rem; }
.side-note h4 { margin: 0 0 6px; color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-family: var(--mono); }
.redflag, .dead-banner {
  background: color-mix(in srgb, var(--red) 9%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--red) 42%, transparent);
  border-radius: 10px; padding: 12px 16px; margin: 14px 0; display: flex; gap: 10px;
}
.redflag .icon, .dead-banner .icon { color: var(--red); flex-shrink: 0; }
.redflag ul { margin: 6px 0 0; padding-left: 18px; }
.verify-note { color: var(--gold); font-size: .86rem; background: color-mix(in srgb, var(--gold) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--gold) 40%, transparent); border-radius: var(--radius-sm); padding: 8px 12px; }
table.facts { width: 100%; border-collapse: collapse; font-size: .84rem; background: var(--bg-2); border-radius: 10px; }
table.facts caption { caption-side: top; text-align: left; font-family: var(--mono); font-size: .68rem; color: var(--text-faint); padding: 10px 12px 4px; text-transform: uppercase; letter-spacing: .05em; }
table.facts th { text-align: left; padding: 8px 12px; color: var(--text-dim); font-weight: 500; width: 42%; border-bottom: 1px solid var(--line); }
table.facts td { padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
table.facts .icon { color: var(--accent); margin-right: 4px; }
table.facts tr:last-child th, table.facts tr:last-child td { border-bottom: none; }
.fact-note { color: var(--text-faint); font-family: var(--font); font-size: .78rem; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.proscons h3 { margin: 0 0 8px; font-size: .9rem; }
.proscons ul { margin: 0; padding-left: 18px; font-size: .9rem; }
.proscons .pros { background: color-mix(in srgb, var(--green) 6%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); border-radius: 10px; padding: 14px; }
.proscons .cons { background: color-mix(in srgb, var(--red) 5%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--red) 28%, transparent); border-radius: 10px; padding: 14px; }
.proscons .pp { font-family: var(--mono); margin-right: 6px; }
.proscons .pros .pp { color: var(--green); }
.proscons .cons .pp { color: var(--red); }
.trial-box { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 16px; margin-top: 18px; }
.trial-box h3 { margin-top: 0; display: flex; gap: 8px; align-items: center; }
.trial-box .icon { color: var(--gold); }

/* --- faq ----------------------------------------------------------------- */
.faq { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); margin: 8px 0; overflow: hidden; }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "> "; color: var(--accent); font-family: var(--mono); }
.faq[open] summary { border-bottom: 1px solid var(--line); color: var(--accent); }
.faq p { padding: 10px 16px; margin: 0; color: var(--text-dim); }

/* --- rating + comments --------------------------------------------------- */
.rating-box { display: flex; gap: 24px; justify-content: space-between; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; flex-wrap: wrap; }
.rating-box h2 { margin: 0 0 4px; }
.star-row { display: flex; gap: 4px; }
.star-btn { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--text-faint); padding: 2px; transition: color .15s ease, text-shadow .15s ease; }
.star-btn:hover, .star-btn.sel { color: var(--gold); text-shadow: var(--glow-gold); }
.form-status { min-height: 1.2em; font-size: .8rem; color: var(--text-faint); margin: 8px 0; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.comments-section .comment { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 10px 0; }
.comment-head { display: flex; justify-content: space-between; font-size: .74rem; color: var(--text-faint); margin-bottom: 6px; }
.comment-nick { color: var(--cyan); font-weight: 600; }
.comment-body { margin: 0; font-size: .92rem; }
.comment-reply { background: var(--bg-3); border-radius: var(--radius-sm); padding: 8px 12px; margin: 8px 0 0; font-size: .86rem; }
.comment-reply .mono { color: var(--accent); }
.comment-form { margin-top: 22px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; max-width: 640px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: .8rem; color: var(--text-dim); margin-bottom: 4px; }
.form-row input, .form-row textarea {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); padding: 9px 12px; font-size: .95rem; font-family: var(--font);
}
.form-row textarea { font-family: var(--font); }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.comment-pay { margin: 14px 0 4px; background: var(--bg-3); border: 1px solid var(--cyan); border-radius: 10px; padding: 14px 16px; }
.pay-grid { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pay-info { flex: 1; min-width: 240px; }
.pay-row { margin: 4px 0; font-size: .88rem; }
.pay-addr-row { margin: 8px 0; }
.pay-addr { word-break: break-all; font-size: .72rem; color: var(--cyan); cursor: pointer; text-decoration: underline dotted; }
.pay-qr img { width: 132px; height: 132px; image-rendering: pixelated; border-radius: 6px; background: #fff; padding: 4px; }

/* --- finder -------------------------------------------------------------- */
.finder { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 28px; max-width: 720px; }
.finder-steps { display: flex; gap: 10px; margin-bottom: 18px; padding: 0; }
.finder-steps li { color: var(--text-faint); }
.finder-steps li.on { color: var(--accent); }
.finder h2 { margin-top: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.choice {
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--text); padding: 16px; font-size: .95rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 10px; text-align: left;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.choice:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); color: var(--accent); box-shadow: var(--glow); transform: translateY(-1px); }
.choice .icon { width: 1.3em; height: 1.3em; color: var(--cyan); }
#finderResult .reason { color: var(--green); font-family: var(--mono); font-size: .78rem; }

/* --- guide pages --------------------------------------------------------- */
.guide-card p { font-size: .84rem; }
.guide-intro { font-size: 1.05rem; color: var(--text-dim); border-left: 3px solid var(--accent); padding-left: 14px; }
.guide-intro p { margin: 0 0 10px; }
.guide-intro p:last-child { margin-bottom: 0; }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.toc summary { padding: 10px 14px; cursor: pointer; color: var(--text-dim); font-size: .84rem; }
.toc ol { padding: 0 14px 12px 34px; margin: 0; font-size: .9rem; }
.toc ol li { margin: 3px 0; }
.toc ol li.toc-sub { list-style: none; margin-left: 12px; opacity: .8; }
.guide-byline { font-family: var(--mono); font-size: .76rem; color: var(--text-dim); margin: 0 0 14px; }
.guide-byline a { color: var(--cyan); }
img.guide-hero { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin: 4px 0 18px; background: var(--bg-2); }
.guide-answer { margin-top: 4px; max-width: 68ch; }
.prose ol.sources { padding-left: 24px; font-size: .88rem; }
.prose ol.sources li { margin: 6px 0; color: var(--text-dim); }
.prose ol.sources .src-date { font-size: .76rem; }
.callout { margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--cyan); background: var(--bg-2); border-radius: 0 10px 10px 0; color: var(--text-dim); }
.callout p { margin: 0; }
.callout.warn { border-left-color: var(--gold); }
.callout.tip { border-left-color: var(--green); }
.callout.note { border-left-color: var(--cyan); }
.prose table.md-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; background: var(--bg-2); }
.prose table.md-table thead th { text-align: left; padding: 10px 12px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--line-2); }
.prose table.md-table tbody th { font-family: var(--font); text-transform: none; font-size: .92rem; }
.prose table.md-table td, .prose table.md-table tbody th { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose table.md-table tbody tr:last-child td, .prose table.md-table tbody tr:last-child th { border-bottom: none; }
.prose table.md-table tbody tr:hover { background: var(--bg-3); }
.prose table.md-table.guide-data { min-width: 560px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
h2.guide-group { margin: 26px 0 10px; font-size: 1.05rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
h2.guide-group:first-of-type { margin-top: 8px; }
.prose ol, .prose ul { padding-left: 24px; }
.prose ol li, .prose ul li { margin: 4px 0; }
.notfound h1 { font-size: 2.4rem; }

/* --- scams --------------------------------------------------------------- */
.scam-card { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.scam-flags { margin: 0; padding-left: 18px; color: var(--red); font-size: .84rem; }
.scam-flags li { margin: 3px 0; }

/* --- footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 26px; padding: 40px 20px; }
.footer-grid h4 { margin: 0 0 10px; font-size: .74rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.footer-grid nav { display: flex; flex-direction: column; gap: 6px; }
.footer-grid a { color: var(--text-dim); font-size: .88rem; }
.footer-grid a:hover { color: var(--accent); }
.notrack { font-size: .78rem; color: var(--green); }
.notrack .icon { color: var(--green); }
.footer-legal { padding: 14px 20px 28px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--text-faint); }
.footer-legal p { max-width: 90ch; margin: 6px 0; }
.footer-onion { font-size: .72rem; }

/* --- review page: score breakdown, toc, uptime --------------------------- */
.score-breakdown { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 14px 16px; margin-top: 14px; }
.score-breakdown h4 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); font-family: var(--mono); }
.sb-row { display: grid; grid-template-columns: 128px 1fr 34px; gap: 10px; align-items: center; padding: 3px 0; }
.sb-label { font-size: .8rem; color: var(--text-dim); }
.sb-label .dim { font-size: .68rem; }
.sb-bar { width: 100%; height: 8px; }
.sb-track { fill: var(--bg-3); }
.sb-fill.good { fill: var(--green); }
.sb-fill.ok { fill: var(--cyan); }
.sb-fill.mid { fill: var(--gold); }
.sb-fill.bad { fill: var(--red); }
.sb-val { font-size: .78rem; text-align: right; font-family: var(--mono); }
.sb-val.good { color: var(--green); }
.sb-val.ok { color: var(--cyan); }
.sb-val.mid { color: var(--gold); }
.sb-val.bad { color: var(--red); }
.sb-rank { margin: 10px 0 0; }

.side-toc { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .74rem; margin-bottom: 12px; }
.side-toc .side-toc-head { color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; font-family: var(--mono); }
.side-toc a { color: var(--text-dim); }
.side-toc a:hover { color: var(--accent); text-decoration: none; }
@media (min-width: 901px) {
  .side-toc { position: sticky; top: 68px; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 6px 0; z-index: 30; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.side-hero { margin: 0 0 14px; }
.side-hero img { width: 100%; height: auto; }

.uptime-line { font-size: .76rem; margin: 8px 0 0; display: flex; gap: 7px; align-items: center; color: var(--text-dim); flex-wrap: wrap; }
.up-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.up-dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.up-dot.warn { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.up-dot.bad { background: var(--red); box-shadow: 0 0 8px var(--red); }

.fact-more { display: inline; }
.fact-more summary { display: inline; cursor: pointer; color: var(--accent); font-size: .72rem; }
.fact-more[open] summary { display: block; margin-bottom: 2px; }
.fact-more summary::-webkit-details-marker { display: none; }
.fact-more summary.fact-val-summary, td .fact-more > summary { color: inherit; font-size: inherit; }
.fact-more .fact-more-link { color: var(--accent); font-size: .72rem; }

.rf-more { margin-top: 6px; }
.rf-more summary { cursor: pointer; color: var(--red); font-size: .8rem; }
.rf-more ul { margin: 6px 0 0; padding-left: 18px; }

.comment-start { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 12px 16px; background: var(--bg-2); }
.comment-start summary { cursor: pointer; color: var(--text-dim); display: flex; gap: 8px; align-items: center; }
.comment-start summary .icon { color: var(--gold); flex-shrink: 0; }
.comment-start summary::-webkit-details-marker { display: none; }
.comment-start[open] summary { margin-bottom: 12px; }

.cmp-sb-head { margin-top: 34px; }
.cmp-leads { margin: 4px 0 12px; }

/* --- site search dialog -------------------------------------------------- */
.search-dialog { border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); color: var(--text); padding: 0; width: min(560px, 92vw); box-shadow: var(--shadow); }
.search-dialog::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.search-box { padding: 14px; }
.search-box input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 1rem; font-family: var(--mono); }
.search-results { list-style: none; margin: 10px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-dim); }
.search-results a:hover, .search-results a.sel { background: var(--bg-3); color: var(--text); text-decoration: none; }
.search-results li.dim { padding: 8px 10px; }
.search-hint { margin: 10px 0 0; font-size: .68rem; color: var(--text-faint); }

/* --- /changes/ feed ------------------------------------------------------ */
.change-day h3 { margin: 26px 0 8px; font-size: .85rem; color: var(--text-dim); border-bottom: 1px solid var(--line); padding-bottom: 6px; font-family: var(--mono); }
.change-list { list-style: none; margin: 0; padding: 0; }
.change-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.change-list li:last-child { border-bottom: 0; }
.change-ts { font-size: .74rem; flex-shrink: 0; font-family: var(--mono); }

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

/* burger menu is a <details> element: opens without JS, JS only adds
 * close-on-outside-click as progressive enhancement */
.nav-burger { display: none; position: relative; }
.nav-burger summary { list-style: none; font-size: 1.1rem; line-height: 1; }
.nav-burger summary::-webkit-details-marker { display: none; }
.nav-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow); z-index: 70;
}
.nav-panel a, .nav-panel .nav-drop summary { display: block; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-dim); font-size: .92rem; }
.nav-panel a:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
.nav-panel .drop-panel { position: static; box-shadow: none; border: 0; background: transparent; padding: 2px 0 2px 14px; }
@media (max-width: 900px) {
  .hero-grid, .review-grid, .tool-panel { grid-template-columns: 1fr; }
  /* grid children default to min-width:auto - long unbreakable strings
   * (license ids, URLs, mono facts) otherwise force the track wider than
   * the phone (audit 2026-09-13: every page scrolled sideways ~106 px) */
  .hero-grid > *, .review-grid > *, .tool-panel > * { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .nav-burger { display: block; }
}
/* icon-only header buttons on narrow phones: burger + search + finder +
 * theme exceeded a 390 px viewport by ~106 px (audit 2026-09-13) */
@media (max-width: 700px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-label { display: none; }
  .header-actions .btn-ghost.btn-sm { padding: 6px 9px; }
  .header-actions .icon { width: 1.05em; height: 1.05em; }
}
/* long unbreakable content must wrap instead of overflowing the card */
.facts td, .fact-note, .source-head, .source-title, .source-summary, .source-foot, .src-links li, .op-notes, .card-verdict { overflow-wrap: anywhere; }
/* pros/cons and red-flag items carry hashes, addresses and IDs
 * (e.g. a 42-char btc address) that must not widen the page */
.proscons li, .redflag li, .faq p { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.mono-h0 { --h: 15; } .mono-h1 { --h: 45; } .mono-h2 { --h: 75; } .mono-h3 { --h: 105; }
.mono-h4 { --h: 135; } .mono-h5 { --h: 165; } .mono-h6 { --h: 195; } .mono-h7 { --h: 225; }
.mono-h8 { --h: 255; } .mono-h9 { --h: 285; } .mono-h10 { --h: 315; } .mono-h11 { --h: 345; }

/* --- meta-review (sources, player voices, operator, ai summary) ---------- */
.prose-wide { max-width: 92ch; }
.meta-review h2 { margin-bottom: .2em; }
.meta-intro { color: var(--text-dim); max-width: 80ch; }
.meta-section { margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.meta-section > h3 { margin: 0 0 8px; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.source-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color .18s ease, box-shadow .18s ease; }
.source-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.source-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.source-site { color: var(--cyan); font-size: .8rem; font-family: var(--mono); }
.source-score { color: var(--gold); font-size: .8rem; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 5px; padding: 1px 7px; font-family: var(--mono); }
.source-title { margin: 0; font-size: .95rem; line-height: 1.35; }
.source-title a { color: var(--text); }
.source-title a:hover { color: var(--accent); }
.source-summary { margin: 0; font-size: .88rem; color: var(--text-dim); line-height: 1.5; }
.source-foot { font-size: .72rem; color: var(--text-faint); margin-top: auto; }
.op-brands-head { margin: 14px 0 6px; }
.op-brands { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.op-brands li { border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 10px; font-size: .78rem; color: var(--text-dim); background: var(--bg-3); }
.op-notes { color: var(--text-dim); font-size: .9rem; max-width: 80ch; }
.src-links { list-style: none; padding: 0; margin: 10px 0 0; font-size: .76rem; display: flex; flex-direction: column; gap: 4px; }
.src-links a { color: var(--cyan); }
.ai-summary .ai-summary-body { background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--cyan) 25%, var(--line)); border-radius: 10px; padding: 16px 20px; }
.ai-summary-body p { color: var(--text); font-size: .94rem; }
.ai-summary-body ul { margin: 8px 0; }
.src-full { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; }
.src-full li { font-size: .84rem; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.src-full a { color: var(--cyan); word-break: break-all; }
.src-idx { color: var(--accent); margin-right: 6px; }
.review-hero { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.review-hero img { display: block; width: 100%; height: auto; }
.review-hero figcaption { font-family: var(--mono); font-size: .7rem; color: var(--text-faint); padding: 6px 12px; background: var(--bg-2); }
figure.shot { margin: 14px 0 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot figcaption { font-family: var(--mono); font-size: .7rem; color: var(--text-faint); padding: 6px 12px; background: var(--bg-2); }
.infographic { margin: 18px 0; text-align: center; }
.infographic img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.infographic figcaption { font-family: var(--mono); font-size: .72rem; color: var(--text-faint); margin-top: 6px; }
@media (max-width: 900px) { .source-grid { grid-template-columns: 1fr; } }

/* --- tools 2.0 ----------------------------------------------------------- */
.tool-group { margin: 34px 0 4px; font-size: 1.15rem; }
.tool-group-sub { margin: 0 0 12px; font-size: .87rem; }
.tool-expl { margin-top: 26px; }
.field-error { border: 1px solid var(--red); border-radius: 10px; padding: 12px 14px; }
.field-error p { margin: 0 0 6px; color: var(--red); }
.field-error ul { margin: 0; padding-left: 18px; color: var(--red); font-size: .86rem; }
.check-list { padding-left: 18px; }
.check-list li { margin: 6px 0; }
.tool-result .badge.warn { margin-left: 6px; }
.tool-form textarea { resize: vertical; }

/* finder v2 requirement badges + payment help + compare */
.req-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.req { display: inline-block; font-size: .72rem; font-family: var(--mono); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
.req-ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 60%, transparent); }
.req-bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 60%, transparent); }
.req-warn { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.req-unk { color: var(--text-dim); }
.pay-app .choice-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pay-h { margin: 18px 0 6px; font-size: 1rem; }
.pay-warn { margin: 16px 0; }
.cmp-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.cmp-pick { display: flex; gap: 8px; align-items: baseline; font-size: .9rem; padding: 4px 6px; border-radius: 6px; }
.cmp-pick:hover { background: var(--bg-3); }
.cmp-table th[scope="row"] { text-align: left; white-space: normal; }
.cmp-table td { min-width: 130px; }

/* journal + rtp checker */
.jrnl-stats { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0; }
.jrnl-stats > div { display: flex; flex-direction: column; }
.jrnl-stats strong { font-size: 1.05rem; }
.jrnl-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.jrnl-table th, .jrnl-table td { padding: 4px 6px; border-bottom: 1px dashed var(--line); text-align: left; }
.jrnl-table th { color: var(--text-dim); font-weight: 400; }
.tool-form textarea { width: 100%; }

/* provider check */
.cc-hit { text-align: left; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cc-hit:hover { border-color: var(--cyan); }
#ccResult .facts th { width: 34%; }

/* --- conversion: visible trust + always one CTA in reach ----------------- */
.card-verified { color: var(--text-faint); }
.vchip { font-weight: 400; }
.toc-visit { display: block; margin: 2px 0 6px; color: var(--accent); font-weight: 700; text-transform: none; letter-spacing: 0; }
.toc-visit:hover { text-decoration: underline; }
.review-cta { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--bg-2); }
.review-cta p { margin: 6px 0; }
.guide-cta { margin: 20px 0 8px; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--bg-2); }
.guide-cta p { margin: 6px 0; }
@media (max-width: 900px) {
  /* mobile: the verdict CTAs stay reachable while reading the long review */
  .verdict-ctas { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 10px 6px 12px; border-top: 1px solid var(--border); z-index: 40; margin-left: -6px; margin-right: -6px; }
}

/* --- a11y: keyboard users skip ~20 header/nav tab stops ------------------ */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--bg-3); color: var(--text); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; border: 1px solid var(--line-2); }
.skip-link:focus { left: 0; }
th.sortable .sort-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-align: inherit; display: inline; text-decoration: none; }
th.sortable .sort-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1px solid; }
.svc::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: currentColor; box-shadow: 0 0 6px currentColor; }
.svc.yes { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 7%, transparent); }
.svc.partial { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 7%, transparent); }
.svc.no { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 7%, transparent); }
.star-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- affiliate program hub + review box --------------------------------- */
.aff-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 16px; margin: 16px 0; }
.aff-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; margin-bottom: 6px; }
.aff-head h3 { margin: 0; }
.aff-rank { color: var(--accent); font-weight: 700; font-family: var(--mono); }
.aff-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.aff-facts th { width: 150px; }
.aff-notes { margin: 8px 0 0; }
.aff-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
.aff-box .badge { margin: 0 6px 6px 0; }

/* Homepage category selection (startpage is a category chooser, providers are
   only ever ranked inside one category). */
.cat-group { margin-top: 20px; }
.cat-group-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 8px; }
.cat-card-lg { flex-direction: column; align-items: flex-start; gap: 6px; }
.cat-card-lg .cat-num { font-size: 1.15rem; color: var(--accent); }
.cat-card-lg .cat-label { font-size: 1.02rem; }
.cat-top { font-size: 11px; color: var(--accent); }
.cat-blurb { font-size: 12px; line-height: 1.4; color: var(--text-dim); }
