/* =========================================================
   d11 — Factory V10 light-editorial-marketplace
   Cool-gray surface, single coral accent, technical-grotesk type,
   bento rhythm, photo-led minimal chrome, borderless geometry.
   ========================================================= */

:root {
  --bg-page: #F2F4F7;
  --bg-card: #FFFFFF;
  --bg-deep: #0E1B2C;
  --bg-deep-2: #15263C;
  --ink: #11161D;
  --ink-2: #2B3340;
  --ink-3: #5A6573;
  --ink-4: #8A95A2;
  --line: #DEE3EA;
  --line-soft: #E9ECF1;
  --coral: #E84A3B;
  --coral-deep: #C7382B;
  --teal: #1B4D5A;
  --gold: #B58A3B;
  --good: #1F7A45;
  --warn: #B45A00;
  --bad: #B0252B;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(14, 27, 44, 0.04), 0 6px 16px rgba(14, 27, 44, 0.06);
  --shadow-2: 0 2px 6px rgba(14, 27, 44, 0.08), 0 12px 28px rgba(14, 27, 44, 0.08);
  --maxw: 1200px;
  --gap: 24px;
  --gap-sm: 16px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --t-fast: 140ms ease;
  --t-mid: 220ms cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }

/* =========================================================
   Layout primitives
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap { max-width: 1240px; margin: 0 auto; }
section { scroll-margin-top: 80px; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
  font-weight: 600;
}
h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: 30px; line-height: 1.18; }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font-size: 17px; line-height: 1.3; }
.serif { font-family: var(--font-serif); font-weight: 600; }
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 600;
}
.muted { color: var(--ink-3); }
.tiny { font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 244, 247, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark:hover { text-decoration: none; }
.brand-mark .glyph {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.brand-mark .sub {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 6px;
}
.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.main-nav a:hover {
  background: rgba(17, 22, 29, 0.05);
  text-decoration: none;
  color: var(--ink);
}
.main-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(17, 22, 29, 0.06);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background var(--t-fast);
}
.header-cta:hover { background: var(--coral-deep); text-decoration: none; }
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 10px;
  position: relative;
  margin-left: auto;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform var(--t-fast);
}
.hamburger span::before { transform: translate(-50%, calc(-50% - 6px)); }
.hamburger span::after  { transform: translate(-50%, calc(-50% + 6px)); }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.hamburger[aria-expanded="true"] span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg-card);
  z-index: 90;
  padding: 24px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mobile-drawer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer nav a {
  display: block;
  padding: 14px 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-drawer nav a:hover { background: var(--bg-page); text-decoration: none; }
.mobile-drawer .drawer-cta { margin-top: 16px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(17, 22, 29, 0.04); }
.btn-deep { background: var(--bg-deep); color: #fff; }
.btn-deep:hover { background: var(--bg-deep-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* =========================================================
   Sidebar-led hero
   ========================================================= */
.hero {
  padding: 56px 0 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px;
  align-items: start;
}
.hero-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 12px;
  position: sticky;
  top: 80px;
}
.hero-rail .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.hero-rail .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.04;
  margin-bottom: 16px;
}
.hero .lead {
  font-size: 19px;
  color: var(--ink-2);
  margin-bottom: 24px;
  max-width: 60ch;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  margin-top: 8px;
}
.hero-trust strong { color: var(--ink); font-weight: 600; }
.hero-figure {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  box-shadow: var(--shadow-2);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(14, 27, 44, 0.86);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-figure .caption .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* =========================================================
   Quick actions row (under hero)
   ========================================================= */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.qa-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.qa-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: rgba(232, 74, 59, 0.3); text-decoration: none; }
.qa-card .qa-num {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  color: var(--coral);
  font-weight: 600;
}
.qa-card h3 { font-size: 16px; margin: 0; }
.qa-card p { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.45; }

/* =========================================================
   Bento grid rhythm
   ========================================================= */
.bento {
  display: grid;
  gap: var(--gap);
}
.bento-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento-assym { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
.bento-rev-assym { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
.bento-narrow-left { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.bento-narrow-right { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.tile {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.tile-deep {
  background: var(--bg-deep);
  color: #fff;
  border-color: var(--bg-deep);
}
.tile-deep h2, .tile-deep h3 { color: #fff; }
.tile-deep .muted, .tile-deep .tiny { color: rgba(255,255,255,0.7); }
.tile-image {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.tile-image .tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(14, 27, 44, 0.85));
  color: #fff;
  padding: 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stat-tile .label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-tile .value { font-family: var(--font-serif); font-size: 36px; line-height: 1; color: var(--ink); font-weight: 600; }
.stat-tile .sub { font-size: 13px; color: var(--ink-3); }

/* =========================================================
   Chapter break (cinematic signature device)
   ========================================================= */
.chapter-break {
  margin: 56px 0;
  background: var(--bg-deep);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  align-items: stretch;
}
.chapter-break .cb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.chapter-break .cb-inner {
  position: relative;
  padding: 44px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}
.chapter-break .cb-inner .eyebrow { color: rgba(255,255,255,0.75); }
.chapter-break .cb-inner h2 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 34px;
  line-height: 1.12;
  margin: 0;
}
.chapter-break .cb-inner p { color: rgba(255,255,255,0.85); margin: 0; max-width: 48ch; }
.chapter-break .cb-figure {
  position: relative;
  z-index: 1;
  background-size: cover;
  background-position: center;
}

/* =========================================================
   News rail / cards
   ========================================================= */
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
  min-width: 0;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.news-card a { color: inherit; text-decoration: none; }
.news-card .nc-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.news-card .nc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.news-card .nc-meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.news-card .nc-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
.news-card h3 { font-size: 17px; margin: 0; line-height: 1.3; }
.news-card p { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.5; }

/* =========================================================
   Horizontal rail (snap)
   ========================================================= */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* =========================================================
   Provider grid
   ========================================================= */
.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.provider-card .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.provider-card .count { font-family: var(--font-serif); font-size: 26px; line-height: 1; color: var(--coral); font-weight: 600; }
.provider-card .sub { font-size: 12px; color: var(--ink-3); }

/* =========================================================
   Leaderboard table
   ========================================================= */
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.lb-table th, .lb-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.lb-table th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: var(--bg-page);
}
.lb-table tbody tr:hover { background: rgba(232, 74, 59, 0.04); }
.lb-table .rank { font-weight: 700; color: var(--ink); width: 48px; }
.lb-table .pname { font-weight: 500; }
.lb-table .prize { font-variant-numeric: tabular-nums; color: var(--coral); font-weight: 600; }

/* =========================================================
   VIP tier table
   ========================================================= */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tier-table th, .tier-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.tier-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: var(--bg-page);
  font-weight: 600;
}
.tier-table tr:nth-child(5n+1) td { background: rgba(232, 74, 59, 0.03); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-group { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  font-weight: 400;
  transition: transform var(--t-fast);
}
.faq-item[open] summary::after { content: "−"; color: var(--coral); }
.faq-item .faq-body { padding: 0 18px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* =========================================================
   Card grid for game profiles
   ========================================================= */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
  min-width: 0;
}
.game-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.game-card a { color: inherit; text-decoration: none; }
.game-card .gc-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-page);
  background-size: cover;
  background-position: center;
  position: relative;
}
.game-card .gc-thumb .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  background: rgba(14, 27, 44, 0.85);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.game-card .gc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.game-card .gc-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.game-card .gc-prov { font-size: 12px; color: var(--ink-3); }

/* =========================================================
   Section header (h2 + lead)
   ========================================================= */
.sec-h {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}
.sec-h .lead { max-width: 60ch; margin: 0; }
.sec-h h2 { margin: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  margin-top: 56px;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: 32px;
  margin-bottom: 32px;
}
.foot-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  font-weight: 600;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.foot-col .brand-mark { color: #fff; margin-bottom: 12px; }
.foot-col .brand-mark .sub { color: rgba(255,255,255,0.6); }
.foot-col p { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.7); margin: 0 0 12px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-legal a { color: rgba(255,255,255,0.7); }
.cookie-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}
.cookie-btn:hover { background: rgba(255,255,255,0.08); }

/* =========================================================
   Cookie consent panel
   ========================================================= */
.cookie-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  max-width: 360px;
  box-shadow: var(--shadow-2);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-panel[hidden] { display: none; }
.cookie-panel h3 { font-size: 16px; margin: 0 0 8px; }
.cookie-panel .cp-actions { display: flex; gap: 8px; margin-top: 12px; }
.cookie-panel .cp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}
.cookie-panel .cp-row label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.cookie-panel .cp-row input { accent-color: var(--coral); }

/* =========================================================
   Mobile sticky CTA rail
   ========================================================= */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 10px;
}
.sticky-cta[hidden] { display: none !important; }
.sticky-cta .sc-label {
  flex: 1;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.35;
  min-width: 0;
}
.sticky-cta .sc-label strong { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.sticky-cta .sc-cta { flex: 0 0 auto; }
.sticky-cta .sc-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
}

/* =========================================================
   Prose
   ========================================================= */
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 72ch; }
.prose h2 { margin-top: 32px; margin-bottom: 12px; font-size: 26px; }
.prose h3 { margin-top: 24px; margin-bottom: 8px; font-size: 20px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--coral);
  background: rgba(232, 74, 59, 0.05);
  color: var(--ink);
  font-size: 15px;
  border-radius: 0 10px 10px 0;
}
.prose .callout {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 14px;
}
.prose .callout.warn { border-left: 3px solid var(--warn); }
.prose .callout.good { border-left: 3px solid var(--good); }
.prose .callout.bad { border-left: 3px solid var(--bad); }
.prose .callout strong { display: block; margin-bottom: 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }

/* =========================================================
   Breadcrumb
   ========================================================= */
.crumbs {
  font-size: 12px;
  color: var(--ink-3);
  padding: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { color: var(--ink-4); }
.crumbs .current { color: var(--ink); font-weight: 500; }

/* =========================================================
   Article header
   ========================================================= */
.article-head {
  padding: 32px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: end;
}
.article-head h1 { font-size: 44px; margin-bottom: 12px; line-height: 1.1; }
.article-head .meta { display: flex; gap: 10px; font-size: 13px; color: var(--ink-3); align-items: center; }
.article-head .meta .dot { width: 4px; height: 4px; background: var(--ink-4); border-radius: 50%; }
.article-hero {
  border-radius: 18px;
  overflow: hidden;
  margin: 16px 0 32px;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-1);
}
.article-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; padding-bottom: 32px; }
.article-aside {
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.article-aside .aa-title { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.article-aside .aa-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.article-aside .aa-row:last-child { border-bottom: 0; }
.article-aside .aa-row span:last-child { color: var(--ink); font-weight: 600; }

/* =========================================================
   CTA banner / signpost
   ========================================================= */
.signpost {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.signpost::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--coral);
}
.signpost h3 { margin: 0; }
.signpost p { margin: 0; color: var(--ink-3); font-size: 14px; }
.signpost .sp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* =========================================================
   Comparison table
   ========================================================= */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table th { background: var(--bg-page); font-weight: 600; font-size: 13px; }
.compare-table .verdict { color: var(--ink-3); font-size: 13px; }

/* =========================================================
   Utility
   ========================================================= */
.hide-mobile { display: block; }
.show-mobile { display: none; }
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.gap-tight { gap: 12px; }
.flex-row { display: flex; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.center-y { align-items: center; }
.nowrap { white-space: nowrap; }
.section { padding: 32px 0; }
.section-tight { padding: 16px 0 32px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-rail { position: static; padding-right: 0; }
  .hero h1 { font-size: 44px; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-3, .bento-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-2, .bento-assym, .bento-rev-assym, .bento-narrow-left, .bento-narrow-right { grid-template-columns: 1fr; }
  .article-head, .article-body { grid-template-columns: 1fr; gap: 20px; }
  .article-aside { position: static; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .chapter-break { grid-template-columns: 1fr; min-height: auto; }
  .chapter-break .cb-figure { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  .container { padding: 0 16px; }
  .main-nav, .header-cta { display: none; }
  .hamburger { display: none; }
  .mobile-drawer[data-open="true"] { display: block; }
  .hero { padding: 32px 0 16px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; }
  .hero-figure { aspect-ratio: 4 / 3; }
  .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 76px; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
  .qa-card { min-height: 110px; padding: 14px; }
  .qa-card .qa-num { font-size: 22px; }
  .bento-3, .bento-4, .bento-2 { grid-template-columns: 1fr; gap: 16px; }
  .chapter-break { margin: 32px 0; }
  .chapter-break .cb-inner { padding: 28px 22px; }
  .chapter-break .cb-inner h2 { font-size: 24px; }
  .article-head h1 { font-size: 28px; }
  .stat-tile .value { font-size: 28px; }
  .lb-table th, .lb-table td { padding: 8px 10px; font-size: 12px; }
  .tier-table { font-size: 11px; }
  .tier-table th, .tier-table td { padding: 8px 6px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .hero-cta-row .btn { flex: 1 1 100%; }
}

/* Mobile drawer inert/focus rules */
.mobile-drawer[aria-hidden="true"] { display: none; }

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

/* === Mobile drawer wiring (re-applied; was missing) === */
@media (max-width: 899px) {
  .site-header .container { gap: 12px; height: 56px; }
  .site-header .main-nav { display: none; }
  .site-header .header-cta { display: none; }
  .site-header .hamburger { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; margin-left: auto; }
  .mobile-drawer { inset: 56px 0 0 0; padding: 16px; }
  .mobile-drawer .drawer-cta { display: flex; }
  .mobile-drawer .drawer-cta .btn { width: 100%; }
}

@media (min-width: 900px) {
  .site-header .main-nav { display: flex; }
  .site-header .header-cta { display: inline-flex; }
  .site-header .hamburger { display: none; }
}

.mobile-drawer [data-drawer-close] {
  display: block; width: 40px; height: 40px; line-height: 1;
  font-size: 28px; font-weight: 300; color: var(--ink);
  background: transparent; border: 1px solid var(--line);
  border-radius: 8px; margin: 0 0 8px auto; cursor: pointer;
  align-self: flex-end;
}

/* Card grid (canonical) — used across 404 and editorial/money pages. */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
}
.card h2,
.card h3 { margin: 0; line-height: 1.25; }
.card p { margin: 0; color: var(--ink-2); }
.card ul { margin: 6px 0 0; padding-left: 18px; }
.card ul li { margin: 4px 0; }
.card .btn { align-self: flex-start; margin-top: 8px; }
.card .card-meta {
  font-size: 12px; color: var(--ink-3); margin: 0; text-transform: none;
}

/* Tile body — for tile-shaped content blocks (legal/policy surfaces). */
.tile-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
.tile-body > h2,
.tile-body > h3 { margin: 0; }
.tile-body .tile-figure {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16 / 9;
  background: #eef1f5;
}
.tile-body .tile-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) {
  .tile-body.is-wide {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
  }
}

/* Sign grid — for dense definition/list layouts on policy pages. */
.sign-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.sign-grid .sign {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #ffffff;
}
.sign-grid .sign dt {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  font-size: 14px;
}
.sign-grid .sign dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
@media (max-width: 480px) {
  .sign-grid { grid-template-columns: 1fr; }
}
