
:root {
  --paper: #F5F2EC;
  --paper-deep: #FFFFFF;
  --paper-soft: #FFFFFF;
  --ink: #17151A;
  --muted: rgba(23, 21, 26, 0.7);
  --line: rgba(23, 21, 26, 0.18);
  --line-strong: rgba(23, 21, 26, 0.35);
  --accent: #9AB021;
  --accent-deep: #5A7210;
  --shadow: rgba(23, 21, 26, 0.12);
  --focus: #2F4468;
  --max: 1360px;
  --x: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
html[data-motion="reduced"] { scroll-behavior: auto; }
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation: none !important; transition-duration: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: "IBM Plex Mono", monospace; line-height: 1.65; }
h1, h2, h3, h4 { font-family: "Archivo", sans-serif; }
body.map-open, body.paper-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; z-index: 30; }
.skip-link:focus { top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--x); padding-right: var(--x); }
.site-nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 4rem; backdrop-filter: blur(10px); background: rgba(245, 242, 236, 0.95); border-bottom: 1px solid var(--line); }
.site-nav-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav .brand { width: auto; }
.site-nav-links { display: flex; align-items: center; gap: 1.875rem; }
.site-nav-links a { color: var(--muted); text-decoration: none; font-family: "IBM Plex Mono", monospace; font-size: 0.8125rem; letter-spacing: 0.06em; }
.site-nav-links a:hover, .site-nav-links a:focus-visible { color: var(--ink); }
.site-nav-links .nav-priority { padding: 0.5rem 0.875rem; border: 1px solid var(--ink); color: var(--ink); }
.site-nav-links .nav-priority:hover, .site-nav-links .nav-priority:focus-visible { background: var(--ink); color: var(--paper); }
.nav-menu-toggle { position: relative; display: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; }
.nav-menu-toggle span { position: absolute; left: 0.6875rem; width: 1.375rem; height: 1px; background: var(--ink); transition: top 0.2s, transform 0.2s, opacity 0.2s; }
.nav-menu-toggle span:nth-child(1) { top: 0.875rem; }
.nav-menu-toggle span:nth-child(2) { top: 1.3125rem; }
.nav-menu-toggle span:nth-child(3) { top: 1.75rem; }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(245, 242, 236, 0.95); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.mono, .pathways a, .control-chip, .story-map-status, .key-metric, .stepper button, .table-note, .review-tag, .review-link { font-family: "IBM Plex Mono", monospace; }
.brand { display: inline-flex; align-items: center; gap: 8px; width: auto; font-family: "Archivo", sans-serif; font-size: 1.5rem; font-weight: 600; line-height: 1; text-decoration: none; }
.brand img { display: block; width: auto; height: 30px; }
.top-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
.top-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.top-links a:hover, .top-links a:focus-visible { text-decoration: underline; }
.hero { padding: 8rem 0 3rem; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 48rem); gap: 2rem; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.875rem; color: var(--accent-deep); font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.hero h1, .review-notes-page h1 { margin: 1.625rem 0 1.25rem; font-size: clamp(2.375rem, 6.6vw, 5.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; }
.hero p { max-width: 42rem; color: var(--muted); margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); font-weight: 400; line-height: 1.65; }
.journey-sections { display: flex; flex-wrap: wrap; gap: 0.65rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.journey-sections a { padding: 0.45rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); text-decoration: none; font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; }
.journey-sections a:hover, .journey-sections a:focus-visible { background: var(--ink); color: var(--paper); }
.hero-meta { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: 0.9rem; }
.pathways { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.pathways a, .hero-tools button, .hero-tools a, .story-map-toggle, .paper-link-inline, .filter-controls button, .filter-controls select, .filter-controls label, .explorer-card button, .detail-actions button, .stepper button { border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); text-decoration: none; }
.pathways a, .hero-tools button, .hero-tools a, .story-map-toggle, .detail-actions button, .stepper button { padding: 0.7rem 1rem; }
.pathways a:hover, .pathways a:focus-visible, .hero-tools button:hover, .hero-tools a:hover, .story-map-toggle:hover, .story-map-toggle:focus-visible, .explorer-card button:hover, .detail-actions button:hover, .detail-actions button:focus-visible, .stepper button:hover, .stepper button:focus-visible { background: var(--ink); color: var(--paper); }
.hero-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.hero-tools button[aria-pressed="true"] { background: var(--paper-deep); border-color: var(--accent-deep); color: var(--accent-deep); }
.key-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.key-metric { padding: 1rem; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 0.35rem 1rem var(--shadow); }
.key-metric strong { display: block; font-size: 1.65rem; }
section.route-section { padding: 4rem 0; }
#story { padding-top: 2rem; }
.section-heading { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.75rem, 3.6vw, 2.875rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; }
.section-heading p, .route-note, .no-js-note, .story-map-status, .detail-grid p, .detour-list p, .convergence-text p, .review-notes-page p, .review-notes-page li, .review-notes-page td, .review-notes-page th { color: var(--muted); }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); gap: 2rem; }
.story-map-panel { position: sticky; top: 5.5rem; align-self: start; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 1.5rem; box-shadow: 0 0.8rem 2rem var(--shadow); overflow: hidden; }
.story-map-panel header { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.story-map-panel h3, .detour-list h3, .text-table h3, .review-notes-page h2, .review-notes-page h3, .review-notes-page h4 { margin: 0 0 0.5rem; font-weight: 600; }
.story-map-panel p, .story-map-panel ul, .story-map-panel li { margin: 0; }
.story-map-toggle, .story-map-close { display: none; }
.story-map-body { padding: 1rem 1.1rem 1.2rem; }
.story-map-status { font-size: 0.82rem; letter-spacing: 0.02em; margin-bottom: 0.75rem; }
.map-frame { border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(180deg, #FFFFFF 0%, #F5F2EC 100%); overflow: hidden; }
.map-frame svg, .convergence-graphic svg { width: 100%; display: block; height: auto; }
.map-legend, .detour-list ul, .detail-tags, .detail-links, .review-tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.map-legend { list-style: none; padding: 0; margin-top: 0.9rem; }
.map-legend li, .paper-link-inline, .detail-tag, .review-tag { border-radius: 999px; border: 1px solid var(--line); padding: 0.35rem 0.7rem; background: rgba(255, 255, 255, 0.75); font-size: 0.78rem; }
.map-band-label { font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; fill: #17151A; font-weight: 500; }
.map-paper-label { font-size: 0.84rem; fill: #17151A; font-weight: 600; }
.map-node-circle { cursor: pointer; transition: transform 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease; }
.map-node { opacity: 0.85; }
.map-node:hover .map-node-circle, .map-node:focus-visible .map-node-circle, .map-node.active .map-node-circle { transform: scale(1.08); stroke-width: 3; opacity: 1; }
.map-node.active { opacity: 1; }
.map-node.detour .map-node-circle { stroke-dasharray: 5 4; }
.story-article section { padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.story-article section:last-child { border-bottom: 0; }
.story-article h3 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.55rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.story-paragraph { margin: 0 0 1rem; font-size: 1.05rem; scroll-margin-top: 6rem; padding-left: 0.75rem; border-left: 2px solid transparent; }
.story-paragraph.active { border-left-color: var(--accent); background: rgba(154, 176, 33, 0.08); }
.paper-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 1.15rem 0.75rem; }
.paper-strip strong, .detour-list strong, .table-note { font-size: 0.78rem; letter-spacing: 0.04em; }
.paper-link-inline { display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; }
.paper-link-inline.active, .paper-link-inline:hover, .paper-link-inline:focus-visible { border-color: var(--accent-deep); color: var(--accent-deep); }
.paper-link-inline.detour { border-style: dashed; }
.filter-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin-bottom: 1.5rem; }
.filter-controls label { display: grid; gap: 0.4rem; padding: 0.75rem 0.9rem; background: var(--paper-soft); }
.filter-controls select { width: 100%; padding: 0.55rem 0.2rem; border: 0; background: transparent; }
.filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.filter-actions button { min-height: 44px; padding: 0.55rem 0.9rem; }
.filter-actions button:disabled { cursor: default; opacity: 0.45; }
.explorer-summary { margin: 0 0 1rem; }
.explorer-groups { display: grid; gap: 1.2rem; }
.explorer-group { border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper-soft); overflow: hidden; }
.explorer-group header { padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); }
.explorer-group header h3 { margin: 0; font-weight: 600; }
.explorer-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1rem; }
.explorer-card { border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; background: #FFFFFF; display: grid; gap: 0.75rem; }
.explorer-card-authors { margin: -0.25rem 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.explorer-card-authors strong { color: var(--ink); font-weight: 500; }
.explorer-card button { width: fit-content; padding: 0.45rem 0.75rem; background: transparent; }
.explorer-card h4, .text-table h3, .review-notes-page table caption { margin: 0; font-weight: 600; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.detail-tag { font-size: 0.74rem; background: rgba(154, 176, 33, 0.1); }
.detour-panel { margin: 1.5rem 0 2rem; border: 1px dashed var(--line-strong); border-radius: 1.25rem; background: rgba(255, 255, 255, 0.55); padding: 1rem 1.1rem; }
.detour-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.detour-list li { display: grid; gap: 0.35rem; }
.detour-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.detour-actions a, .detour-actions button, .text-table a, .review-link { color: var(--accent-deep); }
.convergence-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
.stepper { display: grid; gap: 0.65rem; }
.stepper button { text-align: left; background: var(--paper-soft); }
.stepper button[aria-current="step"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.convergence-text { border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper-soft); padding: 1rem 1.1rem; }
.convergence-graphic { border: 1px solid var(--line); border-radius: 1.25rem; background: linear-gradient(180deg, #FFFFFF 0%, #F5F2EC 100%); overflow: hidden; }
.cluster-panel rect { fill: rgba(255, 255, 255, 0.75); stroke: var(--line-strong); stroke-width: 1.3; }
.cluster-title { font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; fill: #17151A; font-weight: 500; }
.cluster-chip rect { fill: #ffffff; stroke: #9AB021; }
.cluster-chip text, .cluster-title, .convergence-caption, .convergence-edge-label { font-family: "IBM Plex Mono", monospace; }
.cluster-chip text { font-size: 0.8rem; fill: #17151A; font-weight: 600; }
.convergence-edge { stroke-width: 2.4; fill: none; stroke-linecap: round; }
.convergence-edge.historical { stroke: #5A7210; }
.convergence-edge.shared { stroke: #5B7291; stroke-dasharray: 7 5; }
.convergence-edge.strategy { stroke: #17151A; }
.convergence-caption { font-size: 0.84rem; fill: #17151A; font-weight: 600; }
.text-table { margin-top: 2rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper-soft); padding: 1rem; }
.table-wrap { overflow-x: auto; }
.table-wrap table, .review-notes-page table { border-collapse: collapse; width: 100%; min-width: 52rem; }
.table-wrap th, .table-wrap td, .review-notes-page th, .review-notes-page td { text-align: left; vertical-align: top; padding: 0.8rem 0.7rem; border-top: 1px solid var(--line); }
.table-wrap thead th, .review-notes-page thead th { border-top: 0; color: var(--ink); }
.dialog-shell { border: 0; border-radius: 1.35rem; padding: 0; width: min(52rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25); background: var(--paper-soft); }
.dialog-shell::backdrop { background: rgba(28, 23, 18, 0.55); }
.dialog-inner { padding: 1.25rem; display: grid; gap: 1rem; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.dialog-header h3 { margin: 0; font-size: 1.8rem; font-weight: 600; }
.dialog-close { border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; padding: 0.45rem 0.8rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.detail-card { border: 1px solid var(--line); border-radius: 1rem; background: #FFFFFF; padding: 0.9rem; }
.detail-card h4 { margin: 0 0 0.4rem; font-size: 0.98rem; }
.detail-card p, .detail-card ul { margin: 0; }
.detail-card ul { padding-left: 1.2rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.status-note { color: var(--accent-deep); font-size: 0.9rem; }
.review-notes-page { padding: 3rem 0 4rem; }
.review-notes-page .intro-card, .review-notes-page .notes-card { border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper-soft); padding: 1.2rem; margin-bottom: 1.2rem; }
.review-notes-page ol, .review-notes-page ul { padding-left: 1.3rem; }
.review-link { text-decoration: none; }
.journey-announcement { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; border-top: 1px solid var(--line); }
.journey-announcement h2 { margin: 0.75rem 0; font-size: clamp(1.75rem, 3.6vw, 2.875rem); line-height: 1.05; }
.journey-announcement p { max-width: 42rem; margin: 0; color: var(--muted); }
.journey-announcement a { padding: 0.7rem 1rem; border: 1px solid var(--ink); border-radius: 999px; font-family: "IBM Plex Mono", monospace; font-size: 0.8125rem; text-decoration: none; }
.journey-announcement a:hover, .journey-announcement a:focus-visible { background: var(--ink); color: var(--paper); }
.journey-next { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); }
.journey-next h2 { margin: 0 0 0.6rem; font-size: clamp(1.75rem, 3.6vw, 2.875rem); line-height: 1.05; }
.journey-next p { margin: 0; color: var(--muted); }
.journey-next-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; flex: none; }
.journey-next-actions a { padding: 0.7rem 1rem; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-family: "IBM Plex Mono", monospace; font-size: 0.8125rem; }
.journey-next-actions a:first-child { background: var(--ink); color: var(--paper); }
@media (max-width: 1100px) {
  .story-grid, .convergence-grid, .hero-grid { grid-template-columns: 1fr; }
  .story-map-panel { position: static; }
}
@media (max-width: 820px) {
  .filter-controls, .detail-grid, .key-metric-grid, .explorer-cards { grid-template-columns: 1fr; }
  .nav-menu-toggle { display: block; }
  .site-nav-links {
    position: absolute;
    top: 4rem;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.625rem var(--x) 1.125rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.menu-open .site-nav-links { display: grid; }
  .site-nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .site-nav-links .nav-priority { padding: 0.75rem 0; border: 0; border-bottom: 1px solid var(--line); }
  .site-nav-links .nav-priority:hover, .site-nav-links .nav-priority:focus-visible { background: transparent; color: var(--ink); }
  .site-nav-links a:last-child { border-bottom: 0; }
  .site-nav.menu-open .nav-menu-toggle span:nth-child(1) { top: 1.3125rem; transform: rotate(45deg); }
  .site-nav.menu-open .nav-menu-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.menu-open .nav-menu-toggle span:nth-child(3) { top: 1.3125rem; transform: rotate(-45deg); }
  .topbar-row { align-items: start; padding: 0.8rem 0; }
  .top-links { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .hero { padding-top: 6.4rem; }
  .journey-announcement { grid-template-columns: 1fr; }
  .journey-announcement a { width: fit-content; }
  .journey-next { align-items: flex-start; flex-direction: column; }
  .dialog-shell { width: calc(100% - 0.8rem); max-height: calc(100dvh - 0.8rem); }
  .dialog-inner { padding: 1rem; }
}


.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem;
}
.map-column {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.9rem;
  display: grid;
  gap: 0.7rem;
}
.map-column h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.map-column-papers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.map-paper-button,
.convergence-chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
}
.map-paper-button.detour,
.convergence-chip.detour {
  border-style: dashed;
}
.map-paper-button.active,
.convergence-chip.active {
  border-color: var(--accent-deep);
  background: rgba(154, 176, 33, 0.14);
  color: var(--accent-deep);
}
.convergence-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem;
}
.convergence-cluster {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.95rem;
  display: grid;
  gap: 0.7rem;
}
.convergence-cluster h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.convergence-cluster.active {
  border-color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(147, 70, 47, 0.18);
}
.convergence-cluster.quine-strategy {
  grid-column: 1 / -1;
  background: #17151A;
  color: #F5F2EC;
}
.convergence-cluster.quine-strategy h4,
.convergence-cluster.quine-strategy p {
  color: inherit;
}
.convergence-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.convergence-chip.edge-historical {
  border-color: var(--accent-deep);
}
.convergence-chip.edge-shared {
  border-color: #2F4468;
}
.convergence-chip.edge-strategy {
  border-color: #CFE84A;
  background: rgba(255, 255, 255, 0.08);
  color: #F5F2EC;
}
.convergence-edge-list {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.95rem;
  display: grid;
  gap: 0.55rem;
}
.convergence-edge-item {
  font-size: 0.92rem;
  color: var(--muted);
}
.convergence-edge-item strong {
  color: var(--ink);
}
@media (max-width: 820px) {
  .map-grid,
  .convergence-board {
    grid-template-columns: 1fr;
  }
}

/* Editorial research journey */
.journey-summary {
  align-self: end;
  border-left: 1px solid var(--line-strong);
  padding-left: 1.25rem;
}
.journey-summary p {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}
.journey-summary span {
  display: block;
}
.story-map-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.story-map-panel header {
  padding: 0 0 0.9rem;
  border-bottom: 0;
}
.story-map-body {
  padding: 0;
}
.map-frame {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.research-landscape {
  position: relative;
  min-height: 34rem;
  padding: 2.2rem 0 0.8rem;
}
.map-year-axis {
  position: absolute;
  top: 0;
  left: 7.5rem;
  right: 0;
  height: 2rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}
.map-year-axis span {
  position: absolute;
  transform: translateX(-50%);
}
.map-relationship-layer {
  position: absolute;
  z-index: 0;
  top: 2rem;
  right: 0;
  bottom: 0.8rem;
  left: 7.5rem;
  width: calc(100% - 7.5rem);
  height: calc(100% - 2.8rem);
  overflow: visible;
  pointer-events: none;
}
.map-relationship {
  stroke-width: 2;
  opacity: 0;
  transition: opacity 180ms ease, stroke-width 180ms ease;
}
.map-relationship.revealed {
  opacity: 0.18;
}
.map-relationship.historical {
  stroke: var(--accent-deep);
}
.map-relationship.shared {
  stroke: var(--focus);
  stroke-dasharray: 8 7;
}
.map-relationship.active {
  opacity: 0.85;
  stroke-width: 3;
}
.map-lane {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  min-height: 4.65rem;
}
.map-lane h4 {
  margin: 0;
  padding-right: 0.8rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.map-lane-track {
  position: relative;
  height: 3.4rem;
  background: linear-gradient(to right, var(--line), var(--line)) center / 100% 1px no-repeat;
}
.map-node-button {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-width: 1rem;
  min-height: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 220ms ease;
}
.map-node-button.revealed {
  opacity: 1;
  pointer-events: auto;
}
.map-node-dot {
  display: block;
  width: 0.82rem;
  height: 0.82rem;
  flex: 0 0 auto;
  border: 2px solid var(--domain-color);
  border-radius: 50%;
  background: var(--paper-soft);
  box-shadow: 0 0 0 4px var(--paper);
  transition: transform 180ms ease, background 180ms ease;
}
.map-node-label {
  position: absolute;
  left: 1.1rem;
  display: none;
  width: 8.5rem;
  padding: 0.22rem 0.38rem;
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  transform: translateY(var(--label-offset));
  box-shadow: 0 0.25rem 0.8rem rgba(47, 43, 36, 0.12);
}
.map-node-label.align-right {
  right: 1.1rem;
  left: auto;
  text-align: right;
}
.map-node-button:hover,
.map-node-button:focus-visible,
.map-node-button.active {
  z-index: 8;
}
.map-node-button:hover .map-node-dot,
.map-node-button:focus-visible .map-node-dot,
.map-node-button.active .map-node-dot {
  background: var(--domain-color);
  transform: scale(1.35);
}
.map-node-button:hover .map-node-label,
.map-node-button:focus-visible .map-node-label {
  display: block;
}
.map-node-button.detour .map-node-dot {
  border-radius: 0;
  transform: rotate(45deg);
}
.map-node-button.detour:hover .map-node-dot,
.map-node-button.detour:focus-visible .map-node-dot,
.map-node-button.detour.active .map-node-dot {
  transform: rotate(45deg) scale(1.35);
}
.map-context {
  min-height: 2.5rem;
  margin-top: 1.1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}
.map-context-heading {
  margin: 0 0 0.55rem;
  color: var(--accent-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.map-context-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.map-context ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.map-context button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.map-legend {
  gap: 0.8rem 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
}
.map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.legend-mark {
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.legend-mark.detour {
  border-radius: 0;
  transform: rotate(45deg);
}
.legend-line {
  width: 1.4rem;
  border-top: 2px solid var(--accent-deep);
}
.legend-line.shared {
  border-color: var(--focus);
  border-top-style: dashed;
}
.story-article section {
  padding: 2.8rem 0 3.4rem;
  border-bottom: 0;
}
.story-article section + section {
  border-top: 1px solid var(--line);
}
.story-paragraph {
  padding: 0 0 0 1rem;
  border-left-width: 1px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  line-height: 1.75;
}
.story-paragraph.active {
  border-left-width: 3px;
  background: transparent;
}
.paper-strip {
  gap: 0.35rem 0.8rem;
  margin: 0.25rem 0 1.5rem 1rem;
}
.paper-strip strong {
  width: 100%;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  text-transform: uppercase;
}
.paper-link-inline {
  gap: 0.35rem;
  padding: 0.08rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.83rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}
.paper-link-inline::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}
.paper-link-inline.detour::before {
  border-radius: 0;
  transform: rotate(45deg);
}
.paper-link-inline.active {
  color: var(--accent-deep);
  font-weight: 500;
}
.explorer-workbench {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.filter-controls {
  gap: 1.4rem;
}
.filter-controls label {
  padding: 0 0 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}
.explorer-groups {
  gap: 2rem;
}
.explorer-group {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.explorer-group header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0 0.6rem;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}
.explorer-group header p {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}
.explorer-cards {
  gap: 0;
  padding: 0;
}
.explorer-card {
  gap: 0.55rem;
  padding: 1.35rem 1.5rem 1.5rem 1.1rem;
  border: 0;
  border-left: 3px solid var(--paper-domain);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.paper-kicker,
.paper-relevance-label {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}
.paper-kicker {
  color: var(--muted);
}
.paper-relevance-label {
  margin-top: 0.35rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.explorer-card > p:not([class]) {
  margin: 0;
}
.explorer-card button {
  padding: 0;
  border: 0;
  color: var(--accent-deep);
  text-decoration: underline;
}
.detour-panel {
  padding: 1rem 0 1rem 1rem;
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  background: transparent;
}
.convergence-grid {
  gap: 2.5rem;
}
.convergence-grid > * {
  min-width: 0;
}
.stepper {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.stepper button {
  flex: 0 0 auto;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
}
.stepper button[aria-current="step"] {
  border-color: var(--accent);
  background: var(--paper);
  color: var(--ink);
}
.convergence-text,
.convergence-graphic {
  padding: 1rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.convergence-cluster {
  gap: 0.5rem;
  padding: 0.8rem 0 0.8rem 0.9rem;
  border: 0;
  border-left: 2px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}
.convergence-cluster.active {
  border-color: var(--accent);
  box-shadow: none;
}
.convergence-edge-list {
  padding: 1rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.detail-card {
  padding: 0.9rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.paper-sheet {
  inset: 0 0 0 auto;
  width: min(42rem, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--paper-soft);
}
.paper-sheet::backdrop {
  background: rgba(28, 23, 18, 0.48);
  backdrop-filter: blur(2px);
}
.paper-sheet .dialog-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  height: 100%;
  padding: 0;
}
.paper-sheet .dialog-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 0.9rem 1.6rem 0.4rem;
  border-bottom: 0;
  background: rgba(250, 247, 240, 0.97);
}
.paper-sheet-eyebrow,
.paper-sheet-label {
  margin: 0;
  color: var(--accent-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.paper-sheet .dialog-close {
  flex: 0 0 auto;
  padding: 0.35rem 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  text-decoration: underline;
}
.paper-sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}
.paper-sheet-meta-item + .paper-sheet-meta-item::before {
  content: "·";
  margin-right: 0.9rem;
}
.paper-sheet-meta-item.detour {
  color: var(--accent-deep);
}
.paper-sheet-body {
  overflow-y: auto;
  padding: 0 1.6rem 2rem;
}
.paper-sheet-contribution {
  margin: 0.45rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.5;
}
.paper-sheet-question {
  padding: 0.5rem 0 1.5rem;
}
.paper-sheet-question p {
  margin: 0;
}
.paper-sheet-question > p:last-child {
  margin-top: 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.35;
}
.paper-sheet-summary {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-strong);
}
.paper-citation {
  padding: 0.5rem 0 1.5rem;
}
.paper-citation h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.paper-authors {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.paper-authors strong {
  color: var(--accent-deep);
  font-weight: 500;
}
.paper-publication {
  margin: 0.65rem 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
}
.paper-abstract {
  margin-top: 1.4rem;
}
.paper-abstract h4 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.paper-abstract p {
  margin: 0;
  line-height: 1.7;
}
.paper-sheet-facts {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1.2rem;
  margin: 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.paper-sheet-facts div {
  min-width: 0;
}
.paper-sheet-facts dt {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}
.paper-sheet-facts dd {
  margin: 0.35rem 0 0;
}
.paper-sheet-section {
  border-top: 1px solid var(--line-strong);
}
.paper-sheet-section > summary {
  padding: 1rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}
.paper-sheet-section-body {
  display: grid;
  gap: 1.2rem;
  padding: 0 0 1.4rem;
}
.paper-sheet-section-body p,
.paper-sheet-section-body ul {
  margin: 0;
}
.paper-sheet-url {
  overflow-wrap: anywhere;
}
.paper-sheet .detail-links {
  gap: 0.7rem;
}
.paper-sheet .detail-actions {
  padding: 1rem 1.6rem;
  border-top: 1px solid var(--line-strong);
  background: var(--paper-soft);
}
.paper-sheet .detail-actions button {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
}
.text-table table,
.text-table th,
.text-table td {
  background: #ffffff;
  color: #111111;
}
.text-table a {
  color: #5A7210;
}
.relationship-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.relationship-list li {
  display: grid;
  gap: 0.2rem;
}
.relationship-list span {
  color: var(--muted);
}
@media (max-width: 1100px) {
  .story-map-panel {
    padding-bottom: 2rem;
  }
}
@media (max-width: 980px) {
  .story-map-panel {
    background: var(--paper);
  }
}
@media (max-width: 620px) {
  .topbar {
    position: sticky;
  }
  .topbar-row {
    display: flex;
    min-height: 3.5rem;
    padding: 0.35rem 0;
  }
  .top-links {
    flex-wrap: nowrap;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .top-links a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 2.75rem;
    white-space: nowrap;
  }
  .brand { font-size: 1.375rem; }
  section.route-section {
    padding: 2.75rem 0;
  }
  #story {
    padding-top: 1.5rem;
  }
  .hero .pathways {
    display: none;
  }
  .journey-summary {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1rem 0 0;
  }
  .map-lane {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }
  .map-year-axis,
  .map-relationship-layer {
    left: 5.5rem;
  }
  .map-relationship-layer {
    width: calc(100% - 5.5rem);
  }
  .map-node-label {
    display: none !important;
  }
  .map-node-button {
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  .story-paragraph {
    padding-left: 0.75rem;
    font-size: 1.08rem;
    line-height: 1.7;
  }
  .paper-strip {
    margin-left: 0.75rem;
  }
  .paper-link-inline,
  .dialog-close,
  .explorer-card button,
  .stepper button {
    min-height: 2.75rem;
  }
  .filter-controls select {
    min-height: 2.75rem;
  }
  .paper-sheet {
    inset: 1rem;
    width: calc(100% - 2rem);
    height: calc(100dvh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    border-radius: 1rem;
  }
  .paper-sheet .dialog-header,
  .paper-sheet-body,
  .paper-sheet .detail-actions {
    padding-right: 1rem;
    padding-left: 1rem;
  }
  .paper-sheet-facts {
    grid-template-columns: 1fr;
  }
  .paper-sheet .dialog-header {
    position: sticky;
    top: 0;
    padding-top: 0.75rem;
  }
  .paper-sheet .dialog-close {
    min-width: 4rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper-soft);
    text-decoration: none;
  }
}

@media (max-width: 980px) {
  .story-map-toggle {
    display: none;
  }
  .story-map-close {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 2.75rem;
    margin: 0 0 0.35rem auto;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
  }
  body.map-collapsed .story-map-panel {
    display: none;
  }
  body.map-collapsed .story-map-toggle {
    position: sticky;
    top: 4.5rem;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-bottom: 1rem;
    background: var(--paper);
  }
  .story-grid {
    gap: 1.5rem;
  }
  .story-map-panel {
    position: sticky;
    inset: auto;
    top: 4rem;
    z-index: 15;
    max-height: none;
    padding: 0.65rem 0;
    overflow: visible;
    transform: none;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
  }
  .research-landscape {
    min-height: 0;
    padding: 1.65rem 0 0.35rem;
  }
  .map-lane {
    min-height: 2.75rem;
  }
  .map-lane-track {
    height: 2.75rem;
  }
  .map-node-button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    opacity: 0.35;
    pointer-events: auto;
  }
  .map-node-button.revealed {
    opacity: 1;
  }
}
