/* ============================================
   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 {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

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

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