/* =========================================================================
   Best Online Casino NZ — Editorial Dossier preset
   Display: Playfair Display 900 | Body: Public Sans 400/600 | Mono: IBM Plex Mono 500
   ========================================================================= */

:root {
  --page: #FFFFFF;
  --section: #FAF7F0;
  --ink: #000000;
  --olive: #3E4A26;
  --orange: #D2601A;
  --blue: #1B5FCB;
  --body-text: #4A4238;
  --white: #FFFFFF;

  --shadow-off: 6px 6px 0 0 var(--ink);
  --radius: 0;

  --font-display: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;

  --container: 1180px;
  --gap: 1.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration-thickness: 1.5px; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  border-bottom: 3px solid var(--ink);
  background: var(--white);
  position: relative;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  white-space: nowrap;
}
.brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  flex: none;
}
.brand .brand-half-a { color: var(--ink); }
.brand .brand-half-b { color: var(--orange); }

.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.nav-btn {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: var(--white);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
}
.nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--blue); outline-offset: 2px; }

.hamburger { position: relative; width: 18px; height: 12px; display: inline-block; }
.hamburger span, .hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--white);
}
.hamburger::before { top: 0; }
.hamburger span { top: 5px; }
.hamburger::after { top: 10px; }

.nav-label-open { display: inline; }
.nav-label-close { display: none; }
.nav-toggle:checked ~ .nav-btn .nav-label-open { display: none; }
.nav-toggle:checked ~ .nav-btn .nav-label-close { display: inline; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0; padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--orange); }

@media (max-width: 900px) {
  .nav-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--ink);
    box-shadow: var(--shadow-off);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    min-height: 44px;
    border-bottom: 1px solid var(--section);
  }
  /* Compact the header so the ranked list sits above the fold */
  .site-header .container { min-height: 56px; }
  .hero { padding: 0.6rem 0 0.5rem; }
  .hero-copy h1 { margin-bottom: 0.3rem; }
  .hero-copy .lede { font-size: 1rem; line-height: 1.4; margin-bottom: 0.4rem; }
  .hero-copy > p { line-height: 1.4; margin-bottom: 0.4rem; }
  .byline-box { margin-top: 0.5rem; }
  .ranked-section { padding-top: 0.4rem; }
  .ranked-section .section-head { margin-bottom: 0.4rem; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  padding: 1.5rem 0 1.25rem;
  background: var(--page);
}
.hero-read-more {
  margin: 0 0 0.8rem;
}
.hero-read-more summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.hero-read-more summary::-webkit-details-marker { display: none; }
.hero-read-more summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.hero-read-more p {
  margin: 0.75rem 0 0;
}
.hero-read-more:not([open]) > p { display: none; }
.hero-read-more[open] > p { display: block; }
.read-more-close { display: none; }
.hero-read-more[open] .read-more-open { display: none; }
.hero-read-more[open] .read-more-close { display: inline; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

.hero-copy { text-align: left; max-width: 44rem; min-width: 0; }
.hero-copy h1 { margin-bottom: 0.5rem; }
.hero-copy .lede { font-size: 1.1rem; }

/* Byline row */
.byline-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-off);
  background: var(--section);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0 0;
  flex-wrap: nowrap;
}
.byline-photo {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--ink);
  object-fit: cover;
  flex: none;
}
.byline-id { min-width: 0; }
.byline-name {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.byline-role { font-size: 0.82rem; color: var(--body-text); margin: 0; }
.byline-role .role-long { display: inline; }
.byline-role .role-short { display: none; }

.hero-stats {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  padding-left: 1.25rem;
  border-left: 2px solid var(--ink);
  flex: none;
}
.hero-stat { text-align: left; }
.hero-stat .num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--orange);
}
.hero-stat .lbl {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--body-text);
}

/* Hero widget — thesis metric ladder + top pick (Editorial Dossier hero widget) */
.hero-widget {
  display: none;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-off);
  background: var(--white);
  padding: 1.25rem;
}
@media (min-width: 901px) {
  .hero-widget { display: block; }
}
.hero-widget h2 {
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}
.tier-ladder { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.4rem; }
.tier-ladder li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.tier-ladder li.tier-win {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
  font-weight: 700;
}
.hero-widget-pick {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.hero-widget-pick .pick-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.hero-widget-pick .pick-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.hero-widget-pick .pick-offer {
  font-size: 0.88rem;
  margin: 0 0 0.85rem;
}
.hero-widget-pick .pick-offer strong { color: var(--orange); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* =========================================================================
   Ranked list — table mode
   ========================================================================= */
.ranked-section { padding: 0.75rem 0 2.5rem; background: var(--page); }
.ranked-section .section-head { max-width: var(--container); margin: 0 auto 0.75rem; padding: 0 1.5rem; }
.ranked-section .section-head p { margin-bottom: 0; }

.top-pick-frame {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-off);
  margin-bottom: 1.75rem;
  background: var(--white);
  padding: 0.85rem 1rem 1.1rem;
}
.top-pick-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive);
  margin: 0 0 0.35rem;
}
.top-pick-kicker::before { content: "\2014\00A0"; }
.top-pick-body {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: center;
}
.top-pick-rank {
  width: 3.5rem; height: 3.5rem;
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.4rem;
}
.top-pick-name { font-size: 1.5rem; margin-bottom: 0.35rem; }
.top-pick-offer { font-size: 1.05rem; margin-bottom: 0.85rem; }
.top-pick-offer strong { color: var(--orange); }
.top-pick-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.78rem; margin-bottom: 1rem;
}
.top-pick-meta span strong { display: block; color: var(--ink); font-size: 0.85rem; }
.top-pick-cta { max-width: 16rem; }

.table-wrap { overflow-x: hidden; }
table.rank-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 2px solid var(--ink);
}
table.rank-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--body-text);
  padding-bottom: 0.6rem;
}
table.rank-table thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 0.75rem 0.85rem;
}
table.rank-table tbody td {
  padding: 0.9rem 0.85rem;
  border-top: 1px solid var(--ink);
  vertical-align: middle;
  font-size: 0.92rem;
}
table.rank-table tbody tr:nth-child(odd) { background: var(--section); }
.cell-rank {
  width: 3rem; height: 3rem;
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
}
.cell-operator .op-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
  margin-bottom: 0.35rem;
  border: 1px solid var(--ink);
  background: var(--white);
  padding: 2px 6px;
}
.cell-operator strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.cell-operator .badge-recommended {
  display: inline-block;
  margin-top: 0.25rem;
  background: var(--olive);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
}
.cell-payout { font-family: var(--font-mono); font-size: 0.85rem; }
.cell-payout .tier-a { color: var(--olive); font-weight: 700; }
.cell-payout .tier-b { color: var(--orange); font-weight: 700; }
.cell-payout .tier-c { color: var(--body-text); font-weight: 700; }
.cell-offer strong { color: var(--orange); }
.cell-cta .btn { padding: 0.6rem 0.7rem; font-size: 0.85rem; }

/* colgroup widths applied inline via col; still cap actions */
@media (max-width: 700px) {
  table.rank-table, table.rank-table thead, table.rank-table tbody, table.rank-table th, table.rank-table td, table.rank-table tr {
    display: block;
  }
  table.rank-table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap;
  }
  table.rank-table tbody tr {
    border: 2px solid var(--ink);
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem 0.9rem;
    position: relative;
  }
  table.rank-table tbody tr:nth-child(odd) { background: var(--white); }
  table.rank-table tbody td {
    border-top: none;
    padding: 0.4rem 0 0.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }
  table.rank-table tbody td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--body-text);
    flex: none;
  }
  table.rank-table td.cell-rank {
    display: none;
  }
  table.rank-table td.cell-rank::before { display: none; }
  table.rank-table td.cell-operator { display: block; padding-right: 0; }
  table.rank-table td.cell-operator::before { display: block; margin-bottom: 0.2rem; }
  table.rank-table td.cell-cta {
    display: block;
    margin-top: 0.5rem;
  }
  table.rank-table td.cell-cta::before { display: none; }
}

.compliance-line {
  font-size: 0.82rem;
  color: var(--body-text);
  border-top: 1px solid var(--ink);
  margin-top: 1.5rem;
  padding-top: 1rem;
}

/* =========================================================================
   Per-operator review notes
   ========================================================================= */
.reviews-section { padding: 2.5rem 0; background: var(--page); border-top: 3px solid var(--ink); }
.reviews-section h2 { margin-bottom: 0.4rem; }
.reviews-section > .container > p { max-width: 44rem; margin-bottom: 1.5rem; }
.reviews-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 561px) and (max-width: 980px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 981px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-off);
  background: var(--white);
  padding: 1.25rem;
}
.review-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.review-card-head h3 { font-size: 1.05rem; margin: 0; }
.review-card p { font-size: 0.88rem; margin: 0; }
.tier-chip {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  color: var(--white);
  white-space: nowrap;
}
.tier-chip-a { background: var(--olive); }
.tier-chip-b { background: var(--orange); }
.tier-chip-c { background: var(--body-text); }

/* =========================================================================
   Comparison table (supporting)
   ========================================================================= */
.compare-section { padding: 2rem 0; background: var(--section); }
.compare-scroll { overflow-x: auto; border: 2px solid var(--ink); }
table.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; }
table.compare-table th, table.compare-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  font-size: 0.88rem;
}
table.compare-table thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.compare-table tbody tr:nth-child(odd) { background: var(--white); }

/* =========================================================================
   How we rank
   ========================================================================= */
.method-section { padding: 2.5rem 0; background: var(--page); }
.method-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  justify-content: center;
}
@media (min-width: 561px) and (max-width: 980px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 981px) {
  .method-grid { grid-template-columns: repeat(4, 1fr); }
}
.method-card {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-off);
  background: var(--white);
  padding: 1.25rem;
}
.method-card .method-num {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.method-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.method-card p { font-size: 0.88rem; margin: 0; }
.method-link { text-align: center; margin-top: 1.75rem; font-family: var(--font-mono); font-size: 0.85rem; }

/* =========================================================================
   Article
   ========================================================================= */
.article-section { padding: 2.5rem 0 1rem; background: var(--page); }
.article-head {
  max-width: 44rem;
  margin-inline: 0;
  margin-bottom: 1.5rem;
}
.article-head .kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--olive);
  letter-spacing: 0.05em;
}
.article-byline {
  font-size: 0.85rem;
  color: var(--body-text);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.6rem 0;
  margin-top: 0.75rem;
}
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1100px) {
  .article-grid { grid-template-columns: 1fr 280px; }
}
.article-body { max-width: 44rem; }
.article-body h2 {
  margin-top: 2rem;
  border-top: 3px solid var(--ink);
  padding-top: 0.75rem;
}
.article-body h2:first-child { margin-top: 0; }
.article-toc {
  display: none;
}
@media (min-width: 1100px) {
  .article-toc {
    display: block;
    position: sticky;
    top: 1.5rem;
    align-self: start;
    border: 2px solid var(--ink);
    padding: 1.1rem 1.2rem;
    background: var(--section);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}
.article-toc h2 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.article-toc ol {
  counter-reset: toc;
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 0.5rem;
}
.article-toc li { counter-increment: toc; font-size: 0.85rem; }
.article-toc li::before {
  content: counter(toc) ". ";
  font-family: var(--font-mono);
  color: var(--orange);
  font-weight: 700;
}
.article-toc a { color: var(--ink); text-decoration: none; }
.article-toc a:hover { color: var(--blue); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-section { padding: 2rem 0 3rem; background: var(--section); }
.faq-list { max-width: 44rem; margin: 0; display: grid; gap: 0.75rem; }
.faq-item {
  border: 2px solid var(--ink);
  background: var(--white);
}
.faq-item summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem; top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 1.1rem 1rem; margin: 0; font-size: 0.92rem; }

/* =========================================================================
   Generic content pages
   ========================================================================= */
.page-hero { padding: 2.5rem 0 1.5rem; border-bottom: 3px solid var(--ink); background: var(--section); }
.page-hero h1 { margin-bottom: 0.5rem; }
.reviewer-id {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.reviewer-id p { margin: 0; }
.reviewer-photo {
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid var(--ink);
  object-fit: cover;
  flex: none;
}
.page-content { padding: 2.5rem 0 3rem; }
.page-content .prose { max-width: 44rem; }
.page-content h2 { margin-top: 2rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content ul, .page-content ol { padding-left: 1.25rem; }
.page-content li { margin-bottom: 0.4rem; }

.callout {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-off);
  background: var(--white);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout.placeholder-note { border-color: var(--orange); }

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 44rem;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
.contact-card {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-off);
  background: var(--white);
  padding: 1.1rem 1.25rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: var(--white); padding: 2.5rem 0 1.75rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 1.75rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; margin-bottom: 0.6rem; }
.footer-brand .brand-half-b { color: var(--orange); }
.site-footer p { font-size: 0.85rem; color: var(--white); opacity: 0.75; }
.footer-links h4, .footer-legal h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-links ul, .footer-legal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links a, .footer-legal a { color: var(--white); opacity: 0.85; text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover, .footer-legal a:hover { color: var(--orange); opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--white);
  border-top-color: rgba(255, 255, 255, 0.25);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--white);
  opacity: 0.7;
}
.footer-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  margin-right: 0.5rem;
  opacity: 1;
}

/* =========================================================================
   Cookie notice
   ========================================================================= */
.cookie-toggle {
  position: fixed;
  top: 0; left: 0;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.cookie-note {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  border-top: 3px solid var(--orange);
  padding: 0.9rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  animation: cookie-note-in 0.35s ease-out 2s forwards;
}
@keyframes cookie-note-in {
  from { opacity: 0; visibility: visible; transform: translateY(6px); }
  to { opacity: 1; visibility: visible; transform: translateY(0); }
}
.cookie-note-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-note p { margin: 0; font-size: 0.85rem; flex: 1 1 260px; }
.cookie-note a { color: var(--white); text-decoration: underline; }
.cookie-dismiss {
  background: var(--orange);
  color: var(--white);
  border: none;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
  flex: none;
}
.cookie-toggle:checked ~ .cookie-note { display: none; }

@media (max-width: 560px) {
  .cookie-note-inner { flex-wrap: nowrap; }
  .cookie-note p { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-note { animation-duration: 0.01s; animation-delay: 2s; }
}

/* =========================================================================
   Back to top
   ========================================================================= */
.to-top {
  position: fixed;
  right: 1rem; bottom: 1rem;
  width: 42px; height: 42px;
  background: var(--ink);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  z-index: 90;
}
.to-top-arrow {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid var(--white);
}
.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-reveal linear;
    animation-timeline: scroll(root);
    animation-range: 300px 700px;
  }
  @keyframes to-top-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  @supports (animation-timeline: scroll()) {
    .to-top { animation: none; opacity: 1; }
  }
}

/* =========================================================================
   Utility / narrow breakpoints
   ========================================================================= */
@media (max-width: 700px) {
  .hero-stats { display: flex; }
  .byline-role .role-long { display: none; }
  .byline-role .role-short { display: inline; }
  .byline-name { white-space: nowrap; }
  .byline-role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
}
@media (max-width: 480px) {
  .byline-box { padding: 0.65rem 0.75rem; gap: 0.65rem; }
  .byline-photo { width: 2.5rem; height: 2.5rem; }
  .byline-id { flex: 1 1 auto; overflow: hidden; }
  .byline-name { font-size: 0.82rem; }
  .byline-role { font-size: 0.72rem; }
  .hero-stats { gap: 0.6rem; padding-left: 0.65rem; flex-shrink: 0; }
  .hero-stat .num { font-size: 0.85rem; }
  .hero-stat .lbl { font-size: 0.56rem; }
}
@media (max-width: 360px) {
  .byline-box { padding: 0.6rem 0.65rem; gap: 0.55rem; }
  .byline-photo { width: 2.25rem; height: 2.25rem; }
  .byline-name { font-size: 0.78rem; }
  .byline-role { font-size: 0.68rem; }
  .hero-stats { gap: 0.5rem; padding-left: 0.55rem; }
  .hero-stat .num { font-size: 0.8rem; }
  .hero-stat .lbl { font-size: 0.53rem; }
}
@media (max-width: 340px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
}

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