/*
Theme Name: Name 100 Women
Theme URI: https://name100women.com/
Author: Taste Skill Art Direction
Author URI: https://tasteskill.dev/
Description: High-performance, anti-slop WordPress theme for the viral Name 100 Women Challenge. Art directed with 'editorial-report' broadsheet styling, interactive trivia engine, and semantic content clusters.
Version: 1.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: name100women
Tags: editorial, culture, quiz, interactive, dark-mode, clean, grid
*/

:root {
  /* Palette: Plum-black and pink from taste-skill */
  --bg: #0d060b;
  --surface: #1b0e17;
  --surface-hover: #261421;
  --surface-alt: #470c35;
  --ink: #ffffff;
  --muted: #9a8f97;
  --accent: #ff488b;
  --accent-ink: #0d060b;
  --field-white: #ffffff;
  --field-white-ink: #101421;
  --border-quiet: rgba(255, 255, 255, 0.08);
  --border-focus: #ff488b;
  
  /* Typography: Hanken Grotesk system */
  --font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(3.2rem, 2.5rem + 6.5vw, 7.5rem);

  /* Layout */
  --site-axis: 42%;
  --grid-gap: 8px;
  --radius-sharp: 0px;
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

button, input, select {
  font-family: inherit;
}

/* ----------------------------------------------------
   SITE HEADER & MASTHEAD TILE ROW
---------------------------------------------------- */
.site-header {
  padding: 8px 8px 0 8px;
  background-color: var(--bg);
  position: relative;
  z-index: 1000;
}

.masthead-tiles {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--grid-gap);
  height: 60px;
}

.tile-brand {
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  display: block;
}

.tile-nav {
  background-color: var(--surface);
  display: flex;
  align-items: center;
  padding-left: 24px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
}

.tile-actions {
  display: flex;
  align-items: stretch;
  gap: var(--grid-gap);
}

.tile-action {
  background-color: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-weight: 700;
  font-size: var(--step-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
}

.tile-action:hover {
  background-color: #ff6da4;
  color: var(--accent-ink);
}

.btn-text-full {
  display: inline;
}

.btn-text-mobile {
  display: none;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-nav-drawer {
  display: none;
}

/* ----------------------------------------------------
   HERO: TWO-BY-TWO BOARD BLUEPRINT
---------------------------------------------------- */
.hero-board {
  padding: var(--grid-gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--grid-gap);
  min-height: calc(100vh - 76px);
}

.hero-tile {
  position: relative;
  overflow: hidden;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.tile-title {
  background-color: var(--surface);
  justify-content: flex-end;
  min-height: 380px;
}

.hero-super {
  font-size: var(--step-small);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 600;
}

.hero-h1 {
  font-size: var(--step-hero);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-h1 span {
  color: var(--accent);
}

.tile-interactive {
  background-color: var(--surface-alt);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-console-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.counter-tag {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.counter-tag span {
  color: var(--accent);
}

.timer-box {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(0,0,0,0.3);
  padding: 6px 14px;
  letter-spacing: 0.05em;
}

.game-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-input-row {
  display: flex;
  gap: 8px;
}

.game-name-input {
  flex: 1;
  background-color: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 16px 20px;
  font-size: var(--step-body);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.game-name-input:focus {
  border-color: var(--accent);
  background-color: rgba(0,0,0,0.6);
}

.game-btn-submit {
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border: none;
  padding: 0 28px;
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.game-btn-submit:hover {
  opacity: 0.9;
}

.game-feedback {
  min-height: 24px;
  font-size: var(--step-small);
  color: var(--accent);
  font-weight: 600;
}

.game-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.game-pill-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill-filter {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.pill-filter.active, .pill-filter:hover {
  background: var(--ink);
  color: var(--bg);
}

.game-btn-ghost {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 6px 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.game-btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Bottom Split Tiles */
.tile-statement-dark {
  background-color: var(--surface);
  justify-content: space-between;
  min-height: 240px;
}

.tile-statement-accent {
  background-color: #260c20;
  border-left: 4px solid var(--accent);
  justify-content: space-between;
  min-height: 240px;
}

.statement-text {
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 44ch;
}

.statement-tag {
  font-size: var(--step-small);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------
   RECENT DISCOVERED NAMES STREAM
---------------------------------------------------- */
.stream-container {
  padding: 0 var(--grid-gap) var(--grid-gap) var(--grid-gap);
}

.recent-names-board {
  background-color: var(--surface);
  padding: 24px 32px;
}

.stream-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-quiet);
  padding-bottom: 12px;
}

.stream-title {
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  align-items: center;
}

.name-chip {
  background: rgba(255, 72, 139, 0.15);
  border: 1px solid var(--accent);
  color: var(--ink);
  padding: 6px 14px;
  font-size: var(--step-small);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.name-chip-num {
  color: var(--accent);
  font-size: 0.75rem;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ----------------------------------------------------
   SECTION 2: INTRO (TITLE, NOTE, FACTS ROW)
---------------------------------------------------- */
.section-intro {
  padding: 120px 32px;
  background-color: var(--bg);
  border-top: 1px solid var(--border-quiet);
}

.intro-top-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  margin-bottom: 96px;
  align-items: baseline;
}

.intro-heading {
  font-size: var(--step-head);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 22ch;
}

.intro-note {
  font-size: var(--step-body);
  color: var(--muted);
  line-height: 1.6;
  max-width: 44ch;
}

.facts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border-quiet);
  padding-top: 48px;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact-num {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.fact-num span {
  color: var(--accent);
}

.fact-label {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------
   SECTION 3: HOW IT WORKS (MANY INTO ONE)
---------------------------------------------------- */
.section-how {
  padding: 120px 32px;
  background-color: var(--surface);
  border-top: 1px solid var(--border-quiet);
}

.how-header {
  margin-bottom: 64px;
}

.how-title {
  font-size: var(--step-head);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  max-width: 24ch;
}

.how-deck {
  font-size: var(--step-body);
  color: var(--muted);
  max-width: 48ch;
}

.how-diagram {
  margin: 64px 0;
  width: 100%;
}

.diagram-svg {
  width: 100%;
  height: auto;
  display: block;
}

.how-stages-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--border-quiet);
  padding-top: 36px;
}

.stage-col h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}

.stage-col p {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.6;
}

/* ----------------------------------------------------
   SECTION 4: SHOWCASE (SQUARE PLATE, SPARE TEXT)
---------------------------------------------------- */
.section-showcase {
  padding: 120px 32px;
  background-color: var(--bg);
  border-top: 1px solid var(--border-quiet);
}

.showcase-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 70vh;
}

.showcase-plate {
  aspect-ratio: 1 / 1;
  background-color: var(--surface-alt);
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid var(--border-quiet);
}

.showcase-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--surface);
}

.plate-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.1) brightness(0.95);
  transition: opacity 0.3s ease, transform 0.5s ease;
  display: block;
}

.showcase-plate:hover .plate-photo {
  transform: scale(1.03);
}

.plate-photo.is-transitioning {
  opacity: 0;
}

.plate-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.plate-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(13, 6, 11, 0.95) 0%, rgba(13, 6, 11, 0.6) 70%, transparent 100%);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  z-index: 3;
  text-align: right;
  font-style: italic;
  pointer-events: none;
}

.showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.showcase-tabs {
  display: flex;
  gap: 24px;
  list-style: none;
  border-bottom: 1px solid var(--border-quiet);
  padding-bottom: 16px;
}

.showcase-tab {
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.showcase-tab.active, .showcase-tab:hover {
  color: var(--accent);
  font-weight: 600;
}

.showcase-h2 {
  font-size: var(--step-head);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.showcase-desc {
  font-size: var(--step-lead);
  color: var(--muted);
  line-height: 1.5;
  max-width: 36ch;
}

.showcase-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.btn-plate-action {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
}

.btn-primary-action {
  background-color: var(--ink);
  color: var(--bg);
}
.btn-primary-action:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.btn-secondary-action {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-quiet);
}
.btn-secondary-action:hover {
  border-color: var(--ink);
}

/* ----------------------------------------------------
   SECTION 5: THE 100 DIRECTORY (BANDED AGENDA TABS)
---------------------------------------------------- */
.section-directory {
  padding: 120px 32px;
  background-color: var(--surface);
  border-top: 1px solid var(--border-quiet);
}

.dir-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.dir-title {
  font-size: var(--step-head);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.dir-title span {
  color: var(--muted);
}

.dir-search-wrap {
  width: 320px;
}

.dir-search-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-quiet);
  color: var(--ink);
  padding: 14px 18px;
  font-size: var(--step-small);
  outline: none;
}
.dir-search-input:focus {
  border-color: var(--accent);
}

.dir-body-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}

.cat-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.cat-tab-btn {
  width: 100%;
  background-color: var(--bg);
  border: none;
  padding: 18px 20px;
  color: var(--muted);
  text-align: left;
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
}

.cat-tab-btn.active, .cat-tab-btn:hover {
  background-color: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  border-left: 3px solid var(--accent);
}

.bands-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roster-band {
  background-color: var(--bg);
  padding: 20px 28px;
  display: grid;
  grid-template-columns: 60px 1.5fr 2fr auto;
  gap: 20px;
  align-items: center;
  transition: background-color 0.2s;
}

.roster-band:hover {
  background-color: #160a13;
}

.band-idx {
  font-size: var(--step-small);
  color: var(--muted);
  font-weight: 600;
}

.band-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.band-desc {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.4;
}

.band-era {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(255, 72, 139, 0.1);
  padding: 4px 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Locked & Unlocked Interactive States */
.roster-band.is-locked {
  opacity: 0.85;
}

.roster-band.is-locked .name-masked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 72, 139, 0.08);
  padding: 4px 10px;
}

.roster-band.is-locked .name-revealed {
  display: none !important;
}

.roster-band.is-locked .band-desc {
  color: #736971;
}

.roster-band.is-unlocked {
  background-color: rgba(255, 72, 139, 0.18) !important;
  border-left: 4px solid var(--accent);
  opacity: 1;
  animation: unlockFlash 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.roster-band.is-unlocked .name-masked {
  display: none !important;
}

.roster-band.is-unlocked .name-revealed {
  display: inline-block !important;
  color: var(--ink);
  font-weight: 700;
}

.roster-band.is-unlocked .band-desc {
  color: #ffffff;
}

@keyframes unlockFlash {
  0% { transform: scale(1.02); background-color: rgba(255, 72, 139, 0.4); }
  100% { transform: scale(1); background-color: rgba(255, 72, 139, 0.18); }
}

.mode-toggle-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.btn-mode-toggle {
  background: var(--bg);
  border: 1px solid var(--border-quiet);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 8px 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.btn-mode-toggle.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* ----------------------------------------------------
   SECTION 6: FAQ (A BAND PER QUESTION BLUEPRINT)
---------------------------------------------------- */
.section-faq {
  background-color: var(--bg);
}

.faq-heading-band {
  background-color: var(--accent);
  color: var(--accent-ink);
  min-height: 35vh;
  padding: 56px 32px;
  display: flex;
  align-items: flex-end;
}

.faq-heading-title {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.9;
}

.faq-band {
  padding: 56px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid var(--border-quiet);
}

.faq-band:nth-child(even) {
  background-color: var(--surface);
}

.faq-q {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.faq-a {
  font-size: var(--step-body);
  color: var(--muted);
  line-height: 1.7;
}

/* ----------------------------------------------------
   SECTION 7: TOPICAL CLUSTER ARTICLES (SEO GRID)
---------------------------------------------------- */
.section-clusters {
  padding: 120px 32px;
  background-color: var(--bg);
  border-top: 1px solid var(--border-quiet);
}

.clusters-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.clusters-title {
  font-size: var(--step-head);
  letter-spacing: -0.04em;
}

.clusters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.cluster-card {
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  border: 1px solid var(--border-quiet);
  overflow: hidden;
}

.cluster-card:hover {
  background-color: #220f1e;
  transform: translateY(-4px);
  border-color: rgba(255, 72, 139, 0.4);
}

.cluster-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #12070f;
  position: relative;
}

.cluster-card-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.cluster-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cluster-card:hover .cluster-thumb-img {
  transform: scale(1.05);
}

.cluster-card-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.cluster-card:not(:has(.cluster-card-thumb)) .cluster-card-body,
.cluster-card > div:only-child {
  padding: 36px 32px;
}

.cluster-badge {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 14px;
}

.cluster-article-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}

.cluster-article-title a {
  color: var(--ink);
  transition: color 0.15s ease;
}

.cluster-article-title a:hover {
  color: var(--accent);
}

.cluster-meta {
  font-size: var(--step-small);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-quiet);
  padding-top: 16px;
}

/* ----------------------------------------------------
   SECTION 8: FOOTER (COLUMNS ABOVE, WORDMARK BELOW)
---------------------------------------------------- */
.site-footer {
  background-color: #000000;
  color: var(--ink);
  min-height: 100vh;
  padding: 56px 32px 32px 32px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  z-index: 1;
}

.footer-top-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 48px;
}

.footer-col h4 {
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: var(--step-small);
  color: var(--muted);
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-mid-empty {
  min-height: 20vh;
}

.footer-bottom-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.giant-wordmark-svg {
  width: 100%;
  height: auto;
  max-height: 22vh;
  display: block;
}

.footer-legal-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #666;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

/* ----------------------------------------------------
   POLICY & EDITORIAL SINGLE POST STYLING
---------------------------------------------------- */
.single-post-main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 32px 140px;
  box-sizing: border-box;
}

.single-post-article {
  width: 100%;
  max-width: 100%;
}

.single-post-header {
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border-quiet);
  padding-bottom: 36px;
}

.single-post-category {
  font-size: var(--step-small);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 8px;
}

.single-post-category a {
  color: var(--accent);
}

.single-post-title {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-top: 14px;
  margin-bottom: 24px;
  color: var(--ink);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.single-post-meta {
  font-size: var(--step-small);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

/* Single Post Featured Image Frame */
.single-featured-media {
  margin: 0 0 44px 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-quiet);
  background-color: var(--surface);
  position: relative;
}

.single-featured-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .single-featured-media {
    margin-bottom: 32px;
  }
}

/* Challenge Callout Banner (Internal Linking Loop) */
.single-challenge-callout {
  background-color: var(--surface-alt);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
}

.single-callout-text strong {
  color: var(--ink);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

.single-callout-text span {
  color: #d8c2d2;
  font-size: var(--step-small);
  line-height: 1.5;
  display: block;
}

.single-callout-btn {
  background-color: var(--accent);
  color: var(--accent-ink);
  padding: 14px 24px;
  font-weight: 700;
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.single-callout-btn:hover {
  background-color: #ff6da4;
  color: var(--accent-ink);
}

/* Single Post Entry Content Typography & Elements */
.entry-content {
  font-size: var(--step-body);
  line-height: 1.8;
  color: #d8ced5;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content h2 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-quiet);
  overflow-wrap: break-word;
  word-break: break-word;
}

.entry-content h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.entry-content h4, .entry-content h5, .entry-content h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 12px;
}

.entry-content ul, .entry-content ol {
  margin-left: 28px;
  margin-bottom: 24px;
}

.entry-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  opacity: 0.8;
}

.entry-content code {
  background: rgba(255, 72, 139, 0.12);
  color: var(--accent);
  padding: 2px 8px;
  font-size: 0.88em;
  border-radius: 2px;
  word-break: break-word;
}

.entry-content pre {
  background: var(--surface);
  border: 1px solid var(--border-quiet);
  padding: 20px;
  margin: 28px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-sizing: border-box;
}

.entry-content pre code {
  background: transparent;
  padding: 0;
  color: #fff;
  white-space: pre-wrap;
  word-break: normal;
}

.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 18px 24px;
  background-color: var(--surface);
  margin: 32px 0;
  font-style: italic;
  color: var(--ink);
}

.entry-content img,
.entry-content figure,
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
  display: block;
  margin: 28px auto;
}

.entry-content figure {
  margin-left: 0;
  margin-right: 0;
}

.entry-content figcaption {
  font-size: var(--step-small);
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* ----------------------------------------------------
   RESPONSIVE TABLES (PREVENT MOBILE OVERFLOW)
---------------------------------------------------- */
.table-responsive-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  border: 1px solid var(--border-quiet);
  background-color: var(--surface);
  box-sizing: border-box;
}

.table-responsive-wrapper table {
  margin: 0 !important;
  border: none !important;
  min-width: 600px;
  width: 100%;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background-color: var(--surface);
  border: 1px solid var(--border-quiet);
  box-sizing: border-box;
}

.entry-content th, .entry-content td {
  padding: 14px 18px;
  border: 1px solid var(--border-quiet);
  text-align: left;
  line-height: 1.5;
}

.entry-content th {
  background-color: var(--surface-hover);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single-post-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-quiet);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.single-post-footer .nav-prev,
.single-post-footer .nav-next {
  max-width: 48%;
  font-size: var(--step-small);
}

.single-post-footer a {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  line-height: 1.4;
}

.single-post-footer a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------
   RESPONSIVE (MOBILE ADJUSTMENTS & MENU)
---------------------------------------------------- */
@media (max-width: 900px) {
  /* Prevent any global horizontal shift */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Header adjustments on mobile */
  .site-header {
    padding: 6px 6px 0 6px;
  }

  .masthead-tiles {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 54px;
    gap: 6px;
  }

  .tile-brand {
    flex: 0 0 52px;
    width: 52px;
    height: 54px;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .tile-nav {
    display: none !important;
  }

  .tile-actions {
    display: flex;
    align-items: stretch;
    gap: 6px;
  }

  .tile-action {
    padding: 0 16px;
    font-size: 0.8rem;
    height: 54px;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 52px;
    height: 54px;
    background-color: var(--surface);
    border: 1px solid var(--border-quiet);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus-visible {
    background-color: var(--surface-hover);
    border-color: var(--accent);
    outline: none;
  }

  .hamburger-bar {
    width: 20px;
    height: 2px;
    background-color: var(--ink);
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
  }

  .mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav-drawer {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    background: rgba(23, 12, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    margin-top: 6px;
  }

  .mobile-nav-drawer.is-open {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-inner {
    padding: 12px 16px 20px;
  }

  .mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-nav-links li {
    border-bottom: 1px solid var(--border-quiet);
  }

  .mobile-nav-links a {
    display: block;
    padding: 13px 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    transition: color 0.15s ease, padding-left 0.15s ease;
  }

  .mobile-nav-links a:hover, .mobile-nav-links a:active {
    color: var(--accent);
    padding-left: 8px;
  }

  .mobile-drawer-cta {
    margin-top: 16px;
  }

  .mobile-cta-btn {
    display: block;
    text-align: center;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 13px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.875rem;
    transition: background-color 0.15s ease;
  }

  .mobile-cta-btn:hover {
    background-color: #ff6da4;
  }

  /* Single Post Responsive on Tablet/Mobile */
  .single-post-main {
    padding: 48px 20px 80px;
  }

  .single-post-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
  }

  .single-post-title {
    font-size: clamp(1.85rem, 6vw, 2.6rem);
    margin-top: 12px;
    margin-bottom: 18px;
  }

  .single-post-meta {
    gap: 10px 20px;
    font-size: 0.8125rem;
  }

  .single-challenge-callout {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px;
    gap: 16px;
    margin-bottom: 36px;
  }

  .single-callout-btn {
    text-align: center;
    display: block;
    width: 100%;
    padding: 12px 18px;
  }

  /* Ensure bare tables without wrapper also scroll on mobile */
  .entry-content table:not(.table-responsive-wrapper table) {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .entry-content th, .entry-content td {
    padding: 10px 14px;
    font-size: 0.875rem;
  }

  /* Homepage & Grid responsiveness */
  .hero-board {
    grid-template-columns: 1fr;
  }
  .intro-top-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .facts-row {
    grid-template-columns: 1fr 1fr;
  }
  .how-stages-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase-split {
    grid-template-columns: 1fr;
  }
  .dir-body-layout {
    grid-template-columns: 1fr;
  }
  .roster-band {
    grid-template-columns: 40px 1fr auto;
  }
  .band-desc {
    display: none;
  }
  .faq-band {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .clusters-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  /* Ultra-compact header for narrow phones */
  .btn-text-full {
    display: none;
  }
  .btn-text-mobile {
    display: inline;
  }
  .tile-action {
    padding: 0 12px;
    font-size: 0.75rem;
  }

  .single-post-main {
    padding: 36px 14px 64px;
  }

  .single-post-title {
    font-size: clamp(1.65rem, 5.5vw, 2.2rem);
    letter-spacing: -0.03em;
  }

  .single-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .entry-content {
    font-size: 1.025rem;
    line-height: 1.75;
  }

  .entry-content h2 {
    font-size: 1.45rem;
    margin-top: 36px;
    margin-bottom: 14px;
  }

  .entry-content h3 {
    font-size: 1.2rem;
    margin-top: 28px;
    margin-bottom: 12px;
  }

  .entry-content ul, .entry-content ol {
    margin-left: 20px;
    padding-left: 0;
  }

  .entry-content blockquote {
    padding: 14px 18px;
    margin: 24px 0;
  }

  .single-post-footer {
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
  }

  .single-post-footer .nav-prev,
  .single-post-footer .nav-next {
    max-width: 100%;
    width: 100%;
  }

  .facts-row {
    grid-template-columns: 1fr;
  }

  .footer-top-columns {
    grid-template-columns: 1fr;
  }
}
