/* ========================================================================
   Elegant Redesign Layer
   Cormorant Garamond, theme-inverted hero, typographic stats,
   pure-text pathways, teal-dash section headings,
   refined header + footer, inner page components, aesthetic polish
   Loaded after main.css — overrides by cascade order
   ======================================================================== */

:root {
  --font-elegant: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* ========================================================================
   NAVIGATION — Lighter weight, teal accents, restrained CTA
   ======================================================================== */

.nav-logo {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-title {
  font-family: var(--font-elegant);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--d4arf-accent);
  background-color: var(--d4arf-accent-light);
}

.nav-cta .btn-nav-cta {
  background: transparent;
  color: var(--d4arf-accent);
  border: 1px solid var(--d4arf-accent);
  text-transform: none;
  font-family: var(--font-elegant);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
}

.nav-cta .btn-nav-cta:hover,
.nav-cta .btn-nav-cta:focus-visible {
  background: var(--d4arf-accent);
  color: #fff;
  text-decoration: none;
}

.site-nav {
  border-bottom: 0.5px solid var(--color-border);
}

[data-theme="dark"] .site-nav {
  border-bottom: 0.5px solid var(--d4arf-border);
}

/* ========================================================================
   FOOTER — Cormorant tagline, teal dashes on column headings
   ======================================================================== */

.footer-tagline {
  font-family: var(--font-elegant);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.5;
  /* Matches --pico-muted-color / footer nav link base color */
  color: #9ca3af;
}

.footer-heading {
  position: relative;
  padding-top: 0.75rem;
}

.footer-heading::before {
  content: '';
  display: block;
  width: 0.75rem;
  height: 1px;
  background: var(--d4arf-accent);
  margin-bottom: 0.5rem;
  position: absolute;
  top: 0;
  left: 0;
}

/* Footer link hover: light teal with adequate contrast on dark bg (~7:1 on #1b2127) */
.footer-nav-col a:hover {
  color: #5ec4d4;
}

.footer-contact-email a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

/* ========================================================================
   BODY TEXT LINKS — Restrained underline treatment
   Removes heavy Pico default underline; shows subtle underline on hover
   ======================================================================== */

.page-content a:not([class]),
.landing-content a:not([class]) {
  text-decoration: none;
  color: var(--d4arf-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.page-content a:not([class]):hover,
.landing-content a:not([class]):hover {
  border-bottom-color: var(--d4arf-accent);
  text-decoration: none;
}

.page-content a:not([class]):focus-visible,
.landing-content a:not([class]):focus-visible {
  outline: 2px solid var(--d4arf-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================================================
   SECTION HEADINGS — Teal dash above, Cormorant Garamond weight 300
   ======================================================================== */

.elegant-heading {
  font-family: var(--font-elegant);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: var(--color-text-primary);
  margin: 0 0 2rem;
  padding-bottom: 0;
  position: relative;
}

.elegant-heading::before {
  content: '';
  display: block;
  width: 1rem;
  height: 1px;
  background: var(--d4arf-accent);
  margin-bottom: 0.75rem;
}

.elegant-heading--center {
  text-align: center;
}

.elegant-heading--center::before {
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  font-family: var(--font-elegant);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  letter-spacing: -0.2px;
  padding-bottom: 0;
}

.section-heading::after {
  display: none;
}

.section-heading::before {
  content: '';
  display: block;
  width: 1rem;
  height: 1px;
  background: var(--d4arf-accent);
  margin-bottom: 0.75rem;
}

/* Center the dash only when the heading itself is centered (text-align inherits) */
.section-heading[style*="text-align: center"]::before,
.pathways .section-heading::before {
  margin-left: auto;
  margin-right: auto;
}

.about-section h2 {
  font-family: var(--font-elegant);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  letter-spacing: -0.2px;
  padding-bottom: 0;
}

.about-section h2::after {
  display: none;
}

.about-section h2::before {
  content: '';
  display: block;
  width: 1rem;
  height: 1px;
  background: var(--d4arf-accent);
  margin: 0 auto 0.75rem;
}

.landing-hero h1 {
  font-family: var(--font-elegant);
  font-weight: 300;
  letter-spacing: -0.3px;
}

/* ========================================================================
   PAGE HEADERS — Inner page titles (the-issue, evidence, about, etc.)
   ======================================================================== */

.page-header {
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-family: var(--font-elegant);
  font-weight: 300;
  letter-spacing: -0.3px;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

/* Inner page h2 headings — Cormorant weight 300 */
.page-content h2,
.landing-content h2 {
  font-family: var(--font-elegant);
  font-weight: 300;
  letter-spacing: -0.2px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.page-content h3,
.landing-content h3 {
  font-family: var(--font-elegant);
  font-weight: 400;
  letter-spacing: -0.1px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

/* ========================================================================
   INNER PAGE STAT CARDS — Pure typography (matches homepage stats)
   Scoped to .landing-content which wraps the stats on educators and
   public-employees pages (the landing layout content wrapper)
   ======================================================================== */

.landing-content .stats-grid,
.landing-content .stat-grid {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: 100%;
  background: transparent;
  padding: 2rem 0;
  border-top: 0.5px solid var(--color-border);
  border-bottom: 0.5px solid var(--color-border);
  margin: 2rem 0;
}

.landing-content .stat-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: left;
  flex: 1;
}

.landing-content .stat-card .stat-number,
.landing-content .stat-card [data-count] {
  font-family: var(--font-elegant);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -1px;
  color: var(--color-text-primary);
}

.landing-content .stat-card .stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
}

/* Suppress counter animation — show final value immediately */
.landing-content .stat-card [data-count]::after {
  display: none;
}

@media (max-width: 600px) {
  .landing-content .stats-grid,
  .landing-content .stat-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ========================================================================
   FAQ QUESTIONS — Cormorant weight 500 for consistency
   ======================================================================== */

.page-content .faq-item > p > strong:only-child,
.page-content details > summary > strong,
.page-content details > summary {
  font-family: var(--font-elegant);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.1px;
}

/* ========================================================================
   CONTINUE READING NAV — Styled page-turn moment
   Matches .page-flow (the-issue) and aria-label="Continue reading"
   ======================================================================== */

.page-flow,
nav[aria-label="Continue reading"] {
  border-top: 0.5px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

.page-flow a,
nav[aria-label="Continue reading"] a {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-elegant);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.15s;
}

.page-flow a:hover,
nav[aria-label="Continue reading"] a:hover {
  color: var(--d4arf-accent);
}

.page-flow a:focus-visible,
nav[aria-label="Continue reading"] a:focus-visible {
  outline: 2px solid var(--d4arf-accent);
  outline-offset: 2px;
}

/* ========================================================================
   LETTER TEMPLATE COPY BUTTON — Mono, teal, matches nav CTA
   .copy-letter-btn is the actual class used in the letter template include
   ======================================================================== */

.letter-template button,
.letter-template .copy-letter-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--d4arf-accent);
  background: transparent;
  border: 1px solid var(--d4arf-accent);
  border-radius: 2px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.letter-template button:hover,
.letter-template .copy-letter-btn:hover {
  background: var(--d4arf-accent);
  color: #fff;
}

.letter-template button:focus-visible,
.letter-template .copy-letter-btn:focus-visible {
  outline: 2px solid var(--d4arf-accent);
  outline-offset: 2px;
}

/* ========================================================================
   SIDEBAR CTA BOX — Teal-light background (was red-light)
   Red button inside is preserved for action urgency.
   aside.cta-box is the canonical class from _includes/cta-box.html.
   article > aside[role="complementary"] catches any complementary aside.
   ======================================================================== */

aside.cta-box,
article > aside[role="complementary"] {
  background: var(--d4arf-accent-light);
  border-left: 4px solid var(--d4arf-accent);
  border-radius: 0;
}

aside.cta-box h3,
article > aside[role="complementary"] h3 {
  font-family: var(--font-elegant);
  font-weight: 500;
  font-size: 1.1rem;
}

/* ========================================================================
   AGENCY TABLES — Teal header, refined borders
   ======================================================================== */

.issue-agency-table thead {
  background: var(--d4arf-accent);
}

.issue-agency-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.issue-agency-table tbody tr:last-child td {
  border-bottom: 2px solid var(--d4arf-accent);
}

.issue-agency-table td strong {
  font-family: var(--font-elegant);
  font-weight: 500;
  font-size: 1rem;
}

/* Dark mode table header: darken the accent via color-mix to maintain contrast with white text */
[data-theme="dark"] .issue-agency-table thead {
  background: color-mix(in srgb, var(--d4arf-accent) 60%, black);
}

@media (max-width: 600px) {
  .issue-agency-table tbody tr {
    border-left-color: var(--d4arf-accent);
  }
}

/* ========================================================================
   PULL QUOTES — Cormorant italic, teal border
   Uses var(--d4arf-accent) and var(--d4arf-accent-light) which
   auto-adapt in dark mode via main.css token redefinition
   ======================================================================== */

.pull-quote {
  border-left: 4px solid var(--d4arf-accent);
  background-color: var(--d4arf-accent-light);
  border-radius: 0;
}

.pull-quote p {
  font-family: var(--font-elegant);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.65;
}

.pull-quote::before {
  color: var(--d4arf-accent);
  opacity: 0.2;
}

/* ========================================================================
   BLOCKQUOTES — Teal border, lighter background
   ======================================================================== */

blockquote {
  border-left-color: var(--d4arf-accent);
  background-color: var(--d4arf-accent-light);
}

/* ========================================================================
   CALLOUT BOXES — Teal accent, lighter background
   ======================================================================== */

.callout {
  border-left-color: var(--d4arf-accent);
  background-color: var(--d4arf-accent-light);
}

/* ========================================================================
   RED FLAG SECTIONS — Thinner teal accent bars
   ======================================================================== */

.issue-red-flags > p:has(> strong:first-child) {
  border-left: 2px solid var(--d4arf-accent);
}

.issue-red-flags > p:has(> strong:first-child) + p:has(> strong:first-child) {
  border-top-color: var(--color-border);
}

/* ========================================================================
   DEMANDS / ACTION STEPS — Teal numbered circles
   ======================================================================== */

.issue-demands ol li::before {
  background: var(--d4arf-accent);
}

.action-step h2::before {
  background: var(--d4arf-accent);
}

/* ========================================================================
   CTA BOXES — Teal accent border
   ======================================================================== */

.cta-box {
  border-left-color: var(--d4arf-accent);
  background-color: var(--d4arf-accent-light);
}

/* ========================================================================
   TIMELINE — Teal dots and line
   Uses color-mix() so the accent variable auto-adapts in dark mode
   ======================================================================== */

.timeline-wrapper::before {
  background: color-mix(in srgb, var(--d4arf-accent) 20%, transparent);
}

.timeline .timeline-event::before {
  background: var(--d4arf-accent);
}

.timeline .timeline-event.timeline-event--highlight::before {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--d4arf-accent) 20%, transparent);
}

.timeline .timeline-event time {
  color: var(--d4arf-accent);
}

/* ========================================================================
   AUDIENCE NAV — Teal active state
   Uses var(--d4arf-accent) which auto-adapts in dark mode
   ======================================================================== */

.audience-nav-list a:hover {
  color: var(--d4arf-accent);
}

.audience-nav-list a[aria-current="page"] {
  color: var(--d4arf-accent);
  border-bottom-color: var(--d4arf-accent);
}

/* ========================================================================
   DOCUMENT ITEMS — Teal left border
   ======================================================================== */

.document-item {
  border-left-color: var(--d4arf-accent);
}

.document-item a.doc-title:hover {
  color: var(--d4arf-accent);
}

.doc-icon {
  color: var(--d4arf-accent);
}

/* ========================================================================
   LETTER TEMPLATES — Neutral border, no shadow
   ======================================================================== */

.letter-template {
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.letter-template .letter-heading {
  border-bottom-color: var(--color-border);
}

/* ========================================================================
   LEGAL REFERENCE — Teal accent, lighter background
   ======================================================================== */

.legal-reference {
  background: var(--d4arf-accent-light);
}

.legal-reference h2 {
  border-bottom-color: var(--d4arf-accent);
}

/* ========================================================================
   EVIDENCE FINDINGS — Teal accent
   ======================================================================== */

.evidence-findings h3 {
  border-left-color: var(--d4arf-accent);
}

/* ========================================================================
   EVIDENCE CARD — Teal top border
   ======================================================================== */

.evidence-card {
  border-top-color: var(--d4arf-accent);
}

/* ========================================================================
   CALLOUT BOX (The Markup pattern) — Refined
   ======================================================================== */

.callout-box {
  border-color: var(--color-border);
  box-shadow: 3px 3px 0 var(--color-border);
}

[data-theme="dark"] .callout-box {
  border-color: var(--color-border);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.06);
}

/* ========================================================================
   SYMMETRY SECTION — Subtle background
   ======================================================================== */

.issue-symmetry {
  background: var(--color-bg-panel);
}

/* ========================================================================
   ISSUE QUESTIONS BOX — Teal border
   ======================================================================== */

.issue-questions {
  border-left-color: var(--d4arf-accent);
}

/* ========================================================================
   MEETING INFO — Teal accent
   ======================================================================== */

.meeting-info {
  border-left-color: var(--d4arf-accent);
}

/* ========================================================================
   SCRIPT CARD — Teal accent
   ======================================================================== */

.script-card {
  border-left-color: var(--d4arf-accent);
}

/* ========================================================================
   ACTION NAV PILLS — Teal
   ======================================================================== */

.action-nav a {
  color: var(--d4arf-accent);
  border-color: var(--d4arf-accent);
}

.action-nav a:hover,
.action-nav a:focus-visible {
  background: var(--d4arf-accent);
  color: #fff;
  outline-color: var(--d4arf-accent);
}

/* ========================================================================
   APPROACH PILLARS — Teal accent bar
   ======================================================================== */

.approach-pillars > p:has(> strong:first-child) {
  border-left-color: var(--d4arf-accent);
}

/* ========================================================================
   KEY FINDING / SECTION LABELS — Teal
   ======================================================================== */

.key-finding strong:first-child {
  color: var(--d4arf-accent);
}

.section-label {
  color: var(--d4arf-accent);
}

/* ========================================================================
   BAR CHART — Teal primary bar
   ======================================================================== */

.bar-chart-bar {
  background: var(--d4arf-accent);
}

/* ========================================================================
   LANDING HERO — Refined to match elegant system
   ======================================================================== */

.landing-hero {
  background-color: var(--color-bg-panel);
  padding: 3rem 1.5rem 2.5rem;
}

.landing-hero::after {
  height: 2px;
  background: var(--d4arf-accent);
}

.landing-hero h1 {
  font-family: var(--font-elegant);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: -0.3px;
}

.landing-description {
  font-size: 1rem;
}

/* ========================================================================
   HERO — Theme-inverted, ghost watermark, thin serif typography
   ======================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  border-top: none;
  padding: 3.5rem var(--space-lg) 3rem;
}

.hero::before,
.hero::after {
  display: none;
}

.hero-ghost {
  position: absolute;
  font-family: var(--font-elegant);
  font-weight: 300;
  font-size: clamp(8rem, 20vw, 11rem);
  line-height: 1;
  pointer-events: none;
  right: var(--space-lg);
  top: 0.5rem;
  letter-spacing: -3px;
  user-select: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  margin: 0 0 1.75rem;
  padding-left: 1.75rem;
  position: relative;
}

.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1px;
  background: var(--d4arf-accent);
}

.hero h1 {
  font-family: var(--font-elegant);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw + 0.5rem, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.hero-sub,
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 0 2rem;
}

.hero .btn-primary-hero {
  font-family: var(--font-elegant);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  border: none;
  transition: opacity 0.2s;
}

.hero .btn-primary-hero:hover {
  opacity: 0.88;
  text-decoration: none;
}

/* Focus: teal ring — currentColor matches the hero bg, so use brand accent instead */
.hero .btn-primary-hero:focus-visible {
  outline: 2px solid var(--d4arf-accent);
  outline-offset: 3px;
}

.hero .btn-secondary-hero {
  font-family: var(--font-elegant);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  background: transparent;
  transition: opacity 0.2s;
}

.hero .btn-secondary-hero:hover {
  opacity: 0.7;
  text-decoration: none;
}

.hero .btn-secondary-hero:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.hero-stat {
  display: none;
}

/* --- Light theme: dark hero --- */
[data-theme="light"] .hero { background-color: #1b2127; }
[data-theme="light"] .hero-ghost { color: rgba(248, 247, 245, 0.04); }
[data-theme="light"] .hero-eyebrow { color: rgba(248, 247, 245, 0.4); }
[data-theme="light"] .hero h1 { color: #F8F7F5; }
[data-theme="light"] .hero-sub,
[data-theme="light"] .hero-subtitle { color: rgba(248, 247, 245, 0.6); }
[data-theme="light"] .hero .btn-primary-hero { background: #F8F7F5; color: #1b2127; }
[data-theme="light"] .hero .btn-primary-hero:hover { color: #1b2127; }
[data-theme="light"] .hero .btn-secondary-hero { border: 1px solid rgba(248, 247, 245, 0.2); color: rgba(248, 247, 245, 0.7); }
[data-theme="light"] .hero .btn-secondary-hero:hover { color: rgba(248, 247, 245, 0.7); }

/* --- Dark theme: cream hero --- */
[data-theme="dark"] .hero { background-color: #F8F7F5; }
[data-theme="dark"] .hero-ghost { color: rgba(27, 33, 39, 0.045); }
[data-theme="dark"] .hero-eyebrow { color: rgba(27, 33, 39, 0.35); }
[data-theme="dark"] .hero h1 { color: #1b2127; }
[data-theme="dark"] .hero-sub,
[data-theme="dark"] .hero-subtitle { color: rgba(27, 33, 39, 0.5); }
[data-theme="dark"] .hero .btn-primary-hero { background: #1b2127; color: #F8F7F5; }
[data-theme="dark"] .hero .btn-primary-hero:hover { color: #F8F7F5; }
[data-theme="dark"] .hero .btn-secondary-hero { border: 1px solid rgba(27, 33, 39, 0.15); color: rgba(27, 33, 39, 0.5); }
[data-theme="dark"] .hero .btn-secondary-hero:hover { color: rgba(27, 33, 39, 0.5); }

/* --- Fallback (no data-theme set): dark hero --- */
:root:not([data-theme]) .hero { background-color: #1b2127; }
:root:not([data-theme]) .hero-ghost { color: rgba(248, 247, 245, 0.04); }
:root:not([data-theme]) .hero-eyebrow { color: rgba(248, 247, 245, 0.4); }
:root:not([data-theme]) .hero h1 { color: #F8F7F5; }
:root:not([data-theme]) .hero-sub { color: rgba(248, 247, 245, 0.6); }
:root:not([data-theme]) .hero .btn-primary-hero { background: #F8F7F5; color: #1b2127; }
:root:not([data-theme]) .hero .btn-secondary-hero { border: 1px solid rgba(248, 247, 245, 0.2); color: rgba(248, 247, 245, 0.7); }

/* ========================================================================
   STATS BAR — Pure typography, no cards, no boxes
   ======================================================================== */

.stats-bar { padding: 2.5rem var(--space-lg) 1.75rem; }

.stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.stat { flex: 1; }

.stat .stat-number {
  display: block;
  font-family: var(--font-elegant);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-rule {
  display: block;
  width: 1.5rem;
  height: 1px;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.stat .stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  max-width: 180px;
  margin: 0;
  text-align: left;
}

.stats-provenance {
  text-align: left;
  max-width: 720px;
  margin: 1rem auto 0;
  padding-top: 0;
  border-top: none;
}

.stats-provenance p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
}

/* Light */
[data-theme="light"] .stats-bar { background-color: #F8F7F5; }
[data-theme="light"] .stat .stat-number { color: #1b2127; }
[data-theme="light"] .stat--zero .stat-number { color: #B91C1C; }
[data-theme="light"] .stat-rule { background: rgba(27, 33, 39, 0.12); }
[data-theme="light"] .stat--zero .stat-rule { background: rgba(185, 28, 28, 0.3); }
[data-theme="light"] .stat .stat-label { color: #73726c; }
[data-theme="light"] .stats-provenance p { color: rgba(27, 33, 39, 0.3); }

/* Dark */
[data-theme="dark"] .stats-bar { background-color: #1b2127; }
[data-theme="dark"] .stat .stat-number { color: #F8F7F5; }
[data-theme="dark"] .stat--zero .stat-number { color: #e85d5d; }
[data-theme="dark"] .stat-rule { background: rgba(248, 247, 245, 0.1); }
[data-theme="dark"] .stat--zero .stat-rule { background: rgba(232, 93, 93, 0.3); }
[data-theme="dark"] .stat .stat-label { color: rgba(248, 247, 245, 0.6); }
[data-theme="dark"] .stats-provenance p { color: rgba(248, 247, 245, 0.2); }

/* Fallback */
:root:not([data-theme]) .stats-bar { background-color: #F8F7F5; }
:root:not([data-theme]) .stat .stat-number { color: #1b2127; }
:root:not([data-theme]) .stat--zero .stat-number { color: #B91C1C; }
:root:not([data-theme]) .stat-rule { background: rgba(27, 33, 39, 0.12); }
:root:not([data-theme]) .stat--zero .stat-rule { background: rgba(185, 28, 28, 0.3); }
:root:not([data-theme]) .stat .stat-label { color: #73726c; }
:root:not([data-theme]) .stats-provenance p { color: rgba(27, 33, 39, 0.3); }

/* ========================================================================
   PATHWAY CARDS — Pure text links with thin rules
   ======================================================================== */

.pathways {
  padding: 3rem var(--space-lg) 3.5rem;
  background-color: var(--color-bg-page);
}

.pathway-list {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.pathway-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  border-top: 0.5px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: color 0.15s;
}

.pathway-link:last-child {
  border-bottom: 0.5px solid var(--color-border);
}

.pathway-link:hover {
  color: var(--d4arf-accent);
  text-decoration: none;
}

.pathway-link:focus-visible {
  outline: 2px solid var(--d4arf-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.pathway-link-title {
  display: block;
  font-family: var(--font-elegant);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
}

.pathway-link-desc {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.pathway-link:hover .pathway-link-desc {
  color: var(--color-text-secondary);
}

.pathway-link-arrow {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s, color 0.2s;
}

[data-theme="dark"] .pathway-link-arrow {
  color: rgba(255, 255, 255, 0.2);
}

.pathway-link:hover .pathway-link-arrow {
  color: var(--d4arf-accent);
  transform: translateX(3px);
}

[data-theme="dark"] .pathways {
  background-color: var(--color-bg-page);
}

/* ========================================================================
   ROLE CTAs — Refined text list
   ======================================================================== */

.role-ctas {
  padding: 3rem 0 3.5rem;
  background: var(--color-bg-panel);
}

.role-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.role-link {
  display: block;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--color-text-primary);
  border-bottom: 0.5px solid var(--color-border);
  transition: color 0.15s;
}

.role-link:nth-child(odd) {
  border-right: 0.5px solid var(--color-border);
}

.role-link:hover {
  color: var(--d4arf-accent);
  text-decoration: none;
}

.role-link:focus-visible {
  outline: 2px solid var(--d4arf-accent);
  outline-offset: -2px;
}

.role-link-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d4arf-accent);
  margin-bottom: 0.4rem;
}

.role-link-desc {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  max-width: none;
}

.role-link-arrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--d4arf-accent);
}

/* Remove bottom border on last row (desktop: 2-col, so last 2 items) */
.role-link:nth-last-child(-n+2) {
  border-bottom: none;
}

@media (max-width: 600px) {
  .role-list {
    grid-template-columns: 1fr;
  }

  .role-link:nth-child(odd) {
    border-right: none;
  }

  /* Restore border on second-to-last (was suppressed by desktop nth-last-child rule) */
  .role-link:nth-last-child(-n+2) {
    border-bottom: 0.5px solid var(--color-border);
  }

  /* Only the very last item is borderless */
  .role-link:last-child {
    border-bottom: none;
  }
}

/* ========================================================================
   ABOUT SECTION — Refined typography
   ======================================================================== */

.about-section {
  padding: 3rem var(--space-lg) 3.5rem;
}

.about-section p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.about-section .btn-secondary {
  font-family: var(--font-elegant);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border-width: 1px;
}

/* ========================================================================
   BUTTONS — Sitewide refinement (only novel property: border-radius)
   ======================================================================== */

.btn-primary,
.btn-secondary {
  border-radius: 2px;
}

.btn-text {
  color: var(--d4arf-accent);
}

.btn-text:hover,
.btn-text:focus-visible {
  border-bottom-color: var(--d4arf-accent);
}

/* ========================================================================
   MOBILE
   ======================================================================== */

@media (max-width: 600px) {
  .hero {
    padding: 2.5rem var(--space-lg) 2rem;
  }

  .hero-ghost {
    font-size: 6rem;
    right: 0.5rem;
    top: 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .stat .stat-label {
    max-width: 280px;
  }

  .pathways {
    padding: 2rem var(--space-lg) 2.5rem;
  }
}

/* ========================================================================
   PRINT
   ======================================================================== */

@media print {
  .hero-ghost {
    display: none;
  }

  .hero h1,
  .elegant-heading,
  .section-heading,
  .page-header h1,
  .page-content h2,
  .landing-content h2 {
    font-family: Georgia, serif;
    font-weight: 300;
  }

  .stat .stat-number {
    font-family: Georgia, serif;
  }

  .pull-quote p {
    font-family: Georgia, serif;
  }
}
