/* ==========================================================================
   BetSiteRadar — main stylesheet
   "Private ledger" design system: warm graphite surfaces, champagne-gold
   accents, serif editorial display type. Independent bookmaker/casino
   reviewer. Intentionally unlike any operator's brand skin.
   ========================================================================== */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  /* surfaces — warm near-black, not blue-black */
  --bg:            #141109;
  --bg-2:          #191509;
  --panel:         #1e1a10;
  --panel-2:       #241f12;
  --line:          #3d341d;
  --line-soft:     #2b2514;

  /* ink — ivory, not white */
  --ink:           #efe7d4;
  --ink-2:         #c2b699;
  --ink-3:         #8f8467;

  /* brand accent — champagne gold; --cyan token kept for compat, now a pale brass */
  --acc:           #d9b25f;
  --acc-press:     #c69f47;
  --acc-ink:       #191204;
  --cyan:          #e8cd94;

  /* rating scale — desaturated, warm-tuned */
  --grade-a:       #8fca8a;   /* excellent */
  --grade-b:       #c3c26c;   /* good      */
  --grade-c:       #e0b45c;   /* average   */
  --grade-d:       #dd9457;   /* weak      */
  --grade-e:       #e2766d;   /* poor      */
  --warn:          #e2766d;
  --good:          #8fca8a;

  /* type — system stacks only, no third-party font requests */
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* geometry — sharper corners, hairline borders read premium */
  --radius:        10px;
  --radius-sm:     6px;
  --shadow:        0 14px 34px -18px rgba(0,0,0,.65);
  --shadow-lg:     0 30px 70px -28px rgba(0,0,0,.8);
  --maxw:          1140px;
  --gutter:        clamp(16px, 4vw, 32px);
}

/* ----- Reset-ish -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(217,178,95,.05), transparent 420px),
    radial-gradient(1100px 480px at 50% -220px, rgba(217,178,95,.08), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .1px;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); margin: 2.2em 0 .6em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 1.6em 0 .5em; }
p  { margin: 0 0 1.05em; }

::selection { background: rgba(217,178,95,.28); }

/* ----- Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; }
section { scroll-margin-top: 90px; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--acc); color: var(--acc-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

/* ----- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18,15,8,.88);
  backdrop-filter: saturate(130%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(217,178,95,.08);
}
.site-header .bar {
  display: flex; align-items: center; gap: 20px;
  min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.34rem;
  letter-spacing: .2px; color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--acc); }
.brand svg { width: 28px; height: 28px; flex: none; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 13px; border-radius: 6px;
  color: var(--ink-2); font-weight: 600; font-size: .93rem; letter-spacing: .2px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--acc); background: rgba(217,178,95,.07); text-decoration: none; }

.nav-toggle {
  margin-left: auto; display: none; width: 44px; height: 44px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 66px 0 auto 0; margin: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .25s ease;
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; }
  .nav a { padding: 13px 8px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
}

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; letter-spacing: .5px;
  padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; font-size: .98rem; line-height: 1;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #e6c176, var(--acc) 55%, var(--acc-press));
  color: var(--acc-ink);
  box-shadow: inset 0 1px 0 rgba(255,244,214,.5), 0 6px 18px -8px rgba(217,178,95,.55);
}
.btn-primary:hover { background: linear-gradient(180deg, #efcd85, #dcb765 55%, var(--acc-press)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn-sm { padding: 9px 15px; font-size: .88rem; }

/* ----- Chips / badges --------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 3px; background: var(--panel-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.chip.acc { background: rgba(217,178,95,.1); color: var(--acc); border-color: rgba(217,178,95,.4); }
.chip.cyan { background: rgba(232,205,148,.08); color: var(--cyan); border-color: rgba(232,205,148,.3); }
.eyebrow {
  font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 3px;
  font-size: .74rem; font-weight: 700; color: var(--acc);
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--acc); vertical-align: middle; margin-right: 10px; opacity: .7; }

/* ----- Score badge ------------------------------------------------------ */
.score {
  --s: var(--grade-b);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 74px; height: 74px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,244,214,.08), transparent 55%),
    var(--panel-2);
  border: 1px solid var(--s);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--s) 14%, transparent), var(--shadow);
  font-family: var(--font-display); flex: none;
}
@supports not (color: color-mix(in srgb, red 10%, blue)) {
  .score { box-shadow: var(--shadow); }
}
.score b { font-size: 1.75rem; line-height: 1; color: var(--s); font-weight: 700; }
.score span { font-family: var(--font-sans); font-size: .58rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.score.lg { width: 112px; height: 112px; }
.score.lg b { font-size: 2.75rem; }

/* grade helper classes */
.g-a { --s: var(--grade-a); } .g-b { --s: var(--grade-b); }
.g-c { --s: var(--grade-c); } .g-d { --s: var(--grade-d); } .g-e { --s: var(--warn); }

/* ----- Panels / cards --------------------------------------------------- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-top-color: var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow);
}
a.panel { transition: border-color .15s ease, transform .12s ease; }
a.panel:hover { border-color: rgba(217,178,95,.45); transform: translateY(-2px); }
.verdict {
  border-left: 3px solid var(--acc);
  background: linear-gradient(135deg, rgba(217,178,95,.08), rgba(217,178,95,.02) 60%);
}
.callout {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 16px 18px; background: var(--panel);
}
.callout.warn { border-color: rgba(226,118,109,.4); background: rgba(226,118,109,.06); }
.callout.good { border-color: rgba(143,202,138,.35); background: rgba(143,202,138,.05); }

/* ----- Hero ------------------------------------------------------------- */
.hero { padding: clamp(42px, 7vw, 84px) 0 clamp(24px, 4vw, 40px); }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: clamp(1.05rem, 2.3vw, 1.26rem); color: var(--ink-2); max-width: 62ch; line-height: 1.75; }
.hero .meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; color: var(--ink-3); font-size: .9rem; }
.review-logo { width: 168px; height: auto; aspect-ratio: 240 / 84; border-radius: 10px; margin: 0 0 18px; border: 1px solid var(--line-soft); }

/* ----- Ranking list (homepage) ------------------------------------------ */
.rank-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px; align-items: center;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  position: relative;
}
.rank-card + .rank-card { margin-top: 14px; }
.rank-card.top {
  border-color: rgba(217,178,95,.55);
  background:
    linear-gradient(120deg, rgba(217,178,95,.1), transparent 45%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 0 1px rgba(217,178,95,.2), var(--shadow-lg);
}
.rank-lead { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rank-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-3);
}
.brand-logo { width: 104px; height: auto; aspect-ratio: 240 / 84; border-radius: 8px; border: 1px solid var(--line-soft); }
@media (max-width: 620px) { .brand-logo { width: 84px; } }
.rank-card.top .rank-num { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); box-shadow: 0 0 0 4px rgba(217,178,95,.18); }
.rank-body h3 { margin: 0 0 4px; }
.rank-body .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: .9rem; margin: 6px 0 0; }
.rank-body .facts b { color: var(--ink); font-weight: 700; }
.rank-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ribbon {
  position: absolute; top: -11px; left: 20px;
  background: linear-gradient(180deg, #e6c176, var(--acc));
  color: var(--acc-ink); font-family: var(--font-sans);
  font-weight: 700; font-size: .68rem; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 3px;
  box-shadow: 0 4px 14px -6px rgba(217,178,95,.6);
}
@media (max-width: 620px) {
  .rank-card { grid-template-columns: auto 1fr; }
  .rank-cta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 14px; }
}

/* ----- Tables ----------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-2); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
table.data caption { text-align: left; padding: 12px 16px; color: var(--ink-3); font-size: .82rem; font-style: italic; font-family: var(--font-display); }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data thead th {
  background: var(--bg-2); color: var(--acc); font-family: var(--font-sans);
  letter-spacing: 1.2px; position: sticky; top: 0; font-size: .74rem; text-transform: uppercase;
  border-bottom: 1px solid rgba(217,178,95,.35);
}
table.data tbody tr:hover { background: rgba(217,178,95,.03); }
table.data tr.is-hero td { background: rgba(217,178,95,.07); }
table.data td b { color: var(--ink); }

/* ----- Pros / cons ------------------------------------------------------ */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0; }
@media (max-width: 620px) { .proscons { grid-template-columns: 1fr; } }
.proscons ul { list-style: none; margin: 0; padding: 0; }
.proscons li { position: relative; padding: 8px 8px 8px 30px; border-bottom: 1px solid var(--line-soft); }
.proscons li:last-child { border-bottom: 0; }
.pros li::before, .cons li::before {
  position: absolute; left: 4px; top: 8px; font-weight: 800; font-family: var(--font-sans);
}
.pros li::before { content: "+"; color: var(--good); }
.cons li::before { content: "\2013"; color: var(--warn); }
.proscons .panel h3 { margin-top: 0; }

/* ----- Rating breakdown bars -------------------------------------------- */
.ratings { display: grid; gap: 12px; margin: 1.2em 0; }
.rating-row { display: grid; grid-template-columns: 160px 1fr 44px; gap: 12px; align-items: center; }
.rating-row .label { color: var(--ink-2); font-size: .92rem; }
.rating-row .track { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line-soft); }
.rating-row .fill { height: 100%; background: linear-gradient(90deg, #8a6d33, var(--acc)); border-radius: 999px; }
.rating-row .val { font-family: var(--font-display); font-weight: 700; text-align: right; color: var(--acc); }
@media (max-width: 520px) { .rating-row { grid-template-columns: 110px 1fr 40px; } }

/* ----- Breadcrumbs ------------------------------------------------------ */
.crumbs { font-size: .85rem; color: var(--ink-3); padding: 16px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "\203A"; margin-left: 6px; color: var(--ink-3); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-2); }

/* ----- FAQ / accordion -------------------------------------------------- */
.faq { display: grid; gap: 10px; margin: 1.2em 0; }
.faq details {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 4px 18px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 30px 15px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--acc); font-family: var(--font-display); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] { border-color: rgba(217,178,95,.4); }
.faq .a { padding: 0 0 16px; color: var(--ink-2); }

/* ----- Author / meta box ------------------------------------------------ */
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink-2); font-size: .9rem; margin: 8px 0 0; }
.author-box { display: flex; gap: 16px; align-items: flex-start; }
.author-box .ava {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--panel-2); border: 1px solid rgba(217,178,95,.4);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--acc); font-size: 1.3rem;
}
.updated { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: .88rem; }
.updated .tick { color: var(--good); }

/* ----- TOC -------------------------------------------------------------- */
.toc { position: sticky; top: 86px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 14px; color: var(--ink-3); font-size: .9rem; border-left: 1px solid transparent; margin-left: -1px; }
.toc a:hover { color: var(--acc); text-decoration: none; border-left-color: var(--acc); }

.article-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
@media (max-width: 940px) { .article-grid { grid-template-columns: 1fr; } .toc { display: none; } }
article { max-width: 74ch; }
article h2 { border-top: 1px solid var(--line-soft); padding-top: 1.2em; }
article ul, article ol { padding-left: 1.3em; }
article li { margin: .4em 0; }
article blockquote {
  margin: 1.4em 0; padding: 14px 20px; border-left: 2px solid var(--acc);
  background: var(--panel); border-radius: 0 6px 6px 0; color: var(--ink-2);
  font-style: italic; font-family: var(--font-display); font-size: 1.06rem;
}

/* answer-first quotable block */
.answer {
  background: linear-gradient(135deg, rgba(217,178,95,.07), rgba(217,178,95,.02) 65%);
  border: 1px solid rgba(217,178,95,.22); border-left: 3px solid var(--acc);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin: 0 0 1.4em;
  font-size: 1.06rem; line-height: 1.75;
}

/* ----- Grid utilities --------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ----- Disclaimer / affiliate ------------------------------------------- */
.disclosure {
  font-size: .82rem; color: var(--ink-3); background: var(--bg-2);
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 1em 0;
}
.age-tag {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 1px solid var(--warn); color: var(--warn); border-radius: 50%;
  font-family: var(--font-sans); font-weight: 800; font-size: .8rem;
}

/* ----- Footer ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(217,178,95,.22);
  margin-top: 72px;
  background: linear-gradient(180deg, var(--bg-2), #100d06);
}
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 46px 0 28px; }
@media (max-width: 780px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-sans); font-size: .74rem; text-transform: uppercase; letter-spacing: 2px; color: var(--acc); margin: 0 0 14px; opacity: .85; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--ink-2); font-size: .93rem; }
.site-footer a:hover { color: var(--acc); }
.footer-rg { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: .84rem; }
.footer-legal { padding: 16px 0 40px; color: var(--ink-3); font-size: .82rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ----- Focus visibility ------------------------------------------------- */
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 3px; }

/* ----- Print ------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
