/* ============================================================
   BDOWorthIt — Value-first BDO guide site
   Design system: dark fantasy / gold accent / verdict colors
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0d12;
  --bg-soft: #10131b;
  --panel: #141824;
  --panel-2: #181d2b;
  --card: #161a26;
  --card-hover: #1b2131;
  --line: #242c3d;
  --line-soft: #1d2433;

  --text: #eae7df;
  --text-dim: #a2aabc;
  --text-faint: #6d7689;

  --gold: #d4af37;
  --gold-bright: #f0d478;
  --gold-deep: #a8861f;
  --amber: #e0a53b;
  --green: #58c08a;
  --green-soft: rgba(88, 192, 138, 0.12);
  --red: #e35d6a;
  --red-soft: rgba(227, 93, 106, 0.12);
  --amber-soft: rgba(224, 165, 59, 0.12);
  --gold-soft: rgba(212, 175, 55, 0.12);
  --purple: #8f7ae0;

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 10px 30px rgba(0, 0, 0, 0.4);
  --maxw: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code { background: var(--panel-2); border: 1px solid var(--line); padding: .15em .4em; border-radius: 5px; font-size: .92em; }
::selection { background: rgba(212, 175, 55, .3); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Background ambience ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(212, 175, 55, .07), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(143, 122, 224, .05), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(212, 175, 55, .04), transparent 60%),
    var(--bg);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s ease;
}
.topbar.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.18rem; color: var(--text); letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; }
.brand em { font-style: normal; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text-dim); font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a.active { color: var(--gold-bright); background: var(--gold-soft); }
.nav .cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #14100a; font-weight: 700; margin-left: 10px;
  padding: 9px 16px; border-radius: 9px; box-shadow: 0 4px 14px rgba(212,175,55,.25);
}
.nav .cta:hover { color: #14100a; filter: brightness(1.08); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 11px; cursor: pointer; font-size: 1.1rem; line-height: 1; }

/* ---------- Hero (home) ---------- */
.hero { padding: 96px 0 72px; text-align: center; position: relative; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--gold-bright); font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); margin-bottom: .35em; }
.hero h1 .gold { color: var(--gold); }
.hero .sub { max-width: 760px; margin: 0 auto 34px; color: var(--text-dim); font-size: 1.12rem; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: .98rem;
  transition: all .15s ease; cursor: pointer; border: none;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #14100a; box-shadow: 0 6px 20px rgba(212,175,55,.3); }
.btn-gold:hover { color: #14100a; filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-soft); }

.hero-stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.stat-pill { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .86rem; color: var(--text-dim); }
.stat-pill b { color: var(--gold-bright); }

/* ---------- Verdict badges & legend ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.badge-w { background: var(--green-soft); color: var(--green); border: 1px solid rgba(88,192,138,.35); }
.badge-s { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(224,165,59,.35); }
.badge-x { background: var(--red-soft); color: var(--red); border: 1px solid rgba(227,93,106,.35); }
.badge-cat { background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--line); font-weight: 600; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 22px; font-size: .86rem; color: var(--text-dim); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sec-head .eyebrow { color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.sec-head p { color: var(--text-dim); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.cat-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.cat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .55;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.45); box-shadow: var(--shadow); }
.cat-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem;
  background: var(--gold-soft); border: 1px solid rgba(212,175,55,.3);
}
.cat-card h3 { font-size: 1.22rem; margin-bottom: 0; }
.cat-card p { color: var(--text-dim); font-size: .95rem; margin-bottom: 4px; flex: 1; }
.cat-card .samples { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 6px; }
.cat-card .samples li { font-size: .88rem; color: var(--text-dim); padding-left: 18px; position: relative; }
.cat-card .samples li::before { content: "›"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.cat-card .more { font-weight: 700; font-size: .92rem; }

/* ---------- Article cards ---------- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.art-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.art-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.4); box-shadow: var(--shadow); }
.art-card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--text-faint); }
.art-card .meta .sep { opacity: .5; }
.art-card h3 { font-size: 1.1rem; margin: 0; }
.art-card h3 a { color: var(--text); }
.art-card h3 a:hover { color: var(--gold-bright); }
.art-card p { color: var(--text-dim); font-size: .92rem; flex: 1; margin-bottom: 0; }
.art-card .foot { display: flex; align-items: center; justify-content: space-between; font-size: .84rem; color: var(--text-faint); }
.art-card .foot .updated { display: inline-flex; align-items: center; gap: 5px; }
.art-card .foot .updated::before { content: "🕒"; font-size: .8em; }

/* ---------- WorthIt score explainer ---------- */
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.score-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.score-card .n { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: 8px; }
.score-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.score-card p { color: var(--text-dim); font-size: .9rem; margin: 0; }

/* ---------- Decision tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.dec { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.dec th, table.dec td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.dec th { background: var(--panel-2); color: var(--gold-bright); font-family: var(--font-display); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
table.dec tr:last-child td { border-bottom: none; }
table.dec td .badge { margin: 2px 0; }
table.dec tr:hover td { background: rgba(255,255,255,.015); }

/* ---------- Verdict box (article TL;DR) ---------- */
.verdict-box {
  border-radius: var(--radius); padding: 22px 24px; margin: 26px 0;
  border: 1px solid; display: flex; gap: 16px; align-items: flex-start;
}
.verdict-box .vb-mark { font-size: 1.6rem; line-height: 1; }
.verdict-box .vb-title { font-family: var(--font-display); font-weight: 700; margin-bottom: 6px; }
.verdict-box p { margin: 0; font-size: .95rem; }
.verdict-w { background: var(--green-soft); border-color: rgba(88,192,138,.4); }
.verdict-s { background: var(--amber-soft); border-color: rgba(224,165,59,.4); }
.verdict-x { background: var(--red-soft); border-color: rgba(227,93,106,.4); }

/* ---------- Ad placeholder ---------- */
.ad-slot {
  border: 1.5px dashed #39435a; border-radius: 10px; background: var(--panel);
  display: grid; place-items: center; text-align: center;
  padding: 22px 16px; margin: 26px 0; color: var(--text-faint); font-size: .8rem;
}
.ad-slot b { color: #556080; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; display: block; margin-bottom: 4px; }
/* when a real ad is served we clear the placeholder; collapse the box */
.ad-slot.ad-active { border: none; background: transparent; padding: 8px 0; margin: 26px 0; min-height: 0; }
.ad-slot.ad-active:empty { margin: 0; padding: 0; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.chip {
  background: var(--panel); border: 1px solid var(--line); color: var(--text-dim);
  border-radius: 999px; padding: 8px 18px; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold-bright); }
.chip.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Calculator ---------- */
.calc {
  background: linear-gradient(160deg, var(--panel-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
}
.calc .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.field label { display: block; font-size: .82rem; color: var(--text-dim); font-weight: 600; margin-bottom: 7px; letter-spacing: .03em; }
.field input, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 11px 13px; font-size: 1rem; font-family: var(--font-body);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.calc-outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 22px; }
.calc-out { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.calc-out .l { font-size: .78rem; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.calc-out .v { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-bright); margin-top: 4px; }
.calc-note { margin-top: 16px; font-size: .85rem; color: var(--text-dim); border-top: 1px dashed var(--line); padding-top: 14px; }
.calc-note b { color: var(--amber); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, rgba(212,175,55,.1), rgba(212,175,55,.03));
  border: 1px solid rgba(212,175,55,.3); border-radius: var(--radius);
  padding: 44px 36px; text-align: center;
}
.newsletter h3 { font-size: 1.5rem; }
.newsletter p { color: var(--text-dim); max-width: 520px; margin: 0 auto 24px; }
.nl-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.nl-form input { flex: 1; min-width: 240px; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 13px 16px; font-size: .95rem; }
.nl-form input:focus { outline: none; border-color: var(--gold); }
.nl-note { font-size: .78rem; color: var(--text-faint); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--text-dim); margin: 12px 0 0; font-size: .94rem; }

/* ---------- Article layout ---------- */
.article { max-width: 800px; margin: 0 auto; padding: 60px 0 80px; }
.article .art-head { margin-bottom: 30px; }
.article .art-head .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .86rem; color: var(--text-faint); margin-bottom: 18px; }
.article .art-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.article .art-head .deck { color: var(--text-dim); font-size: 1.08rem; }
.article-body { font-size: 1.02rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2em; padding-top: .6em; border-top: 1px solid var(--line-soft); }
.article-body h3 { font-size: 1.2rem; margin-top: 1.6em; }
.article-body ul li, .article-body ol li { margin-bottom: .5em; }
.article-body blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--gold); background: var(--panel); border-radius: 0 10px 10px 0; color: var(--text-dim); }
.article-body blockquote b { color: var(--text); }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: .9rem; margin: 26px 0 44px; }
.toc b { color: var(--gold); font-family: var(--font-display); letter-spacing: .05em; }
.toc ol { margin: 8px 0 0; color: var(--text-dim); }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-top: 40px; }
.author-box .av { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-soft); border: 1px solid rgba(212,175,55,.4); display: grid; place-items: center; font-size: 1.2rem; }
.author-box .nm { font-weight: 700; }
.author-box p { margin: 2px 0 0; font-size: .88rem; color: var(--text-dim); }
.updated-banner { display: flex; gap: 10px; align-items: center; background: var(--gold-soft); border: 1px solid rgba(212,175,55,.3); border-radius: 10px; padding: 12px 18px; font-size: .88rem; color: var(--text-dim); margin-bottom: 24px; }

/* ---------- Page hero (category pages) ---------- */
.page-hero { padding: 72px 0 44px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-hero p { max-width: 680px; margin: 12px auto 0; color: var(--text-dim); font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: .84rem; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb .sep { opacity: .5; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 0 80px; }
.legal h1 { font-size: 2.1rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-dim); }
.legal .last-updated { color: var(--text-faint); font-size: .88rem; margin-bottom: 2em; }
.legal .toc-note { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-size: .95rem; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--text-dim); font-size: .9rem; }
.footer ul a:hover { color: var(--gold-bright); }
.footer .brand-desc { color: var(--text-dim); font-size: .92rem; max-width: 300px; }
.footer .bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--text-faint); }
.footer .bottom a { color: var(--text-faint); }
.footer .bottom a:hover { color: var(--gold-bright); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 20px 22px; max-width: 620px; margin: 0 auto;
  display: none; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--text-dim); flex: 1; min-width: 240px; }
.cookie-banner .cb-actions { display: flex; gap: 10px; }
.cb-btn { border: none; border-radius: 8px; padding: 9px 16px; font-weight: 700; font-size: .86rem; cursor: pointer; }
.cb-accept { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #14100a; }
.cb-decline { background: transparent; color: var(--text-dim); border: 1px solid var(--line); }
.cb-decline:hover { border-color: var(--red); color: var(--red); }

/* ---------- Article breadcrumb (left-aligned, inside column) ---------- */
.article .breadcrumb { justify-content: flex-start; margin: 0 0 22px; font-size: .82rem; }
.article .breadcrumb span[aria-current] { color: var(--text-dim); }

/* ---------- Byline (E-E-A-T) ---------- */
.byline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .84rem; color: var(--text-faint); margin-top: 14px; }
.byline .dot { opacity: .5; }
.byline b { color: var(--text-dim); font-weight: 600; }
.byline .av { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); border: 1px solid rgba(212,175,55,.4); display: inline-grid; place-items: center; font-size: .9rem; }

/* ---------- TOC (inline, non-sticky to avoid blocking content) ---------- */
.toc.sticky { position: static; top: auto; max-height: none; overflow-y: visible; }
.toc ol { list-style: none; padding-left: 0; margin: 10px 0 0; }
.toc ol li { margin: 0; }
.toc ol a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--text-dim); border-radius: 0 6px 6px 0; transition: color .15s, border-color .15s; }
.toc ol a:hover { color: var(--gold-bright); border-left-color: var(--gold); }
.toc ol a.active { color: var(--gold-bright); border-left-color: var(--gold); }

/* ---------- Pros / Cons ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.proscons .pc { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--card); }
.proscons .pc h4 { margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.proscons .pc.pros h4 { color: var(--green); }
.proscons .pc.cons h4 { color: var(--red); }
.proscons .pc ul { margin: 0; padding-left: 1.15em; }
.proscons .pc li { font-size: .92rem; color: var(--text-dim); margin-bottom: .5em; }

/* ---------- Worth-It Tier list (Maxroll-style) ---------- */
.tierlist { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px 0; }
.tier-row { display: grid; grid-template-columns: 70px 1fr; }
.tier-row + .tier-row { border-top: 1px solid var(--line); }
.tier-badge { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #14100a; }
.tier-row.tier-s .tier-badge { background: var(--green); }
.tier-row.tier-a .tier-badge { background: var(--amber); }
.tier-row.tier-b .tier-badge { background: #6d7689; }
.tier-row.tier-c .tier-badge { background: var(--red); }
.tier-items { padding: 14px 18px; }
.tier-items .ti { display: inline-block; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; margin: 4px 6px 4px 0; font-size: .88rem; color: var(--text-dim); }
.tier-items .ti b { color: var(--gold-bright); }

/* ---------- Helpful feedback ---------- */
.helpful { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 32px 0; }
.helpful .hp-text { margin: 0; color: var(--text-dim); font-size: .92rem; flex: 1; min-width: 200px; }
.helpful .hb { border: 1px solid var(--line); background: var(--card); color: var(--text-dim); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: .9rem; transition: all .15s; }
.helpful .hb.yes:hover { border-color: var(--green); color: var(--green); }
.helpful .hb.no:hover { border-color: var(--red); color: var(--red); }
.helpful .thanks { color: var(--green); font-weight: 600; }

/* ---------- Sortable table hint ---------- */
table.dec th.sortable { cursor: pointer; user-select: none; }
table.dec th.sortable:hover { color: var(--gold-bright); }
table.dec th.sortable::after { content: " \21C5"; opacity: .45; font-size: .82em; }
table.dec th.sortable.asc::after { content: " \2191"; opacity: 1; color: var(--gold); }
table.dec th.sortable.desc::after { content: " \2193"; opacity: 1; color: var(--gold); }

/* ---------- Sources & further reading ---------- */
.sources { margin: 30px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.sources h2 { font-size: 1.15rem; margin-bottom: 10px; border: none; padding-top: 0; }
.sources ul { margin: 0; padding-left: 1.15em; }
.sources li { font-size: .9rem; color: var(--text-dim); margin-bottom: .4em; }
.sources a { word-break: break-word; }

/* ---------- Search & tags ---------- */
.search-hero { padding: 64px 0 36px; text-align: center; }
.search-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.search-hero p { color: var(--text-dim); max-width: 620px; margin: 10px auto 0; }
.search-box { max-width: 640px; margin: 28px auto 0; position: relative; }
.search-box input {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 16px 20px 16px 48px; font-size: 1.05rem; font-family: var(--font-body);
  box-shadow: var(--shadow);
}
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-box .mag { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 1.1rem; }
.results-count { text-align: center; color: var(--text-faint); font-size: .9rem; margin: 14px 0 4px; }
.results-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.result-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: border-color .15s, transform .15s; }
.result-item:hover { border-color: rgba(212,175,55,.4); transform: translateY(-2px); }
.result-item h3 { font-size: 1.12rem; margin: 8px 0 6px; }
.result-item h3 a { color: var(--text); }
.result-item h3 a:hover { color: var(--gold-bright); }
.result-item p { color: var(--text-dim); font-size: .92rem; margin: 0; }
.result-item .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--text-faint); }
.empty-state { text-align: center; color: var(--text-faint); padding: 40px 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 10px; }
.tag-pill { background: var(--panel); border: 1px solid var(--line); color: var(--text-dim); border-radius: 999px; padding: 7px 15px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.tag-pill:hover { border-color: var(--gold); color: var(--gold-bright); }
.tag-pill.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-bright); }
.tag-pill .n { color: var(--text-faint); font-weight: 400; margin-left: 4px; }
.tags-cat { max-width: 780px; margin: 0 auto 40px; }
.tags-cat h2 { font-size: 1.3rem; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.tags-cat h2 .gold { color: var(--gold); }

/* ---------- Reveal animation ----------
   Gated behind `.js` so content is ALWAYS visible without JavaScript.
   If JS runs, we add the hide->reveal transition; if not, nothing hidden. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 14px 20px 20px; gap: 4px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .cta { margin-left: 0; text-align: center; margin-top: 6px; }
  .nav-toggle { display: block; margin-left: auto; }
  .brand { margin-right: auto; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .hero { padding: 64px 0 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ad-slot { padding: 16px 12px; }
}

/* ---------- New components: responsive ---------- */
@media (max-width: 860px) {
  .toc.sticky { position: static; top: auto; }
  .proscons { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 54px 1fr; }
}

/* ---------- Image-rich redesign additions ---------- */

/* Home hero with background image */
.hero--img { position: relative; overflow: hidden; min-height: min(90dvh, 680px); display: grid; place-items: center; padding: 0; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(11,13,18,.60) 0%, rgba(11,13,18,.75) 50%, rgba(11,13,18,.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 110px 0 86px; }
.hero--img .kicker { background: rgba(11,13,18,.70); border-color: rgba(212,175,55,.35); backdrop-filter: blur(8px); }
.hero--img h1 { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.hero--img .sub { color: rgba(234,231,223,.88); text-shadow: 0 1px 10px rgba(0,0,0,.6); }

/* Page hero with background image */
.page-hero--img { position: relative; overflow: hidden; min-height: 320px; display: grid; place-items: center; padding: 0; }
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,13,18,.85) 0%, rgba(11,13,18,.70) 55%, rgba(11,13,18,.55) 100%); }
.page-hero-content { position: relative; z-index: 2; padding: 72px 0 54px; text-align: left; }
.page-hero--img .breadcrumb { justify-content: flex-start; margin-bottom: 16px; font-size: .82rem; }
.page-hero--img .breadcrumb a { color: rgba(234,231,223,.7); }
.page-hero--img .breadcrumb a:hover { color: var(--gold-bright); }
.page-hero--img .breadcrumb .sep { color: rgba(234,231,223,.4); }
.page-hero--img h1 { text-shadow: 0 2px 14px rgba(0,0,0,.55); max-width: 760px; }
.page-hero--img p { max-width: 720px; color: rgba(234,231,223,.82); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@media (max-width: 768px) {
  .page-hero-content { padding: 64px 0 48px; text-align: center; }
  .page-hero--img .breadcrumb { justify-content: center; }
}

/* Category cards with image thumbnails */
.cat-card { padding-top: 0; }
.cat-thumb {
  position: relative; height: 150px; margin: -28px -26px 0; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover .cat-thumb img { transform: scale(1.06); }
.cat-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,13,18,.15) 0%, rgba(11,13,18,.55) 100%);
  pointer-events: none;
}
.cat-card .icon { position: absolute; left: 26px; bottom: -23px; z-index: 3; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.cat-card h3 { margin-top: 34px; }

/* Article cards with image thumbnails */
.art-card { padding-top: 0; overflow: hidden; }
.art-thumb {
  position: relative; height: 150px; margin: -24px -24px 18px; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.art-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.art-card:hover .art-thumb img { transform: scale(1.05); }
.art-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,13,18,.05) 0%, rgba(11,13,18,.45) 100%);
  pointer-events: none;
}

/* Article hero image */
.article-hero {
  margin: 0 0 34px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative;
}
.article-hero img { width: 100%; height: auto; max-height: 360px; object-fit: cover; display: block; }
.article-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
}

/* Decorative game-frame border */
.game-frame {
  position: relative; border: 1px solid rgba(212,175,55,.25); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(212,175,55,.05), transparent 60px);
}
.game-frame::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Ornamental gold line */
.gold-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 18px auto; max-width: 120px; opacity: .55; }

/* Subtle image caption */
.img-caption { text-align: center; font-size: .78rem; color: var(--text-faint); margin-top: 6px; }

/* Ensure images don't break layout on small screens */
@media (max-width: 560px) {
  .hero--img { min-height: min(100dvh, 620px); }
  .hero-content { padding: 80px 0 64px; }
  .cat-thumb, .art-thumb { height: 130px; }
}

/* ---------- Hero: 2-col (text left, calculator right) ---------- */
.hero-content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.hero-text { min-width: 0; }
.hero-calc { min-width: 0; }
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Hero calculator wrapper (notebook tool card) ---------- */
.bdo-calc { background: linear-gradient(180deg, rgba(15,18,27,.97), rgba(11,13,18,.97)); border: 1px solid rgba(212,175,55,.28); border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 10px 36px rgba(0,0,0,.45), inset 0 1px 0 rgba(212,175,55,.06); position: relative; }
.bdo-calc::after { content: ""; position: absolute; left: 18px; right: 18px; top: 44px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.25), transparent); pointer-events: none; }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
.calc-eyebrow { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.calc-title { font-family: var(--font-display); font-weight: 700; color: var(--gold-bright); font-size: 1rem; letter-spacing: .04em; }
.calc-all { font-size: .75rem; color: var(--gold); text-decoration: none; }
.calc-all:hover { text-decoration: underline; }
.bdo-calc .grid { grid-template-columns: 1fr 1fr; }
.bdo-calc .calc-note { font-size: .82rem; }
@media (max-width: 640px) {
  .bdo-calc .grid { grid-template-columns: 1fr; }
}

/* ---------- Update calendar (notebook style, hero top-right) ---------- */
.bdo-cal { background: linear-gradient(180deg, rgba(15,18,27,.97), rgba(11,13,18,.97)); border: 1px solid rgba(212,175,55,.28); border-radius: 14px; padding: 16px 16px 14px; box-shadow: 0 10px 36px rgba(0,0,0,.45), inset 0 1px 0 rgba(212,175,55,.06); position: relative; }
.bdo-cal::after { content: ""; position: absolute; left: 16px; right: 16px; top: 38px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.25), transparent); pointer-events: none; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
.cal-month { font-family: var(--font-display); font-weight: 700; color: var(--gold-bright); font-size: 1rem; letter-spacing: .04em; }
.cal-all { font-size: .75rem; color: var(--gold); text-decoration: none; }
.cal-all:hover { text-decoration: underline; }
.cal-dow-row { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.cal-dow { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); text-align: center; padding: 4px 0; }
.cal-dow:nth-child(6), .cal-dow:nth-child(7) { color: #e0734a; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { min-height: 62px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 5px; display: flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,.015); position: relative; }
.cal-day .d { font-family: var(--font-display); color: var(--text-dim); font-size: .85rem; font-weight: 600; line-height: 1; }
.cal-day.empty { border-color: transparent; background: transparent; }
.cal-today { border-color: rgba(212,175,55,.85); background: rgba(212,175,55,.1); box-shadow: 0 0 0 1px rgba(212,175,55,.45) inset; }
.cal-today .d { color: var(--gold-bright); }
.cal-event::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(212,175,55,.7); }
.cal-event.cal-today::after { background: var(--gold-bright); }
.cal-key { font-size: .62rem; line-height: 1.25; color: var(--gold-bright); text-decoration: none; font-weight: 600; }
.cal-key:hover { text-decoration: underline; }
.cal-up { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--text-dim); }
.cal-up b { color: var(--text); font-weight: 700; }
.cal-up a { color: var(--gold); text-decoration: none; font-weight: 600; }
.cal-up a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .cal-day { min-height: 48px; padding: 3px 4px; }
  .cal-key { font-size: .58rem; }
}

/* ---------- Update calendar: vertical timeline (compact replacement for grid) ---------- */
.cal-timeline { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.cal-timeline .cal-event { position: relative; display: flex; gap: 24px; align-items: stretch; padding: 18px 22px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; transition: border-color .15s ease, background .15s ease; }
.cal-timeline .cal-event:hover { background: rgba(212,175,55,.06); border-color: rgba(212,175,55,.4); border-left-color: var(--gold-bright); }
.cal-timeline .cal-date { flex: 0 0 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 8px; background: rgba(0,0,0,.35); border-radius: 8px; border: 1px solid var(--line); }
.cal-timeline .cal-day-num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--gold-bright); letter-spacing: .02em; display: block; }
.cal-timeline .cal-month-abbr { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-top: 6px; display: block; }
.cal-timeline .cal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 2px 0; }
.cal-timeline .cal-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.cal-timeline .cal-title a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.cal-timeline .cal-title a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }
.cal-timeline .cal-desc { font-size: .88rem; color: var(--text-dim); line-height: 1.55; max-width: 64ch; margin: 0; }
.cal-timeline .cal-event--upcoming { opacity: .62; }
.cal-timeline .cal-event--upcoming .cal-date { border-color: transparent; background: transparent; }
.cal-timeline .cal-event--upcoming .cal-day-num { color: var(--text-dim); }
.cal-timeline .cal-event--upcoming .cal-title a { color: var(--text-dim); }
.cal-timeline .cal-full-link { display: inline-block; margin: 22px auto 0; font-size: .88rem; color: var(--gold); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.cal-timeline .cal-full-link:hover { color: var(--gold-bright); text-decoration: underline; }
/* Kill the old grid calendar's ::after that would otherwise leak into the timeline */
.cal-timeline .cal-event::after { content: none !important; }
@media (max-width: 640px) {
  .cal-timeline .cal-event { gap: 14px; padding: 14px; }
  .cal-timeline .cal-date { flex: 0 0 56px; padding: 4px 6px; }
  .cal-timeline .cal-day-num { font-size: 1.4rem; }
  .cal-timeline .cal-month-abbr { font-size: .62rem; }
  .cal-timeline .cal-desc { font-size: .82rem; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .footer, .cookie-banner, .ad-slot, .newsletter, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}
