/* Framing Edge - Instant Withdraw Casino Canada
   Visual direction: Performance Industrial (primary) + Civic Editorial (metadata/source layer).
   Technical monochrome + electric blue. Square geometry, thin gridlines, monospace labels.
   No JavaScript. All interaction is CSS-only. */

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0f12;
  --surface: #15181d;
  --surface-alt: #101318;
  --line: #262b33;
  --line-soft: #1d2229;
  --accent: #2f6bff;
  --accent-dim: rgba(47, 107, 255, 0.14);
  --accent-line: rgba(47, 107, 255, 0.45);
  --text: #e6e9ee;
  --muted: #8a93a3;
  --warning: #ffb454;
  --focus: #6ea0ff;

  --font-sans: system-ui, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "Consolas", "SF Mono", monospace;

  --step--1: clamp(0.75rem, 0.72rem + 0.12vw, 0.82rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.06rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(1.7rem, 1.3rem + 2vw, 2.75rem);

  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;

  --container: 75rem;
  --reading: 44rem;

  --radius: 2px;
  --radius-0: 0px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 var(--space-3); }
p { margin: 0 0 var(--space-3); }
strong { color: var(--text); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; font-family: var(--font-mono);
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible,
.nav-toggle:focus-visible + .nav-btn {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Screen-reader-clipped controls, pinned in viewport so label clicks do not scroll the page */
.nav-toggle, .hero-toggle, .cookie-toggle, .rm-toggle {
  position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-2);
}
.lede { color: var(--muted); font-size: var(--step-1); }

/* ---------- Brand mark ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800;
  letter-spacing: -0.02em; font-size: 1.15rem; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .bracket { color: var(--accent); font-family: var(--font-mono); font-weight: 700; }
.brand .brand-name { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 50;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 60px; padding-block: 0.6rem;
}
.site-nav ul { list-style: none; display: flex; gap: var(--space-4); margin: 0; padding: 0; }
.site-nav a {
  color: var(--muted); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase; font-family: var(--font-mono); padding: 0.5rem 0;
  display: inline-block; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); text-decoration: none; }

/* Hamburger */
.nav-btn {
  display: none; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.75rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; cursor: pointer;
}
.nav-btn .bars { position: relative; width: 18px; height: 2px; background: var(--text); display: inline-block; }
.nav-btn .bars::before, .nav-btn .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
}
.nav-btn .bars::before { top: -6px; }
.nav-btn .bars::after { top: 6px; }
.nav-btn .lbl-close { display: none; }
.nav-toggle:checked ~ .nav-btn .lbl-open { display: none; }
.nav-toggle:checked ~ .nav-btn .lbl-close { display: inline; }

@media (max-width: 900px) {
  .nav-btn { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: var(--space-2) var(--space-4); }
  .site-nav a { display: block; min-height: 44px; line-height: 44px; border-bottom: 1px solid var(--line-soft); }
  .site-nav li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-2) var(--space-1); border-bottom: 1px solid var(--line); background:
  linear-gradient(180deg, rgba(47,107,255,0.04), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2); align-items: start; }
.hero h1 { font-size: var(--step-3); line-height: 1.05; margin-bottom: var(--space-1); max-width: 34ch; }
.hero h1 .hl { color: var(--accent); }
.hero-copy p { text-align: left; line-height: 1.4; margin-bottom: var(--space-2); max-width: 52ch; }

.hero-more { display: none; }
.rm-toggle:checked ~ .hero-more { display: block; }
.rm-label {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; cursor: pointer;
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.rm-label::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.2s ease;
}
.rm-toggle:checked ~ .rm-label::after { transform: rotate(-135deg); }
.rm-label .lbl-less { display: none; }
.rm-toggle:checked ~ .rm-label .lbl-more { display: none; }
.rm-toggle:checked ~ .rm-label .lbl-less { display: inline; }

/* Reviewer byline row */
.byline {
  display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2);
  padding: var(--space-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.byline .avatar {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--radius); background: var(--accent-dim);
  border: 1px solid var(--accent-line); color: var(--accent); font-family: var(--font-mono);
  font-weight: 700; display: grid; place-items: center; font-size: 0.9rem;
}
.byline .who { min-width: 0; }
.byline .who .name { font-weight: 700; white-space: nowrap; }
.byline .who .role { color: var(--muted); font-family: var(--font-mono); font-size: var(--step--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.byline .who .role-short { display: none; }
.byline .meta {
  margin-left: auto; display: flex; gap: var(--space-3); padding-left: var(--space-3);
  border-left: 1px solid var(--line);
}
.byline .meta .stat { text-align: right; }
.byline .meta .stat .k { display: block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.byline .meta .stat .v { font-weight: 700; font-size: var(--step--1); }

/* Editor's choice box (desktop only) */
.editor-choice { display: none; }

@media (min-width: 901px) {
  .hero-grid { grid-template-columns: 55fr 45fr; gap: var(--space-5); }
  .editor-choice {
    display: block; background: var(--surface); border: 1px solid var(--line);
    border-top: 2px solid var(--accent); border-radius: var(--radius); padding: var(--space-3);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius);
  font-family: var(--font-mono); font-weight: 700; font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; border: 1px solid transparent;
  text-align: center;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #1f57e6; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn--full { width: 100%; }

/* ---------- Section headings ---------- */
.section-head { max-width: var(--reading); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-2); }
.section-head .eyebrow { }

/* ---------- Ranked operator list ---------- */
.oplist { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-2); }
.op-card {
  display: grid; grid-template-columns: 42px 15rem minmax(0, 1fr) 10.5rem; align-items: center;
  gap: var(--space-3); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
}
.op-card .rank { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--muted); text-align: center; }
.op-id { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.op-mark {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: var(--radius);
  background: var(--surface-alt); border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 800; color: var(--accent); font-size: 1.1rem;
  overflow: hidden;
}
.op-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.op-name { font-weight: 700; font-size: var(--step-0); }
.op-name .op-sub { display: block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.op-offer {
  background: var(--surface-alt); border-left: 3px solid var(--line); padding: 0.6rem 0.9rem;
  border-radius: var(--radius); min-width: 0;
}
.op-offer .offer-v { font-weight: 700; }
.op-offer .offer-v strong { color: var(--accent); }
.op-offer .offer-q { display: block; font-size: var(--step--1); color: var(--muted); font-family: var(--font-mono); }

/* Featured (top) card */
.op-card--featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), 0 14px 40px rgba(47,107,255,0.08); background: linear-gradient(180deg, rgba(47,107,255,0.05), var(--surface) 55%); }
.op-card--featured .op-offer { border-left-color: var(--accent); background: var(--accent-dim); }
.op-ribbon {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin: 0 calc(-1 * var(--space-4));
  padding: 0.5rem var(--space-4); background: var(--accent); color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}
.op-ribbon .tag {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; background: rgba(0,0,0,0.25); padding: 0.15rem 0.5rem; border-radius: var(--radius);
}
.op-ribbon .why { font-size: var(--step--1); }
.op-card--featured { padding-top: 0; row-gap: var(--space-3); }

.list-note {
  margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted);
  font-family: var(--font-mono); text-align: center;
}

/* Compact top-3 compare table */
.compare-wrap { overflow-x: auto; margin-top: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--step--1); }
.compare caption {
  text-align: left; padding: 0.75rem var(--space-3); background: var(--surface-alt);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.compare th, .compare td { padding: 0.75rem var(--space-3); text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th {
  background: #0b0d10; color: var(--text); font-family: var(--font-mono); text-transform: uppercase;
  font-size: 0.7rem; letter-spacing: 0.08em; border-bottom: 2px solid var(--accent);
}
.compare tbody tr:nth-child(even) { background: var(--surface-alt); }
.compare tbody tr:hover { background: rgba(47,107,255,0.06); }
.compare .num { font-family: var(--font-mono); }
.compare .op-cell { font-weight: 700; }

/* ---------- Method / grid cards ---------- */
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-4); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4);
}
.card .k {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: var(--space-2);
}
.card h3 { font-size: var(--step-1); }
.card p { color: var(--muted); font-size: var(--step--1); margin: 0; }

@media (min-width: 561px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 981px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Two-panel compare */
.duo { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 761px) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.panel h3 { font-size: var(--step-1); }
.panel--up { border-top: 2px solid var(--accent); }
.panel--down { border-top: 2px solid var(--warning); }
.panel ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.panel li { margin-bottom: 0.4rem; }

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: var(--space-4);
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 761px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip .cell { background: var(--surface); padding: var(--space-4); text-align: center; }
.stat-strip .cell .v { font-family: var(--font-mono); font-size: var(--step-2); font-weight: 700; color: var(--accent); }
.stat-strip .cell .k { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- Safe gambling panel ---------- */
.safe-panel {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--warning);
  border-radius: var(--radius); padding: var(--space-4); margin-top: var(--space-4);
}
.safe-panel h2 { font-size: var(--step-1); }
.safe-panel .contacts { display: grid; gap: var(--space-2); grid-template-columns: 1fr; margin-top: var(--space-3); }
@media (min-width: 601px) { .safe-panel .contacts { grid-template-columns: 1fr 1fr; } }
.safe-panel .contacts li { list-style: none; }
.safe-panel ul { padding: 0; margin: 0; }

/* ---------- Speed tier / payment tables ---------- */
.data-wrap { overflow-x: auto; margin-top: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; font-size: var(--step--1); }
table.data caption {
  text-align: left; padding: 0.75rem var(--space-3); background: var(--surface-alt);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
table.data th, table.data td { padding: 0.7rem var(--space-3); text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data thead th {
  background: #0b0d10; font-family: var(--font-mono); text-transform: uppercase; font-size: 0.7rem;
  letter-spacing: 0.08em; border-bottom: 2px solid var(--accent);
}
table.data tbody tr:nth-child(even) { background: var(--surface-alt); }
table.data tbody tr:hover { background: rgba(47,107,255,0.06); }
table.data .num { font-family: var(--font-mono); }

/* ---------- Article + sidebar ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-4); align-items: start; }
.article { min-width: 0; }
.article > *:not(.data-wrap):not(.duo):not(.grid-4) { max-width: var(--reading); }
.article h2 { font-size: var(--step-2); margin-top: var(--space-5); scroll-margin-top: 80px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: var(--step-1); margin-top: var(--space-4); }
.article ol, .article ul { color: var(--text); padding-left: 1.2rem; max-width: var(--reading); }
.article li { margin-bottom: 0.4rem; }
.article .sec-no { font-family: var(--font-mono); color: var(--accent); margin-right: 0.5rem; }
.example {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-family: var(--font-mono);
  font-size: var(--step--1); max-width: var(--reading);
}

.toc { display: none; }
@media (min-width: 1100px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr) 16rem; }
  .toc {
    display: block; position: sticky; top: var(--space-4); align-self: start;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4);
  }
  .toc .k { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: var(--space-3); }
  .toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
  .toc li { counter-increment: toc; margin-bottom: 0.5rem; }
  .toc a { color: var(--muted); font-size: var(--step--1); display: block; padding-left: 2.2rem; text-indent: -2.2rem; }
  .toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--font-mono); color: var(--accent); }
  .toc a:hover { color: var(--text); }
}

/* ---------- Lead section (ranked list sits close to hero) ---------- */
.section--lead { padding-top: var(--space-2); }
.section--lead .section-head { margin-bottom: 0; }
.section--lead .section-head h2 { margin-bottom: var(--space-1); }
.section--lead .section-head .lede { margin-bottom: 0; }

/* ---------- Byline / About portrait image ---------- */
.byline .avatar { overflow: hidden; padding: 0; }
.byline .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-card {
  display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3);
  padding: var(--space-3); background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.author-card .portrait {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--accent-line); background: var(--accent-dim);
}
.author-card .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-card .portrait.initials {
  display: grid; place-items: center; color: var(--accent); font-family: var(--font-mono);
  font-weight: 700; font-size: 1.15rem;
}
.author-card .who .name { font-weight: 700; }
.author-card .who .role { display: block; color: var(--muted); font-family: var(--font-mono); font-size: var(--step--1); }

/* ---------- In-depth reviews ---------- */
.reviews { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-4); }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-4); scroll-margin-top: 80px;
}
.review .rev-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--space-3); }
.review .rev-head .op-mark { width: 42px; height: 42px; flex: 0 0 42px; font-size: 1rem; }
.review h3 { font-size: var(--step-1); margin: 0; }
.review h3 .rev-sub { display: block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.review p { max-width: var(--reading); color: var(--text); }
.review p:last-of-type { margin-bottom: var(--space-4); }
.review .rev-best { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-2); }
.review .rev-cta { margin: 0; }
.review .rev-cta .btn { max-width: 22rem; width: 100%; }
@media (min-width: 561px) { .review .rev-cta .btn { width: auto; min-width: 14rem; } }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.faq .qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.faq .qa h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.faq .qa p { margin: 0; color: var(--muted); }

/* ---------- Generic page content ---------- */
.page-hero { padding-block: var(--space-5) var(--space-4); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--step-2); max-width: 24ch; }
.prose { max-width: var(--reading); }
.prose h2 { font-size: var(--step-1); margin-top: var(--space-5); }
.prose h3 { font-size: var(--step-0); margin-top: var(--space-4); text-transform: none; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: var(--space-4); margin-block: var(--space-4);
}
.meta-line { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }

/* Contact detail list */
.dl { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 601px) { .dl { grid-template-columns: 1fr 1fr; } }
.dl .item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.dl .item .k { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.dl .item .v { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--line); margin-top: var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); padding-block: var(--space-5); }
@media (min-width: 761px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: var(--space-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--muted); font-size: var(--step--1); }
.footer-col a:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: var(--step--1); max-width: 40ch; }
.footer-legal {
  border-top: 1px solid var(--line); padding-block: var(--space-4);
  font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between;
}
.footer-legal .age {
  font-family: var(--font-mono); border: 1px solid var(--warning); color: var(--warning);
  padding: 0.1rem 0.5rem; border-radius: var(--radius); font-weight: 700;
}

/* ---------- Cookie notice ---------- */
.cookie-note {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--surface); border-top: 1px solid var(--accent-line);
  padding: 0.75rem var(--space-4); display: flex; align-items: center; gap: var(--space-3);
  opacity: 0; visibility: hidden;
  animation: cookie-in 0.35s ease-out 2s forwards;
}
.cookie-note p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.cookie-note .btn { flex: 0 0 auto; }
.cookie-toggle:checked ~ .cookie-note { display: none; }
@keyframes cookie-in {
  from { opacity: 0; visibility: visible; transform: translateY(12px); }
  to { opacity: 1; visibility: visible; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-note { animation: cookie-in-rm 0.01s linear 2s forwards; }
  @keyframes cookie-in-rm { from { opacity: 0; visibility: visible; } to { opacity: 1; visibility: visible; } }
}
@media (max-width: 560px) {
  .cookie-note { flex-wrap: nowrap; }
  .cookie-note p { font-size: 0.76rem; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 110;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--radius);
  color: var(--accent);
}
.to-top::before {
  content: ""; width: 10px; height: 10px; border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent); transform: rotate(45deg) translate(1px, 1px);
}
.to-top:hover { background: var(--accent-dim); }
.cookie-toggle:not(:checked) ~ .to-top { bottom: 6.5rem; }
@media (max-width: 560px) { .cookie-toggle:not(:checked) ~ .to-top { bottom: 8rem; } }

@supports (animation-timeline: scroll()) {
  .to-top { opacity: 0; animation: to-top-in linear both; animation-timeline: scroll(root block); animation-range: 300px 600px; }
  @keyframes to-top-in { to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  @supports (animation-timeline: scroll()) { .to-top { opacity: 1; animation: none; } }
}

/* ---------- Responsive: operator cards fold ---------- */
@media (max-width: 980px) {
  .op-card {
    grid-template-columns: 42px 1fr; grid-template-areas:
      "rank id"
      "offer offer"
      "cta cta";
    row-gap: var(--space-3);
  }
  .op-card .rank { grid-area: rank; text-align: left; }
  .op-id { grid-area: id; }
  .op-offer { grid-area: offer; }
  .op-cta { grid-area: cta; }
  .op-ribbon { display: none; }
  .op-card--featured { padding-top: var(--space-3); }
}
@media (max-width: 700px) {
  .op-card { grid-template-columns: 1fr; grid-template-areas: "rank" "id" "offer" "cta"; }
}

/* ---------- Responsive: byline steps ---------- */
@media (max-width: 700px) {
  .byline .who .role-long { display: none; }
  .byline .who .role-short { display: block; }
  .byline .who .name { white-space: nowrap; }
}
@media (max-width: 360px) {
  .byline { gap: var(--space-2); padding: var(--space-2); }
  .byline .avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 0.8rem; }
  .byline .meta { gap: var(--space-2); padding-left: var(--space-2); }
  .byline .who .name { font-size: var(--step--1); }
}

/* ---------- Responsive: brand stacks ---------- */
@media (max-width: 340px) {
  .brand { flex-wrap: wrap; font-size: 1rem; gap: 0.3rem; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.inline-links a { margin-right: var(--space-3); }
