@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   MAGAZINE AFRIQUE — MINIMALIST EDITORIAL DESIGN SYSTEM
   Philosophy: Calm Text, Human Touch, Literary Elegance, Warm African Paper Ground
   ========================================================================== */

/* Critical Display Utilities */
.hidden {
  display: none !important;
}

/* Reset & Foundation */
*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #F6F1E8; /* Authentic Unbleached Broadsheet Newsprint */
  color: #171513;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #F6F1E8;
  color: #171513; /* Deep Printer's Lampblack */
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Helpers */
.font-serif { font-family: 'Newsreader', Georgia, serif; }
.font-sans { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* Container */
.container-editorial {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container-editorial {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #0B5128;
}

/* ==========================================================================
   MINIMALIST EDITORIAL HEADER (Quiet, Spaced, Pristine)
   ========================================================================== */
.site-masthead {
  background-color: #F6F1E8;
  border-bottom: 2px solid #231F1D;
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand-nameplate-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
}

.masthead-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #171513;
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .masthead-title {
    font-size: 2.15rem;
    letter-spacing: -0.01em;
  }
}

.masthead-subline {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #5C564E;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .masthead-subline {
    font-size: 0.625rem;
  }
}

/* Dateline Strip */
.masthead-dateline-strip {
  border-top: 1px solid #231F1D;
  background-color: #EFE9DE;
  padding: 0.25rem 0;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5C564E;
}

.dateline-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dateline-edition {
  color: #8B2500;
  font-family: 'JetBrains Mono', monospace;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 768px) {
  .header-inner {
    height: 76px;
  }
}

/* Menu Toggle Button (Hairline & Calm) */
.menu-text-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #1F1C1A;
  cursor: pointer;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

.menu-text-btn:hover {
  color: #0B5128;
}

.menu-icon-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.menu-icon-lines .line {
  display: block;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
}

.menu-label {
  display: inline-block;
}

/* Brand Logo */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-logo {
    max-height: 52px;
  }
}

/* Header Right Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-text-btn {
  background: none;
  border: none;
  color: #1F1C1A;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.search-text-btn:hover {
  color: #0B5128;
}

.header-subscribe-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background-color: #0B5128;
  color: #FAF7F2 !important;
  transition: all 0.2s;
}

.header-subscribe-pill:hover {
  background-color: #07381B;
  transform: translateY(-1px);
}

/* Desktop Category Navigation (Quiet Hairline Bar) */
.desktop-editorial-nav {
  display: none;
  background-color: #FAF7F2;
  border-bottom: 1px solid #EAE3D6;
}

@media (min-width: 900px) {
  .desktop-editorial-nav {
    display: block;
  }
}

.editorial-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  list-style: none;
  padding: 0.65rem 0;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #554F49;
}

.editorial-nav-list li a {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
}

.editorial-nav-list li a:hover {
  color: #0B5128;
  border-bottom-color: #0B5128;
}

.editorial-nav-list li.nav-item-prestige a {
  color: #B45309;
  font-weight: 700;
}

/* ==========================================================================
   MINIMALIST EDITORIAL DRAWER (Human Touch, Calm Typography)
   ========================================================================== */
.minimal-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(31, 28, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 990;
  display: flex;
}

.minimal-drawer-panel {
  background-color: #FAF7F2; /* Warm Literary Canvas */
  width: 90%;
  max-width: 360px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  overflow-y: auto;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.12);
  border-right: 1px solid #EAE3D6;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #EAE3D6;
  margin-bottom: 1.5rem;
}

.drawer-title {
  display: block;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0B5128;
  line-height: 1.1;
}

.drawer-subtitle {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8C847A;
  margin-top: 0.25rem;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #70685E;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.drawer-close-btn:hover {
  color: #1F1C1A;
}

/* Drawer Links (Pure Typography, Zero Emojis) */
.drawer-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-menu-links li a {
  display: block;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #24201D;
  padding: 0.5rem 0;
  transition: all 0.15s ease;
}

.drawer-menu-links li a:hover {
  color: #0B5128;
  padding-left: 0.5rem;
}

.drawer-menu-links li.drawer-prestige-link a {
  color: #B45309;
  font-weight: 600;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #EAE3D6;
}

.drawer-lang-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #70685E;
  margin-bottom: 0.75rem;
}

.drawer-lang-row .lang-title {
  font-weight: 700;
  margin-right: 0.25rem;
}

.drawer-lang-row .lang-link {
  font-weight: 700;
  color: #554F49;
}

.drawer-lang-row .lang-link.active,
.drawer-lang-row .lang-link:hover {
  color: #0B5128;
  text-decoration: underline;
}

.drawer-lang-row .lang-dot {
  color: #C4BCB0;
}

.drawer-copyright {
  font-size: 0.6875rem;
  color: #9C9488;
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(31, 28, 26, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1.25rem 1rem;
}

.search-modal-card {
  background-color: #FAF7F2;
  width: 100%;
  max-width: 540px;
  border: 1px solid #EAE3D6;
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.search-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1F1C1A;
}

.search-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #70685E;
  cursor: pointer;
}

.search-form-row {
  display: flex;
  gap: 0.5rem;
}

.search-input-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #DCD4C6;
  border-radius: 0.375rem;
  background-color: #FFFFFF;
  font-size: 0.875rem;
  outline: none;
  color: #1F1C1A;
}

.search-input-field:focus {
  border-color: #0B5128;
}

.search-submit-btn {
  background-color: #0B5128;
  color: #FAF7F2;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
}

/* ==========================================================================
   SINGLE ARTICLE (Calm, Focused Long-Form Reading)
   ========================================================================== */
.article-reading-container {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 0;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8C847A;
}

.article-category-tag {
  color: #B45309; /* Savannah Ochre */
}

.article-title-main {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #171412; /* Deep Obsidian Kohl */
  margin-bottom: 1.25rem;
}

.article-byline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #EAE3D6;
  border-bottom: 1px solid #EAE3D6;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: #615B55;
}

.byline-author-text {
  font-weight: 700;
  color: #1F1C1A;
}

.article-share-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-text-link {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background-color: #EFE9DE;
  color: #403A34;
  border: 1px solid #DCD4C6;
  transition: all 0.15s;
}

.share-text-link:hover {
  background-color: #0B5128;
  color: #FFFFFF;
  border-color: #0B5128;
}

/* Article Hero Image */
.article-featured-figure {
  margin-bottom: 2.25rem;
}

.article-featured-img {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  display: block;
}

.article-img-caption {
  font-size: 0.75rem;
  color: #8C847A;
  margin-top: 0.5rem;
  text-align: right;
  font-style: italic;
}

/* Long-Form Reading Body */
.article-reading-body {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.85;
  color: #24201D;
}

.article-reading-body p {
  margin-bottom: 1.65rem;
}

.article-reading-body > p:first-of-type::first-letter {
  float: left;
  font-size: 4rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 10px;
  padding-bottom: 2px;
  color: #0B5128;
  font-weight: 700;
}

.article-reading-body h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #171412;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.article-reading-body blockquote {
  border-left: 2px solid #B45309;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: #38322D;
}

/* Clean Ad Space (Discreet, Respectful) */
.clean-ad-wrapper {
  margin: 2.5rem auto;
  text-align: center;
  max-width: 728px;
}

.clean-ad-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #A8A094;
  margin-bottom: 0.35rem;
  display: block;
}

.clean-ad-slot {
  background-color: #EFE8DD;
  border: 1px solid #DCD4C6;
  border-radius: 0.25rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Paywall Minimal Card */
.paywall-wrapper {
  margin-top: -4rem;
  padding-top: 4rem;
  position: relative;
}

.paywall-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(180deg, rgba(250, 247, 242, 0) 0%, #FAF7F2 100%);
  pointer-events: none;
}

.paywall-card {
  background-color: #072213; /* Deep Sahel Green */
  color: #FAF7F2;
  border-radius: 0.5rem;
  padding: 2.25rem 2rem;
  border: 1px solid #B45309;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.paywall-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FAF7F2;
  margin-bottom: 0.75rem;
}

.paywall-card p {
  font-size: 0.9375rem;
  color: #D1C9BE;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn-paywall-cta {
  display: inline-block;
  background-color: #C2410C;
  color: #FAF7F2 !important;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
}

.btn-paywall-cta:hover {
  background-color: #9A3412;
}

/* Clean Editorial Footer */
.site-footer {
  background-color: #072213; /* Deep Sahel Green */
  color: #E2DBD0;
  border-top: 1px solid #B45309;
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  font-size: 0.8125rem;
}

.site-footer a {
  color: #D1C9BE;
}

.site-footer a:hover {
  color: #F59E0B;
}

.footer-inner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1rem;
  color: #F59E0B;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #A8A094;
}

/* ==========================================================================
   UPDATE NOTIFICATION TOAST & CACHE PURGE
   ========================================================================== */
.magafrique-update-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  background-color: #0E1A13; /* Deep Obsidian Green */
  color: #FAF7F2;
  border: 1px solid rgba(217, 119, 6, 0.45); /* Saharan Amber Accent */
  border-radius: 0.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  width: calc(100vw - 2rem);
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.magafrique-update-toast.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-top-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.toast-pulse-icon {
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: toastPulse 2s infinite;
}

@keyframes toastPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.toast-text-wrap {
  flex: 1;
}

.toast-headline {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FAF7F2;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.toast-subtext {
  font-size: 0.75rem;
  color: #C4BCB0;
  line-height: 1.4;
}

.toast-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.toast-btn-update {
  background-color: #D97706; /* Saharan Amber */
  color: #FFFFFF !important;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.85rem;
  border-radius: 0.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.2s ease;
}

.toast-btn-update:hover {
  background-color: #B45309;
}

.toast-btn-close {
  background: none;
  border: none;
  color: #8C847A;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: color 0.2s ease;
}

.toast-btn-close:hover {
  color: #FAF7F2;
}

.footer-cache-reload-link {
  color: #8C847A;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-cache-reload-link:hover {
  color: #FAF7F2;
}

@media (max-width: 640px) {
  .magafrique-update-toast {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

/* ==========================================================================
   VINTAGE BROADSHEET NEWSPAPER STYLING
   ========================================================================== */
.broadsheet-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.broadsheet-hero-section {
  margin-bottom: 2.5rem;
}

.broadsheet-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .broadsheet-hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.broadsheet-lead-story {
  display: flex;
  flex-direction: column;
}

.broadsheet-kicker-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.broadsheet-kicker-tag {
  color: #8B2500; /* Printer's madder red */
}

.kicker-sep {
  color: #CDC5B5;
}

.kicker-meta {
  color: #5C564E;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
}

.broadsheet-lead-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: #171513;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.broadsheet-deck-subhead {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #38332C;
  line-height: 1.45;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #DCD3C4;
}

.broadsheet-framed-photo {
  border: 1px solid #231F1D;
  background-color: #FFFFFF;
  padding: 4px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

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

.broadsheet-photo-caption {
  padding-top: 0.35rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  font-size: 0.6875rem;
  color: #5C564E;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #EFE9DE;
  margin-top: 4px;
}

.caption-archive-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
}

.drop-cap-classic:first-letter {
  float: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.25rem;
  line-height: 0.85;
  padding-top: 3px;
  padding-right: 8px;
  padding-bottom: 0px;
  font-weight: 900;
  color: #171513;
}

.broadsheet-lead-excerpt {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #2E2925;
  margin-bottom: 1rem;
  text-align: justify;
}

.broadsheet-lead-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #231F1D;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.broadsheet-byline-text {
  color: #5C564E;
  font-weight: 600;
}

.broadsheet-read-link {
  font-weight: 800;
  color: #8B2500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6875rem;
}

.broadsheet-read-link:hover {
  text-decoration: underline;
}

/* Secondary Column */
.broadsheet-secondary-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.broadsheet-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid #231F1D;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.broadsheet-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #171513;
  margin: 0;
}

.broadsheet-edition-stamp {
  font-size: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  color: #8B2500;
  font-weight: 700;
}

/* Framed Newspaper Box */
.vintage-framed-box {
  border: 2px solid #231F1D;
  background-color: #EFE9DE;
  padding: 1rem;
  border-radius: 2px;
}

.framed-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.framed-box-badge {
  background-color: #231F1D;
  color: #FFFFFF;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.4rem;
  border-radius: 1px;
}

.framed-box-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: #8B2500;
  font-weight: 700;
}

.framed-box-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #171513;
  margin-bottom: 0.5rem;
}

.framed-box-excerpt {
  font-size: 0.8125rem;
  color: #443E36;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.framed-box-footer {
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  color: #5C564E;
  border-top: 1px solid #DCD3C4;
  padding-top: 0.4rem;
}

/* Ledger Item */
.broadsheet-ledger-item {
  border-bottom: 1px solid #DCD3C4;
  padding-bottom: 1.25rem;
}

.ledger-item-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0B5128;
  margin-bottom: 0.25rem;
}

.ledger-item-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #171513;
  margin-bottom: 0.35rem;
}

.ledger-item-excerpt {
  font-size: 0.8125rem;
  color: #554F49;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.ledger-item-meta {
  font-size: 0.6875rem;
  color: #8C847A;
  font-family: 'JetBrains Mono', monospace;
}

.broadsheet-double-rule {
  border-top: 3px double #231F1D;
  margin: 3rem 0;
}

/* Dispatches Grid */
.broadsheet-ledger-section {
  margin-bottom: 3.5rem;
}

.broadsheet-ledger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem 1.75rem;
}

.vintage-grid-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #DCD3C4;
}

.vintage-card-thumb-link {
  display: block;
  margin-bottom: 0.75rem;
  border: 1px solid #231F1D;
  padding: 3px;
  background-color: #FFFFFF;
}

.vintage-card-img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
}

.vintage-card-kicker {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8B2500;
  margin-bottom: 0.25rem;
}

.vintage-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #171513;
  margin-bottom: 0.4rem;
}

.vintage-card-excerpt {
  font-size: 0.8125rem;
  color: #554F49;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.vintage-card-date {
  margin-top: auto;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  color: #8C847A;
}

/* Circular Notice */
.vintage-circular-notice {
  border: 2px dashed #231F1D;
  background-color: #EFE9DE;
  padding: 2.25rem 1.5rem;
  text-align: center;
  margin: 3rem 0;
  border-radius: 2px;
}

.circular-notice-badge {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8B2500;
  margin-bottom: 0.4rem;
}

.circular-notice-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #171513;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.circular-notice-desc {
  font-size: 0.8125rem;
  color: #554F49;
  max-width: 480px;
  margin: 0 auto 1.25rem;
  line-height: 1.55;
}

.circular-notice-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.circular-notice-input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #231F1D;
  background: #FFFFFF;
  font-size: 0.8125rem;
  outline: none;
  border-radius: 2px;
  color: #171513;
}

.circular-notice-btn {
  background-color: #231F1D;
  color: #FFFFFF;
  font-weight: 800;
  padding: 0.65rem 1.25rem;
  border: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}

.circular-notice-btn:hover {
  background-color: #8B2500;
}

/* ==========================================================================
   VINTAGE BROADSHEET BOTTOM MOBILE NAVIGATION
   ========================================================================== */
.vintage-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 65px !important;
  }

  .vintage-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    height: 56px;
    background-color: #F6F1E8;
    border-top: 3px double #231F1D;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }

  .vintage-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #5C564E;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    flex: 1;
    transition: color 0.15s ease;
  }

  .vintage-nav-item:hover,
  .vintage-nav-item.active {
    color: #8B2500;
  }

  .vintage-nav-item.active .vintage-nav-icon {
    stroke: #8B2500;
  }

  .vintage-nav-label {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  }

  .magafrique-update-toast {
    bottom: 4.5rem !important; /* Positioned above vintage bottom bar */
  }
}


/* ==========================================================================
   VINTAGE DOUBLE-BORDER ARCHIVAL IMAGE CONTAINERS
   ========================================================================== */
.vintage-double-frame,
.broadsheet-framed-photo,
.vintage-image-frame,
.card-editorial a > img,
.vintage-card-img,
.article-reading-body figure,
.article-reading-body > img {
  border: 3px double var(--vintage-frame-border, #2B2623);
  padding: 4px;
  background-color: var(--vintage-frame-bg, #FAF6EE);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  position: relative;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vintage-double-frame:hover,
.broadsheet-framed-photo:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.vintage-photo-caption {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-muted, #70685E);
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.caption-archive-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8C847A);
}

/* ==========================================================================
   OFFICIAL LOGO DISPLAY (LIGHT & DARK VARIANTS)
   ========================================================================== */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-nameplate-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.logo-dark {
  display: none !important;
}

.logo-light {
  display: block !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 36px;
    max-width: 190px;
  }
}

/* ==========================================================================
   SMART MOBILE BOTTOM NAV SCROLL BEHAVIOR
   ========================================================================== */
@media (max-width: 768px) {
  .vintage-bottom-nav {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease !important;
  }

  .vintage-bottom-nav.nav-hidden {
    transform: translateY(calc(100% + 25px)) !important;
  }
}

/* ==========================================================================
   GOOGLE TRANSLATE SUPPRESSION & LANGUAGE SWITCHER
   ========================================================================== */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0px !important;
  position: static !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

.header-left-cluster {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-lang-pills {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #8C847A;
}

@media (max-width: 900px) {
  .header-lang-pills {
    display: none; /* Managed via mobile drawer */
  }
}

.lang-chip,
.lang-chip-footer {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.lang-chip.active,
.lang-chip-footer.active,
.lang-chip:hover,
.lang-chip-footer:hover {
  color: #0B5128;
  font-weight: 800;
  background: rgba(11, 81, 40, 0.08);
}

.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg);
}

.theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: inline-block;
}

/* ==========================================================================
   AUTHENTIC NON-BLACK DARK MODE PALETTE
   Canvas: Deep Obsidian Kohl #161412 (Strictly NOT #000000)
   ========================================================================== */
[data-theme="dark"] {
  --bg-canvas: #161412;
  --bg-card: #221F1C;
  --bg-card-subtle: #292521;
  --border-color: #38322B;
  --border-light: #2E2923;
  --text-primary: #EDE7DC;
  --text-secondary: #C4BCB0;
  --text-muted: #8E8578;
  --brand-gold: #E5A84B;
  --brand-green: #22C55E;
  --vintage-frame-border: #4D453E;
  --vintage-frame-bg: #1F1C19;
}

[data-theme="dark"] html,
[data-theme="dark"] body {
  background-color: #161412 !important;
  color: #EDE7DC !important;
}

[data-theme="dark"] .site-masthead,
[data-theme="dark"] .desktop-editorial-nav,
[data-theme="dark"] .masthead-dateline-strip {
  background-color: #1A1715 !important;
  border-color: #38322B !important;
  color: #EDE7DC !important;
}

[data-theme="dark"] .minimal-drawer-panel,
[data-theme="dark"] .search-modal-card {
  background-color: #1F1C19 !important;
  border-color: #38322B !important;
  color: #EDE7DC !important;
}

[data-theme="dark"] .card-editorial,
[data-theme="dark"] .broadsheet-lead-article,
[data-theme="dark"] .vintage-author-card,
[data-theme="dark"] .profile-wire-card,
[data-theme="dark"] .onboarding-card,
[data-theme="dark"] .paywall-exclusive-card {
  background-color: #221F1C !important;
  border-color: #38322B !important;
  color: #EDE7DC !important;
}

[data-theme="dark"] .vintage-bottom-nav {
  background-color: #1A1715 !important;
  border-top-color: #38322B !important;
}

[data-theme="dark"] .vintage-nav-item {
  color: #A39A8E !important;
}

[data-theme="dark"] .vintage-nav-item.active,
[data-theme="dark"] .vintage-nav-item:hover {
  color: #E5A84B !important;
}

[data-theme="dark"] .lang-chip.active,
[data-theme="dark"] .lang-chip-footer.active,
[data-theme="dark"] .lang-chip:hover,
[data-theme="dark"] .lang-chip-footer:hover {
  color: #E5A84B !important;
  background: rgba(229, 168, 75, 0.12) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .article-title-main {
  color: #FAF6F0 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .article-reading-body {
  color: #E0D8CB !important;
}

/* ==========================================================================
   LIVE LIKES, SHARES, BOOKMARKS & TOPIC FOLLOW BUTTONS
   ========================================================================== */
.article-interactive-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-live-like {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #DC2626;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-live-like:hover,
.btn-live-like.has-liked {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  transform: scale(1.04);
}

.share-live-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.share-counter-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted, #8C847A);
  margin-right: 0.25rem;
}

.share-pill-btn {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border-color, #E2DBD0);
  background: var(--bg-card, #FAF6EE);
  color: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.share-pill-btn:hover {
  background: #171513;
  color: #FAF6F0;
  border-color: #171513;
}

.btn-bookmark-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--border-color, #DDD6CB);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  transition: all 0.15s ease;
}

.btn-bookmark-action:hover,
.btn-bookmark-action.is-bookmarked {
  background: #0B5128;
  color: #FFFFFF;
  border-color: #0B5128;
}

.btn-follow-cat,
.btn-follow-tag {
  background: none;
  border: 1px solid var(--border-color, #D6CFC4);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 0.35rem;
  transition: all 0.15s ease;
  color: inherit;
}

.btn-follow-cat.is-following,
.btn-follow-tag.is-following {
  background: #0B5128;
  color: #FFFFFF;
  border-color: #0B5128;
}

/* Editorial Floating Toast */
.magafrique-editorial-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #171513;
  color: #FAF7F2;
  border: 1px solid #38322B;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.magafrique-editorial-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   VINTAGE MENU BUTTON & ARCHIVAL SIDE-OUT DRAWER
   ========================================================================== */
.vintage-menu-btn {
  background: none;
  border: 1px solid var(--border-color, #231F1D);
  padding: 3px 8px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary, #171513);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.vintage-menu-btn:hover {
  background-color: var(--text-primary, #171513);
  color: #FAF6F0 !important;
}

.vintage-btn-bracket {
  color: var(--text-muted, #8C847A);
  font-weight: 400;
}

.vintage-menu-ornament {
  font-size: 0.75rem;
  color: #D97706;
}

.vintage-drawer-frame {
  border-right: 3px double var(--border-color, #231F1D) !important;
}

.vintage-drawer-header {
  border-bottom: 2px solid var(--border-color, #231F1D) !important;
  padding-bottom: 1rem;
}

.drawer-edition-tag {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--text-muted, #8C847A);
  margin-top: 0.25rem;
}

.vintage-close-btn {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.vintage-reader-session-box {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed var(--border-color, #C7BFB3);
  border-radius: 4px;
}

[data-theme="dark"] .vintage-reader-session-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: #38322B;
}

.session-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.session-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0B5128;
}

[data-theme="dark"] .session-badge {
  color: #4ADE80;
}

.session-name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 700;
}

.session-actions-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vintage-session-btn {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.vintage-session-btn:hover {
  color: #0B5128;
  text-decoration: underline;
}

.vintage-session-btn.btn-logout {
  color: #B91C1C;
}

.vintage-session-btn.btn-enroll {
  color: #0B5128;
  font-weight: 700;
}

[data-theme="dark"] .vintage-session-btn.btn-logout {
  color: #F87171;
}

[data-theme="dark"] .vintage-session-btn.btn-enroll {
  color: #4ADE80;
}

.drawer-section-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--text-muted, #8C847A);
  margin-bottom: 0.75rem;
}

.drawer-link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  color: inherit;
  transition: color 0.15s ease;
}

.drawer-link-item:hover {
  color: #0B5128;
  transform: translateX(3px);
}

[data-theme="dark"] .drawer-link-item:hover {
  color: #E5A84B !important;
}

.drawer-item-bullet {
  color: #D97706;
  font-size: 0.8125rem;
}

.drawer-prestige-card-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: #171513;
  color: #FAF6F0 !important;
  border: 1px solid #38322B;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.drawer-prestige-card-btn:hover {
  background: #000000;
  border-color: #E5A84B;
  transform: translateY(-1px);
}

[data-theme="dark"] .drawer-prestige-card-btn {
  background: #26221E;
}

.prestige-star {
  font-size: 1.25rem;
  color: #E5A84B;
}

.header-reader-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color, #C7BFB3);
  font-size: 0.875rem;
  text-decoration: none;
}

[data-theme="dark"] .header-reader-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: #38322B;
}

.header-auth-text-link {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ==========================================================================
   VINTAGE DUAL-ANCHORED SEARCH POP-UP (MOBILE BOTTOM SHEET & DESKTOP HEADER DROPDOWN)
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(23, 21, 19, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.search-modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.vintage-search-popup {
  background-color: var(--bg-canvas, #F6F1E8);
  border: 3px double var(--border-color, #231F1D);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  padding: 1.25rem 1.5rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

[data-theme="dark"] .vintage-search-popup {
  background-color: #1F1C19 !important;
  border-color: #4A423B !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

.vintage-search-kicker {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  color: var(--text-muted, #8C847A);
  margin-bottom: 0.25rem;
}

.vintage-search-form {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.vintage-search-input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.9375rem;
  font-style: italic;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color, #231F1D);
  border-radius: 2px;
  color: inherit;
  outline: none;
}

[data-theme="dark"] .vintage-search-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: #4A423B;
  color: #EDE7DC;
}

.vintage-search-submit {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--text-primary, #171513);
  color: #FAF6F0;
  border: 1px solid var(--text-primary, #171513);
  padding: 0.65rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vintage-search-submit:hover {
  background: #0B5128;
  border-color: #0B5128;
}

[data-theme="dark"] .vintage-search-submit {
  background: #E5A84B;
  color: #171513;
  border-color: #E5A84B;
}

.vintage-search-topics {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.search-topics-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8C847A);
}

.search-topic-tag {
  color: #0B5128;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-theme="dark"] .search-topic-tag {
  color: #E5A84B;
}

.vintage-search-close {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* 1. DESKTOP & TABLET: POPS DOWN DIRECTLY FROM HEADER SEARCH BUTTON */
@media (min-width: 769px) {
  .search-modal-backdrop {
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 64px;
    padding-right: 2rem;
  }

  .vintage-search-popup {
    width: 460px;
    border-radius: 4px;
    transform-origin: top right;
    transform: scale(0.92) translateY(-10px);
    opacity: 0;
  }

  .search-modal-backdrop:not(.hidden) .vintage-search-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  .vintage-search-handle-bar {
    display: none;
  }
}

/* 2. MOBILE: POPS UP FROM BOTTOM NAVIGATION */
@media (max-width: 768px) {
  .search-modal-backdrop {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .vintage-search-popup {
    width: 100%;
    border-radius: 14px 14px 0 0;
    border-bottom: none !important;
    transform-origin: bottom center;
    transform: translateY(100%);
    opacity: 0;
  }

  .search-modal-backdrop:not(.hidden) .vintage-search-popup {
    transform: translateY(0);
    opacity: 1;
  }

  .vintage-search-handle-bar {
    width: 36px;
    height: 4px;
    background: var(--border-color, #C7BFB3);
    border-radius: 9999px;
    margin: 0 auto 0.75rem;
  }
}
