/* ═══════════════════════════════════════════════════════════════
   ISTWANOU THEME — MAIN STYLESHEET
   assets/css/theme.css
   Loaded after style.css (tokens). No framework dependencies.
═══════════════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

/* ─── ADMIN BAR + STICKY HEADER FIX ─── */
/* WordPress adds .admin-bar to <body> when the toolbar is visible.
   The admin bar is 32px on desktop, 46px on mobile (<= 782px). */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ─── FULL WIDTH OVERRIDE ─────────────────────────────────────
   Force body and html to be completely full-width.
   Overrides any WordPress core, plugin, or previously active
   theme stylesheet that may constrain the layout.
─────────────────────────────────────────────────────────────── */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
}

/* ─── BASE ─── */
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, var(--text-4xl)); }
h2 { font-size: clamp(1.4rem, 3vw, var(--text-3xl)); }
h3 { font-size: clamp(1.1rem, 2vw, var(--text-xl)); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--flag-blue);
  padding: var(--space-4) var(--space-6);
  background: var(--mist);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--charcoal);
}

blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--flag-blue);
  font-style: normal;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--mist);
  border: 1px solid var(--divider);
}

code { padding: 0.1em 0.4em; border-radius: var(--radius-sm); }
pre  { padding: var(--space-4); overflow-x: auto; border-radius: var(--radius-md); }
pre code { background: none; border: none; padding: 0; }

/* ─── LINKS ─── */
a { transition: color var(--ease); }
.body-content a { color: var(--flag-blue); text-decoration: underline; text-underline-offset: 3px; }
.body-content a:hover { color: var(--flag-red); }

/* ─── CONTAINERS ─── */
.container        { max-width: var(--max-width);        margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 var(--space-6); }
.container--wide  { max-width: var(--max-width-wide);   margin: 0 auto; padding: 0 var(--space-6); }

/* ─── FLAG STRIPE UTILITY ─── */
.flag-stripe {
  height: 4px;
  background: var(--flag-stripe);
  flex-shrink: 0;
}
.flag-stripe--thick { height: 6px; }
.flag-stripe--bottom { border-bottom: 4px solid; border-image: var(--flag-stripe) 1; }
.flag-stripe--top    { border-top: 4px solid; border-image: var(--flag-stripe) 1; }

/* ─── SITE HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--space-6);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__flag {
  display: flex;
  width: 36px;
  height: 24px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.site-logo__flag-blue,
.site-logo__flag-red {
  flex: 1;
}
.site-logo__flag-blue { background: var(--flag-blue); }
.site-logo__flag-red  { background: var(--flag-red);  }

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-logo__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.site-logo__tagline {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: 2px;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.primary-nav a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
  transition: color var(--ease);
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background: var(--flag-blue);
  transform: scaleX(0);
  transition: transform var(--ease);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--flag-blue);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 20px;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

.lang-toggle__btn {
  padding: 5px 12px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--smoke);
  text-transform: uppercase;
  transition: all var(--ease);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.lang-toggle__btn.active {
  background: var(--flag-blue);
  color: var(--white);
}

/* Search Toggle */
.header-search-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--divider);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  transition: all var(--ease);
}

.header-search-btn:hover {
  background: var(--flag-blue);
  border-color: var(--flag-blue);
  color: var(--white);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--divider);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--ease);
}

/* ─── HERO (DARK) ─── */
.site-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-6);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 90%, rgba(210,16,52,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 10%, rgba(0,32,159,0.4)  0%, transparent 50%),
    radial-gradient(ellipse at 90% 15%, rgba(210,16,52,0.18) 0%, transparent 45%),
    linear-gradient(180deg, #030612 0%, var(--hero-mid) 55%, #030612 100%);
}

.site-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: var(--flag-stripe);
  z-index: 3;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  display: block;
  margin-bottom: var(--space-6);
  animation: fadeUp 0.8s 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ivory);
  text-shadow:
    0 0 80px rgba(0,32,159,0.5),
    0 0 30px rgba(210,16,52,0.3),
    0 4px 24px rgba(0,0,0,0.9);
  margin-bottom: var(--space-4);
  animation: fadeUp 0.8s 0.4s both;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  color: var(--ivory-dim);
  letter-spacing: 0.12em;
  margin-bottom: var(--space-6);
  animation: fadeUp 0.8s 0.6s both;
}

.hero-divider {
  width: 120px;
  height: 2px;
  background: var(--flag-stripe);
  margin: 0 auto var(--space-6);
  animation: fadeUp 0.8s 0.7s both;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.85;
  color: var(--ivory-dim);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  font-style: italic;
  animation: fadeUp 0.8s 0.9s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 1.1s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  border-radius: 0;
  font-weight: 600;
}

.btn--primary {
  background: var(--flag-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn--primary:hover { background: var(--flag-crimson); transform: translateY(-2px); }

.btn--secondary {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(242,237,228,0.4);
}
.btn--secondary:hover { border-color: var(--ivory); background: rgba(242,237,228,0.08); }

.btn--blue {
  background: var(--flag-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn--blue:hover { background: var(--flag-navy); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--flag-blue);
  border: 1px solid var(--flag-blue);
}
.btn--ghost:hover { background: var(--flag-blue); color: var(--white); }

/* ─── SECTIONS ─── */
.section { padding: var(--space-16) 0; }
.section--sm  { padding: var(--space-8) 0; }
.section--lg  { padding: var(--space-24) 0; }

.section--light  { background: var(--white); }
.section--paper  { background: var(--paper); }
.section--mist   { background: var(--mist); }
.section--dark   {
  background: linear-gradient(135deg, #050918 0%, var(--hero-mid) 50%, #050918 100%);
  color: var(--ivory);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--flag-red);
  display: block;
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, var(--text-3xl));
  color: inherit;
  margin-bottom: var(--space-3);
}

.section--dark .section__eyebrow { color: var(--ivory-dim); }

/* ─── CHANNEL BADGES ─── */
.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px 10px;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
}

.channel-badge--indigenous { background: rgba(107,76,42,0.12); color: var(--ch-indigenous); border: 1px solid rgba(107,76,42,0.25); }
.channel-badge--african    { background: rgba(26,122,74,0.10); color: var(--ch-african);    border: 1px solid rgba(26,122,74,0.25); }
.channel-badge--prerev     { background: rgba(139,42,0,0.10);  color: var(--ch-prerev);     border: 1px solid rgba(139,42,0,0.25);  }
.channel-badge--haitian    { background: var(--flag-blue-10);  color: var(--flag-blue);     border: 1px solid var(--flag-blue-20);  }
.channel-badge--caribbean  { background: rgba(14,107,122,0.10); color: var(--ch-caribbean); border: 1px solid rgba(14,107,122,0.25); }

/* ─── TIMELINE ENTRY CARDS ─── */
.entry-card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--flag-blue);
  padding: var(--space-6);
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
  position: relative;
  text-decoration: none;
  display: block;
  color: var(--ink);
}

.entry-card:hover {
  box-shadow: var(--shadow-blue);
  border-left-color: var(--flag-red);
  transform: translateY(-3px);
}

.entry-card--featured {
  border-left-width: 4px;
  border-left-color: var(--flag-red);
}

.entry-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.entry-card__date {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--flag-blue);
}

.entry-card__hrc {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--smoke);
}

.entry-card__title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.entry-card:hover .entry-card__title { color: var(--flag-blue); }

.entry-card__excerpt {
  font-size: var(--text-sm);
  line-height: 1.72;
  color: var(--charcoal);
  margin-bottom: var(--space-4);
}

.entry-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.entry-card__bates {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--smoke);
  letter-spacing: 0.1em;
}

.entry-card__read-more {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--flag-blue);
  text-decoration: none;
  transition: color var(--ease);
}
.entry-card:hover .entry-card__read-more { color: var(--flag-red); }

/* ─── TIMELINE GRID LAYOUTS ─── */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.timeline-grid--list {
  grid-template-columns: 1fr;
}

.timeline-grid--featured {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto;
}

.timeline-grid--featured .entry-card:first-child {
  grid-row: span 2;
}

/* ─── MISSION COUNTER SECTION ─── */
.mission-counter {
  background: var(--white);
  border-bottom: 1px solid var(--divider);
  padding: var(--space-12) 0;
}

.mission-counter__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.counter-display {
  text-align: center;
}

.counter-display__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--flag-red);
  display: block;
  margin-bottom: var(--space-4);
}

.counter-display__numbers {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.counter-display__current {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--flag-blue);
  line-height: 1;
}

.counter-display__sep {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--smoke);
}

.counter-display__goal {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--smoke);
  line-height: 1;
}

.counter-progress {
  background: var(--mist);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.counter-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--flag-blue) 0%, var(--flag-red) 100%);
  border-radius: 99px;
  transition: width 1.5s ease;
  min-width: 4px;
}

.counter-progress__pct {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--smoke);
  text-align: right;
  display: block;
}

.mission-statement {
  padding: var(--space-6) var(--space-8);
  border-left: 4px solid var(--flag-blue);
  background: var(--mist);
}

.mission-statement__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--ink);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.mission-statement__body {
  font-size: var(--text-md);
  line-height: 1.82;
  color: var(--charcoal);
}

.mission-statement__body p { margin-bottom: var(--space-3); }
.mission-statement__body p:last-child { margin-bottom: 0; }

.mission-statement__tag {
  display: inline-block;
  margin-top: var(--space-4);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--flag-red);
}

@media (max-width: 700px) {
  .mission-counter__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .mission-statement {
    padding: var(--space-4) var(--space-5);
  }
}

/* ─── EPOCH BAR (visual timeline spine) ─── */
.epoch-bar {
  display: flex;
  overflow: hidden;
  height: 8px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
}

.epoch-bar__segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  overflow: hidden;
  white-space: nowrap;
  transition: flex var(--ease-slow);
}

.epoch-bar__segment--maafa    { background: #3A2A1A; flex: 3.5; }
.epoch-bar__segment--rebel    { background: var(--flag-red); flex: 0.13; }
.epoch-bar__segment--indep    { background: var(--flag-blue); flex: 2.24; }

/* ─── CHANNEL FILTER NAV ─── */
.channel-nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.channel-nav__btn {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid var(--divider);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  display: inline-block;
}

.channel-nav__btn:hover,
.channel-nav__btn.active {
  background: var(--flag-blue);
  color: var(--white);
  border-color: var(--flag-blue);
}

.channel-nav__btn--all.active        { background: var(--ink);           border-color: var(--ink); }
.channel-nav__btn--indigenous.active { background: var(--ch-indigenous); border-color: var(--ch-indigenous); }
.channel-nav__btn--african.active    { background: var(--ch-african);    border-color: var(--ch-african); }
.channel-nav__btn--prerev.active     { background: var(--ch-prerev);     border-color: var(--ch-prerev); }
.channel-nav__btn--haitian.active    { background: var(--flag-blue);     border-color: var(--flag-blue); }
.channel-nav__btn--caribbean.active  { background: var(--ch-caribbean);  border-color: var(--ch-caribbean); }

/* ─── SINGLE ENTRY ─── */
.entry-single {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.entry-single__header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--divider);
}

.entry-single__dates {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.entry-single__greg-date {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--flag-blue);
}

.entry-single__hrc-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--smoke);
}

.entry-single__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, var(--text-3xl));
  color: var(--ink);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.entry-single__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.entry-single__citation {
  background: var(--mist);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--flag-blue);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  font-size: var(--text-sm);
  color: var(--slate);
}

.entry-single__citation-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--flag-blue);
  display: block;
  margin-bottom: var(--space-2);
}

.entry-single__body {
  font-size: var(--text-md);
  line-height: 1.82;
  color: var(--charcoal);
}

/* ─── SUREMBERS GATE ─── */
.content-gate {
  background: var(--white);
  border: 1px solid var(--divider);
  border-top: 4px solid;
  border-image: var(--flag-stripe) 1;
  padding: var(--space-12) var(--space-8);
  text-align: center;
  max-width: 560px;
  margin: var(--space-12) auto;
  box-shadow: var(--shadow-md);
}

.content-gate__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  display: block;
}

.content-gate__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.content-gate__desc {
  color: var(--charcoal);
  margin-bottom: var(--space-6);
  font-size: var(--text-md);
}

.content-gate__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Preview blur for gated content */
.content-gate__preview {
  position: relative;
  max-height: 120px;
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.content-gate__preview::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--white));
}

/* ─── SEARCH ─── */
.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.search-bar input {
  width: 100%;
  padding: var(--space-4) var(--space-16) var(--space-4) var(--space-6);
  border: 2px solid var(--divider);
  background: var(--white);
  font-size: var(--text-md);
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color var(--ease);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--flag-blue);
}

.search-bar button {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  padding: 0 var(--space-6);
  background: var(--flag-blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background var(--ease);
}

.search-bar button:hover { background: var(--flag-navy); }

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
  padding: var(--space-8) 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  text-decoration: none;
  border: 1px solid var(--divider);
  color: var(--slate);
  transition: all var(--ease);
}

.pagination a:hover { background: var(--flag-blue); color: var(--white); border-color: var(--flag-blue); }
.pagination .current { background: var(--flag-blue); color: var(--white); border-color: var(--flag-blue); }

/* ─── SIDEBAR ─── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.widget {
  background: var(--white);
  border: 1px solid var(--divider);
  padding: var(--space-6);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--flag-red);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--divider);
}

/* ─── SITE FOOTER ─── */
.site-footer {
  background: var(--flag-navy);
  color: var(--ivory-dim);
  padding: var(--space-12) var(--space-6) var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ivory);
  margin-bottom: var(--space-3);
}

.footer-brand__desc {
  font-size: var(--text-sm);
  line-height: 1.72;
  color: var(--ivory-faint);
  margin-bottom: var(--space-4);
}

.footer-brand__hrc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(242,237,228,0.35);
  letter-spacing: 0.1em;
}

.footer-col__title {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.5);
  margin-bottom: var(--space-4);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: var(--space-2); }

.footer-col a {
  font-size: var(--text-sm);
  color: var(--ivory-faint);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--ivory); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.footer-copyright {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.25);
}

.footer-rasanblaj {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.25);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-rasanblaj:hover { color: var(--ivory); }

/* ─── PWA OFFLINE BANNER ─── */
.offline-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--flag-red);
  color: var(--white);
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 9000;
}

.offline-banner.show { display: block; }

/* ─── INSTALL PWA PROMPT ─── */
.pwa-install-btn {
  display: none;
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
}

.pwa-install-btn.show { display: flex; }

/* ─── BACK TO TOP ─── */
#back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  background: var(--flag-blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--ease);
  z-index: 100;
  box-shadow: var(--shadow-blue);
}

#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--flag-red); }

/* ─── PROGRESS BAR ─── */
#read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--flag-blue) 0%, var(--flag-red) 100%);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─── LANGUAGE (English only — reserved for future use) ─── */
/* [data-lang] attributes retained in markup for future Kreyòl toggle */

/* ─── ACCESSIBILITY ─── */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--flag-blue);
  outline-offset: 3px;
}

/* ─── UTILITY CLASSES ─── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-blue    { color: var(--flag-blue); }
.text-red     { color: var(--flag-red); }
.text-smoke   { color: var(--smoke); }
.text-ivory   { color: var(--ivory); }
.mt-auto      { margin-top: auto; }
.visually-hidden { @extend .screen-reader-text; }
.no-margin    { margin: 0 !important; }
.divider      { border: none; border-top: 1px solid var(--divider); margin: var(--space-8) 0; }

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 900px) {
  .timeline-grid--featured {
    grid-template-columns: 1fr;
  }
  .timeline-grid--featured .entry-card:first-child {
    grid-row: auto;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  :root { --nav-height: 56px; }

  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--divider);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .primary-nav.open ul { flex-direction: column; }
  .primary-nav.open a { padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--divider); }

  .nav-toggle { display: flex; }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions { flex-direction: column; align-items: center; }

  .container, .container--narrow, .container--wide {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .entry-single { padding: var(--space-6) var(--space-4); }
  .content-gate { padding: var(--space-8) var(--space-4); }
}

/* ─── PRINT ─── */
@media print {
  .site-header, .site-footer, #back-to-top, #read-progress, .offline-banner { display: none !important; }
  body { background: white; color: black; }
  .entry-single { max-width: 100%; padding: 0; }
}

/* ── NAV SUBMENUS ─────────────────────────────────── */
.primary-nav li {
    position: relative;
}
.primary-nav li > ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #0D1B2A;
    border-top: 2px solid var(--flag-red);
    z-index: 999;
    padding: 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.primary-nav li:hover > ul.sub-menu,
.primary-nav li.is-open > ul.sub-menu {
    display: block;
}
.primary-nav li > ul.sub-menu li {
    display: block;
    width: 100%;
}
.primary-nav li > ul.sub-menu li a {
    display: block;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.primary-nav li > ul.sub-menu li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
/* Null parent — no pointer, no underline */
.primary-nav li > a[href="#"] {
    cursor: default;
}
