/* =========================================================
   A-Z Casinos Online — Editorial Dossier preset
   Palette, type and motif all come from the chosen preset.
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, table, th, td { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Preset tokens ---------- */
:root {
  /* Editorial Dossier palette */
  --page: #FFFFFF;
  --section: #FAF7F0;
  --olive: #3E4A26;
  --ink: #000000;
  --orange: #D2601A;
  --blue: #1B5FCB;
  --body-grey: #4A4238;
  --white: #FFFFFF;

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

  --shadow-hard: 6px 6px 0 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 0 var(--ink);
  --radius: 0px;

  --container: 1180px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--page);
  color: var(--body-grey);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 0.4em; }
h4 { font-size: 1.05rem; margin-bottom: 0.3em; }

p { margin-bottom: 1em; max-width: 68ch; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: 3.2rem; }
.section--tint { background: var(--section); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 999;
  font-family: var(--font-mono);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 3px solid var(--ink);
  background: var(--white);
  position: relative;
  z-index: 50;
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--ink);
}
.brand img { width: 40px; height: 40px; }
.brand__az { color: var(--orange); }
.brand__rest { color: var(--ink); }

.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nav-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: var(--white);
  position: relative;
}
.nav-btn__bars {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.nav-btn__bars::before, .nav-btn__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.nav-btn__bars::before { top: -6px; }
.nav-btn__bars::after { top: 6px; }
.nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--blue); outline-offset: 2px; }

.site-nav__list {
  display: flex;
  gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-nav__list a {
  display: inline-block;
  padding: 0.5rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.site-nav__list a:hover, .site-nav__list a:focus-visible { border-color: var(--orange); }

@media (max-width: 900px) {
  .nav-btn { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 3px solid var(--ink);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }
  .site-nav__list a { padding: 0.75rem 0; min-height: 44px; display: flex; align-items: center; }
  .nav-btn__open { display: inline; }
  .nav-btn__close { display: none; }
  .nav-toggle:checked ~ .nav-btn .nav-btn__open { display: none; }
  .nav-toggle:checked ~ .nav-btn .nav-btn__close { display: inline; }
}
@media (min-width: 901px) {
  .nav-btn__close { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 1.25rem 1rem; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.hero__copy { text-align: left; }
.hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 3px solid var(--orange);
  padding-left: 0.5rem;
  margin-bottom: 0.6rem;
}
.hero h1 { margin-bottom: 0.9rem; }
.hero__lede { font-size: 1.08rem; max-width: 62ch; }
.hero__lede > p { margin-bottom: 0; }
.hero-more { margin-top: 0.55rem; }
.hero-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-hard-sm);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.hero-more summary::-webkit-details-marker { display: none; }
.hero-more summary:hover, .hero-more summary:focus-visible { background: var(--blue); color: var(--white); }
.hero-more .more-close { display: none; }
.hero-more[open] .more-open { display: none; }
.hero-more[open] .more-close { display: inline; }
.hero-more[open] > p { margin: 0.65rem 0 0; }

/* Byline box */
.byline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--section);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.byline__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  overflow: hidden;
  flex-shrink: 0;
}
.byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline__id { display: flex; flex-direction: column; }
.byline__name { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.byline__role--long { display: inline; }
.byline__role--short { display: none; }
.byline__role { font-size: 0.8rem; color: var(--body-grey); }
.byline__stats {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  padding-left: 1.1rem;
  border-left: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}
.byline__stat strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); }

/* Hero widget (Editorial Dossier extra, replaces editor's choice box) */
.hero-widget {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  background: var(--white);
  padding: 1.1rem 1.2rem 1.3rem;
  display: none;
}
.hero-widget__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  margin: -1.1rem -1.2rem 1rem;
  padding: 0.5rem 1.2rem;
}
.tier-ladder { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.tier {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.tier--win {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  border-left: 4px solid var(--orange);
  font-weight: 700;
}
.hero-widget__pick {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
  border-top: 1px dashed var(--ink);
  padding-top: 0.9rem;
}
.hero-widget__pick img { width: 72px; height: 56px; object-fit: contain; }
.hero-widget__pick > div { min-width: 0; }
.hero-widget__pick-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.hero-widget__pick-offer { font-size: 0.82rem; margin-bottom: 0.6rem; }
.hero-widget .btn { width: 100%; text-align: center; }

@media (min-width: 901px) {
  .hero__grid { grid-template-columns: 1.5fr 1fr; }
  .hero-widget { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Ranked list: table mode ---------- */
.ranked-wrap { margin-top: 1rem; }
.ranked-table-scroll { width: 100%; overflow-x: visible; }
table.ranked {
  width: 100%;
  table-layout: fixed;
  border: 2px solid var(--ink);
}
table.ranked caption {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
table.ranked thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.65rem 0.7rem;
}
table.ranked tbody td {
  border-top: 1px solid var(--ink);
  padding: 0.85rem 0.7rem;
  vertical-align: middle;
  font-size: 0.92rem;
}
table.ranked tbody tr.top-pick td { background: var(--section); }
.rank-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
}
.rank-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--orange);
  padding: 0.15rem 0.4rem;
}
.op-cell { display: flex; align-items: center; gap: 0.6rem; }
.op-cell img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.op-cell strong { color: var(--ink); font-size: 0.95rem; }
.op-mark-text {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--section);
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink);
  flex-shrink: 0;
}
.metric-value { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.metric-value--unknown { font-family: var(--font-mono); color: var(--body-grey); font-weight: 400; font-style: italic; }
td.action-cell { width: 1%; }
td.action-cell .btn { white-space: nowrap; }

.list-compliance {
  font-size: 0.78rem;
  color: var(--body-grey);
  margin-top: 0.9rem;
  max-width: none;
}

@media (max-width: 700px) {
  .byline { flex-wrap: nowrap; gap: 0.65rem; padding: 0.65rem 0.7rem; }
  .byline__avatar { width: 44px; height: 44px; }
  .byline__id { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .byline__role--long { display: none; }
  .byline__role--short { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .byline__stats { gap: 0.65rem; padding-left: 0.65rem; flex-shrink: 0; }
  #ranked-list { padding-top: 1.25rem; }
  #ranked-heading { font-size: 1.8rem; line-height: 1; margin-bottom: 0.7rem; }
  .ranked-wrap { width: calc(100% + 2rem); margin-left: -1rem; }
  table.ranked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.ranked, table.ranked tbody, table.ranked tr, table.ranked td { display: block; width: 100%; }
  table.ranked { border: 0; }
  table.ranked tbody { display: flex; flex-direction: column; gap: 0.75rem; }
  table.ranked tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "operator"
      "wager"
      "offer"
      "action";
    gap: 0.25rem;
    width: 100%;
    margin-inline: auto;
    border: 2px solid var(--ink);
    padding: 2.4rem 0.6rem 0.6rem;
    position: relative;
    box-sizing: border-box;
  }
  table.ranked tbody tr:first-child { border: 2px solid var(--ink); }
  table.ranked tbody td {
    border-top: none;
    padding: 0.16rem 0;
    position: relative;
    min-height: 1.4rem;
    text-align: center;
    font-size: 0.98rem;
  }
  table.ranked tbody td::before {
    content: attr(data-label);
    position: static;
    display: block;
    width: auto;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--body-grey);
    margin-bottom: 0.08rem;
    text-align: center;
  }
  table.ranked tbody td.rank-cell {
    position: static;
    display: contents;
    padding-left: 0;
  }
  table.ranked tbody td.rank-cell .rank-marker {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
  }
  table.ranked tbody td.rank-cell .rank-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    margin: 0;
  }
  table.ranked tbody td.rank-cell::before { display: none; }
  table.ranked tbody td:nth-child(2) { grid-area: operator; align-self: center; padding-left: 0; }
  table.ranked tbody td:nth-child(3) { grid-area: wager; }
  table.ranked tbody td:nth-child(4) { grid-area: offer; }
  table.ranked tbody td:nth-child(5) { grid-area: action; }
  table.ranked tbody td[data-label="Operator"]::before { display: none; }
  table.ranked tbody td[data-label="Operator"] .op-cell { justify-content: center; }
  table.ranked tbody td[data-label="Operator"] .op-cell strong { display: none; }
  table.ranked tbody td[data-label="Operator"] .op-cell img { width: 96px; height: 50px; object-fit: contain; }
  table.ranked tbody td.action-cell { padding-left: 0; padding-right: 0; margin-top: 0.15rem; }
  table.ranked tbody td.action-cell::before { display: none; }
  table.ranked tbody td.action-cell .btn { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; }
}

/* ---------- Comparison table (secondary, allowed to scroll) ---------- */
.compare-scroll { overflow-x: auto; margin-top: 1.2rem; border: 2px solid var(--ink); }
table.compare { min-width: 720px; }
table.compare th, table.compare td {
  border: 1px solid var(--ink);
  padding: 0.6rem 0.7rem;
  font-size: 0.86rem;
  text-align: left;
}
table.compare thead th {
  background: var(--olive);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Reviews (detailed per casino) ---------- */
.review-card {
  border: 1px solid var(--ink);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.4rem;
  background: var(--white);
}
.review-card--top { box-shadow: var(--shadow-hard); border-width: 2px; }
.review-card__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.review-card__head img { width: 44px; height: 44px; object-fit: contain; }
.review-card__head h3 { margin-bottom: 0; }
.review-card dl.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  font-size: 0.84rem;
  margin: 0.9rem 0;
  padding: 0.8rem;
  background: var(--section);
  border: 1px solid var(--ink);
}
.spec-grid dt { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; color: var(--body-grey); }
.spec-grid dd { color: var(--ink); font-weight: 600; margin: 0 0 0.5rem; }
@media (min-width: 560px) { .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Method section ---------- */
.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1.4rem;
  justify-content: center;
}
.method-card {
  border: 1px solid var(--ink);
  padding: 1.1rem 1.2rem;
  background: var(--white);
}
.method-card h3 { font-size: 1.05rem; }
@media (min-width: 561px) and (max-width: 980px) { .method-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 981px) { .method-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.method-more { margin-top: 1.2rem; }

/* ---------- Article + sidebar TOC ---------- */
.article-head { margin-inline: 0; max-width: 68ch; }
.article-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1.6rem; }
.article-body h3 { margin-top: 1.6rem; counter-increment: none; }
.article-body p { max-width: 68ch; }
.toc { display: none; }
.toc-list { counter-reset: toc; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.85rem; }
.toc-list li { counter-increment: toc; display: flex; gap: 0.5rem; }
.toc-list li::before { content: counter(toc) "."; font-family: var(--font-mono); color: var(--ink); font-weight: 700; }
.toc-list a:hover { text-decoration: underline; }

@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 68ch) 260px; align-items: start; }
  .toc {
    display: block;
    position: sticky;
    top: 1.5rem;
    border: 1px solid var(--ink);
    padding: 1rem 1.1rem;
    background: var(--section);
  }
  .toc h4 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.4rem; }
.faq-item { border: 1px solid var(--ink); background: var(--white); }
.faq-item summary {
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 1rem 1rem; font-size: 0.94rem; }

/* ---------- Page hero (non-home pages) ---------- */
.page-hero { padding-block: 2.2rem 1.4rem; }
.page-hero h1 { margin-bottom: 0.5rem; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--body-grey); margin-bottom: 0.8rem; }
.breadcrumb a { text-decoration: underline; }

/* ---------- Simple content pages ---------- */
.prose h2 { margin-top: 2rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 1em; }
.prose ul li { margin-bottom: 0.4em; max-width: 68ch; }
.prose a { text-decoration: underline; color: var(--blue); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 44rem; margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; color: var(--ink); }
.form-field input, .form-field textarea {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--body-grey); }

/* ---------- Reviewer profile block (about / how-we-rank) ---------- */
.reviewer-block {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  border: 1px solid var(--ink);
  padding: 1.2rem;
  background: var(--section);
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.reviewer-block img { width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.reviewer-block__id { flex: 1; min-width: 220px; }
.reviewer-block h3 { margin-bottom: 0.1rem; }
.reviewer-block .role { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink); border-left: 3px solid var(--orange); padding-left: 0.5rem; text-transform: uppercase; margin-bottom: 0.6rem; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); margin-top: 3rem; }
.site-footer a:hover { color: var(--orange); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding-block: 2.4rem 1.6rem;
}
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; }
.footer-tagline { font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); max-width: 46ch; margin-top: 0.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; }
.footer-heading { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-block: 1.2rem 1.8rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-legal p { max-width: none; margin-bottom: 0.6em; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Cookie notice ---------- */
.cookie-toggle {
  position: fixed;
  top: 0; left: 0;
  width: 1px; height: 1px;
  opacity: 0;
}
.cookie-note {
  position: fixed;
  left: 0.8rem; right: 0.8rem; bottom: 0.8rem;
  z-index: 80;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--orange);
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  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 p { font-size: 0.82rem; margin: 0; max-width: 52ch; }
.cookie-note a { text-decoration: underline; }
.cookie-note label.dismiss {
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--white);
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: auto;
}
.cookie-toggle:checked ~ .cookie-note { display: none; }
@media (max-width: 560px) {
  .cookie-note { flex-wrap: nowrap; font-size: 0.76rem; }
  .cookie-note p { font-size: 0.76rem; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1rem; bottom: 1rem;
  width: 42px; height: 42px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  opacity: 1;
}
.to-top__arrow { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--ink); }
.cookie-toggle:not(:checked) ~ .to-top { bottom: 6.5rem; }
@media (max-width: 560px) { .cookie-toggle:not(:checked) ~ .to-top { bottom: 7.5rem; } }

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

/* ---------- Narrow phone step-down ---------- */
@media (max-width: 360px) {
  .byline { padding: 0.6rem 0.7rem; gap: 0.6rem; }
  .byline__avatar { width: 42px; height: 42px; }
  .byline__stats { gap: 0.7rem; padding-left: 0.7rem; }
  .byline__name { font-size: 0.85rem; white-space: nowrap; }
  .byline__role--long { display: none; }
  .byline__role--short { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 8rem; }
}
@media (max-width: 340px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
