/* Dream Companion Guide — "late-night premium" theme (redesign 2026-11-23).
   Deep plum dark theme, one rose→violet accent gradient, gold reserved for
   verdict badges and verification marks. Serif display type for headlines
   (editorial authority), system sans for UI/body. All imagery on the site
   is in-house illustrative artwork — no service screenshots anywhere. */

:root {
  --bg0: #0d0916;
  --bg: #120c20;
  --surface: #1a132e;
  --surface-2: #231845;
  --line: rgba(196, 175, 255, 0.16);
  --line-strong: rgba(196, 175, 255, 0.32);
  --ink: #f4effc;
  --ink-soft: #ddd3f2;
  --muted: #a99cc9;
  --rose: #ff6b8a;
  --gold: #e8b34b;
  --gold-soft: #ffd97d;
  --green: #8fe3a5;
  --grad: linear-gradient(135deg, #ff5c7a, #8b5cf6);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* The page itself must never scroll sideways on phones: stray wide
   elements are clipped here, and wide tables scroll inside their own
   .table-scroll wrapper instead. `clip` (not `hidden`) is used so the
   sticky header keeps working. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink-soft);
  background:
    radial-gradient(1100px 520px at 85% -8%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 480px at -10% 22%, rgba(255, 92, 122, 0.07), transparent 55%),
    var(--bg0);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 1rem;
}
::selection { background: #8b5cf6; color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
a { color: var(--rose); }
a:hover { color: #ff8fab; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.22; font-weight: 700; }
main h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin: 0.35em 0 0.5em; }
main h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }

/* ---------- Header / brand ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 9, 22, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; color: var(--ink); letter-spacing: 0.01em; white-space: nowrap; }
.brand-text em { color: var(--gold); }
.site-nav ul { list-style: none; display: flex; gap: 6px 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--gold-soft); }
.site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.age-bar { background: linear-gradient(90deg, #221243, #3b1d63, #221243); color: #e7ddff; text-align: center; font-size: 0.8rem; letter-spacing: 0.02em; padding: 5px 14px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 22px; font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; }
.breadcrumbs li + li::before { content: "›"; color: var(--line-strong); font-weight: 700; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-soft); }
.breadcrumbs li span { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* ---------- Buttons & affiliate links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 12px 24px; min-height: 44px; line-height: 1.25; font-size: 0.98rem; border: 1px solid transparent; transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(168, 85, 247, 0.35); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-gold { background: linear-gradient(135deg, #f5c86e, var(--gold)); color: #241703; box-shadow: 0 10px 26px rgba(232, 179, 75, 0.28); }
.btn-gold:hover { color: #241703; filter: brightness(1.06); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { color: var(--gold-soft); border-color: var(--gold); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; }
a.aff-link { font-weight: 600; }
a.aff-pending { border-bottom: 2px dashed rgba(232, 179, 75, 0.8); }
a.btn.aff-pending { border-bottom: none; outline: 2px dashed rgba(232, 179, 75, 0.8); outline-offset: 2px; }
.aff-unknown { background: #5b1f2a; color: #ffd7de; padding: 0 6px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: 26px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); min-height: 500px; display: flex; align-items: flex-end; background: #17102a; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 6, 20, 0.93) 26%, rgba(10, 6, 20, 0.55) 58%, rgba(10, 6, 20, 0.12) 82%), linear-gradient(0deg, rgba(10, 6, 20, 0.72), transparent 46%); }
.hero-content { position: relative; padding: 52px 48px 44px; max-width: 660px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--gold-soft); margin: 0 0 12px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 3.7rem); margin: 0 0 14px; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.hero-hook { font-size: 1.13rem; line-height: 1.6; color: #ece4ff; margin: 0; max-width: 36em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 16px; }
.hero-note { font-size: 0.82rem; color: rgba(231, 221, 255, 0.75); margin: 0; }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 42px 0 6px; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.section-link { color: var(--rose); font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-link:hover { color: #ff8fab; }
.section-count { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-weight: 400; }

/* ---------- Character cards ---------- */
.showcase-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 18px; }
.char-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.char-card:hover { transform: translateY(-4px); border-color: rgba(232, 179, 75, 0.5); box-shadow: var(--shadow); }
.char-media { position: relative; margin: 0; }
.char-media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.char-badge { position: absolute; top: 12px; left: 12px; background: rgba(18, 10, 34, 0.85); backdrop-filter: blur(4px); color: var(--gold); border: 1px solid rgba(232, 179, 75, 0.55); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.03em; padding: 4px 11px; border-radius: 999px; }
.char-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.char-name { font-family: var(--font-display); font-size: 1.32rem; color: var(--ink); margin: 0; }
.char-tease { color: var(--ink-soft); margin: 0; }
.char-meta { color: var(--gold-soft); font-size: 0.85rem; font-weight: 600; margin: 2px 0 10px; }
.char-body .btn { margin-top: auto; }
.creative-slot { margin: 0; border: 2px dashed rgba(160, 140, 220, 0.45); border-radius: 12px; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; gap: 5px; background: rgba(0, 0, 0, 0.25); }
.creative-slot-label { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #c9b8ff; }
.creative-slot-note { font-size: 0.82rem; color: #bdb0e8; }

/* ---------- Trust band ---------- */
.trust-band { margin-top: 44px; background: linear-gradient(180deg, #180f2e, #100a1e); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-band-inner { display: flex; align-items: stretch; flex-wrap: wrap; }
.stat { padding: 20px 28px 20px 0; margin-right: 28px; border-right: 1px solid var(--line); padding-right: 28px; display: flex; flex-direction: column; justify-content: center; }
.stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: #fff; line-height: 1.05; }
.stat-label { color: var(--muted); font-size: 0.86rem; max-width: 24ch; }
.stat-note { flex: 1; min-width: 230px; }
.stat-note .stat-label { max-width: 52ch; font-size: 0.92rem; color: var(--ink-soft); }
.stat-note a { color: var(--gold-soft); }

/* ---------- Start here ---------- */
.start-here { margin: 40px 0 6px; }
.start-here h2 { margin: 0 0 16px; }
.start-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.start-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.start-steps li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 800; border-radius: 50%; width: 30px; height: 30px; margin-bottom: 10px; }
.start-steps a { color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.start-steps a:hover { color: var(--gold-soft); }
.start-steps p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Entry cards (lists, indexes, related) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin: 20px 0 10px; }
.entry-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.entry-card:hover { transform: translateY(-3px); border-color: rgba(232, 179, 75, 0.45); box-shadow: var(--shadow); }
.entry-kind { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin: 0; }
.eyebrow-badge { color: var(--gold-soft); }
.entry-title { font-size: 1.3rem; margin: 0; line-height: 1.3; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--gold-soft); }
.entry-desc { color: var(--muted); font-size: 0.93rem; margin: 0; flex: 1; }
.entry-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 0; }
.entry-more { color: var(--rose); font-weight: 700; text-decoration: none; white-space: nowrap; margin-left: auto; }
.checked-badge { display: inline-block; font-size: 0.74rem; font-weight: 700; color: var(--green); background: rgba(70, 180, 100, 0.12); border: 1px solid rgba(110, 220, 150, 0.38); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }

.list-head { padding-top: 6px; }
.list-head h1 { margin-bottom: 6px; }
.section-coverage { color: var(--muted); font-size: 0.95rem; margin: 0 0 8px; }
.list-intro { color: var(--ink-soft); max-width: 65ch; }

.related-rail { margin-top: 52px; border-top: 1px solid var(--line); padding-top: 6px; }
.related-rail h2 { margin-bottom: 4px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.related-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; transition: transform 0.18s ease, border-color 0.18s ease; }
.related-card:hover { transform: translateY(-3px); border-color: rgba(232, 179, 75, 0.45); }
.related-kind { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.related-title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); line-height: 1.3; }
.related-desc { font-size: 0.88rem; color: var(--muted); }
.related-card .checked-badge { align-self: flex-start; }

/* ---------- Article chrome ---------- */
.article-eyebrow { text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.78rem; font-weight: 800; color: var(--gold); margin: 10px 0 0; }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.byline-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; justify-content: center; }
.byline-text { display: flex; flex-direction: column; }
.byline-name { color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.byline-desk { color: var(--muted); font-size: 0.82rem; }
.byline-stamps { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.stamp { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.stamp-checked { color: var(--green); border-color: rgba(110, 220, 150, 0.38); background: rgba(70, 180, 100, 0.1); }
.article-meta { color: var(--muted); font-size: 0.9rem; }

.disclosure-box { background: #1d1433; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 18px; font-size: 0.92rem; color: var(--ink-soft); margin: 18px 0; }
.disclosure-box::before { content: "Disclosure"; display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.13em; color: var(--gold); margin-bottom: 4px; }
.disclosure-box p { margin: 4px 0; }
.disclosure-box .age-line { color: var(--muted); }

.draft-banner { background: rgba(232, 179, 75, 0.1); border: 1px solid rgba(232, 179, 75, 0.55); color: #ffe1a1; border-radius: 12px; padding: 12px 16px; font-size: 0.93rem; }

/* ---------- Top-pick block + documentation scorecard ---------- */
.top-pick { background: linear-gradient(155deg, #2c1760, #1a1033 58%, #25124a); border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px 26px; margin: 20px 0; box-shadow: var(--shadow); }
.verdict-badge { display: inline-block; background: linear-gradient(135deg, #f5c86e, var(--gold)); color: #241703; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; margin: 0 0 14px; }
.top-pick-hook { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.32; font-weight: 700; color: #fff; margin: 0 0 8px; }
.top-pick-verdict { margin: 0 0 16px; color: #e2d7fb; }
.top-pick-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.top-pick .verified-stamp { color: #c9b8ff; }
.verified-stamp { display: inline-block; font-size: 0.88rem; color: var(--green); font-weight: 600; margin-top: 12px; }
.scorecard { margin-top: 20px; border-top: 1px dashed rgba(255, 255, 255, 0.25); padding-top: 14px; }
.scorecard-title { font-weight: 800; color: #fff; margin: 0 0 10px; font-size: 0.95rem; }
.scorecard-title span { font-weight: 400; color: #c9b8ff; font-size: 0.85rem; }
.scorecard-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.scorecard-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; }
.scorecard-axis { color: #e2d7fb; font-size: 0.93rem; }
.meter { display: inline-flex; gap: 4px; }
.meter-seg { width: 26px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.meter-seg.on { background: linear-gradient(90deg, var(--gold), #ffcf7d); }
.scorecard-level { font-weight: 700; font-size: 0.9rem; min-width: 7.5ch; text-align: right; }
.level-strong { color: var(--green); }
.level-mixed { color: var(--gold-soft); }
.level-weak { color: #ff9db1; }
.scorecard-note { font-size: 0.82rem; color: #bdb0e8; margin: 12px 0 0; }
.scorecard-note a { color: #e7ddff; }

/* ---------- Article body typography ---------- */
.article-body, .home-intro { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.article-body h2, .home-intro h2 { margin-top: 1.9em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.article-body h3, .home-intro h3 { font-size: 1.3rem; margin-top: 1.6em; }
.article-body strong, .home-intro strong { color: var(--ink); }
.article-body a, .home-intro a { text-underline-offset: 3px; }
.article-body blockquote { margin: 20px 0; padding: 14px 20px; background: var(--surface); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; }
.article-body blockquote p { margin: 6px 0; }
.article-body code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 0.92em; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.article-body img { border-radius: 12px; }
.article-body table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 0.95rem; line-height: 1.55; }
.article-body th { background: var(--surface-2); color: #fff; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border: 1px solid var(--line); }
.article-body td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.article-body tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025); }
.table-stamp { font-size: 0.85rem; color: var(--muted); margin-top: -8px; }
.article-body { overflow-wrap: break-word; }
.article-body pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Wide tables scroll sideways inside this wrapper (added by the small
   script in baseof.html) instead of stretching the page. The hint line
   only appears on small screens and only when the table overflows. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; scrollbar-width: thin; scrollbar-color: rgba(232, 179, 75, 0.55) transparent; }
.table-scroll::-webkit-scrollbar { height: 6px; }
.table-scroll::-webkit-scrollbar-thumb { background: rgba(232, 179, 75, 0.5); border-radius: 3px; }
.table-scroll table { margin: 0; border: 0; min-width: 560px; }
.table-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.table-hint { display: none; }
@media (max-width: 768px) {
  .table-hint { display: block; font-size: 0.78rem; color: var(--muted); margin: 16px 0 0; }
  .table-hint + .table-scroll { margin-top: 6px; }
}

/* ---------- Showcase page ---------- */
.showcase-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 24px 0; display: grid; grid-template-columns: 270px 1fr; gap: 8px 26px; align-items: start; }
.showcase-card > * { grid-column: 2; min-width: 0; }
.showcase-card > .portrait { grid-column: 1; grid-row: 1 / span 12; }
.showcase-card h2 { margin-top: 2px; }
.showcase-card .char-meta { color: var(--muted); }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; border-radius: 12px; border: 1px solid var(--line-strong); }
.portrait figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0614; border-top: 1px solid var(--line); margin-top: 64px; padding: 46px 0 30px; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.footer-tagline { margin: 14px 0 8px; color: var(--ink-soft); max-width: 38ch; }
.footer-age { margin: 0 0 14px; font-size: 0.85rem; }
.feed-chip { display: inline-block; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; color: var(--ink-soft); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.feed-chip:hover { border-color: var(--gold); color: var(--gold-soft); }
.footer-col h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.13em; color: var(--gold); margin: 6px 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: 0.85rem; }
.footer-legal p { margin: 8px 0; }
.footer-legal strong { color: var(--ink-soft); }
.copyright { margin-top: 16px; color: #7e71a3; }

/* ---------- Age gate ---------- */
.age-gate { position: fixed; inset: 0; background: rgba(5, 3, 10, 0.82); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.age-gate[hidden] { display: none; }
.age-gate-box { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line-strong); max-width: 460px; border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow); }
.age-gate-box h2 { margin-top: 0; }
.age-gate-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.age-gate-actions button { background: linear-gradient(135deg, #f5c86e, var(--gold)); color: #241703; border: 0; border-radius: 999px; padding: 11px 20px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.age-gate-exit { color: var(--muted); }

/* ---------- Misc ---------- */
.not-found { padding-bottom: 30px; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.post-list p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Responsive ---------- */
/* Tablet / small laptop: two-column footer, stacked showcase cards. */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showcase-card { grid-template-columns: 1fr; }
  .showcase-card > * { grid-column: 1; }
  .showcase-card > .portrait { grid-row: auto; max-width: 320px; }
  .stat { border-right: none; padding-right: 0; margin-right: 34px; }
}

/* Phones (<=640px): single column, thumb-first. Primary tap targets are
   >=44px, body text stays >=16px, and the page never scrolls sideways
   (wide tables scroll inside .table-scroll instead). */
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 16px; }

  /* Header: brand row, then one scrollable nav row (still sticky). */
  .header-inner { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; padding-bottom: 8px; }
  .brand { align-self: flex-start; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text { font-size: 1.18rem; }
  /* min-width: 0 lets the nav flex item shrink below its content width,
     so the ul's own sideways scroll (not clipping) reveals the last items. */
  .site-nav { min-width: 0; max-width: 100%; }
  .site-nav ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 2px 18px; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav a { display: inline-block; white-space: nowrap; padding: 11px 0; }
  .age-bar { font-size: 0.76rem; padding: 5px 10px; }

  .breadcrumbs { padding-top: 16px; font-size: 0.8rem; }
  .breadcrumbs li span { max-width: 20ch; }

  /* Hero: content-height (no forced 430px), stronger bottom shade so the
     copy stays readable over the cropped artwork, full-width CTAs. */
  .hero { min-height: 0; margin-top: 16px; border-radius: 16px; }
  .hero-img { object-position: 70% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(10, 6, 20, 0.95) 24%, rgba(10, 6, 20, 0.62) 60%, rgba(10, 6, 20, 0.28) 100%), linear-gradient(90deg, rgba(10, 6, 20, 0.55), transparent 70%); }
  .hero-content { padding: 30px 20px 26px; max-width: none; }
  .hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.1em; }
  .hero h1 { font-size: clamp(2.05rem, 10vw, 2.7rem); }
  .hero-hook { font-size: 1rem; line-height: 1.6; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; margin: 20px 0 14px; }
  .hero-ctas .btn { width: 100%; padding-top: 14px; padding-bottom: 14px; }

  .section-head { margin: 34px 0 4px; }
  .section-link { padding: 6px 0; }

  /* Character cards: one column; landscape crop so a full-width card
     does not tower over the screen (faces stay in frame, top-anchored). */
  .showcase-strip { grid-template-columns: 1fr; gap: 14px; }
  .char-media img { aspect-ratio: 16 / 10; object-position: center 22%; }
  .char-body { padding: 16px 18px 18px; }
  .char-body .btn { width: 100%; padding-top: 13px; padding-bottom: 13px; }

  /* Trust band: 2x2 stat grid with the note full-width below. */
  .trust-band { margin-top: 36px; }
  .trust-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; padding-top: 22px; padding-bottom: 22px; }
  .stat { margin: 0; padding: 0; border-right: none; }
  .stat-num { font-size: 1.8rem; }
  .stat-label { max-width: none; }
  .stat-note { grid-column: 1 / -1; min-width: 0; }

  .start-steps { grid-template-columns: 1fr; }
  .start-steps li { padding: 16px 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .entry-card { padding: 18px; }
  .entry-meta { flex-wrap: wrap; }
  .related-grid { grid-template-columns: 1fr; }

  /* Articles: slightly tighter display type, body stays >=16px. */
  main h1 { font-size: 1.9rem; line-height: 1.2; }
  .article-body { font-size: 1.03rem; line-height: 1.72; }
  .article-body h2 { font-size: 1.5rem; }
  .article-body h3 { font-size: 1.22rem; }
  .byline { gap: 10px; padding: 12px 0 14px; }
  .byline-stamps { margin-left: 0; }
  .stamp { font-size: 0.76rem; padding: 3px 9px; }
  .disclosure-box { padding: 12px 14px; font-size: 0.9rem; }
  .draft-banner { padding: 11px 14px; }

  /* Verdict block: stacked full-width CTAs; scorecard label + level on
     one row, the meter as a full-width bar underneath. */
  .top-pick { padding: 20px 18px; border-radius: 16px; }
  .top-pick-hook { font-size: 1.32rem; }
  .top-pick-ctas { flex-direction: column; align-items: stretch; }
  .top-pick-ctas .btn { width: 100%; padding-top: 13px; padding-bottom: 13px; }
  .scorecard-row { grid-template-columns: 1fr auto; grid-template-areas: "axis level" "meter meter"; row-gap: 6px; }
  .scorecard-axis { grid-area: axis; }
  .scorecard-level { grid-area: level; min-width: 0; }
  .meter { grid-area: meter; display: flex; width: 100%; }
  .meter-seg { flex: 1; width: auto; height: 9px; }

  /* Showcase page: full-width portrait with a landscape crop. */
  .showcase-card { padding: 18px; margin: 20px 0; }
  .showcase-card > .portrait { max-width: none; }
  .portrait img { aspect-ratio: 3 / 2; object-position: center 25%; }

  /* Footer: brand block spans, link columns pair up. */
  .site-footer { margin-top: 48px; padding: 38px 0 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col ul { gap: 4px; }
  .footer-col a { display: inline-block; padding: 5px 0; }
  .feed-chip { padding: 8px 14px; }

  /* Age gate: full-width sheet, stacked actions, 48px confirm button. */
  .age-gate { padding: 12px; }
  .age-gate-box { width: 100%; padding: 22px 20px; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .age-gate-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .age-gate-actions button { width: 100%; min-height: 48px; padding: 13px 20px; }
  .age-gate-exit { text-align: center; padding: 10px 6px; }
}

/* Small phones (<=400px): shrink the brand, single-column footer. */
@media (max-width: 400px) {
  .brand-text { font-size: 1.06rem; }
  .brand-mark { width: 30px; height: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .stat-num { font-size: 1.6rem; }
  .hero h1 { font-size: 1.95rem; }
}
