/* ============================================
   PHILOSOPHERS OF SCIENCE — INTERACTIVE LO
   Design Direction: Scholarly / Austere
   Palette: Deep ink, warm parchment, aged gold
   Fonts: Playfair Display (display) + Source Serif 4 (body) + DM Sans (UI)
   ============================================ */

/* ---- DESIGN TOKENS ---- */
:root,
[data-theme='light'] {
  --color-bg: #f5f3ee;
  --color-surface: #faf8f4;
  --color-surface-2: #f0ece3;
  --color-border: #d8d0c0;
  --color-divider: #e4dfd4;

  --color-text: #1a1812;
  --color-text-muted: #6b6455;
  --color-text-faint: #b0a898;
  --color-text-inverse: #faf8f4;

  --color-primary: #4a3520;
  --color-primary-hover: #2e1f0e;
  --color-accent: #8b6914;
  --color-accent-hover: #6a4f0e;
  --color-accent-highlight: #e8d9a8;

  --color-aristotle: #2d5a6e;
  --color-bacon: #5a3d1e;
  --color-hume: #3d2d5a;
  --color-kant: #1e4a3d;

  --color-gained: #1e3d2a;
  --color-gained-bg: #e8f2ec;
  --color-unresolved: #3d1e1e;
  --color-unresolved-bg: #f2e8e8;

  --shadow-sm: 0 1px 3px rgba(26,24,18,0.06);
  --shadow-md: 0 4px 16px rgba(26,24,18,0.09);
  --shadow-lg: 0 12px 40px rgba(26,24,18,0.13);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --content-narrow: 680px;
  --content-default: 1000px;
  --content-wide: 1280px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='dark'] {
  --color-bg: #12100d;
  --color-surface: #1a1712;
  --color-surface-2: #222018;
  --color-border: #3a3628;
  --color-divider: #2a2820;

  --color-text: #e8e0d0;
  --color-text-muted: #8a8070;
  --color-text-faint: #5a5548;
  --color-text-inverse: #1a1712;

  --color-primary: #d4b88a;
  --color-primary-hover: #e8cfaa;
  --color-accent: #c9a227;
  --color-accent-hover: #e0b83a;
  --color-accent-highlight: #3a3020;

  --color-aristotle: #6aaabf;
  --color-bacon: #bf9a6a;
  --color-hume: #9a8abf;
  --color-kant: #6abfa0;

  --color-gained: #6abfa0;
  --color-gained-bg: #162420;
  --color-unresolved: #bf8a8a;
  --color-unresolved-bg: #241616;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #12100d;
    --color-surface: #1a1712;
    --color-surface-2: #222018;
    --color-border: #3a3628;
    --color-divider: #2a2820;
    --color-text: #e8e0d0;
    --color-text-muted: #8a8070;
    --color-text-faint: #5a5548;
    --color-text-inverse: #1a1712;
    --color-primary: #d4b88a;
    --color-primary-hover: #e8cfaa;
    --color-accent: #c9a227;
    --color-accent-hover: #e0b83a;
    --color-accent-highlight: #3a3020;
    --color-aristotle: #6aaabf;
    --color-bacon: #bf9a6a;
    --color-hume: #9a8abf;
    --color-kant: #6abfa0;
    --color-gained: #6abfa0;
    --color-gained-bg: #162420;
    --color-unresolved: #bf8a8a;
    --color-unresolved-bg: #241616;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  }
}

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100dvh;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.2; }
p, li { text-wrap: pretty; max-width: 72ch; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a, button, [role='button'] { transition: color var(--transition), background var(--transition), border-color var(--transition), opacity var(--transition); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

em { font-style: italic; }
strong { font-weight: 600; }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-logo {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-subtitle {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  letter-spacing: 0.03em;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-text-muted); }

/* ---- INTRO SECTION ---- */
.intro-section {
  border-bottom: 1px solid var(--color-border);
  padding: clamp(var(--space-16), 8vw, var(--space-20)) var(--space-8);
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.intro-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.intro-kicker {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.intro-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: var(--space-6);
  max-width: 100%;
}

.intro-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 56ch;
  margin: 0 auto var(--space-8);
}

.intro-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.meta-pill {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  background: var(--color-surface);
}

.meta-arrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.intro-nav-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--color-text-faint);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
}

/* ---- TIMELINE NAV ---- */
.timeline-nav {
  position: sticky;
  top: 57px;
  z-index: 90;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* thin scrollbar on non-webkit for usability */
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.timeline-nav::-webkit-scrollbar { height: 3px; }
.timeline-nav::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
.timeline-nav::-webkit-scrollbar-track { background: transparent; }

.timeline-nav-inner {
  display: inline-flex;   /* shrink-wraps to content width, enabling scroll */
  align-items: center;
  padding: 0 var(--space-8);
  min-width: 100%;        /* fill nav when content is narrower */
}

.tl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  gap: var(--space-1);
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  min-width: 130px;
}
.tl-btn:hover { color: var(--color-text); }
.tl-btn.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.tl-btn-act {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.7;
}
.tl-btn.active .tl-btn-act { opacity: 1; }

.tl-btn-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 400;
}

.tl-connector {
  width: 24px;
  height: 1px;
  background-color: var(--color-border);
  flex-shrink: 0;
}

/* ---- MAIN CONTENT ---- */
.main-content {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-8) var(--space-20);
}

/* ---- SECTION BASE ---- */
.content-section {
  padding-top: var(--space-16);
}
.content-section.hidden { display: none; }

.section-header {
  max-width: var(--content-narrow);
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-kicker {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 58ch;
  margin: 0 auto;
}

/* ---- PROFILE GRID ---- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: var(--space-6);
}

.profile-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.profile-card:hover { box-shadow: var(--shadow-md); }

.profile-era {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
}

.profile-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-top: calc(-1 * var(--space-4));
}

#aristotle .profile-name { color: var(--color-aristotle); }
#bacon .profile-name { color: var(--color-bacon); }
#hume .profile-name { color: var(--color-hume); }
#kant .profile-name { color: var(--color-kant); }

.profile-tag {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-3);
  margin-top: calc(-1 * var(--space-4));
  font-style: italic;
}

.profile-claims h4,
.profile-tension h4,
.profile-handoff .handoff-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  display: block;
}

.profile-claims ol {
  list-style: decimal;
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.profile-claims ol li {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.65;
  max-width: 100%;
}

.profile-tension {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-accent);
}

.profile-tension p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.65;
  font-style: italic;
  max-width: 100%;
}

.profile-handoff {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-5);
}

.profile-handoff p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 100%;
}

/* ---- SEGMENT LAYOUT ---- */
.segment-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 860px) {
  .segment-layout { grid-template-columns: 1fr; }
}

/* ---- CONTEXT BLOCKS ---- */
.context-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.context-block h3 {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.context-block p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.75;
  max-width: 100%;
}

/* ---- DIALOGUE ---- */
.dialogue-block {
  margin-bottom: var(--space-6);
}

.dialogue-block h3 {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.dialogue-exchange {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dialogue-turn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.dialogue-turn blockquote {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.8;
  font-style: italic;
  font-family: var(--font-body);
  max-width: 100%;
}

.speaker-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.speaker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.aristotle-turn .speaker-label { color: var(--color-aristotle); }
.aristotle-turn .speaker-dot { background: var(--color-aristotle); }
.aristotle-turn { border-left: 3px solid var(--color-aristotle); }

.bacon-turn .speaker-label { color: var(--color-bacon); }
.bacon-turn .speaker-dot { background: var(--color-bacon); }
.bacon-turn { border-left: 3px solid var(--color-bacon); }

.hume-turn .speaker-label { color: var(--color-hume); }
.hume-turn .speaker-dot { background: var(--color-hume); }
.hume-turn { border-left: 3px solid var(--color-hume); }

.kant-turn .speaker-label { color: var(--color-kant); }
.kant-turn .speaker-dot { background: var(--color-kant); }
.kant-turn { border-left: 3px solid var(--color-kant); }

/* ---- SHIFT BLOCK ---- */
.shift-block {
  background: var(--color-accent-highlight);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-border);
}

.shift-block h3 {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.shift-block p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.75;
  font-style: italic;
  max-width: 100%;
}

/* ---- RESOLUTION GRID ---- */
.resolution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

.resolution-block {
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
}

.resolution-block h4 {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.resolution-block p {
  font-size: var(--text-sm);
  line-height: 1.65;
  max-width: 100%;
}

.resolution-block.gained {
  background: var(--color-gained-bg);
  border-left: 3px solid var(--color-gained);
}
.resolution-block.gained h4 { color: var(--color-gained); }
.resolution-block.gained p { color: var(--color-text); }

.resolution-block.unresolved {
  background: var(--color-unresolved-bg);
  border-left: 3px solid var(--color-unresolved);
}
.resolution-block.unresolved h4 { color: var(--color-unresolved); }
.resolution-block.unresolved p { color: var(--color-text); }

/* ---- TENSIONS GRID ---- */
.tensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.tension-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.tension-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-accent-highlight);
  line-height: 1;
  margin-bottom: var(--space-2);
  opacity: 0.9;
}
[data-theme='dark'] .tension-number { color: var(--color-accent); opacity: 0.3; }

.tension-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-4);
}

.tension-arc {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.arc-step {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.arc-name {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 70px;
  padding-top: 2px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.arc-step p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.65;
  max-width: 100%;
}

.tensions-coda {
  max-width: var(--content-narrow);
  margin: 0 auto;
  text-align: center;
  padding: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.tensions-coda p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.75;
  max-width: 62ch;
  margin: 0 auto;
}

/* ---- GLOSSARY DRAWER ---- */
.glossary-overlay,
.discussion-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 195;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.glossary-overlay.active,
.discussion-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.glossary-drawer,
.discussion-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}
.glossary-drawer.open,
.discussion-drawer.open {
  transform: translateX(0);
}

.glossary-header,
.discussion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.glossary-header h2,
.discussion-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

.glossary-close,
.discussion-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.glossary-close:hover,
.discussion-close:hover { color: var(--color-text); }

.glossary-body,
.discussion-body {
  overflow-y: auto;
  padding: var(--space-6);
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

/* ---- GLOSSARY LIST ---- */
.glossary-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.glossary-entry {
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-5);
}
.glossary-entry:last-child { border-bottom: none; }

.glossary-entry dt {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.glossary-entry dd {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 100%;
}

.preview-tag {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-highlight);
  padding: 1px var(--space-2);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---- DISCUSSION PANEL ---- */
.discussion-section-header {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  margin-top: var(--space-6);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.discussion-section-header:first-child { margin-top: 0; }

.discussion-questions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.discussion-q {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.discussion-q p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
  max-width: 100%;
}

.discussion-q-type {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
  display: block;
}

/* ---- FLOATING TOOLBAR ---- */
.floating-toolbar {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 150;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-text);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full, 9999px);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.toolbar-btn:hover {
  background: var(--color-primary-hover, #2e1f0e);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.toolbar-btn svg { flex-shrink: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .header-inner { padding: var(--space-3) var(--space-4); }
  .header-subtitle { display: none; }
  .intro-section { padding-left: var(--space-4); padding-right: var(--space-4); }
  .timeline-nav-inner { padding: 0 var(--space-4); }
  .main-content { padding: 0 var(--space-4) var(--space-16); }
  .tl-btn { min-width: 100px; padding: var(--space-3) var(--space-3); }
  .profile-card { padding: var(--space-5); }
  .floating-toolbar { bottom: var(--space-4); right: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- NEW THINKER COLORS (Acts III-V) ---- */
:root,
[data-theme='light'] {
  --color-popper: #6b3a2a;
  --color-kuhn: #2a4a6b;
  --color-lakatos: #3a6b2a;
  --color-feyerabend: #6b2a5a;
}
[data-theme='dark'] {
  --color-popper: #d49080;
  --color-kuhn: #80a8d4;
  --color-lakatos: #90d480;
  --color-feyerabend: #d480b8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-popper: #d49080;
    --color-kuhn: #80a8d4;
    --color-lakatos: #90d480;
    --color-feyerabend: #d480b8;
  }
}

#popper .profile-name { color: var(--color-popper); }
#kuhn .profile-name { color: var(--color-kuhn); }
#lakatos .profile-name { color: var(--color-lakatos); }
#feyerabend .profile-name { color: var(--color-feyerabend); }

.popper-turn .speaker-label { color: var(--color-popper); }
.popper-turn .speaker-dot { background: var(--color-popper); }
.popper-turn { border-left: 3px solid var(--color-popper); }

.kuhn-turn .speaker-label { color: var(--color-kuhn); }
.kuhn-turn .speaker-dot { background: var(--color-kuhn); }
.kuhn-turn { border-left: 3px solid var(--color-kuhn); }

.lakatos-turn .speaker-label { color: var(--color-lakatos); }
.lakatos-turn .speaker-dot { background: var(--color-lakatos); }
.lakatos-turn { border-left: 3px solid var(--color-lakatos); }

.feyerabend-turn .speaker-label { color: var(--color-feyerabend); }
.feyerabend-turn .speaker-dot { background: var(--color-feyerabend); }
.feyerabend-turn { border-left: 3px solid var(--color-feyerabend); }

/* ---- EXTENDED PHILOSOPHER COLORS (Heidegger, Marx, Floridi) ---- */
:root,
[data-theme='light'] {
  --color-heidegger: #4a3a1a;   /* dark tawny brown — Black Forest earth */
  --color-marx:      #6b1a1a;   /* deep Victorian crimson */
  --color-floridi:   #1a4a5a;   /* deep information-blue */
}
[data-theme='dark'] {
  --color-heidegger: #c8a85a;
  --color-marx:      #d47070;
  --color-floridi:   #70b8d4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-heidegger: #c8a85a;
    --color-marx:      #d47070;
    --color-floridi:   #70b8d4;
  }
}

/* ================================================================
   STANDBY POOL COLOR TOKENS
   Harding · Du Bois · Longino · Foucault · Collins ·
   Crawford · Gebru · Benjamin · Zuboff
   ================================================================ */

:root,
[data-theme='light'] {
  --color-harding:  #7c6fa0;   /* dusty violet — feminist epistemology */
  --color-dubois:   #8b4513;   /* saddle brown — archival gravitas */
  --color-longino:  #4a7c6f;   /* sage teal — careful proceduralism */
  --color-foucault: #2c4a6e;   /* slate navy — genealogical depth */
  --color-collins:  #8b1a1a;   /* deep crimson — political urgency */
  --color-crawford: #3a5a78;   /* steel blue — infrastructure critique */
  --color-gebru:    #5c6b2e;   /* olive — empirical rigor / land */
  --color-benjamin: #6b4c8b;   /* plum — imagination + code */
  --color-zuboff:   #2e5c4a;   /* forest — surveillance & sovereignty */
}

[data-theme='dark'] {
  --color-harding:  #a897cc;
  --color-dubois:   #c47a45;
  --color-longino:  #72b0a4;
  --color-foucault: #5080aa;
  --color-collins:  #c04848;
  --color-crawford: #5a88b0;
  --color-gebru:    #8ca050;
  --color-benjamin: #9a78c0;
  --color-zuboff:   #52987a;
}
