/* ============================================
   the-opinions.com — Digital Broadsheet Design System
   Playfair Display + Lora + Inter
   Dark Slate Gray + Forest Green · Paper Background
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --accent: #2F4F4F;            /* Dark Slate Gray — primary accent */
  --accent-dark: #1A3333;
  --green: #2D6A4F;             /* Forest Green — secondary accent */
  --green-dark: #1B4332;
  --green-light: #D8F3DC;
  --green-faint: #F0F7F2;
  --slate: #475569;
  --slate-dark: #334155;
  --slate-light: #94A3B8;
  --navy: #1E293B;

  --text: #2C2C2C;              /* Softer than pure black */
  --text-secondary: #6B7280;
  --bg: #F9F7F2;                /* Soft paper background */
  --bg-white: #FFFFFF;
  --bg-card: #F1EDE4;
  --border: #E5E7EB;            /* Subtle structural dividers */
  --border-light: #EBE7DE;

  --display-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body-font: 'Lora', 'Merriweather', Georgia, serif;
  --sans-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

/* --- Base & Typography --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text);
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.5rem 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Reading Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* --- Top Bar Navigation (Thin Broadsheet Style) --- */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.topbar-brand:hover {
  color: var(--accent);
}

.topbar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--accent);
  transition: color var(--transition);
  /* Nudge up so the aperture's centre aligns with the wordmark's cap-height middle,
     not the geometric centre of the line box (which descenders pull downward). */
  transform: translateY(-1.5px);
}

.topbar-brand:hover .topbar-logo {
  color: var(--accent-dark);
}

.topbar-logo svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.topbar-brand-name {
  display: inline-block;
  line-height: 1;
}

@media (max-width: 600px) {
  .topbar-brand { font-size: 1.15rem; gap: 0.4rem; }
  .topbar-logo,
  .topbar-logo svg { width: 20px; height: 20px; flex-basis: 20px; }
}

@media (max-width: 480px) {
  .topbar-brand { font-size: 1rem; }
  .topbar-logo,
  .topbar-logo svg { width: 18px; height: 18px; flex-basis: 18px; }
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-nav a {
  font-family: var(--sans-font);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--accent);
}

.topbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.topbar-nav a:hover::after,
.topbar-nav a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.topbar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .topbar-toggle {
    display: block;
  }
  .topbar-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 0.75rem;
  }
  .topbar-nav.open {
    display: flex;
  }
  .topbar-nav a {
    padding: 0.6rem 0;
    border-top: 1px solid var(--border-light);
  }
  .topbar .container {
    flex-wrap: wrap;
  }
}

/* Fallback: style Bootstrap navbar the same way if used */
nav.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text) !important;
  transition: color var(--transition);
}

.navbar-brand:hover {
  color: var(--accent) !important;
}

.navbar-nav .nav-link {
  font-family: var(--sans-font);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color var(--transition);
  margin-left: 1.5rem;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* --- Glossary Tooltips (positioned by JS with position: fixed) --- */
.glossary-term {
  font-style: normal;
  border-bottom: 1px dashed var(--accent);
  cursor: help;
  position: relative;
  transition: all 0.2s ease;
  color: var(--text);
}

/* Hover: subtle "highlight marker" effect */
.glossary-term:hover {
  color: var(--accent);
  background-color: rgba(47, 79, 79, 0.08);
  border-bottom-style: solid;
}

.glossary-tooltip {
  /* Base state: hidden, positioned by JS */
  position: fixed;
  background: var(--navy);
  color: #F8FAFC;
  font-family: var(--sans-font);
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 12px 16px;
  border-radius: 6px;
  width: 290px;
  max-width: calc(100vw - 20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}

.glossary-tooltip.visible {
  opacity: 1;
}

.glossary-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy);
}

.glossary-tooltip.below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--navy);
}

/* --- Homepage Hero: Split Layout with Drop Cap --- */
.hero-broadsheet {
  padding: 4rem 0 3rem;
  border-bottom: 2px solid var(--text);
}

.hero-broadsheet .hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-broadsheet .hero-left .section-label {
  font-family: var(--sans-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: block;
}

.hero-broadsheet .hero-left h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.hero-broadsheet .hero-left .hero-meta {
  font-family: var(--sans-font);
  font-size: 0.82rem;
  color: var(--slate);
  letter-spacing: 0.03em;
}

.hero-broadsheet .hero-right {
  padding-top: 0.5rem;
  border-left: 1px solid var(--border);
  padding-left: 3rem;
}

.hero-broadsheet .hero-right .hero-excerpt {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}

.hero-broadsheet .hero-right .hero-excerpt::first-letter {
  font-family: var(--display-font);
  font-size: 3.8rem;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin: 0.08em 0.12em 0 0;
  color: var(--green);
}

.hero-broadsheet .hero-right .read-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--sans-font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.hero-broadsheet .hero-right .read-link:hover {
  color: var(--green-dark);
}

@media (max-width: 768px) {
  .hero-broadsheet .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-broadsheet .hero-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }
  .hero-broadsheet .hero-left h1 {
    font-size: 2rem;
  }
}

/* --- Section Headings --- */
.section-label {
  font-family: var(--sans-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: block;
}

/* --- Coming Next: 3-Column Grid --- */
.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.coming-card {
  padding: 0;
  border-top: 3px solid var(--green);
  padding-top: 1.2rem;
  transition: transform var(--transition);
}

.coming-card:hover {
  transform: translateY(-2px);
}

.coming-card .card-tag {
  font-family: var(--sans-font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}

.coming-card h4 {
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
}

.coming-card h4 a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.coming-card h4 a:hover {
  color: var(--accent);
}

.coming-card .card-date {
  font-family: var(--sans-font);
  font-size: 0.78rem;
  color: var(--slate-light);
}

.coming-card .card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* Ghost state for upcoming articles */
.coming-card.ghost {
  opacity: 0.45;
  border-top-color: var(--border);
}

.coming-card.ghost:hover {
  opacity: 0.65;
}

.coming-badge {
  display: inline-block;
  font-family: var(--sans-font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .coming-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- About Section --- */
.about-broadsheet {
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* --- Content Tags --- */
.article-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--sans-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  margin-right: 0.5rem;
}

.tag-crop-biotech { background: var(--green); color: #fff; }
.tag-climate { background: #2563EB; color: #fff; }
.tag-developing { background: #7C3AED; color: #fff; }
.tag-policy { background: #6366F1; color: #fff; }
.tag-communication { background: #B91C1C; color: #fff; }

/* --- Article Header --- */
.article-header {
  background: var(--bg);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 2px solid var(--text);
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.article-meta {
  font-family: var(--sans-font);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 400;
  padding-bottom: 2rem;
  margin: 0.75rem 0 2.5rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

/* --- Article Body --- */
/* --- Article 3-Zone Layout --- */
.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 65ch) 220px;
  gap: 2.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 2rem;
  align-items: start;
}

/* Left sidebar: TOC */
.article-sidebar-left {
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.article-toc {
  font-family: var(--sans-font);
  font-size: 0.78rem;
  line-height: 1.5;
}

.article-toc .toc-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 0.75rem;
  display: block;
}

.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc li {
  margin-bottom: 0.4rem;
}

.article-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

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

.article-toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* Right margin: dynamic scroll-anchored notes */
.article-sidebar-right {
  position: relative;
}

.margin-note {
  position: absolute;
  left: 0;
  right: 0;
  font-family: var(--sans-font);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  border-top: 2px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.margin-note.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Note type: Definition */
.margin-note.mn-definition {
  border-top-color: var(--accent);
}

.margin-note .mn-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

.margin-note.mn-definition .mn-label {
  color: var(--accent);
}

.margin-note .mn-term {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

/* Note type: Context / fact */
.margin-note.mn-context {
  border-top-color: var(--green);
}

.margin-note.mn-context .mn-label {
  color: var(--green);
}

/* Note type: Stat */
.margin-note.mn-stat {
  border-top-color: var(--accent);
}

.margin-note.mn-stat .mn-label {
  color: var(--slate-light);
}

.margin-note .mn-number {
  font-family: var(--display-font);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  display: block;
  margin-bottom: 0.2rem;
}

/* Note type: Related / coming next */
.margin-note.mn-related {
  border-top-color: var(--green);
}

.margin-note.mn-related .mn-label {
  color: var(--green);
}

.margin-note.mn-related a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
}

.margin-note.mn-related a:hover {
  text-decoration: underline;
}

/* Note type: Reader Q&A */
.margin-note.mn-qa {
  border-top-color: #B45309;
}

.margin-note.mn-qa .mn-label {
  color: #B45309;
}

.margin-note .mn-question {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.5;
  display: block;
  margin-bottom: 0.35rem;
}

.margin-note .mn-answer {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: block;
}

/* Main content column */
.article-body {
  padding: 0;
  max-width: 65ch;
  margin: 0;
  text-align: left;
  min-width: 0;
}

/* Fallback for pages without the 3-zone layout */
.article-body:only-child,
.article-body.article-body--centered {
  padding: 3rem 1.5rem;
  max-width: 65ch;
  margin: 0 auto;
}

/* Hide sidebars on tablet and below */
@media (max-width: 1100px) {
  .article-layout {
    display: block;
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
  }
  .article-sidebar-left {
    position: static;
    display: none;
  }
  .article-sidebar-right {
    display: none;
  }
  .article-body {
    max-width: 100%;
  }
  /* Show mobile TOC toggle */
  .toc-mobile-toggle {
    display: block;
  }
  .toc-mobile-panel {
    display: none;
  }
  .toc-mobile-panel.open {
    display: block;
  }
}

@media (min-width: 1101px) {
  .toc-mobile-toggle,
  .toc-mobile-panel {
    display: none !important;
  }
}

/* Mobile TOC styles */
.toc-mobile-toggle {
  display: none;
  font-family: var(--sans-font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.toc-mobile-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.toc-mobile-panel .article-toc a {
  padding: 0.3rem 0 0.3rem 0.75rem;
}

.article-body h2 {
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: var(--display-font);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2rem 0;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition);
}

.article-body a:hover {
  color: var(--accent-dark);
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

/* --- Callout & Fact Boxes --- */
.callout-box {
  border-radius: 4px;
  padding: 24px;
  margin: 2.5rem 0;
  font-family: var(--sans-font);
}

.callout-box .callout-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Stat Box */
.stat-box {
  background: var(--navy);
  color: #F8FAFC;
  text-align: center;
  border-radius: 4px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.stat-box .stat-number {
  font-family: var(--display-font);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--green-light);
  margin-bottom: 6px;
}

.stat-box .stat-label {
  font-family: var(--sans-font);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.stat-box .stat-desc {
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.65;
}

/* Definition Card */
.definition-card {
  background: var(--bg-white);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.definition-card .def-label {
  font-family: var(--sans-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.definition-card h4 {
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.definition-card p {
  font-family: var(--sans-font);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Did You Know Panel */
.did-you-know {
  background: var(--green-faint);
  border: 1px solid var(--green-light);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.did-you-know .dyk-label {
  font-family: var(--sans-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.did-you-know p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Chart & Visual Containers --- */
.chart-container {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.chart-container canvas {
  max-height: 380px;
}

.chart-caption {
  font-family: var(--sans-font);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

.chart-caption strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Infographic Cards --- */
.info-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.info-card {
  background: var(--bg-white);
  border-left: 4px solid var(--accent);
  padding: 1.25rem;
  transition: box-shadow var(--transition);
}

.info-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-card h4 {
  font-family: var(--sans-font);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  font-family: var(--sans-font);
  margin: 0;
}

.info-card.status-exempt { border-left-color: #16A34A; }
.info-card.status-regulated { border-left-color: #DC2626; }
.info-card.status-mixed { border-left-color: #D97706; }
.info-card.status-reform { border-left-color: #2563EB; }

/* --- Mermaid Diagrams --- */
.mermaid-container {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2.5rem 0;
  overflow-x: auto;
}

.mermaid-container .mermaid {
  display: flex;
  justify-content: center;
}

.diagram-caption {
  font-family: var(--sans-font);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* --- Key Sources --- */
.key-sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.key-sources h4 {
  font-family: var(--sans-font);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 1rem;
  font-weight: 700;
}

.key-sources ol {
  padding-left: 1.5rem;
  list-style: decimal;
}

.key-sources li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.65;
  font-family: var(--sans-font);
}

.key-sources li a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* --- Back Link --- */
.back-link {
  margin-top: 2.5rem;
  font-family: var(--sans-font);
  font-size: 0.85rem;
}

.back-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.back-link a:hover {
  text-decoration: underline;
}

/* --- Author Bio --- */
.author-bio {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin: 2.5rem 0 1.5rem;
}

.author-bio h4 {
  font-family: var(--sans-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin: 0 0 8px 0;
}

.author-bio p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  color: var(--text);
}

/* --- Share Links --- */
.share-links {
  font-family: var(--sans-font);
  font-size: 0.82rem;
  color: var(--slate);
  margin: 1rem 0;
  padding: 0.75rem 0;
}

.share-links a {
  font-weight: 600;
  margin-left: 10px;
  color: var(--accent);
}

.share-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* --- Category Filter Tabs --- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1.5rem 0;
  font-family: var(--sans-font);
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.article-card.hidden {
  display: none;
}

/* --- Article Cards (Index Pages) --- */
.article-card {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  transition: transform var(--transition);
}

.article-card:last-child {
  border-bottom: none;
}

.article-card:hover {
  transform: translateX(3px);
}

.article-card h3 {
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.article-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card .card-meta {
  font-family: var(--sans-font);
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.article-card .card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0;
}

.article-card .card-status {
  display: inline-block;
  font-family: var(--sans-font);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-light);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 0.5rem;
  font-weight: 600;
}

/* --- Month Headings (Articles Index) --- */
.month-heading {
  font-family: var(--sans-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  margin-top: 2.5rem;
}

.month-section:first-child .month-heading {
  margin-top: 0;
}

/* --- Page Header (Articles, Contact) --- */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 2px solid var(--text);
}

.page-title {
  font-family: var(--display-font);
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
}

.page-subtitle {
  font-family: var(--sans-font);
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0;
}

/* --- Home Hero (legacy fallback) --- */
.hero {
  background: var(--bg);
  padding: 4rem 0 3rem;
  border-bottom: 2px solid var(--text);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  font-family: var(--display-font);
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  font-family: var(--sans-font);
  font-weight: 400;
}

/* --- Section Dividers --- */
.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* --- Contact Page --- */
.contact-section {
  padding: 3rem 0;
}

.contact-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.contact-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- Subscribe Section --- */
.subscribe-section {
  background: var(--accent);
  color: #F0EDEA;
  padding: 3rem 0;
  text-align: center;
}

.subscribe-section h3 {
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.5rem 0;
}

.subscribe-section p {
  font-family: var(--sans-font);
  font-size: 0.9rem;
  color: #C8D6D6;
  margin: 0 0 1.5rem 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.7rem 1rem;
  font-family: var(--sans-font);
  font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease;
}

.subscribe-form input[type="email"]::placeholder {
  color: #9BB0B0;
}

.subscribe-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}

.subscribe-form button {
  padding: 0.7rem 1.5rem;
  font-family: var(--sans-font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: #FFFFFF;
  color: var(--accent);
  border: 2px solid #FFFFFF;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.subscribe-form button:hover {
  background: transparent;
  color: #FFFFFF;
}

.subscribe-note {
  font-family: var(--sans-font);
  font-size: 0.72rem;
  color: #8AA0A0;
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .subscribe-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  .subscribe-form input[type="email"] {
    border-right: 2px solid rgba(255,255,255,0.2);
    border-radius: 4px;
  }
  .subscribe-form button {
    border-radius: 4px;
  }
}

/* --- Footer --- */
footer {
  background: var(--navy);
  color: var(--slate-light);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  font-family: var(--sans-font);
}

footer a {
  color: var(--slate-light);
  text-decoration: none;
  transition: color var(--transition);
}

footer a:hover {
  color: #FFFFFF;
}

/* --- Placeholder Article Badge --- */
.placeholder-badge {
  display: inline-block;
  background: #FEF3CD;
  color: #856404;
  font-family: var(--sans-font);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 3px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Utility Classes --- */
.text-muted { color: var(--text-secondary); }
.text-small { font-size: 0.85rem; }
.text-center { text-align: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Print --- */
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; }
  nav, footer, .topbar { display: none; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body { font-size: 1rem; }

  .article-header { padding: 2.5rem 0 1.5rem; }
  .article-header h1 { font-size: 1.9rem; }

  .article-body h2 { font-size: 1.3rem; }

  .hero-broadsheet { padding: 2.5rem 0 2rem; }

  .info-card-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .article-card { padding: 1.25rem 0; }
  .article-card h3 { font-size: 1.15rem; }

  .navbar-nav .nav-link {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .page-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .article-header h1 { font-size: 1.5rem; }
  .hero-broadsheet .hero-left h1 { font-size: 1.6rem; }
  .article-card h3 { font-size: 1.05rem; }
  .navbar-brand, .topbar-brand { font-size: 1rem; }
  .article-tag { font-size: 0.6rem; padding: 3px 8px; }
}

/* ============================================================
   EDITORIAL POLISH BLOCK · added 2026-04-26
   Drop caps · Pull quotes · Mid-article CTA · Up Next cards · Cite widget
   ============================================================ */

/* --- Drop cap on first paragraph of article body --- */
.article-body > p:first-of-type::first-letter {
  font-family: var(--display-font);
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 0.85;
  float: left;
  margin: 0.35rem 0.7rem 0 0;
  color: var(--accent);
  /* Subtle vertical rule alongside the drop cap */
  padding-right: 0.1rem;
}

@media (max-width: 600px) {
  .article-body > p:first-of-type::first-letter {
    font-size: 3.4rem;
    margin: 0.25rem 0.55rem 0 0;
  }
}

/* --- Pull quote --- */
.pull-quote {
  font-family: var(--display-font);
  font-size: 1.45rem;
  line-height: 1.35;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 1.5rem 1.75rem 1.35rem;
  margin: 2.5rem 0 2.25rem;
  text-align: center;
  letter-spacing: -0.005em;
  border-radius: 2px;
}

/* No eyebrow label — the rules and display type ARE the signal. */

@media (max-width: 600px) {
  .pull-quote { font-size: 1.25rem; padding: 1.1rem 0.25rem 0.9rem; margin: 2rem 0; }
}

/* --- Mid-article newsletter CTA --- */
.midarticle-cta {
  margin: 3rem 0;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--accent);
  color: #F8FAFC;
  border-radius: 4px;
  position: relative;
}

.midarticle-cta .cta-eyebrow {
  font-family: var(--sans-font);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D8F3DC;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.midarticle-cta h3 {
  font-family: var(--display-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.midarticle-cta .cta-lede {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.55;
  color: #E5E7EB;
  margin: 0 0 1.25rem;
}

.midarticle-cta .cta-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.midarticle-cta .cta-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.7rem 0.85rem;
  border: none;
  border-radius: 3px;
  font-family: var(--sans-font);
  font-size: 0.95rem;
  color: var(--text);
  background: #FFFFFF;
}

.midarticle-cta .cta-form button {
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 3px;
  background: var(--green-light);
  color: var(--green-dark);
  font-family: var(--sans-font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition);
}

.midarticle-cta .cta-form button:hover {
  background: #FFFFFF;
}

.midarticle-cta .cta-microsocial {
  font-family: var(--sans-font);
  font-size: 0.78rem;
  color: #CBD5E1;
  margin: 0.85rem 0 0;
  font-style: italic;
}

/* --- Up Next grid (end of article) --- */
.upnext-section {
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.upnext-section .upnext-label {
  font-family: var(--sans-font);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  margin: 0 0 1.25rem;
  display: block;
}

.upnext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .upnext-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.upnext-card {
  display: block;
  padding: 1.25rem 1.4rem;
  background: var(--bg-card);
  border-radius: 4px;
  text-decoration: none;
  border-left: 3px solid var(--accent);
  transition: transform 0.15s ease, background var(--transition);
}

.upnext-card:hover {
  transform: translateY(-2px);
  background: #ECE7DA;
}

.upnext-card .upnext-direction {
  font-family: var(--sans-font);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.upnext-card h4 {
  font-family: var(--display-font);
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.upnext-card .upnext-meta {
  font-family: var(--sans-font);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Cite this Article widget --- */
.cite-widget {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.cite-widget .cite-eyebrow {
  font-family: var(--sans-font);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.cite-widget h4 {
  font-family: var(--display-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}

.cite-widget .cite-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.cite-widget .cite-tab {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  font-family: var(--sans-font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.cite-widget .cite-tab.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.cite-widget .cite-tab:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.cite-widget .cite-content {
  position: relative;
  background: var(--bg-card);
  border-radius: 3px;
  padding: 1rem 3.5rem 1rem 1rem;
  font-family: var(--body-font);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}

.cite-widget .cite-content.bibtex {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
}

.cite-widget .cite-copy {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  background: #FFFFFF;
  border-radius: 3px;
  font-family: var(--sans-font);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.cite-widget .cite-copy:hover { color: var(--accent); border-color: var(--accent); }
.cite-widget .cite-copy.copied { color: var(--green); border-color: var(--green); }

.cite-widget .cite-pane { display: none; }
.cite-widget .cite-pane.active { display: block; }

/* ============================================================
   CURATED RESPONSES FOOTER · added 2026-04-26
   Journal-style "letters to the editor" section per article
   ============================================================ */

.responses-section {
  margin: 3rem 0 2rem;
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border-left: 3px solid var(--green);
  border-radius: 4px;
}

.responses-section .responses-eyebrow {
  font-family: var(--sans-font);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.responses-section h3 {
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.responses-section .responses-intro {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1.5rem;
  font-style: italic;
}

.responses-section .responses-intro a {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 600;
  border-bottom: 1px solid var(--green);
  padding-bottom: 1px;
}

.responses-section .responses-intro a:hover {
  background: rgba(45, 106, 79, 0.08);
}

.response-item {
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 2px solid var(--border);
  margin: 0 0 1.5rem;
  background: transparent;
}

.response-item:last-of-type {
  margin-bottom: 0;
}

.response-item .response-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.85rem;
  font-family: var(--sans-font);
  font-size: 0.85rem;
  line-height: 1.4;
}

.response-item .response-author {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.response-item .response-affiliation {
  font-style: italic;
  color: var(--text-secondary);
}

.response-item .response-date {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

.response-item .response-body {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.response-item .response-body p {
  margin: 0 0 0.85rem;
}

.response-item .response-body p:last-child {
  margin-bottom: 0;
}

.response-item .response-body blockquote {
  border-left: 2px solid var(--border);
  margin: 0.85rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.95rem;
}

/* Author's editorial reply — visually distinguished from reader responses */
.response-item.author-reply {
  border-left-color: var(--accent);
  background: rgba(47, 79, 79, 0.04);
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  border-radius: 0 3px 3px 0;
}

.response-item.author-reply .response-author {
  color: var(--accent);
}

.response-item.author-reply .response-author::after {
  content: " · author";
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Empty-state Responses section */
.responses-section.responses-empty {
  border-left-color: var(--slate-light);
}

.responses-section.responses-empty .responses-eyebrow {
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .responses-section { padding: 1.5rem 1.25rem; }
  .response-item { padding-left: 0.85rem; }
  .response-item .response-date { margin-left: 0; flex-basis: 100%; }
}

/* ==========================================================================
   October 2026 additions: recent list, forthcoming list, inline margin
   notes, swipeable figures, newsletter status, footer, about page
   ========================================================================== */

/* --- Homepage: Recently Published --- */
.recent-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2.5rem;
}
.recent-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}
.recent-item .card-tag {
  font-family: var(--sans-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.recent-item h4 {
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.4rem 0 0.35rem;
}
.recent-item h4 a { color: var(--text); text-decoration: none; transition: color var(--transition); }
.recent-item h4 a:hover { color: var(--accent); }
.recent-item .card-date { font-family: var(--sans-font); font-size: 0.75rem; color: var(--slate-light); }
.recent-item .card-excerpt { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; margin: 0.4rem 0 0; }
@media (max-width: 700px) {
  .recent-list { grid-template-columns: 1fr; }
}

/* --- Articles index: Forthcoming list --- */
.forthcoming-note {
  font-family: var(--sans-font);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 1rem 0 0.25rem;
}
.forthcoming-list { list-style: none; margin: 0; padding: 0; }
.article-card.article-card-compact {
  padding: 0.85rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}
.article-card-compact .forthcoming-tag {
  flex: 0 0 12rem;
  font-family: var(--sans-font);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-card-compact a {
  font-family: var(--display-font);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text-secondary);
  text-decoration: none;
}
.article-card-compact a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .article-card.article-card-compact { display: block; }
  .article-card-compact .forthcoming-tag { display: block; margin-bottom: 0.25rem; }
}

/* --- Inline margin notes (shown where the right sidebar is hidden) --- */
.mn-inline { display: none; }
@media (max-width: 1100px) {
  .mn-inline {
    display: block;
    margin: -0.4rem 0 1.6rem;
    border-left: 3px solid var(--accent);
    background: var(--bg-card);
    border-radius: 0 4px 4px 0;
    font-family: var(--sans-font);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
  }
  .mn-inline.mn-context { border-left-color: var(--green); }
  .mn-inline > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.6rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .mn-inline > summary::-webkit-details-marker { display: none; }
  .mn-inline > summary::before { content: '+\00a0\00a0'; }
  .mn-inline[open] > summary::before { content: '\2013\00a0\00a0'; }
  .mn-inline .mn-summary-detail { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); }
  .mn-inline-body { padding: 0 0.9rem 0.85rem; }
  .mn-inline-body .mn-number {
    display: block;
    font-family: var(--display-font);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.2rem;
  }
  .mn-inline-body .mn-term,
  .mn-inline-body .mn-question { display: block; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
  .mn-inline-body .mn-answer { display: block; }
}

/* --- Swipeable figures on phones --- */
.figure-swipe-hint { display: none; }
@media (max-width: 760px) {
  .figure-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.5rem;
  }
  .hero-infographic .figure-scroll > svg { width: 1100px !important; max-width: none; }
  .chart-container .figure-scroll > svg { width: 640px !important; max-width: none; }
  .figure-swipe-hint {
    display: block;
    font-family: var(--sans-font);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--slate-light);
    text-align: right;
    margin: 0.35rem 0 0;
  }
}

/* --- Newsletter signup status --- */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.subscribe-status {
  font-family: var(--sans-font);
  font-size: 0.85rem;
  margin: 0.75rem auto 0;
  min-height: 1.2em;
  color: #D8F3DC;
}
.subscribe-status.is-error { color: #FECACA; }
form[data-subscribe] button[disabled] { opacity: 0.6; cursor: wait; }

/* --- Footer --- */
footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
footer .footer-name { font-family: var(--display-font); font-weight: 700; font-size: 1.1rem; color: #FFFFFF; }
footer .footer-tag { margin: 0.45rem 0 0; max-width: 380px; line-height: 1.55; font-size: 0.82rem; }
footer .footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer .footer-copy { margin: 0; font-size: 0.78rem; }

/* --- About page --- */
.about-wrap { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.about-author { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 2.5rem; }
.about-monogram {
  flex: 0 0 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display-font);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.about-author h2 { font-family: var(--display-font); font-size: 1.6rem; margin: 0 0 0.25rem; }
.about-author .about-role { font-family: var(--sans-font); font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.about-wrap h3 {
  font-family: var(--sans-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin: 2.75rem 0 1rem;
}
.about-wrap ol.about-steps { padding-left: 1.2rem; }
.about-wrap ol.about-steps li { margin-bottom: 0.6rem; }
@media (max-width: 520px) {
  .about-author { flex-direction: column; align-items: flex-start; }
}
