/* ============================================================
   iGaming Expert Hub — Luxury Design System
   Obsidian + Gold, Editorial Serif + Geometric Sans
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --obsidian: #0A0E1A;
  --midnight: #131826;
  --graphite: #1E2538;
  --elevated: #262E43;

  /* Accents */
  --gold: #C9A961;
  --gold-hover: #E4C46F;
  --gold-muted: #8A7547;
  --gold-glow: rgba(201, 169, 97, 0.15);

  /* Canadian */
  --maple: #D32F2F;

  /* Text */
  --text-primary: #F5F5F7;
  --text-secondary: #C9CED9;
  --text-muted: #8B93A7;

  /* Semantic */
  --verified: #4ADE80;
  --caution: #F59E0B;
  --warning: #EF4444;

  /* Spacing */
  --container-max: 1200px;
  --container-narrow: 780px;

  /* Type scale */
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 250ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--gold-hover); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.75rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.375rem); margin: 3rem 0 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin: 2rem 0 0.75rem; }
h4 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }

p { margin-bottom: 1.25rem; color: var(--text-secondary); }
p strong { color: var(--text-primary); font-weight: 600; }

ul, ol { margin: 0 0 1.25rem 1.5rem; color: var(--text-secondary); }
li { margin-bottom: 0.5rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.5;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--graphite);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--gold);
}

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }

/* ---------- Top strip (trust bar) ---------- */
.top-strip {
  background: var(--graphite);
  border-bottom: 1px solid var(--elevated);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}
.top-strip-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-strip .badge-19 {
  color: var(--gold);
  font-weight: 600;
  font-family: var(--mono);
}
.top-strip .flag { color: var(--maple); font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--obsidian);
  border-bottom: 1px solid var(--graphite);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 26, 0.92);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.logo em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle { display: none; font-size: 1.5rem; color: var(--text-primary); }

@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--midnight); padding: 1rem 1.5rem; gap: 0; border-bottom: 1px solid var(--graphite); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--graphite); }
  .nav-links a { padding: 1rem 0; display: block; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(ellipse at top, rgba(201, 169, 97, 0.08) 0%, transparent 60%), var(--obsidian);
  text-align: center;
}
.hero h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); max-width: 900px; margin: 0 auto 1.5rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub { font-size: 1.2rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto 2rem; }
.hero-meta {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-muted);
  font-family: var(--mono);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--graphite);
}
.hero-meta span { display: flex; align-items: center; gap: 0.4rem; }
.hero-meta strong { color: var(--gold); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem; font-weight: 600;
  border-radius: 4px;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--obsidian); }
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-muted);
}
.btn-secondary:hover { border-color: var(--gold); background: var(--gold-glow); color: var(--gold); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}
.btn-ghost:hover { color: var(--gold); }
.btn-arrow::after { content: '→'; transition: transform var(--dur) var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Comparison Table (flagship component) ---------- */
.comparison-wrap {
  background: var(--midnight);
  border: 1px solid var(--graphite);
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
}
.comparison-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--graphite);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.comparison-header h3 { margin: 0; font-size: 1.25rem; }
.comparison-header .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--text-muted); }

.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th, .comp-table td {
  padding: 1.25rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--graphite);
  font-size: 0.95rem;
}
.comp-table th {
  background: var(--graphite);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--sans);
}
.comp-table tbody tr { transition: background var(--dur) var(--ease); }
.comp-table tbody tr:hover { background: rgba(201, 169, 97, 0.04); }
.comp-table tbody tr:last-child td { border-bottom: none; }

.brand-cell { display: flex; align-items: center; gap: 0.85rem; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 6px;
  background: var(--graphite);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-name { font-weight: 600; color: var(--text-primary); font-size: 1rem; }
.brand-tag { display: block; font-size: 0.75rem; color: var(--text-muted); font-family: var(--mono); margin-top: 2px; }

.rating { display: flex; align-items: center; gap: 0.4rem; font-family: var(--mono); color: var(--gold); font-weight: 600; }
.rating-stars { letter-spacing: 2px; font-size: 0.9rem; }

.data-cell { font-family: var(--mono); color: var(--text-primary); font-size: 0.9rem; }
.data-cell small { display: block; color: var(--text-muted); font-size: 0.75rem; font-weight: 400; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-verified { background: rgba(74, 222, 128, 0.1); color: var(--verified); }
.badge-caution { background: rgba(245, 158, 11, 0.1); color: var(--caution); }
.badge-warning { background: rgba(239, 68, 68, 0.1); color: var(--warning); }
.badge-gold { background: var(--gold-glow); color: var(--gold); }

@media (max-width: 768px) {
  .comp-table { display: block; overflow-x: auto; white-space: nowrap; }
  .comp-table th, .comp-table td { padding: 0.85rem 0.75rem; font-size: 0.85rem; }
}

/* ---------- Review Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: var(--midnight);
  border: 1px solid var(--graphite);
  border-radius: 8px;
  padding: 1.75rem;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--gold-muted); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.card h3, .card h4 { margin: 0; }
.card p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.95rem; }
.card-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}
.card-meta strong { color: var(--text-primary); font-weight: 600; }
.card-cta { margin-top: auto; padding-top: 0.5rem; }

/* ---------- TL;DR box (LLM citation target) ---------- */
.tldr {
  background: var(--midnight);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}
.tldr .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.tldr p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}
.tldr p + p { margin-top: 0.75rem; }

/* ---------- Key takeaways bullet ---------- */
.takeaways {
  background: var(--graphite);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.takeaways .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.takeaways ul { list-style: none; margin: 0; padding: 0; }
.takeaways li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  color: var(--text-primary);
  font-size: 0.98rem;
}
.takeaways li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Author card ---------- */
.author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
  margin: 2rem 0;
}
.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-muted) 100%);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--obsidian);
  flex-shrink: 0;
}
.author-info { flex: 1; min-width: 0; }
.author-name {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.author-name a { color: var(--text-primary); }
.author-name a:hover { color: var(--gold); }
.author-credentials {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-top: 2px;
}
.author-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}
.author-date strong { color: var(--gold); font-weight: 600; display: block; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 1.25rem 0 0.5rem;
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--gold-muted); }

/* ---------- Content prose ---------- */
.prose { max-width: var(--container-narrow); margin: 0 auto; }
.prose h2:first-of-type { margin-top: 2rem; }
.prose p a { border-bottom: 1px solid var(--gold-muted); }
.prose p a:hover { border-bottom-color: var(--gold); }

/* ---------- Stat table (at-a-glance) ---------- */
.stat-table {
  background: var(--midnight);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--graphite);
  margin: 2rem 0;
}
.stat-table-title {
  padding: 1rem 1.5rem;
  background: var(--graphite);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--graphite);
  font-size: 0.95rem;
  gap: 1rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text-muted); font-family: var(--sans); }
.stat-value { color: var(--text-primary); font-family: var(--mono); font-weight: 500; text-align: right; }

/* ---------- Pros / Cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.pros-cons > div {
  background: var(--midnight);
  border-radius: 8px;
  padding: 1.5rem;
  border-top: 3px solid;
}
.pros-box { border-top-color: var(--verified); }
.cons-box { border-top-color: var(--caution); }
.pros-cons h4 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  font-weight: 600;
}
.pros-cons ul { list-style: none; margin: 0; padding: 0; }
.pros-cons li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--graphite);
}
.pros-cons li:last-child { border-bottom: none; }
.pros-box li::before { content: '✓'; position: absolute; left: 0; top: 0.5rem; color: var(--verified); font-weight: 700; }
.cons-box li::before { content: '!'; position: absolute; left: 0; top: 0.5rem; color: var(--caution); font-weight: 700; width: 18px; height: 18px; border: 1.5px solid var(--caution); border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; line-height: 1; }

@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion ---------- */
.faq { margin: 2rem 0; }
.faq-item {
  border-top: 1px solid var(--graphite);
  transition: background var(--dur) var(--ease);
}
.faq-item:last-child { border-bottom: 1px solid var(--graphite); }
.faq-q {
  width: 100%;
  padding: 1.25rem 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::after {
  content: '+';
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 0 1.5rem; color: var(--text-secondary); font-size: 1rem; line-height: 1.65; }
.faq-a-inner p { margin-bottom: 0.75rem; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- Sticky CTA bar ---------- */
.sticky-cta {
  position: fixed;
  bottom: -100px;
  left: 0; right: 0;
  background: var(--midnight);
  border-top: 1px solid var(--gold-muted);
  padding: 1rem 1.5rem;
  z-index: 40;
  transition: bottom 400ms var(--ease);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
.sticky-cta.visible { bottom: 0; }
.sticky-cta-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.sticky-cta-text { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.sticky-cta-text .brand-name { font-size: 1rem; }
.sticky-cta-text .bonus { font-size: 0.85rem; color: var(--text-muted); font-family: var(--mono); }
.sticky-cta-close {
  font-size: 1.3rem;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  flex-shrink: 0;
}
.sticky-cta-close:hover { color: var(--text-primary); }

/* ---------- Affiliate disclosure inline ---------- */
.disclosure-inline {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: var(--graphite);
  border-radius: 4px;
  margin: 1.5rem 0;
  line-height: 1.5;
  border-left: 2px solid var(--gold-muted);
}
.disclosure-inline a { color: var(--gold); }

/* ---------- RG strip ---------- */
.rg-strip {
  background: var(--midnight);
  border: 1px solid var(--graphite);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 3rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.rg-strip strong { color: var(--gold); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }
.rg-strip p { margin: 0; font-size: 0.88rem; line-height: 1.55; }
.rg-strip a { color: var(--gold); white-space: nowrap; }

/* ---------- Trust badges row ---------- */
.trust-row {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}
.trust-badge {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-badge::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.7rem;
}

/* ---------- Province map strip ---------- */
.province-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}
.province-tile {
  background: var(--midnight);
  border: 1px solid var(--graphite);
  padding: 1.25rem 1rem;
  border-radius: 6px;
  text-align: center;
  transition: all var(--dur) var(--ease);
  display: block;
  color: var(--text-secondary);
}
.province-tile:hover { border-color: var(--gold); background: var(--graphite); color: var(--text-primary); }
.province-abbr {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--maple);
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.province-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}
.province-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  border-top: 1px solid var(--graphite);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 0.9rem; color: var(--text-muted); }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: var(--text-primary); margin-bottom: 1rem; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--graphite);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Hero CTA block on review pages ---------- */
.hero-offer {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--graphite) 100%);
  border: 1px solid var(--gold-muted);
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.hero-offer .brand-logo { width: 80px; height: 80px; font-size: 1.6rem; }
.hero-offer-body h3 { margin: 0 0 0.3rem; font-size: 1.4rem; }
.hero-offer-body p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.hero-offer-body .terms { font-size: 0.75rem; color: var(--text-muted); font-family: var(--mono); margin-top: 0.5rem; }

@media (max-width: 640px) {
  .hero-offer { grid-template-columns: 1fr; text-align: center; }
  .hero-offer .brand-logo { margin: 0 auto; }
}

/* ---------- Sub-nav (sticky on long pages) ---------- */
.sub-nav {
  position: sticky;
  top: 68px;
  background: rgba(19, 24, 38, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--graphite);
  z-index: 30;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
}
.sub-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sub-nav-inner a {
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.sub-nav-inner a:hover, .sub-nav-inner a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Section dividers ---------- */
.divider { height: 1px; background: var(--graphite); margin: 3rem 0; border: none; }
.divider-gold { background: linear-gradient(90deg, transparent, var(--gold-muted), transparent); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   v2 Modernization Pass — refined polish + accessibility
   ============================================================ */

/* Related-content auto-injected block */
section + section[style*="border-top:1px solid var(--graphite)"] ul li,
ul[style*="grid-template-columns:repeat(auto-fill"] li {
  list-style: none;
}
ul[style*="grid-template-columns:repeat(auto-fill"] li a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--midnight);
  border: 1px solid var(--graphite);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  position: relative;
  padding-right: 2.5rem;
}
ul[style*="grid-template-columns:repeat(auto-fill"] li a::after {
  content: '→';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform var(--dur) var(--ease);
}
ul[style*="grid-template-columns:repeat(auto-fill"] li a:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--midnight) 0%, var(--elevated) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
ul[style*="grid-template-columns:repeat(auto-fill"] li a:hover::after {
  transform: translateY(-50%) translateX(4px);
}

/* Refined card hover with subtle gradient */
.card:hover {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--midnight) 0%, var(--elevated) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--gold-glow);
}

/* Refined comparison-table row hover */
.comp-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(201,169,97,0.06) 0%, rgba(201,169,97,0.02) 100%);
}

/* Province-tile hover refined */
.province-tile:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--midnight) 0%, var(--graphite) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Focus-visible accessibility (WCAG 2.1 AA) */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Refined hero — subtle ambient gradient overlay */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(201,169,97,0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero > * {
  position: relative;
  z-index: 1;
}

/* TL;DR subtle texture refinement */
.tldr {
  position: relative;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--graphite) 100%);
  box-shadow: inset 0 0 0 1px rgba(201,169,97,0.08);
}

/* Sticky CTA polish */
.sticky-cta.visible {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--elevated) 100%);
  border-top: 1px solid var(--gold);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.6), 0 -1px 0 var(--gold-muted);
}

/* Section dividers — softer */
hr.divider {
  background: linear-gradient(90deg, transparent 0%, var(--graphite) 30%, var(--graphite) 70%, transparent 100%);
}

/* Sticky sub-nav refinement — subtle bottom shadow when scrolled */
.sub-nav {
  box-shadow: 0 1px 0 var(--graphite), 0 4px 12px rgba(0,0,0,0.2);
}

/* H2 refined — subtle underline accent on hover (only on linked H2s) */
h2 a, h3 a {
  color: var(--text-primary);
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
h2 a:hover, h3 a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Author avatar — subtle gold ring on hover */
.author:hover .author-avatar {
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Smooth scroll for in-page anchors */
html { scroll-padding-top: 100px; }

/* Link styling refinement in prose */
.prose p a, .prose li a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-muted);
  transition: all var(--dur) var(--ease);
}
.prose p a:hover, .prose li a:hover {
  color: var(--gold-hover);
  border-bottom-color: var(--gold);
}

/* Print-friendly */
@media print {
  .site-header, .top-strip, .sticky-cta, .nav-toggle, .site-footer { display: none; }
  body { background: white; color: black; }
  .container, .container-narrow { max-width: 100%; }
}
