/* VerificaBet – Black & Gold Luxury Wiki
   System font + condensed serif headings via Google Fonts
   Target: ~18KB */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600&display=swap');

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0A0A0A;
  --gold:    #C9A84C;
  --gold-dim:#a88830;
  --crimson: #6B1A2B;
  --white:   #F5F3EE;
  --grey:    #1C1C1C;
  --grey2:   #2A2A2A;
  --grey3:   #3D3D3D;
  --text:    #E8E4DC;
  --muted:   #9A9489;
  --radius:  28px;
  --col-max: 760px;
  --side-w:  280px;
  --gap:     2rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── SKIP LINK ────────────────────────────────────────── */
.skip-wrap { position: absolute; top: 0; left: 0; z-index: 9999; }
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--gold);
  color: var(--black);
  padding: .5rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── TYPOGRAPHY ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: .5rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: .5rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1.1rem; }
a { color: var(--gold); text-decoration: underline; }
a:hover { color: var(--white); }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

hr {
  border: none;
  border-top: 1px solid var(--gold);
  margin: .6rem 0 1.2rem;
  opacity: .5;
}

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.96);
  border-bottom: 1px solid var(--gold);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1.25rem;
  height: 60px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Brand link – min tap area 44px */
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .25rem;
}
.brand:hover { color: var(--white); }

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--gold);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: transform .2s, opacity .2s;
}

/* Primary nav (desktop) */
.primary-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: .35rem .6rem;
  border-radius: 4px;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--gold); background: rgba(201,168,76,.1); }

/* CTA buttons */
.header-ctas {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.cta-signup {
  background: var(--gold);
  color: var(--black);
  border: 2px solid var(--gold);
}
.cta-signup:hover { background: var(--gold-dim); border-color: var(--gold-dim); color: var(--black); }
.cta-login {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.cta-login:hover { background: var(--gold); color: var(--black); }

/* ── BREADCRUMB ───────────────────────────────────────── */
.breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── MAIN / WRAP ──────────────────────────────────────── */
main { padding: 2.5rem 1.25rem; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr var(--side-w);
  gap: var(--gap);
  align-items: start;
}

/* Body-container lottery: main > article.wrap > section > div */
.wrap > section { min-width: 0; }
.wrap > aside   { min-width: 0; }

/* ── ARTICLE LAYOUT ───────────────────────────────────── */
.article-section { grid-column: 1; }
.article-body { max-width: var(--col-max); }

/* When aside is a direct child of .wrap (div layout) */
.wrap > .sidebar { grid-column: 2; grid-row: 1 / 99; }

/* ── HOME HERO ────────────────────────────────────────── */
.home-hero {
  grid-column: 1;
}
.hero-article {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-img-wrap img { width: 100%; height: auto; border-radius: var(--radius); }
.hero-body { max-width: var(--col-max); }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: .15rem .55rem;
  border-radius: 3px;
  margin-bottom: .75rem;
}

/* ── CONTENT WITH ASIDE (home/topic/privacy/about) ──── */
.content-with-aside {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr var(--side-w);
  gap: var(--gap);
  align-items: start;
  margin-top: 1.5rem;
}
.content-main { min-width: 0; }

/* Aside inside content-with-aside */
.content-with-aside > .sidebar { grid-column: 2; }

/* ── SIDEBAR ──────────────────────────────────────────── */
.sidebar { position: sticky; top: 72px; }

.sidebar-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}

.sidebar-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: .3rem;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li { margin-bottom: .3rem; }
.sidebar-list a {
  color: var(--text);
  text-decoration: none;
  font-size: .88rem;
  display: block;
  padding: .2rem 0;
  border-bottom: 1px solid rgba(201,168,76,.1);
  transition: color .15s;
}
.sidebar-list a:hover { color: var(--gold); }

.sidebar-text { font-size: .85rem; color: var(--muted); }

.sidebar-author__name {
  font-weight: 600;
  color: var(--white);
  font-size: .9rem;
  margin-bottom: .3rem;
}

/* ── TOPIC ────────────────────────────────────────────── */
.topic-header-section { grid-column: 1; }
.topic-article { max-width: var(--col-max); }
.topic-meta { margin-bottom: .75rem; }

.content-with-aside--topic { margin-top: 0; }

/* ── INNER (about / privacy) ─────────────────────────── */
.inner-section { grid-column: 1; }
.inner-article { max-width: var(--col-max); }
.inner-article--prose {}

/* ── AUTHOR SECTION ───────────────────────────────────── */
.author-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,168,76,.3);
}

.author-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}
.author-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: .35rem;
}
.author-card__credentials {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .75rem;
  font-style: italic;
}
.author-card__bio { font-size: .95rem; }

/* ── BYLINE ───────────────────────────────────────────── */
.byline {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--gold);
  padding-left: .75rem;
}
.author-name { color: var(--text); font-weight: 600; }

/* ── STAGE LABEL ──────────────────────────────────────── */
.stage-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 3px;
  margin-bottom: .75rem;
}
.stage-awareness  { background: rgba(201,168,76,.15); color: var(--gold); border: 1px solid var(--gold); }
.stage-consideration { background: rgba(107,26,43,.2); color: #e07090; border: 1px solid var(--crimson); }
.stage-decision   { background: rgba(107,26,43,.4); color: #f0a0b0; border: 1px solid var(--crimson); }

/* ── HOME TOPICS GRID ─────────────────────────────────── */
.home-topics { margin-top: 2rem; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, background .2s;
  backdrop-filter: blur(6px);
}
.topic-card:hover { border-color: var(--gold); background: rgba(201,168,76,.07); color: var(--text); }

.topic-card__eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.topic-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.3;
}
.topic-card__desc { font-size: .84rem; color: var(--muted); flex: 1; }
.topic-card__cta {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: .5rem;
}

/* ── TABLES ───────────────────────────────────────────── */
.home-articles, .child-list { margin-top: 2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-top: 1rem;
}
thead th {
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,.4);
  padding: .6rem .75rem;
}
tbody tr { border-bottom: 1px solid rgba(255,255,255,.06); }
tbody tr:hover { background: rgba(201,168,76,.05); }
td {
  padding: .7rem .75rem;
  vertical-align: top;
  color: var(--text);
}
td a { color: var(--gold); text-decoration: none; }
td a:hover { text-decoration: underline; }
td time { color: var(--muted); font-size: .82rem; }

/* ── ARTICLE HERO ─────────────────────────────────────── */
.article-hero {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-hero .hero-img { width: 100%; height: auto; display: block; }

/* ── PAGE CONTENT (body copy) ─────────────────────────── */
.page-content {
  font-size: 1rem;
  line-height: 1.75;
  max-width: var(--col-max);
}
.page-content h2 { margin-top: 2rem; }
.page-content h3 { margin-top: 1.5rem; }
.page-content a { color: var(--gold); text-decoration: underline; }
.page-content a:hover { color: var(--white); }
.page-content ul, .page-content ol { margin-bottom: 1.2rem; }
.page-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
  font-style: italic;
}
.page-content img { max-width: 100%; border-radius: 12px; }
.page-content table { font-size: .88rem; }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--grey);
  border-top: 1px solid rgba(201,168,76,.3);
  margin-top: 4rem;
  padding: 3rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col {}
.footer-col__heading {
  font-family: 'Playfair Display', serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(201,168,76,.3);
}
.footer-col dd { margin: 0 0 .4rem; }
.footer-col dd a {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .15s;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 .15rem;
}
.footer-col dd a:hover { color: var(--gold); }

.footer-legal {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(201,168,76,.15);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.rg-notice {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}
.footer-copy {
  font-size: .75rem;
  color: var(--grey3);
}

/* ── DOT-MATRIX HERO TEXTURE ──────────────────────────── */
.home-hero {
  position: relative;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius);
}
.home-hero > * { position: relative; z-index: 1; }

/* ── GLASSMORPHIC CARDS ───────────────────────────────── */
.topic-card, .sidebar-card, .author-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── MOBILE NAV ≤768px ────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,.98);
    border-bottom: 1px solid rgba(201,168,76,.3);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 0;
    z-index: 200;
  }
  .primary-nav.is-open { display: flex; }

  .nav-link {
    padding: .8rem 1.25rem;
    font-size: .9rem;
    white-space: normal;
    border-radius: 0;
    min-height: 44px;
    border-bottom: 1px solid rgba(201,168,76,.08);
  }

  .header-inner {
    height: auto;
    min-height: 60px;
    padding: .5rem 1rem;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .brand {
    font-size: 1rem;
    min-height: 44px;
  }

  .header-ctas {
    display: flex;
    flex-shrink: 0;
    gap: .4rem;
    margin-left: 0;
  }

  .cta {
    font-size: .75rem;
    padding: 0 .65rem;
    min-height: 44px;
  }

  /* Layout */
  .wrap {
    grid-template-columns: 1fr;
    padding: 0;
  }

  main { padding: 1.5rem 1rem; }

  .wrap > .sidebar {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .content-with-aside {
    grid-template-columns: 1fr;
  }
  .content-with-aside > .sidebar { grid-column: 1; position: static; }

  .sidebar { position: static; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  table { font-size: .8rem; }
  td, th { padding: .5rem; }
}

/* ── VERY SMALL ≤480px ────────────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .cta { font-size: .72rem; padding: 0 .5rem; }
}

/* ── UTILITY ──────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}.tbl-scroll{overflow-x:auto;max-width:100%}