/* ==========================================================================
   Snowden Warfield — Arcade Cabinet preset
   Display: Bowlby One | Body: Rubik | Mono: DM Mono
   Palette: lavender page, deep purple, teal, marquee yellow, ink, white
   ========================================================================== */

:root {
  --page: #F2EDF7;
  --purple: #5B2A86;
  --teal: #1FA98A;
  --yellow: #F2C230;
  --ink: #1B0F26;
  --white: #FFFFFF;

  --ink-70: rgba(27, 15, 38, 0.72);
  --ink-50: rgba(27, 15, 38, 0.52);
  --ink-15: rgba(27, 15, 38, 0.12);
  --ink-08: rgba(27, 15, 38, 0.08);
  --purple-15: rgba(91, 42, 134, 0.14);
  --teal-15: rgba(31, 169, 138, 0.16);

  --font-display: 'Bowlby One', 'Arial Rounded MT Bold', 'Arial Black', sans-serif;
  --font-body: 'Rubik', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'DM Mono', 'Consolas', 'Courier New', monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 24px rgba(27, 15, 38, 0.10);
  --shadow-pop: 0 14px 30px rgba(91, 42, 134, 0.22);

  --maxw: 1200px;
  --maxw-article: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--teal); }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1em; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6em 1em;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--purple);
  position: relative;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand img { width: 42px; height: 42px; }
.brand .brand-1 { color: var(--purple); }
.brand .brand-2 { color: var(--teal); }

.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-radius: var(--radius-pill);
  background: var(--purple);
  border: none;
  cursor: pointer;
  position: relative;
}
.nav-btn .bars {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
}
.nav-btn .bars::before, .nav-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--white);
}
.nav-btn .bars::before { top: -6px; }
.nav-btn .bars::after { top: 6px; }
.nav-toggle:focus-visible + label .nav-btn,
.nav-toggle:focus-visible ~ label {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.nav-btn .close-text { display: none; }

.site-nav ul {
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.4em 0.1em;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.site-nav a:hover { color: var(--purple); }

@media (max-width: 900px) {
  .nav-btn { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--purple);
    box-shadow: var(--shadow-card);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .site-nav a { min-height: 48px; line-height: 48px; border-bottom: 1px solid var(--ink-08); }
  .nav-toggle:checked ~ label .nav-btn .open-text { display: none; }
  .nav-toggle:checked ~ label .nav-btn .close-text { display: inline; }
}

.nav-btn-label { display: inline-flex; cursor: pointer; }
.nav-btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   Hero — Arcade Cabinet frame motif
   ========================================================================== */

.hero-wrap { padding: 1rem 0 0.6rem; }

.hero-cabinet {
  border: 4px solid var(--purple);
  border-radius: var(--radius-lg);
  padding: 3px;
  position: relative;
  margin-top: 0.8rem;
}
.hero-cabinet-inner {
  border: 3px solid var(--teal);
  border-radius: calc(var(--radius-lg) - 6px);
  background: var(--white);
  padding: 1.25rem 1.4rem;
  position: relative;
}
.cabinet-dots {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: var(--page);
  padding: 0 8px;
}
.cabinet-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.hero-copy { text-align: left; min-width: 0; }
.hero-copy h1 { text-align: left; }
.hero-copy .kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-15);
  border-radius: var(--radius-pill);
  padding: 0.35em 0.9em;
  margin-bottom: 0.8em;
}
.hero-copy .lede { font-size: 1.05rem; color: var(--ink-70); max-width: 60ch; }
.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(--purple);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  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(--purple); 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; }

/* Reviewer byline row */
.byline-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--page);
  border: 2px solid var(--ink-08);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-top: 0.8rem;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
}
.byline-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--purple);
}
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-text { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.byline-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.byline-role { font-size: 0.78rem; color: var(--ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.byline-role .role-short { display: none; }
.byline-stats {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  padding-left: 1rem;
  border-left: 2px solid var(--ink-08);
  flex-shrink: 0;
}
.byline-stat { text-align: center; }
.byline-stat strong { display: block; font-family: var(--font-mono); font-size: 0.95rem; color: var(--purple); }
.byline-stat span { font-size: 0.68rem; color: var(--ink-50); white-space: nowrap; }

/* Editor's choice box */
.editor-choice {
  border: 2px solid var(--teal);
  background: var(--teal-15);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: none;
}
.editor-choice .ec-tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--purple);
  border-radius: var(--radius-pill);
  padding: 0.3em 0.8em;
  display: inline-block;
  margin-bottom: 0.7em;
}
.editor-choice .ec-logo { width: 120px; height: auto; margin-bottom: 0.6em; }
.editor-choice .ec-offer { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.3em; }
.editor-choice .ec-terms { font-size: 0.82rem; color: var(--ink-70); margin-bottom: 0.9em; }
.editor-choice .ec-terms li { margin-bottom: 0.2em; }

@media (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .editor-choice { display: block; }
}

@media (max-width: 700px) {
  .byline-role .role-long { display: none; }
  .byline-role .role-short { display: inline; }
  .byline-stats { gap: 0.8rem; }
  .byline-stat span { font-size: 0.62rem; }
}

@media (max-width: 480px) {
  .byline-box { gap: 0.55rem; padding: 0.65rem 0.7rem; }
  .byline-avatar { width: 44px; height: 44px; }
  .byline-name { font-size: 0.86rem; }
  .byline-stats { padding-left: 0.55rem; }
  .byline-stats .byline-stat:nth-child(2) { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  background: var(--yellow);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75em 1.5em;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-pop); color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

/* ==========================================================================
   Ranked casino table
   ========================================================================== */

.ranked-section { padding: 1.1rem 0 1rem; }
.ranked-section h2 { text-align: center; margin-bottom: 0.7em; }
.section-intro { text-align: center; max-width: 62ch; margin: 0 auto 1.6rem; color: var(--ink-70); }

.rank-table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--purple);
  box-shadow: var(--shadow-card);
}

table.rank-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--white);
}
.rank-table caption {
  display: block;
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.rank-table thead th {
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  padding: 0.9rem 0.8rem;
  text-align: left;
}
.rank-table tbody tr {
  border-bottom: 1px solid var(--ink-08);
}
.rank-table tbody tr:last-child { border-bottom: none; }
.rank-table tbody tr.is-top { background: var(--teal-15); box-shadow: inset 0 0 0 2px var(--teal); }
.rank-table td { padding: 0.9rem 0.8rem; vertical-align: middle; font-size: 0.92rem; }

.cell-symbol { display: flex; align-items: center; gap: 0.7rem; }
.rank-disc {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cell-symbol img { width: 84px; height: 32px; object-fit: contain; flex-shrink: 0; }
.cell-symbol .op-name { font-weight: 700; font-size: 0.92rem; }

.top-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.18em 0.6em;
  margin-bottom: 0.3em;
}

.wager-value { font-family: var(--font-mono); font-weight: 500; color: var(--purple); font-size: 1rem; }
.wager-note { display: block; font-size: 0.72rem; color: var(--ink-50); }

.pays-value strong { color: var(--purple); }

.compliance-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-50);
  max-width: 68ch;
  margin: 1.2rem auto 0;
}

/* Table collapse below 700px */
@media (max-width: 700px) {
  .rank-table-wrap { border: 0; box-shadow: none; overflow: visible; width: calc(100% + 2rem); margin-left: -1rem; }
  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;
  }
  .rank-table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .rank-table tbody { display: flex; flex-direction: column; gap: 0.75rem; }
  .rank-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
    position: relative;
    width: 100%;
    margin-inline: auto;
    padding: 2.4rem 0.6rem 0.6rem;
    border: 2px solid var(--ink-08);
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }
  .rank-table tbody td {
    padding: 0.16rem 0;
    border: none;
    text-align: center;
    font-size: 0.98rem;
  }
  .rank-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-50);
    margin-bottom: 0.08em;
  }
  .rank-table td.cell-symbol::before { display: none; }
  .rank-table td.cell-symbol { position: static; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding-left: 0; text-align: center; }
  .rank-table td.cell-symbol img { width: 104px; height: 48px; object-fit: contain; }
  .rank-table .op-name { font-size: 0; }
  .rank-table .op-name .top-badge { font-size: 0.68rem; }
  .rank-disc { position: absolute; top: 0.6rem; left: 0.6rem; }
  .rank-table .op-name .top-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    margin: 0;
  }
  .rank-table td.cell-action { padding-top: 0.25rem; }
  .rank-table td.cell-action::before { display: none; }
  .rank-table td.cell-action .btn { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; }
}

/* ==========================================================================
   Detailed reviews
   ========================================================================== */

.reviews-section { padding: 2.2rem 0; }
.review-card {
  background: var(--white);
  border: 2px solid var(--ink-08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.4rem;
}
.review-card.is-top { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-15); }
.review-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.review-head img { width: 96px; height: 40px; object-fit: contain; }
.review-head h3 { margin: 0; }
.review-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.2rem;
  background: var(--page);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin: 0.9rem 0;
  font-size: 0.88rem;
}
.review-meta dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; color: var(--ink-50); }
.review-meta dd { margin: 0 0 0.4em; font-weight: 600; }
@media (min-width: 561px) {
  .review-meta { grid-template-columns: repeat(4, 1fr); }
}
.review-body p { color: var(--ink-70); }
.review-actions { margin-top: 1rem; }
.review-actions .btn { width: auto; padding-inline: 2rem; }

/* ==========================================================================
   Comparison table (supporting)
   ========================================================================== */

.compare-section { padding: 1.5rem 0 2.2rem; }
.compare-scroll { overflow-x: auto; border-radius: var(--radius-md); border: 2px solid var(--ink-08); }
table.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--white);
}
table.compare-table caption {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
table.compare-table th, table.compare-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--ink-08);
  white-space: nowrap;
}
table.compare-table thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
table.compare-table tbody tr:hover { background: var(--page); }

/* ==========================================================================
   How We Rank
   ========================================================================== */

.method-section { padding: 1.5rem 0 2.2rem; }
.method-section h2 { text-align: center; }
.method-intro { text-align: center; max-width: 62ch; margin: 0 auto 1.8rem; color: var(--ink-70); }
.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  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 {
  background: var(--white);
  border: 2px solid var(--ink-08);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: left;
}
.method-card .m-num {
  font-family: var(--font-mono);
  color: var(--white);
  background: var(--purple);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
}
.method-card h3 { font-size: 1rem; margin-bottom: 0.4em; }
.method-card p { font-size: 0.88rem; color: var(--ink-70); margin: 0; }
.method-link { text-align: center; margin-top: 1.6rem; }

/* Section divider motif */
.section-divider {
  border: none;
  border-top: 3px dotted var(--teal);
  margin: 0;
  opacity: 0.7;
}

/* ==========================================================================
   Article + sticky TOC
   ========================================================================== */

.article-section { padding: 2rem 0; }
.article-head {
  max-width: var(--maxw-article);
  margin: 0 auto 1.6rem;
  margin-inline: auto;
}
@media (min-width: 1100px) {
  .article-head { margin-inline: 0; max-width: none; }
}
.article-head h2 { margin-bottom: 0.4em; }
.article-byline { font-size: 0.85rem; color: var(--ink-50); }

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1100px) {
  .article-grid { grid-template-columns: 1fr 280px; }
}

.article-body { max-width: var(--maxw-article); }
.article-body h3 { margin-top: 1.6em; }
.article-body p { color: var(--ink-70); }
.article-body ul, .article-body ol { color: var(--ink-70); padding-left: 1.3em; }
.article-body li { margin-bottom: 0.4em; }

.toc {
  display: none;
}
@media (min-width: 1100px) {
  .toc {
    display: block;
    position: sticky;
    top: 1.5rem;
    align-self: start;
    background: var(--white);
    border: 2px solid var(--ink-08);
    border-radius: var(--radius-md);
    padding: 1.2rem;
  }
  .toc h3 { font-size: 0.95rem; margin-bottom: 0.7em; }
  .toc ol {
    counter-reset: toc-counter;
    list-style: none;
    margin: 0; padding: 0;
  }
  .toc li {
    counter-increment: toc-counter;
    margin-bottom: 0.55em;
    font-size: 0.85rem;
  }
  .toc li::before {
    content: counter(toc-counter) ". ";
    font-family: var(--font-mono);
    color: var(--purple);
    font-weight: 600;
  }
  .toc a { color: var(--ink-70); }
  .toc a:hover { color: var(--purple); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section { padding: 1.5rem 0 2.5rem; }
.faq-section h2 { text-align: center; margin-bottom: 1.4rem; }
.faq-list { max-width: var(--maxw-article); margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item {
  background: var(--white);
  border: 2px solid var(--ink-08);
  border-radius: var(--radius-md);
  padding: 0.2rem 1.1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 1.6rem 0.9rem 0;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.75rem;
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--ink-70); padding-bottom: 0.9rem; margin: 0; }

/* ==========================================================================
   Generic content pages
   ========================================================================== */

.page-hero {
  padding: 2.2rem 0 1rem;
  text-align: left;
}
.content-section { padding: 1rem 0 2.5rem; }
.content-section .container { max-width: var(--maxw-article); }
.content-section h2 { margin-top: 1.6em; }
.content-section p, .content-section li { color: var(--ink-70); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}
.contact-form label { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3em; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.75em 1em;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink-15);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.contact-note { font-size: 0.85rem; color: var(--ink-50); margin-top: -0.4rem; }

/* ==========================================================================
   About page reviewer block
   ========================================================================== */

.reviewer-block {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: var(--white);
  border: 2px solid var(--ink-08);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin: 1.4rem 0;
  flex-wrap: wrap;
}
.reviewer-block img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--purple); flex-shrink: 0; }
.reviewer-block h3 { margin-bottom: 0.2em; }
.reviewer-block .role { color: var(--purple); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.6em; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 2.2rem 0 2.6rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
}
.footer-brand { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; margin-bottom: 0.6em; }
.footer-about { font-size: 0.85rem; max-width: 46ch; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; }
.footer-nav a { color: rgba(255,255,255,0.78); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--yellow); }
.footer-legal { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.2rem; }
.footer-legal p { margin: 0 0 0.5em; }

/* ==========================================================================
   Back to top
   ========================================================================== */

.to-top {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  cursor: pointer;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  text-decoration: none;
}
.to-top .arrow {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid var(--white);
}

@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; }
  }
}

/* ==========================================================================
   Cookie notice
   ========================================================================== */

.cookie-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px; height: 1px;
  opacity: 0;
}

.cookie-note {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  z-index: 90;
  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(10px); }
  to { opacity: 1; visibility: visible; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-note { animation: cookie-note-in-reduced 0.001ms linear 2s forwards; }
  @keyframes cookie-note-in-reduced { to { opacity: 1; visibility: visible; } }
}
.cookie-note p { margin: 0; font-size: 0.85rem; flex: 1; }
.cookie-note a { color: var(--yellow); }
.cookie-dismiss-label {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.55em 1.2em;
  cursor: pointer;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.cookie-toggle:checked ~ .cookie-note { display: none; }
.cookie-toggle:not(:checked) ~ .to-top { bottom: 6.5rem; }

@media (max-width: 560px) {
  .cookie-note { flex-wrap: nowrap; font-size: 0.76rem; padding: 0.8rem 1rem; }
  .cookie-note p { font-size: 0.76rem; }
  .cookie-toggle:not(:checked) ~ .to-top { bottom: 7.6rem; }
}

/* ==========================================================================
   Narrow phone step-down
   ========================================================================== */

@media (max-width: 360px) {
  .byline-box { gap: 0.6rem; padding: 0.6rem 0.75rem; }
  .byline-avatar { width: 40px; height: 40px; }
  .byline-name { font-size: 0.82rem; }
  .byline-role { font-size: 0.7rem; }
  .byline-stats { gap: 0.7rem; padding-left: 0.7rem; }
  .byline-stat strong { font-size: 0.82rem; }
  .byline-stat span { font-size: 0.6rem; }
}

@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);
}
