/* Theme bridge — keep existing component classes (.casino-card, .callout, .btn, .faq, etc.)
   working under the new VictorBet-derived Material-Design-3 color palette and typography.
   This file is loaded alongside the Tailwind CDN: Tailwind utilities power the new chrome
   (header / sidebar / footer); existing component classes continue to render content.    */

:root {
  /* Surfaces & background */
  --bg: #0c141a;
  --surface: #151d22;
  --surface-2: #192127;
  --surface-3: #232b31;
  --surface-bright: #323a41;
  --surface-variant: #2e363c;
  --border: #2e363c;

  /* Text */
  --text: #dbe3ec;
  --text-muted: #c0c7d5;
  --text-dim: #8a919f;

  /* Brand / semantic */
  --brand: #a3c9ff;
  --brand-hot: #1493ff;
  --accent: #56de97;
  --success: #56de97;
  --warning: #ffb4aa;
  --error: #ffb4aa;
  --link: #a3c9ff;

  /* Geometry */
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --shadow: 0 8px 30px rgba(0,0,0,.45);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --container: 1200px;
  --gutter: clamp(16px, 3vw, 32px);

  /* Type stack — matches Tailwind config */
  --font-jp: "Hanken Grotesk", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Hanken Grotesk", "Noto Sans JP", sans-serif;
  --font-en: "Inter", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; font-size: 18px; overflow-x: hidden }
body { font-size: 18px; overflow-x: hidden; max-width: 100vw }
h1, h2, h3, h4, p { overflow-wrap: anywhere; word-break: break-word }
img { max-width: 100%; height: auto; display: block }

/* The body classes from Tailwind handle font / colour. Just provide the headline stack. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.4;
  margin: 0 0 .8em;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(26px, 6.8vw, 80px); font-weight: 700; margin-top: 1.2em }
h2 { font-size: 40px; font-weight: 700; margin-top: 2.2em; letter-spacing: -0.02em; line-height: 1.2 }
h3 { font-size: 30px; font-weight: 700; margin-top: 2em; line-height: 1.25 }
h4 { font-size: 24px; font-weight: 700; margin-top: 1.8em; line-height: 1.3 }
p { margin: 0 0 1.8em; line-height: 2 }
hr { border: 0; border-top: 1px solid var(--surface-variant); margin: 3em 0 }
ul, ol { padding-left: 1.25em; line-height: 2; margin: 0 0 1.8em }
li { margin-bottom: .6em }
li + li { margin-top: .6em }
small { color: var(--text-muted) }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: .92em }
blockquote { color: var(--text-muted) }
a { color: var(--link); text-decoration: none }
a:hover { text-decoration: underline }

/* Eyebrow / section labels */
.eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: .6em;
  font-family: var(--font-en);
}

/* Hero (used on homepage / WC page) */
.hero {
  position: relative; padding: 56px 32px 40px;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(163,201,255,.18), transparent 60%),
    radial-gradient(50% 70% at 10% 100%, rgba(86,222,151,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg) 60%, var(--surface));
  border-radius: var(--radius);
}
.hero > .container {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 72px; align-items: start;
}
.hero__main { min-width: 0 }
@media (max-width: 920px) {
  .hero > .container { display: block }
}

/* Featured operator card — anime-styled #1 pick callout */
.featured-op {
  position: relative;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 182, 193, .12), transparent 60%),
    radial-gradient(80% 50% at 90% 100%, rgba(163, 201, 255, .14), transparent 65%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(163, 201, 255, .3);
  border-radius: 22px; overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(163, 201, 255, .08),
    0 0 70px rgba(163, 201, 255, .12);
  font-family: var(--font-display);
  margin: calc(12px + 3mm) 0 0 auto;
  margin-left: -6mm;
  max-width: 360px;
}
/* Sakura/sparkle decorations */
.featured-op::before, .featured-op::after {
  content: "🌸"; position: absolute; font-size: 28px;
  pointer-events: none; opacity: .55;
  filter: drop-shadow(0 2px 6px rgba(255, 182, 193, .4));
}
.featured-op::before { top: 64px; right: 14px; transform: rotate(18deg) }
.featured-op::after { bottom: 80px; left: 12px; transform: rotate(-22deg); font-size: 22px; opacity: .4 }

.featured-op__banner {
  position: relative;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent),
    linear-gradient(90deg, #c5d8ff, var(--brand), #c5d8ff);
  color: #00315d; text-align: center;
  font-weight: 900; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 13px 14px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}
.featured-op__banner::before { content: "✨ "; font-size: 15px }
.featured-op__banner::after { content: " ✨"; font-size: 15px }

.featured-op__body { padding: 26px 26px 30px; position: relative; z-index: 1 }
.featured-op__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px }
.featured-op__logo {
  flex: 0 0 100px; width: 100px; height: 100px;
  background: #fff; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, .35),
    0 0 0 3px rgba(163, 201, 255, .15);
}
.featured-op__logo img { max-width: 100%; max-height: 100%; object-fit: contain }
.featured-op__monogram {
  font-family: var(--font-display); font-weight: 800;
  font-size: 26px; color: var(--brand);
}
.featured-op__id { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.featured-op__name {
  font-size: 28px; font-weight: 900; color: var(--text);
  letter-spacing: -.01em; line-height: 1.05;
  text-shadow: 0 2px 12px rgba(163, 201, 255, .15);
}
.featured-op__tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; color: var(--brand);
  letter-spacing: .14em; text-transform: uppercase;
}
.featured-op__tag::before { content: "★" }
.featured-op__tag::after { content: "★" }

.featured-op__bonus {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 900; color: var(--brand);
  line-height: 1.05; margin: 14px 0 8px; letter-spacing: -.02em;
  text-shadow:
    0 0 30px rgba(163, 201, 255, .35),
    0 4px 0 rgba(0, 0, 0, .15);
}
.featured-op__detail {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.5; margin-bottom: 22px;
}
.featured-op__detail::before { content: "🎌 "; opacity: .8 }

.featured-op__cta {
  display: block; width: 100%;
  background: linear-gradient(135deg, #d3e3ff 0%, var(--brand) 50%, #8ab6ff 100%);
  color: #00224a;
  padding: 19px 16px; font-size: 16px; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 14px; text-align: center;
  text-decoration: none;
  box-shadow:
    0 8px 28px rgba(163, 201, 255, .35),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  position: relative; overflow: hidden;
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.featured-op__cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .6s;
}
.featured-op__cta:hover {
  filter: brightness(1.06); text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(163, 201, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.featured-op__cta:hover::before { transform: translateX(100%) }

.featured-op__fineprint {
  margin-top: 14px; text-align: center;
  font-size: 11px; color: var(--text-dim);
  letter-spacing: .04em;
}

@media (max-width: 920px) {
  .featured-op { margin-left: 0 }
  .featured-op__bonus { font-size: 30px }
  .featured-op__name { font-size: 24px }
  .featured-op__logo { flex: 0 0 88px; width: 88px; height: 88px }
}
.hero__title { font-size: clamp(28px, 5vw, 44px); margin: 0 0 .4em }
.hero__sub { font-size: clamp(15px, 2vw, 17px); color: var(--text-muted); max-width: 640px; margin: 0 0 24px }
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: #00315d; font-weight: 700;
  padding: 12px 22px; border-radius: var(--radius); text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.hero__cta:hover { background: #d3e3ff; text-decoration: none }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--text-muted) }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px }
.hero__meta .ok { color: var(--accent) }

/* Casino cards */
.casino-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 20px 0 }
.casino-card {
  background: var(--surface-3);
  border: 1px solid var(--surface-variant); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, border-color .2s;
}
.casino-card:hover { transform: translateY(-2px); border-color: var(--brand) }
.casino-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.casino-card__logo {
  width: 88px; height: 44px; border-radius: var(--radius-sm); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #fff; font-weight: 800; color: var(--brand); font-size: 14px;
}
.casino-card__logo svg { display: block; width: 100%; height: 100% }
.casino-card__logo img { max-width: 80px; max-height: 36px; width: auto; height: auto; object-fit: contain }
.rank { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--brand); line-height: 1 }
.casino-card__name { font-size: 17px; font-weight: 700; margin: 0 }
.stars { color: var(--warning); letter-spacing: 1px }
.score { display: inline-block; background: var(--surface-bright); color: var(--brand); font-weight: 800; border-radius: 6px; padding: 2px 8px; font-size: 13px; font-family: var(--font-mono) }
.bonus-row { font-size: 14px; color: var(--text); line-height: 1.4 }
.bonus-amount { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--brand) }
.casino-card__features { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--text-muted) }
.casino-card__features span { background: var(--surface-bright); padding: 3px 8px; border-radius: 999px }

/* Buttons (kept for compatibility) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #00315d; font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
  border: 0; cursor: pointer; font-size: 14px; transition: .15s filter;
  font-family: var(--font-en);
}
.btn:hover { filter: brightness(1.08); text-decoration: none }
.btn--ghost { background: transparent; border: 1px solid var(--surface-variant); color: var(--text) }
.btn--block { width: 100%; padding: 12px 16px }
.btn--gold { background: var(--brand); color: #00315d }

/* Affiliate block — wraps the H2 + comparison table that now sits below the hero */
.aff-block { padding: 32px 0 16px }
.aff-block > .container > h2:first-child { margin-top: 0 }

/* Affiliate comparison table (replaces the old card grid on money pages) */
.casino-list { margin: 16px 0; overflow-x: auto }
.aff-table {
  width: 100%; border-collapse: separate; border-spacing: 0 1px;
  background: var(--surface-2); border-radius: var(--radius); overflow: hidden;
  font-size: 14px;
}
.aff-table thead th {
  background: transparent; color: var(--text-muted);
  font-family: var(--font-en); font-weight: 600; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--surface-variant);
  white-space: nowrap;
}
.aff-table tbody tr.aff-row {
  background: var(--surface); transition: background .15s;
}
.aff-table tbody tr.aff-row:hover { background: var(--surface-3) }
.aff-table tbody td {
  padding: 14px 12px; border-top: 1px solid var(--surface-variant);
  vertical-align: middle;
}
.aff-table tbody tr:first-child td { border-top: 0 }

.aff-rank {
  font-family: var(--font-mono); color: var(--text-muted); width: 32px;
  text-align: center; font-size: 13px;
}
.aff-brand { display: flex; align-items: center; gap: 16px; min-width: 280px }
.aff-logo {
  flex: 0 0 128px; width: 128px; height: 80px;
  background: #fff; border-radius: var(--radius-sm); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.aff-logo svg { display: block; width: 100%; height: 100% }
.aff-logo img { max-width: 116px; max-height: 64px; width: auto; height: auto; object-fit: contain }
.aff-logo:has(img[src*="bc-game"]),
.aff-logo:has(img[src*="ggbet"]),
.aff-logo:has(img[src*="bons"]),
.aff-logo:has(img[src*="rainbet"]),
.aff-logo:has(img[src*="stealthbet"]) { background: #0B0F1A }
.aff-name { font-weight: 600; color: var(--text); font-size: 15px }
.aff-bonus {
  color: var(--brand); line-height: 1.4; min-width: 240px;
  font-weight: 700; font-size: 16px;
  background: rgba(163, 201, 255, .08);
  border-left: 3px solid var(--brand);
  padding: 10px 14px; border-radius: var(--radius-sm);
}
.aff-payment { color: var(--text-muted); white-space: nowrap }
.aff-license { color: var(--text-muted); white-space: nowrap }

.aff-score { width: 64px; text-align: center }
.aff-score-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: 4px 10px; border-radius: 999px;
  background: rgba(163, 201, 255, 0.12);
  border: 1px solid rgba(163, 201, 255, 0.3);
  color: var(--brand); font-family: var(--font-mono); font-weight: 600; font-size: 13px;
}

.aff-cta { width: 110px; text-align: right }
.aff-visit {
  display: inline-block; background: var(--brand); color: #00315d;
  font-family: var(--font-en); font-weight: 700; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 18px; border-radius: var(--radius);
  text-decoration: none; transition: filter .15s;
}
.aff-visit:hover { filter: brightness(1.08); text-decoration: none }

/* Responsive: at < 920px, render each operator as a centred card (Spinjo reference) */
@media (max-width: 920px) {
  .aff-table { --card-accent: #c0392b }
  .aff-table thead { display: none }
  .aff-table, .aff-table tbody, .aff-table tr, .aff-table td { display: block; width: 100% }
  .aff-table tbody tr.aff-row {
    background: #000;
    border-radius: 22px; border: 0;
    margin: 0 0 22px; padding: 32px 22px 28px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
  }
  .aff-table tbody tr.aff-row td { border-top: 0; padding: 0; width: auto }

  /* Rank — large red number on top */
  .aff-table tbody tr.aff-row .aff-rank {
    font-family: var(--font-display); font-size: 40px; font-weight: 900;
    color: var(--card-accent); line-height: 1; margin: 0;
  }

  /* Brand block: logo (centred) + name beneath */
  .aff-table tbody tr.aff-row .aff-brand {
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    min-width: 0;
  }
  .aff-table tbody tr.aff-row .aff-logo {
    width: 160px; height: 160px; flex: 0 0 auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
  }
  .aff-table tbody tr.aff-row .aff-logo img { max-width: 130px; max-height: 110px }
  .aff-table tbody tr.aff-row .aff-name {
    font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.01em;
  }

  /* Payment shown as a small muted sub-line under the name */
  .aff-table tbody tr.aff-row .aff-payment {
    font-size: 14px; color: rgba(255,255,255,.55);
    background: transparent; padding: 0; border: 0; min-width: 0;
    margin-top: -6px;
  }
  .aff-table tbody tr.aff-row .aff-payment::before { content: "" }

  /* Bonus — prominent red headline */
  .aff-table tbody tr.aff-row .aff-bonus {
    font-size: 22px; font-weight: 800; color: var(--card-accent);
    line-height: 1.25; padding: 0; background: transparent; border: 0;
    min-width: 0; margin: 6px 0 0;
  }

  /* Score becomes a single red star */
  .aff-table tbody tr.aff-row .aff-score { width: 100% }
  .aff-table tbody tr.aff-row .aff-score-pill {
    background: transparent; color: var(--card-accent);
    font-size: 0; padding: 0; min-width: 0;
  }
  .aff-table tbody tr.aff-row .aff-score-pill::before {
    content: "★"; color: var(--card-accent); font-size: 18px;
  }

  /* Licence hidden in card view — keep it accessible to screenreaders */
  .aff-table tbody tr.aff-row .aff-license {
    position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
  }

  /* CTA — full-width red claim-bonus button */
  .aff-table tbody tr.aff-row .aff-cta { width: 100%; margin-top: 6px }
  .aff-table tbody tr.aff-row .aff-visit {
    display: block; width: 100%;
    background: var(--card-accent); color: #fff;
    padding: 18px 12px; font-size: 16px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
    border-radius: 10px; text-align: center;
    box-shadow: 0 4px 16px rgba(192, 57, 43, .35);
  }
  .aff-table tbody tr.aff-row .aff-visit::after { content: " →" }
  .aff-table tbody tr.aff-row .aff-visit:hover { filter: brightness(1.1); text-decoration: none }
}

/* Legacy card layout retained for backward compatibility (no longer used by the sync) */
/* Comparison table */
.cmp-table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
.cmp-table th, .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--surface-variant); text-align: left; vertical-align: middle }
.cmp-table th { background: var(--surface-2); color: var(--text-muted); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-en) }
.cmp-table tr:last-child td { border-bottom: 0 }
.cmp-table .right { text-align: right }

/* Callouts */
.callout {
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-left: 4px solid var(--brand); border-radius: var(--radius-sm);
  padding: 14px 18px; margin: 16px 0;
}
.callout--warn { border-left-color: var(--warning) }
.callout--ok { border-left-color: var(--accent) }
.callout h4 { margin-top: 0 }

/* Preliminary notice */
.preliminary {
  background: var(--surface); border: 1px dashed var(--surface-variant);
  border-radius: var(--radius-sm); padding: 10px 14px; margin: 12px 0 16px;
  font-size: 12px; color: var(--text-muted);
}
.preliminary strong { color: var(--warning) }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1 }
.faq details[open] summary::after { content: "–" }
.faq details[open] summary { margin-bottom: 10px }

/* Breadcrumb */
.crumbs { font-size: 12px; color: var(--text-muted); padding: 12px 0; font-family: var(--font-en) }
.crumbs a { color: var(--text-muted) }
.crumbs a:hover { color: var(--brand) }
.crumbs span + span::before { content: "›"; margin: 0 8px; color: var(--text-dim) }

/* Methodology / E-E-A-T panel */
.method {
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: var(--radius); padding: 18px; margin: 20px 0;
}
.method__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px }
.method__pill {
  background: var(--accent); color: #003920; font-weight: 800;
  font-size: 10px; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em;
}

/* Byline */
.byline {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 16px 0; font-size: 13px; color: var(--text-muted);
}
.byline__avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3);
  display: grid; place-items: center; color: var(--brand); font-weight: 800;
  overflow: hidden; flex: 0 0 auto;
}
.byline__avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block;
}
.byline a { color: var(--text) }
.byline__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-dim) }

/* Responsible-gambling badges */
.rg-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.rg-badge {
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: 6px; padding: 5px 9px; font-size: 11px; color: var(--text-muted);
  letter-spacing: .04em; font-family: var(--font-en);
}

/* Author disclosure paragraph */
.disclosure { max-width: 780px; font-size: 12px; color: var(--text-dim); line-height: 1.6 }

/* Utility */
.muted { color: var(--text-muted) }
.text-center { text-align: center }
.mt-0 { margin-top: 0 }
.mt-1 { margin-top: 1em }
.mt-2 { margin-top: 2em }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px }
.tag { display: inline-block; background: var(--surface-2); color: var(--text-muted); border-radius: 999px; padding: 4px 10px; font-size: 12px }

/* Cookie banner — moved from site.css */
.cc-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  background: var(--surface); border: 1px solid var(--surface-variant);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  display: none; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px;
}
.cc-banner[data-open="true"] { display: flex }
.cc-banner p { margin: 0; flex: 1 1 280px; color: var(--text-muted) }
.cc-banner__actions { display: flex; gap: 8px; flex-wrap: wrap }
.cc-banner button {
  background: var(--surface-3); color: var(--text); border: 1px solid var(--surface-variant);
  border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
.cc-banner button.cc-accept { background: var(--brand); color: #00315d; border-color: var(--brand) }
.cc-banner button:hover { filter: brightness(1.1) }

/* Focus */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px }
.skip-link { position: absolute; left: -9999px; top: 0 }
.skip-link:focus { left: 8px; top: 8px; background: var(--brand); color: #00315d; padding: 8px 12px; border-radius: 6px; z-index: 100 }

/* ===== Mobile nested nav — full-width overlay ===== */
#mobile-nav {
  position: fixed !important;
  top: 64px; left: 0; right: 0; bottom: 0;
  width: 100vw !important; max-width: 100vw !important;
  background: var(--surface);
  border-top: 1px solid var(--surface-variant);
  padding: 8px 0 24px !important;
  overflow-y: auto;
  z-index: 60;
  box-sizing: border-box;
  text-align: left !important;
}
#mobile-nav.hidden { display: none !important }
#mobile-nav[data-open="true"] { display: block !important }
#mobile-nav > * { width: 100%; box-sizing: border-box }

#mobile-nav .mnav__link,
#mobile-nav .mnav__group > summary,
#mobile-nav .mnav__sub {
  display: block !important;
  width: 100%;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
  border-bottom: 1px solid var(--surface-variant);
  text-align: left;
  box-sizing: border-box;
}
#mobile-nav .mnav__link { padding: 16px 18px }
#mobile-nav .mnav__group {
  border-bottom: 1px solid var(--surface-variant);
  width: 100%;
}
#mobile-nav .mnav__group:last-of-type { border-bottom: 0 }
#mobile-nav .mnav__group > summary {
  padding: 16px 18px;
  cursor: pointer; list-style: none;
  border-bottom: 0;
  position: relative;
  user-select: none;
}
#mobile-nav .mnav__group > summary::-webkit-details-marker { display: none }
#mobile-nav .mnav__group > summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px; line-height: 1; color: var(--brand); font-weight: 400;
}
#mobile-nav .mnav__group[open] > summary::after { content: "−" }
#mobile-nav .mnav__group[open] > summary { color: var(--brand) }
#mobile-nav .mnav__sub {
  padding: 12px 18px 12px 34px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .03);
}
#mobile-nav .mnav__sub:active,
#mobile-nav .mnav__link:active,
#mobile-nav .mnav__group > summary:active { color: var(--brand) }
#mobile-nav .mnav__sub:last-child { border-bottom: 0 }
#mobile-nav .mnav__link--lang {
  margin-top: 12px;
  color: var(--brand);
  border-top: 1px solid var(--surface-variant);
  border-bottom: 0;
  text-align: center !important;
}

/* Lock body scroll when menu is open */
body:has(#mobile-nav[data-open="true"]) { overflow: hidden }

/* ============================================================
   Tailwind-fallback chrome — kicks in if the Tailwind CDN fails
   to load. Re-creates the header / sidebar / main layout using
   only base CSS so the page never falls back to vertical default.
   ============================================================ */

/* Base body / layout reset */
body { background: #0c141a; color: #dbe3ec; font-family: "Inter","Hanken Grotesk","Noto Sans JP",sans-serif; margin: 0 }
a { color: inherit; text-decoration: none }
button { background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer }

/* Header — sticky top bar */
body > header {
  display: flex; flex-direction: column; justify-content: center;
  position: sticky; top: 0; z-index: 50;
  width: 100%; height: 64px;
  padding: 0 24px;
  background: #192127;
  border-bottom: 1px solid #2e363c;
}
body > header > div:first-child {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 12px;
}
body > header > div:first-child > div { display: flex; align-items: center; gap: 16px }
body > header > div:first-child > div:first-child > a {
  color: #a3c9ff; font-weight: 700; font-size: 28px; letter-spacing: -.02em;
  white-space: nowrap;
}
body > header nav[aria-label="primary"] { display: flex; align-items: center; gap: 16px }
body > header nav[aria-label="primary"] a {
  color: #c0c7d5; font-size: 14px; font-weight: 600; padding: 4px;
}
body > header nav[aria-label="primary"] a:hover { color: #dbe3ec }
body > header a[lang] {
  display: inline-block; color: #a3c9ff; font-size: 14px; font-weight: 600;
  padding: 6px 12px; border: 1px solid #a3c9ff; border-radius: 4px;
}
body > header button#mobile-nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid #2e363c; border-radius: 8px;
  color: #c0c7d5;
}

/* Outer flex row holding sidebar + main */
body > div.flex { display: flex; flex: 1; min-height: calc(100vh - 64px) }

/* Sidebar — visible on lg+ only */
nav[aria-label="sidebar"] {
  display: none;
  position: fixed; left: 0; top: 64px;
  width: 256px; height: calc(100vh - 64px);
  overflow-y: auto;
  background: #151d22;
  border-right: 1px solid #2e363c;
  z-index: 40;
  flex-direction: column;
}
nav[aria-label="sidebar"] > div { padding: 16px; border-bottom: 1px solid #2e363c }
nav[aria-label="sidebar"] > div:first-child > div:first-child {
  color: #a3c9ff; font-weight: 700; font-size: 18px; margin-bottom: 4px;
}
nav[aria-label="sidebar"] > div:first-child > div:nth-child(2) {
  color: #c0c7d5; font-size: 12px; margin-bottom: 12px;
}
nav[aria-label="sidebar"] > div:first-child > a {
  display: block; width: 100%; text-align: center;
  background: #56de97; color: #003920; font-weight: 600;
  padding: 8px; border-radius: 4px; font-size: 14px;
}
nav[aria-label="sidebar"] > div:nth-child(2),
nav[aria-label="sidebar"] > div:nth-child(3) { padding: 8px 0 }
nav[aria-label="sidebar"] a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  color: #c0c7d5;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border-left: 4px solid transparent;
}
nav[aria-label="sidebar"] a:hover { background: #2e363c; color: #dbe3ec }
nav[aria-label="sidebar"] a[aria-current="page"] {
  background: #1493ff; color: #002a51; font-weight: 700;
  border-left-color: #a3c9ff;
}
nav[aria-label="sidebar"] .material-symbols-outlined {
  font-family: "Material Symbols Outlined"; font-size: 20px; flex: 0 0 auto;
}

/* Main */
main#main {
  flex: 1; min-width: 0;
  background: #0c141a;
}
main#main > div {
  max-width: 1280px; width: 100%;
  margin: 0 auto;
  padding: 24px;
}

/* Footer */
body > footer {
  width: 100%; padding: 32px 24px;
  margin-top: 32px;
  background: #070f15;
  border-top: 1px solid #2e363c;
  color: #c0c7d5; font-size: 12px;
}
body > footer > div { max-width: 1280px; margin: 0 auto }

/* Activate sidebar on desktop only */
@media (min-width: 1024px) {
  nav[aria-label="sidebar"] { display: flex }
  main#main { margin-left: 256px }
}

/* Hide desktop nav + show hamburger on smaller screens */
@media (max-width: 767px) {
  body > header nav[aria-label="primary"] { display: none }
  body > header button#mobile-nav-toggle { display: inline-flex }
}

/* Hide JP/EN switcher on smallest screens */
@media (max-width: 639px) {
  body > header a[lang] { display: none }
}

/* Mobile nav default state */
#mobile-nav { display: none }
#mobile-nav[data-open="true"] { display: block }

/* Material Symbols default styling so iconography doesn't break */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 400; font-style: normal;
  display: inline-block; line-height: 1;
  font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important }
}

/* ===== Mobile polish ===== */
@media (max-width: 920px) {
  /* Tighter body spacing on phones */
  body { font-size: 17px }
  p { margin: 0 0 1.2em; line-height: 1.85 }
  ul, ol { line-height: 1.85; margin: 0 0 1.2em }
  hr { margin: 2em 0 }

  /* Hero compacts on small screens */
  .hero { padding: 32px 0 24px }
  .hero__title { font-size: clamp(28px, 7vw, 44px) }
  .hero__sub { font-size: 15px }
  .hero__meta { gap: 8px; font-size: 12px }
  .hero__cta { padding: 10px 18px; font-size: 14px }

  /* (Affiliate card mobile layout lives in the .aff-row block above, lines ~213+) */

  /* Comparison tables get horizontal scroll instead of overflow */
  .cmp-table { display: block; overflow-x: auto; white-space: nowrap; font-size: 13px }
  .cmp-table th, .cmp-table td { padding: 10px 12px }

  /* Containers tighter on phones */
  .container { padding-left: 16px; padding-right: 16px }
  section.section { padding: 24px 0 }

  /* Byline strip wraps cleaner */
  .byline { gap: 10px; padding: 10px 12px; margin: 12px 0 18px }
  .byline__avatar { width: 26px; height: 26px; font-size: 11px }
  .byline__meta { gap: 4px 10px; font-size: 11px }

  /* Eyebrow and crumbs smaller */
  .eyebrow { font-size: 10px }
  .crumbs { font-size: 11px }

  /* Tag pills, FAQ summary etc. */
  .faq summary { padding: 12px 0 }
  .tag { font-size: 11px; padding: 3px 8px }
}

/* Extra-narrow phones */
@media (max-width: 420px) {
  body { font-size: 16px }
  .hero { padding: 24px 0 16px }
  .container { padding-left: 12px; padding-right: 12px }
}
