/* ═══════════════════════════════════════════════════════════════
   BROKIX — Design System v2 (modern · minimal)
   One stylesheet for the whole public site. Page templates should use
   these components + tokens instead of inline styles.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Neutrals */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface2: #f4f4f5;
  --surface3: #ececee;
  --border: #e6e6e9;
  --border2: #d4d4d8;
  --ink: #09090b;
  --ink2: #3f3f46;
  --ink3: #71717a;
  --muted: #a1a1aa;

  /* Brand + semantic */
  --accent: #2563eb;
  --accent-dk: #1d4ed8;
  --accent-lt: #eff4ff;
  --accent-xlt: #dbe7ff;
  --green: #16a34a;
  --green-dk: #15803d;
  --green-lt: #effaf3;
  --amber: #d97706;
  --amber-lt: #fff8eb;
  --red: #dc2626;
  --red-lt: #fef2f2;
  --purple: #7c3aed;
  --purple-lt: #f5f3ff;
  --gold: #f59e0b;

  /* Shape + depth */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --r-full: 9999px;
  --sh-xs: 0 1px 2px rgba(9, 9, 11, .04);
  --sh-sm: 0 1px 3px rgba(9, 9, 11, .06), 0 1px 2px rgba(9, 9, 11, .04);
  --sh-md: 0 6px 24px -6px rgba(9, 9, 11, .10), 0 2px 6px rgba(9, 9, 11, .04);
  --sh-lg: 0 18px 48px -12px rgba(9, 9, 11, .18);

  /* Type */
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max-w: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; letter-spacing: -.022em; font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-xlt); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Layout ───────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.container-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }
/* Vertical spacing only, so it can be combined with .container without killing its side padding */
.section { padding-top: 40px; padding-bottom: 40px; }
.section-sm { padding-top: 24px; padding-bottom: 24px; }
.section + .section { padding-top: 0; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.layout-sidebar > aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.g-auto-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.flex-1 { flex: 1; min-width: 0; }

@media (max-width: 1024px) {
  .layout-sidebar { grid-template-columns: minmax(0, 1fr); }
  .layout-sidebar > aside { position: static; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .g-3, .g-2 { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 28px; padding-bottom: 28px; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .g-4 { grid-template-columns: minmax(0, 1fr); }
  .container, .container-narrow { padding: 0 16px; }
}
@media (min-width: 769px) { .show-mobile { display: none !important; } }

/* ── Typography helpers ───────────────────── */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -.025em; }
.h3 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.lead { font-size: 17px; color: var(--ink2); line-height: 1.65; }
.muted { color: var(--ink3); }
.faint { color: var(--muted); }
.text-xs { font-size: 12px; } .text-sm { font-size: 13px; } .text-md { font-size: 15px; } .text-lg { font-size: 17px; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.link { color: var(--accent); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #27272a; }
.btn-secondary, .btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border2); box-shadow: var(--sh-xs); }
.btn-secondary:hover, .btn-outline:hover { border-color: var(--ink3); background: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink2); }
.btn-ghost:hover { background: var(--surface2); color: var(--ink); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: var(--r-xs); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }

/* ── Badges / chips ───────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface2); color: var(--ink2); border: 1px solid transparent;
}
.badge-blue { background: var(--accent-lt); color: var(--accent-dk); }
.badge-green { background: var(--green-lt); color: var(--green-dk); }
.badge-amber { background: var(--amber-lt); color: #b45309; }
.badge-red { background: var(--red-lt); color: var(--red); }
.badge-purple { background: var(--purple-lt); color: var(--purple); }
.badge-gray { background: var(--surface2); color: var(--ink3); }
.badge-outline { background: transparent; border-color: var(--border2); color: var(--ink2); }
.badge-dark { background: var(--ink); color: #fff; }
.chip, .filter-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--ink2); cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover, .filter-chip:hover { border-color: var(--border2); color: var(--ink); }
.chip.active, .filter-chip.active, .chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }

/* ── Cards ────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.card-pad { padding: 20px; }
.card-pad-lg { padding: 28px; }
.card-head { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2, .card-head h3, .card-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); }
.card-hover { transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.card-hover:hover { border-color: var(--border2); box-shadow: var(--sh-md); transform: translateY(-2px); }
a.card { display: block; }
.card-muted { background: var(--surface2); border-color: transparent; box-shadow: none; }
.card-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-dark h2, .card-dark h3 { color: #fff; }

/* ── Section header ───────────────────────── */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.022em; }
.section-head p { font-size: 14px; color: var(--ink3); margin-top: 4px; }
.section-head .link, .section-head a.more { font-size: 13px; font-weight: 600; color: var(--ink3); white-space: nowrap; }
.section-head a.more:hover { color: var(--accent); }

/* ── Page hero (minimal) ──────────────────── */
.page-hero { padding: 40px 0 28px; border-bottom: 1px solid var(--border); background: var(--surface); }
.page-hero h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.032em; line-height: 1.1; }
.page-hero p { margin-top: 10px; font-size: 16px; color: var(--ink3); max-width: 680px; }
.page-hero .crumbs { margin-bottom: 14px; }
.hero {
  position: relative; padding: 64px 0 48px; overflow: hidden; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 260px at 15% -10%, rgba(37, 99, 235, .10), transparent 70%),
    radial-gradient(500px 240px at 90% 0%, rgba(124, 58, 237, .07), transparent 70%);
}
.hero > * { position: relative; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; max-width: 820px; }
.hero p.lead { margin-top: 16px; max-width: 620px; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: var(--ink3); }

/* ── Breadcrumb ───────────────────────────── */
.crumbs, .breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink3); }
.crumbs a, .breadcrumb a { color: var(--ink3); }
.crumbs a:hover, .breadcrumb a:hover { color: var(--ink); }
.crumbs .sep, .breadcrumb-sep { color: var(--border2); }
.crumbs [aria-current], .breadcrumb > span:last-child { color: var(--ink2); }

/* ── Lists ────────────────────────────────── */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-title { font-size: 14px; font-weight: 550; color: var(--ink); line-height: 1.4; }
a.list-title:hover, .list-row a:hover .list-title { color: var(--accent); }
.list-meta { font-size: 12px; color: var(--ink3); }
.card .list { padding: 0 20px; }

/* ── Media objects ────────────────────────── */
.logo-tile {
  width: 44px; height: 44px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--surface2); border: 1px solid var(--border); color: var(--ink2);
  font-size: 13px; font-weight: 750; letter-spacing: -.02em;
}
.logo-tile img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-tile.sm { width: 32px; height: 32px; font-size: 11px; border-radius: var(--r-sm); }
.logo-tile.lg { width: 64px; height: 64px; font-size: 18px; border-radius: var(--r-lg); }
.logo-tile.xl { width: 88px; height: 88px; font-size: 24px; border-radius: var(--r-xl); }
.thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--surface2); border-radius: var(--r-md); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; overflow: hidden; }

/* ── Ratings / scores ─────────────────────── */
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; line-height: 1; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.score-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 28px; padding: 0 8px; border-radius: var(--r-sm); font-weight: 750; font-size: 13px; background: var(--green-lt); color: var(--green-dk); }
.score-pill.mid { background: var(--amber-lt); color: #b45309; }
.score-pill.low { background: var(--red-lt); color: var(--red); }
.meter { height: 6px; border-radius: var(--r-full); background: var(--surface3); overflow: hidden; }
.meter > span, .meter > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }

/* ── Stats / key-values ───────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat-grid > div { background: var(--surface); padding: 14px 16px; }
.stat-label { font-size: 12px; color: var(--ink3); }
.stat-value { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.kv { width: 100%; font-size: 14px; }
.kv tr { border-bottom: 1px solid var(--border); }
.kv tr:last-child { border-bottom: 0; }
.kv th, .kv td { padding: 11px 0; text-align: left; vertical-align: top; }
.kv th { font-weight: 500; color: var(--ink3); width: 45%; }
.kv td { font-weight: 600; color: var(--ink); text-align: right; }

/* ── Tables ───────────────────────────────── */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink3); padding: 11px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfcfd; }

/* ── Forms ────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.hint { font-size: 12px; color: var(--ink3); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r-md);
  border: 1px solid var(--border2); background: var(--surface); color: var(--ink);
  font-size: 15px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.search-input { position: relative; }
.search-input svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input .input { padding-left: 38px; }

/* ── Alerts / empty ───────────────────────── */
.alert { padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--green-lt); border-color: #bbe6c8; color: var(--green-dk); }
.alert-error { background: var(--red-lt); border-color: #fbcaca; color: #b91c1c; }
.alert-info { background: var(--accent-lt); border-color: var(--accent-xlt); color: var(--accent-dk); }
.alert-warn { background: var(--amber-lt); border-color: #fde3b0; color: #92400e; }
.empty { text-align: center; padding: 56px 20px; color: var(--ink3); }
.empty .empty-icon { width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--surface2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 22px; }
.empty h2, .empty h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }

/* ── Tabs ─────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 10px 14px; font-size: 14px; font-weight: 550; color: var(--ink3); white-space: nowrap; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.active, .tab[aria-selected="true"] { color: var(--ink); }
.tab.active::after, .tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface2); border-radius: var(--r-md); }
.segmented button, .segmented a { height: 30px; padding: 0 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 550; color: var(--ink3); display: inline-flex; align-items: center; }
.segmented .active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }

/* ── Pagination ───────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 550; color: var(--ink2); }
.pagination a:hover { border-color: var(--border2); color: var(--ink); }
.pagination .active, .pagination [aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Prose (rich content) ─────────────────── */
.prose { font-size: 16.5px; line-height: 1.78; color: var(--ink2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.45em; margin-top: 1.9em; color: var(--ink); letter-spacing: -.025em; line-height: 1.25; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font-size: 1.18em; margin-top: 1.6em; color: var(--ink); line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h4 { font-size: 1.02em; margin-top: 1.4em; color: var(--ink); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong, .prose b { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--muted); }
.prose blockquote { border-left: 3px solid var(--ink); padding: 2px 0 2px 18px; color: var(--ink); font-size: 1.06em; font-style: italic; }
.prose img { border-radius: var(--r-md); }
.prose figure figcaption { font-size: 13px; color: var(--ink3); margin-top: 8px; text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface2); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.prose pre { background: #0b0b0f; color: #e4e4e7; padding: 16px 18px; border-radius: var(--r-md); overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { font-size: 14px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface2); font-weight: 600; color: var(--ink); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-md); }
.prose .callout { padding: 14px 16px; border-radius: var(--r-md); background: var(--accent-lt); border: 1px solid var(--accent-xlt); color: var(--ink2); font-style: normal; }
.prose .callout-warn { background: var(--amber-lt); border-color: #fde3b0; }
.prose .callout-success { background: var(--green-lt); border-color: #bbe6c8; }
.prose .callout-danger { background: var(--red-lt); border-color: #fbcaca; }
.prose .toc { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface2); font-size: 14.5px; }
.prose .toc ol, .prose .toc ul { margin-top: 6px; }
.prose .btn-cta { display: inline-flex; padding: 10px 18px; border-radius: var(--r-md); background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.text-center, .prose .text-center { text-align: center; }
.prose .text-right { text-align: right; }

/* FAQ accordion (works for prose FAQ and page FAQs) */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 15px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--ink3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 16px 14px; color: var(--ink2); font-size: 14.5px; line-height: 1.7; }

/* ── Header ───────────────────────────────── */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; }
.skip-link:focus { top: 10px; }
.topbar { background: var(--ink); color: #d4d4d8; font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.topbar a { color: #d4d4d8; }
.topbar a:hover { color: #fff; }
.topbar-links, .topbar-social { display: flex; align-items: center; gap: 16px; }
.topbar-social a { display: inline-flex; opacity: .8; }
.topbar-social a:hover { opacity: 1; }
@media (max-width: 640px) { .topbar-social, .topbar-date { display: none; } }
.topbar-links a { white-space: nowrap; }
@media (max-width: 640px) { .topbar-links { gap: 14px; min-width: 0; overflow-x: auto; scrollbar-width: none; } .topbar-links::-webkit-scrollbar { display: none; } .topbar-links .hide-mobile { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 90; height: var(--header-h);
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 24px -12px rgba(9, 9, 11, .18); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 44px; width: auto; }
@media (max-width: 640px) { .header-logo img { height: 38px; } }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 11px; border-radius: var(--r-sm); font-size: 14px; font-weight: 550; color: var(--ink2); white-space: nowrap; transition: background .15s, color .15s; }
.nav-link:hover, .nav-item:focus-within > .nav-link { background: var(--surface2); color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link svg { width: 12px; height: 12px; opacity: .6; }
.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: -6px; min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 100;
}
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-item:hover > .nav-dropdown, .nav-item:focus-within > .nav-dropdown, .nav-item.is-open > .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-item.is-closed > .nav-dropdown { opacity: 0 !important; visibility: hidden !important; }
.nav-dropdown.align-right { left: auto; right: -6px; }
.nav-dropdown a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink2); }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--surface2); color: var(--ink); }
.nav-item:has(.nav-dropdown) > .nav-link svg { transition: transform .15s; }
.nav-item.is-open > .nav-link svg, .nav-item:hover > .nav-link svg { transform: rotate(180deg); }
/* "More" menu: nav items that don't fit are moved here by main.js (never clipped) */
.nav-more[hidden] { display: none; }
.nav-more-btn { background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-more-list { min-width: 240px; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; }
.nav-more-list .nav-item { position: static; }
.nav-more-list .nav-link { display: flex; width: 100%; height: auto; padding: 8px 10px; font-size: 14px; }
.nav-more-list .nav-link svg { display: none; }
.nav-more-list .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 4px 12px; border: 0; box-shadow: none; background: none; }
.nav-more-list .nav-dropdown::before { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--border2); color: var(--ink); }
.search-trigger { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface2); color: var(--ink3); font-size: 13.5px; min-width: 200px; }
.search-trigger:hover { border-color: var(--border2); }
.search-trigger kbd { margin-left: auto; font-family: var(--font-body); font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border2); background: var(--surface); color: var(--ink3); }
.nav-toggle { display: none; }
@media (max-width: 1100px) { .search-trigger { min-width: 0; } .search-trigger span, .search-trigger kbd { display: none; } }
@media (max-width: 960px) {
  .site-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(9, 9, 11, .4); z-index: 200; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface); z-index: 201; transform: translateX(100%); visibility: hidden; transition: transform .28s var(--ease), visibility .28s; display: flex; flex-direction: column; box-shadow: var(--sh-lg); }
body.drawer-open .drawer { transform: none; visibility: visible; }
html { overflow-x: clip; } /* "clip" (unlike "hidden") keeps the sticky header working */
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px; }
.drawer-body > a, .drawer-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 550; color: var(--ink); cursor: pointer; list-style: none; }
.drawer-body > a:hover, .drawer-group > summary:hover { background: var(--surface2); }
.drawer-group > summary::-webkit-details-marker { display: none; }
.drawer-group > summary::after { content: "›"; font-size: 18px; color: var(--muted); transition: transform .2s; }
.drawer-group[open] > summary::after { transform: rotate(90deg); }
.drawer-group > div { padding: 0 0 6px 12px; }
.drawer-group > div a { display: block; padding: 9px 12px; font-size: 14px; color: var(--ink2); border-radius: var(--r-sm); }
.drawer-group > div a:hover { background: var(--surface2); }
.drawer-foot { padding: 14px 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; }

/* Search dialog */
.search-dialog { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(9, 9, 11, .45); backdrop-filter: blur(4px); }
.search-dialog.is-open { display: flex; }
.search-box { width: 100%; max-width: 620px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; border: 1px solid var(--border); }
.search-row { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.search-row svg { color: var(--muted); flex-shrink: 0; }
.search-row input { flex: 1; height: 56px; border: 0; outline: 0; font-size: 16px; background: transparent; }
.search-results { max-height: 55vh; overflow-y: auto; padding: 8px; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); }
.search-results a:hover, .search-results a.is-active { background: var(--surface2); }
.search-results .sr-type { font-size: 11px; font-weight: 600; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; margin-left: auto; }
.search-hint { padding: 14px 16px; font-size: 12px; color: var(--ink3); }
.search-tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 16px; }

/* ── Footer ───────────────────────────────── */
.site-footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--border); color: var(--ink3); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 48px 0 32px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.65; max-width: 300px; }
.footer-col h3 { font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--ink3); font-size: 14px; }
.footer-col a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--ink3); }
.footer-social a:hover { color: var(--ink); border-color: var(--border2); }
.footer-disclaimer { padding: 20px 0; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.7; color: var(--ink3); }
.footer-disclaimer strong { color: var(--ink2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--border); font-size: 13px; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Sticky promo bar */
.promo-sticky { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: var(--r-full); background: var(--ink); color: #fff; box-shadow: var(--sh-lg); font-size: 13.5px; max-width: calc(100vw - 24px); }
.promo-sticky p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-sticky .btn { height: 32px; border-radius: var(--r-full); }
.promo-sticky button.close { width: 28px; height: 28px; border-radius: 50%; color: #a1a1aa; font-size: 18px; line-height: 1; }
.promo-sticky button.close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.promo-sticky.is-hidden { display: none; }
@media (max-width: 560px) { .promo-sticky { left: 12px; right: 12px; transform: none; bottom: 12px; border-radius: var(--r-lg); } .promo-sticky p { white-space: normal; font-size: 12.5px; } }

/* ── Ads ──────────────────────────────────── */
.ad-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 6px; line-height: 1; }

/* The creative frame: sized from the slot (e.g. 970x90) via --ad-w / --ad-ratio, image fills it with object-fit:contain */
.ad-frame {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  width: 100%; max-width: var(--ad-w, 728px); aspect-ratio: var(--ad-ratio, 728 / 90); margin: 0 auto;
  border-radius: var(--r-md); background: var(--surface2);
}
.ad-frame.is-booked img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ad-frame.is-booked:hover { box-shadow: var(--sh-sm); }
.ad-frame.is-empty {
  flex-direction: column; gap: 3px; padding: 8px 12px; text-align: center; min-height: 64px;
  border: 1px dashed var(--border2); background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 10px, var(--bg) 10px, var(--bg) 20px);
  color: var(--ink3); font-size: 12.5px; transition: border-color .15s, color .15s;
}
.ad-frame.is-empty:hover { border-color: var(--accent); color: var(--accent); }
.ad-ph-name { font-weight: 650; color: var(--ink2); font-size: 13.5px; }
.ad-ph-meta { font-variant-numeric: tabular-nums; }
.ad-ph-cta { font-weight: 600; color: var(--accent); font-size: 12px; }
.ad-ph-admin { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #b45309; background: var(--amber-lt); border-radius: var(--r-full); padding: 1px 8px; }

.ad-banner { padding: 16px 0; }
.ad-banner .ad-inner { display: flex; flex-direction: column; align-items: center; width: 100%; }
.ad-banner-top { padding: 10px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.ad-banner-top .ad-label { margin-bottom: 5px; }
.ad-rect .ad-frame { max-width: 300px; }
/* Separate phone banner (header_mobile, 320x50): swaps in for the leaderboard on small screens */
.ad-mobile-only { display: none; }
@media (max-width: 640px) {
  .ad-banner-top.has-mobile .ad-desktop-only { display: none; }
  .ad-banner-top.has-mobile .ad-mobile-only { display: flex; }
}
@media (max-width: 640px) {
  .ad-banner { padding: 12px 0; }
  .ad-banner-top { padding: 8px 0; }
  .ad-frame.is-empty .ad-ph-cta { display: none; }
}

@media (min-width: 1280px) and (max-width: 1599px) {
  body:has(.ad-side) .search-trigger { min-width: 0; padding: 0 10px; }
  body:has(.ad-side) .search-trigger span, body:has(.ad-side) .search-trigger kbd { display: none; }
  body:has(.ad-side) .nav-link { padding: 0 8px; font-size: 13.5px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  body:has(.ad-side) .header-actions .btn { display: none; }
}

/* Fixed left/right skyscrapers ─ hidden on tablets/phones */
.ad-side { display: none; }
.ad-side .ad-frame { --side-w: min(300px, var(--ad-w, 300px)); max-width: var(--side-w); }
@media (min-width: 1100px) {
  /* Laptop mode: a slim "AD" tab on the screen edge; hover/tap slides the full creative out */
  .ad-side { display: block; position: fixed; top: 50%; transform: translateY(-50%); z-index: 85; }
  .ad-side.left { left: 0; }
  .ad-side.right { right: 0; }
  .ad-side-tab {
    display: flex; align-items: center; justify-content: center; width: 26px; height: 92px; padding: 0;
    background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .2em;
    writing-mode: vertical-rl; text-orientation: mixed; box-shadow: var(--sh-md); cursor: pointer; transition: background .15s;
  }
  .ad-side-tab:hover { background: var(--accent); }
  .ad-side.left .ad-side-tab { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
  .ad-side.right .ad-side-tab { border-radius: var(--r-sm) 0 0 var(--r-sm); }
  .ad-side-panel {
    position: absolute; top: 50%; width: max-content; padding: 10px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-lg);
    opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .2s, visibility .2s;
  }
  .ad-side.left .ad-side-panel { left: 0; border-radius: 0 var(--r-lg) var(--r-lg) 0; transform: translate(-100%, -50%); }
  .ad-side.right .ad-side-panel { right: 0; border-radius: var(--r-lg) 0 0 var(--r-lg); transform: translate(100%, -50%); }
  .ad-side:hover .ad-side-panel, .ad-side:focus-within .ad-side-panel, .ad-side.is-open .ad-side-panel { opacity: 1; visibility: visible; transform: translate(0, -50%); }
  .ad-side .ad-frame { width: min(300px, calc((100vh - 120px) * var(--ad-rw, .5))); }
}
@media (min-width: 1280px) {
  /* Desktop/laptop: permanent rails beside the content. When side ads exist the
     page content narrows just enough to leave room for them (never overlaps). */
  body:has(.ad-side) { --rail: clamp(160px, calc((100vw - 1200px) / 2 - 28px), 300px); }
  body:has(.ad-side) .container { max-width: min(var(--max-w), calc(100vw - 2 * (var(--rail) + 28px))); }
  /* Keep the header on one line inside the narrower container */
  body:has(.ad-side) .header-inner { gap: 14px; }
  /* Rails sit directly under the menu, hugging the content edges, and stay in view while scrolling.
     main.js sets the exact top/left/width (--ad-*); these values are the no-JS fallback. */
  .ad-side { width: var(--ad-fw, var(--rail)); top: var(--ad-top, calc(var(--header-h) + 16px)); transform: none; }
  .ad-side.left { left: var(--ad-x, 14px); }
  .ad-side.right { left: var(--ad-x, auto); right: auto; }
  .ad-side.right:not([style*="--ad-x"]) { right: 14px; }
  .ad-side.is-hidden { visibility: hidden; opacity: 0; }
  .ad-side-tab, .ad-side .ad-label { display: none; }
  .ad-side-panel, .ad-side.left .ad-side-panel, .ad-side.right .ad-side-panel {
    position: static; width: auto; padding: 0; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .ad-side .ad-frame { width: var(--ad-fw, min(var(--rail), calc((100vh - var(--header-h) - 40px) * var(--ad-rw, .5)))); max-width: none; border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
  .ad-side .ad-frame.is-empty { min-height: 0; }
}

/* ── Toast ────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120%); z-index: 500; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; box-shadow: var(--sh-lg); transition: transform .25s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* ── Misc components ──────────────────────── */
.divider { height: 1px; background: var(--border); border: 0; margin: 24px 0; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border2); display: inline-block; }
.kbd { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border: 1px solid var(--border2); border-radius: 5px; background: var(--surface2); }
.pros, .cons { display: flex; flex-direction: column; gap: 8px; }
.pros li, .cons li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink2); }
.pros li::before, .cons li::before { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.pros li::before { content: "✓"; background: var(--green-lt); color: var(--green-dk); }
.cons li::before { content: "✕"; background: var(--red-lt); color: var(--red); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border-radius: var(--r-xl); background: var(--ink); color: #d4d4d8; }
.cta-band h2, .cta-band h3 { color: #fff; font-size: 19px; }
.cta-band p { font-size: 14px; margin-top: 4px; }
.share-row { display: flex; gap: 6px; align-items: center; }
.share-row a, .share-row button { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); background: var(--surface); }
.share-row a:hover, .share-row button:hover { border-color: var(--border2); color: var(--ink); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.revealed { opacity: 1; transform: none; }
.countdown { display: flex; gap: 8px; }
.countdown > div { min-width: 64px; padding: 10px 8px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.countdown strong { display: block; font-size: 22px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; }

/* Branded cover for posts/releases without a featured image (instead of an empty grey box) */
.thumb-empty, .thumb-ph {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  background:
    url('/assets/img/favicon.png') center / 44px no-repeat,
    radial-gradient(120% 90% at 0% 0%, rgba(37, 99, 235, .14), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, rgba(124, 58, 237, .12), transparent 60%),
    var(--accent-lt);
}
.thumb-empty::after, .thumb-ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 22px 22px; mix-blend-mode: soft-light;
}
.thumb-empty > svg, .thumb-ph > svg { display: none; }
.grid > :nth-child(3n+2) .thumb-empty, .grid > :nth-child(3n+2) .thumb-ph { background-color: var(--green-lt); }
.grid > :nth-child(3n+3) .thumb-empty, .grid > :nth-child(3n+3) .thumb-ph { background-color: var(--purple-lt); }

/* Forms: honeypot + required marker */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.req { color: var(--red); }

/* ── Homepage hero v3 (grid glow · gradient headline · search-first · layered offer board) ── */
.hx { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--border); padding: 40px 0 0; isolation: isolate; }
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 25% 0%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 75% 70% at 25% 0%, #000 25%, transparent 75%);
}
.hx-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 320px at 12% -8%, rgba(37, 99, 235, .13), transparent 70%), radial-gradient(520px 300px at 92% 8%, rgba(22, 163, 74, .10), transparent 70%);
}
.hx-chart { position: absolute; right: -40px; bottom: 54px; width: min(720px, 70vw); height: auto; opacity: .5; }
.hx-chart path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: hxDraw 2.6s var(--ease) .2s forwards; }
.hx-chart .area { fill: url(#hxFill); stroke: none; stroke-dasharray: none; animation: none; opacity: .7; }
@keyframes hxDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hx-chart path { animation: none; stroke-dashoffset: 0; } .dot-live::after { animation: none; } }

.hx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; }
.hx-pill, .pill-live { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: var(--r-full); border: 1px solid var(--border); background: rgba(255, 255, 255, .8); font-size: 12.5px; font-weight: 550; color: var(--ink2); box-shadow: var(--sh-xs); }
.hx-pill:hover { border-color: var(--border2); color: var(--ink); }
.hx-pill b { font-weight: 700; color: var(--green-dk); }
.dot-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: hxPulse 2s ease-out infinite; }
@keyframes hxPulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
.hx h1 { margin-top: 18px; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.045em; line-height: 1.03; max-width: 680px; }
.hx-mark { background: linear-gradient(92deg, var(--accent) 10%, #7c3aed 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-lead { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink3); max-width: 560px; }
.hx-search { display: flex; align-items: center; gap: 8px; margin-top: 26px; max-width: 560px; height: 58px; padding: 6px 6px 6px 16px; border: 1px solid var(--border2); border-radius: 16px; background: var(--surface); box-shadow: var(--sh-md); transition: border-color .15s, box-shadow .15s; }
.hx-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-xlt), var(--sh-md); }
.hx-search svg { flex-shrink: 0; color: var(--muted); }
.hx-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--ink); }
.hx-search .btn { height: 44px; border-radius: 11px; padding: 0 18px; }
.hx-quick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--ink3); }
.hx-quick a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--ink2); font-weight: 550; transition: border-color .15s, color .15s; }
.hx-quick a:hover { border-color: var(--ink); color: var(--ink); }
.hx-quick a.is-hot { border-color: #bbe6c8; background: var(--green-lt); color: var(--green-dk); }
.hx-stats { display: flex; gap: 0; margin-top: 28px; flex-wrap: wrap; }
.hx-stats div { padding: 0 22px; border-left: 1px solid var(--border); }
.hx-stats div:first-child { padding-left: 0; border-left: 0; }
.hx-stats strong { display: block; font-size: 22px; font-weight: 750; letter-spacing: -.025em; }
.hx-stats span { font-size: 12.5px; color: var(--ink3); }

.hx-board-wrap { position: relative; }
.hx-board-wrap::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--accent-xlt), var(--green-lt)); border: 1px solid var(--border); }
.hx-board { position: relative; border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.hx-board .tabs { padding: 0 14px; gap: 2px; }
.hx-board .tab { height: 46px; font-size: 13.5px; }
.hx-board .tab-panel { padding: 4px 18px; }
.hx-board .card-foot { font-size: 13px; }
.hx-amt { display: inline-flex; margin-top: 3px; padding: 2px 8px; border-radius: var(--r-full); background: var(--green-lt); color: var(--green-dk); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hx-regs { display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap; margin-top: 40px; padding: 16px 0; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--ink3); }
.hx-regs strong { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ink2); }
@media (max-width: 1024px) { .hx-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .hx-board-wrap { max-width: 560px; } .hx-chart { opacity: .3; } }
@media (max-width: 640px) {
  .hx { padding-top: 24px; }
  .hx h1 { font-size: 31px; }
  .hx-lead { font-size: 15.5px; }
  .hx-search { height: 52px; }
  .hx-search .btn { padding: 0 14px; }
  .hx-search .btn span { display: none; }
  .hx-stats { display: none; }
  .hx-board-wrap::before { inset: 10px -6px -10px 6px; }
  .hx-regs { margin-top: 28px; }
}

/* ── Forex No Deposit Bonus hub + offer pages ── */
.ndb-hero { position: relative; overflow: hidden; padding: 28px 0 34px; background: var(--surface); border-bottom: 1px solid var(--border); isolation: isolate; }
.ndb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(560px 280px at 8% -10%, rgba(22, 163, 74, .12), transparent 70%), radial-gradient(520px 260px at 95% 0%, rgba(37, 99, 235, .10), transparent 70%); }
.ndb-hero .crumbs { margin-bottom: 18px; }
.ndb-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: end; }
.ndb-hero h1 { margin-top: 14px; font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.ndb-intro { margin-top: 14px; max-width: 640px; font-size: 16.5px; color: var(--ink3); }
.ndb-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ndb-byline { margin-top: 14px; font-size: 13px; color: var(--ink3); }
.ndb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.ndb-stats div { background: var(--surface); padding: 16px 18px; }
.ndb-stats dt { font-size: 12.5px; color: var(--ink3); }
.ndb-stats dd { margin-top: 2px; font-size: 24px; font-weight: 750; letter-spacing: -.025em; }
.ndb-toolbar { align-items: center; }
.ndb-sort .select { height: 38px; min-width: 170px; }
.ndb-list { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; container-type: inline-size; }
.ndb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color .15s, box-shadow .15s; }
.ndb-card:hover { border-color: var(--border2); box-shadow: var(--sh-md); }
.ndb-card.is-featured { border-color: #f5d391; box-shadow: 0 0 0 3px var(--amber-lt); }
.ndb-card-main { display: grid; grid-template-columns: minmax(200px, 1.3fr) 130px minmax(0, 2fr) 190px; gap: 20px; align-items: center; padding: 18px 20px; }
.ndb-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ndb-rank { width: 22px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; flex-shrink: 0; }
.ndb-name { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.ndb-name a:hover { color: var(--accent); }
.ndb-amount strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.035em; color: var(--green-dk); line-height: 1.1; }
.ndb-amount span { font-size: 12px; color: var(--ink3); }
.ndb-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ndb-terms dt { font-size: 11.5px; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.ndb-terms dd { margin-top: 3px; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.ndb-terms .ok { display: inline-flex; align-items: center; gap: 4px; color: var(--green-dk); }
.ndb-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.ndb-code { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px dashed var(--border2); border-radius: var(--r-sm); background: var(--surface2); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.ndb-code:hover { border-color: var(--accent); color: var(--accent); }
.ndb-card-foot { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 10px 20px; border-top: 1px solid var(--border); background: var(--bg); border-radius: 0 0 var(--r-lg) var(--r-lg); font-size: 12.5px; color: var(--ink3); }
.ndb-summary { color: var(--ink2); }
.ndb-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.ndb-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ndb-meta a { color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; }
.ndb-table td, .ndb-table th { white-space: nowrap; }
.ndb-table tbody th { background: none; font-size: 14px; color: var(--ink); padding: 12px 14px; border-bottom: 1px solid var(--border); }
.ndb-table tbody tr:last-child th { border-bottom: 0; }
.toc-card ol { display: grid; gap: 6px; font-size: 14px; padding-left: 18px; list-style: decimal; }
.ndb-faq { max-width: 820px; }
.ndb-expired { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.ndb-expired summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 18px; cursor: pointer; list-style: none; }
.ndb-expired summary::-webkit-details-marker { display: none; }
.ndb-expired summary h2 { font-size: 16px; }
.ndb-expired ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; padding: 0 18px 18px; }
.ndb-expired li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ndb-expired li a { color: var(--ink2); }
.ndb-disclaimer { margin: 32px 0 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface2); font-size: 12.5px; line-height: 1.65; color: var(--ink3); }
.ndb-offer-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ndb-offer-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.ndb-offer-cta { display: flex; flex-direction: column; gap: 8px; align-items: center; min-width: 240px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-md); text-align: center; }
.ndb-offer-cta > strong { font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--green-dk); line-height: 1; }
.ndb-steps { counter-reset: step; display: grid; gap: 10px; list-style: none; padding: 0; }
.ndb-steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 52px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-size: 15px; color: var(--ink2); }
.ndb-steps li::before { content: counter(step); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1100px) {
  .ndb-card-main { grid-template-columns: minmax(0, 1fr) auto; }
  .ndb-terms { grid-column: 1 / -1; grid-row: 2; }
  .ndb-actions { grid-column: 1 / -1; grid-row: 3; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ndb-actions .btn-primary { flex: 1; min-width: 160px; }
}
/* Cards follow the real content width (side ad rails narrow the page), not just the screen width */
@container (max-width: 1020px) {
  .ndb-card-main { grid-template-columns: minmax(0, 1fr) auto; }
  .ndb-terms { grid-column: 1 / -1; grid-row: 2; }
  .ndb-actions { grid-column: 1 / -1; grid-row: 3; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ndb-actions .btn-primary { flex: 1; min-width: 160px; }
}
@container (max-width: 560px) {
  .ndb-card-main { padding: 16px; gap: 14px; }
  .ndb-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ndb-amount strong { font-size: 22px; }
  .ndb-rank { display: none; }
}@media (max-width: 960px) { .ndb-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; } }
@media (max-width: 640px) {
  .ndb-card-main { padding: 16px; gap: 14px; }
  .ndb-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ndb-amount strong { font-size: 22px; }
  .ndb-rank { display: none; }
  .ndb-card-foot { padding: 10px 16px; }
  .ndb-offer-cta { width: 100%; }
  .ndb-stats dd { font-size: 20px; }
}

/* Print */
@media print {
  .topbar, .site-header, .site-footer, .promo-sticky, .ad-banner, .ad-side, .no-print, .drawer, .drawer-backdrop { display: none !important; }
  body { background: #fff; }
  .layout-sidebar { grid-template-columns: minmax(0, 1fr); }
  .layout-sidebar > aside { display: none; }
}
