﻿:root {
  --ink: #16232b;
  --muted: #5e6b70;
  --paper: #fbfbf4;
  --cream: #f4f0d9;
  --line: rgba(22, 35, 43, 0.16);
  --navy: #263c5b;
  --blue: #55769a;
  --orange: #d99635;
  --orange-soft: #f5dec0;
  --red: #c85b55;
  --green: #8eb36b;
  --pink: #f3afc5;
  --peach: #e9a06d;
  --purple: #8060a9;
  --lilac: #d997db;
  --shadow: 0 16px 42px rgba(38, 60, 91, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #e9eced;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

.website-nav {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  border-bottom: 1px solid rgba(22, 35, 43, 0.13);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 6px 20px rgba(22, 35, 43, 0.10);
  backdrop-filter: blur(14px);
}
.website-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  max-width: 1540px;
  margin: 0 auto;
  padding: 10px 28px;
}
.website-nav a,
.website-nav button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: 800 13px/1.2 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.website-nav a:hover,
.website-nav a:focus-visible,
.website-nav button:hover,
.website-nav button:focus-visible { color: var(--orange); outline: none; }
.website-nav__dropdown { position: relative; display: inline-flex; }
.website-nav__submenu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 130;
  display: none;
  width: min(360px, calc(100vw - 24px));
  padding: 9px;
  border: 1px solid rgba(22, 35, 43, 0.14);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 14px 32px rgba(22, 35, 43, 0.18);
}
.website-nav__submenu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 10px;
  content: "";
}
.website-nav__submenu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: none;
}
.website-nav__submenu a:hover,
.website-nav__submenu a:focus-visible,
.website-nav__submenu a[aria-current="page"] {
  background: #f4f0d9;
  color: var(--orange);
}
.website-nav__dropdown:hover .website-nav__submenu,
.website-nav__dropdown:focus-within .website-nav__submenu,
.website-nav__dropdown.is-open .website-nav__submenu { display: grid; gap: 2px; }

.hero, main, .story-nav { max-width: 1540px; margin: 0 auto; }
.hero {
  color: #fffdf0;
  background: linear-gradient(125deg, #293d60 0%, #52658a 62%, #7c89a9 100%);
  padding: 34px 50px 22px;
  border-radius: 0 0 26px 26px;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 36px; align-items: end; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-family: Lato, sans-serif; font-size: 70px; line-height: 0.93; letter-spacing: 0; }
h1 span { color: #f1c062; }
h2 { margin-bottom: 14px; font-family: Lato, sans-serif; font-size: 42px; line-height: 1.02; letter-spacing: 0; }
h3 { margin-bottom: 0; font-family: Lato, sans-serif; font-size: 26px; line-height: 1.06; letter-spacing: 0; }
.dek { max-width: 850px; margin-bottom: 0; color: #f9f5df; font-size: 26px; }
.eyebrow, .mini-label { color: var(--orange); font-size: 13px; font-weight: 900; letter-spacing: 0.19em; text-transform: uppercase; }
.hero .eyebrow, .hero .mini-label { color: #f1c062; }
.hero-answer { padding: 20px 22px; border: 1px solid rgba(255,255,255,0.24); border-radius: 17px; background: rgba(255,255,255,0.1); backdrop-filter: blur(6px); font-size: 15px; }
.hero-answer p:last-child { margin-bottom: 0; }
.author-row { display: grid; justify-items: center; gap: 8px; margin-top: 28px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,0.22); font-size: 15px; text-align: center; }
.author-list { display: flex; flex-wrap: nowrap; justify-content: center; align-items: baseline; gap: 2px 4px; max-width: 100%; white-space: nowrap; }
.author-chip { position: relative; display: inline-flex; align-items: baseline; gap: 3px; cursor: help; outline: none; }
.author-name sup, .institutions sup { margin-left: 2px; color: #f1c062; font-size: 0.72em; font-weight: 900; }
.author-orcid-badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #a6ce39; color: #fff; font-size: 9px; font-weight: 900; line-height: 1; text-decoration: none; }
.author-orcid-badge:hover { outline: 2px solid rgba(255,255,255,0.7); }
.author-card {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 40;
  display: none;
  width: min(360px, 86vw);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 11px;
  background: rgba(20,35,57,0.98);
  box-shadow: 0 12px 28px rgba(9,18,31,0.28);
  color: #f8f4e5;
  font-size: 13px;
  line-height: 1.42;
  text-align: left;
  transform: translateX(-50%);
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  overflow-wrap: anywhere;
  white-space: normal;
}
.author-chip:first-child .author-card { left: 0; transform: none; }
.author-chip:last-child .author-card { right: 0; left: auto; transform: none; }
.author-card::after { position: absolute; top: 100%; right: 0; left: 0; height: 9px; content: ""; }
.author-chip:hover .author-card,
.author-chip:focus .author-card,
.author-chip:focus-within .author-card { display: grid; gap: 5px; }
.author-card a { color: #f1c062; text-decoration: none; }
.author-card a:hover { text-decoration: underline; }
.orcid-link::before { content: "iD"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: #a6ce39; color: #fff; font-size: 10px; font-weight: 900; }
.institutions { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 8px; color: #f1c062; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-align: center; }
.institutions a { color: inherit; text-decoration: none; }
.institutions a:hover { text-decoration: underline; }
.institution-divider { color: rgba(255,255,255,0.48); }
.cite { margin-left: 3px; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 0.48em; letter-spacing: 0; vertical-align: super; }
.cite a { margin-left: 2px; color: var(--orange); text-decoration: none; }
.cite a:hover { text-decoration: underline; }
.info-chip { position: relative; display: inline-flex; align-items: baseline; outline: none; cursor: help; }
.info-card {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 70;
  display: none;
  width: min(350px, 86vw);
  max-width: calc(100vw - 32px);
  padding: 11px 13px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  background: rgba(20,35,57,0.98);
  box-shadow: 0 12px 28px rgba(9,18,31,0.28);
  color: #f8f4e5;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.42;
  text-align: left;
  text-transform: none;
  white-space: normal;
  transform: translateX(-50%);
}
.info-card::after { position: absolute; top: 100%; right: 0; left: 0; height: 9px; content: ""; }
.info-chip:hover .info-card,
.info-chip:focus .info-card,
.info-chip:focus-within .info-card { display: grid; gap: 5px; }
.info-card a { color: #f1c062 !important; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.info-chip.align-right .info-card { right: 0; left: auto; transform: none; }
.institution-chip .info-card { width: min(420px, calc(100vw - 32px)); }
.cite-chip .info-card { top: calc(100% + 8px); bottom: auto; width: min(370px, 86vw); }
.cite-chip .info-card::after { top: auto; bottom: 100%; }

.story-nav {
  position: sticky;
  top: var(--website-nav-height, 0px);
  z-index: 10;
  display: flex;
  gap: 26px;
  padding: 13px 50px;
  background: rgba(251, 251, 244, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 15px rgba(38,60,91,0.08);
  backdrop-filter: blur(14px);
}
.story-nav a { color: var(--navy); font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.story-nav a:hover { color: var(--orange); }

main { overflow: hidden; background: var(--paper); box-shadow: 0 20px 50px rgba(22,35,43,0.09); }
.chapter { position: relative; padding: 76px 50px; border-bottom: 1px solid var(--line); }
.chapter:nth-child(even) { background: #f4f6f4; }
.chapter-number { position: absolute; top: 47px; right: 50px; color: rgba(38,60,91,0.09); font-family: Lato, sans-serif; font-size: 120px; font-weight: 700; line-height: 1; }
.section-heading { max-width: 950px; margin-bottom: 28px; }
.section-heading p:last-child { max-width: 850px; color: var(--muted); font-size: 20px; }
.wide-heading { max-width: 1200px; }
.wide-heading p:last-child { max-width: 1050px; }
.roadmap-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.roadmap-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(38,60,91,0.12);
  background: #fffdf8;
}
.roadmap-controls button {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(38,60,91,0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: 900 12px/1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.roadmap-controls button:hover,
.roadmap-controls button:focus-visible,
.roadmap-controls button.is-active {
  border-color: var(--orange);
  background: #fff4df;
  color: #9b5d12;
  outline: none;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(38,60,91,0.12);
}
.roadmap-row-header {
  grid-column: 1 / -1;
  padding: 10px 16px;
  background: #eef1f4;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.roadmap-row-header.sc-row {
  background: #fff0d6;
}
.roadmap-panel {
  min-width: 0;
  padding: 16px 16px 12px;
  border-right: 1px solid rgba(38,60,91,0.10);
  border-bottom: 1px solid rgba(38,60,91,0.10);
}
.roadmap-panel {
  position: relative;
  background: #fff;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.roadmap-panel > * {
  position: relative;
  z-index: 1;
}
.roadmap-panel::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  background: rgba(255,253,248,0.30);
  content: "";
  pointer-events: none;
}
.roadmap-panel .state-label {
  min-height: 18px;
  margin-bottom: 5px;
  color: var(--orange);
  text-align: left;
}
.roadmap-card[data-active-step="crossings"] .roadmap-panel[data-step="crossings"],
.roadmap-card[data-active-step="softening"] .roadmap-panel[data-step="softening"],
.roadmap-card[data-active-step="gap"] .roadmap-panel[data-step="gap"] {
  background: #fffaf0;
  box-shadow: inset 0 4px 0 var(--orange);
}
.roadmap-card[data-active-step="crossings"] .roadmap-panel:not([data-step="crossings"]),
.roadmap-card[data-active-step="softening"] .roadmap-panel:not([data-step="softening"]),
.roadmap-card[data-active-step="gap"] .roadmap-panel:not([data-step="gap"]) {
  background: #f4f0e6;
}
.roadmap-card[data-active-step="crossings"] .roadmap-panel:not([data-step="crossings"])::after,
.roadmap-card[data-active-step="softening"] .roadmap-panel:not([data-step="softening"])::after,
.roadmap-card[data-active-step="gap"] .roadmap-panel:not([data-step="gap"])::after {
  display: block;
}
.roadmap-card[data-active-step="crossings"] .roadmap-panel:not([data-step="crossings"]) > :not(.roadmap-overlay),
.roadmap-card[data-active-step="softening"] .roadmap-panel:not([data-step="softening"]) > :not(.roadmap-overlay),
.roadmap-card[data-active-step="gap"] .roadmap-panel:not([data-step="gap"]) > :not(.roadmap-overlay) {
  opacity: 0.42;
  filter: grayscale(0.82) blur(0.45px);
}
.roadmap-plot {
  width: 100%;
  height: 230px;
}
.roadmap-inset {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(38,60,91,0.14);
  border-radius: 8px;
  background: #fff;
}
.roadmap-inset b {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.chain-inset {
  justify-content: center;
}
.chain-dot {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px rgba(22,35,43,0.62);
}
.chain-dot::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8ba5ff;
  content: "";
  transform: translate(-50%, -50%);
}
.chain-bond {
  width: 26px;
  height: 2px;
  background: #111;
}
.chain-bond.short { width: 17px; height: 4px; }
.chain-bond.long { width: 35px; }
.edge-inset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}
.edge-inset svg {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
}
.edge-inset b {
  width: 78px;
  margin-left: 0;
  line-height: 1.15;
}
.edge-lattice-bond {
  stroke: #6b7074;
  stroke-width: 2;
}
.edge-site-main {
  fill: #8ba5ff;
  stroke: #18242d;
  stroke-width: 0.7;
}
.edge-site-inner {
  display: none;
}
.edge-delta-line {
  fill: none;
  stroke: #b66d16;
  stroke-width: 3;
  stroke-linecap: round;
}
.edge-delta-marker {
  fill: var(--orange);
  stroke: #7d4b0d;
  stroke-width: 0.55;
}
.roadmap-overlay {
  display: none;
  position: absolute;
  inset: 12px;
  z-index: 3;
  align-items: center;
  justify-items: stretch;
  pointer-events: none;
}
.roadmap-overlay-copy {
  display: none;
  padding: 13px 14px 12px;
  border: 1px solid rgba(38,60,91,0.18);
  border-radius: 10px;
  background: rgba(255,253,248,0.78);
  backdrop-filter: blur(1.4px);
  box-shadow: 0 14px 30px rgba(38,60,91,0.12);
}
.roadmap-overlay-copy span {
  display: block;
  margin-bottom: 7px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.roadmap-overlay-copy b {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-family: Lato, sans-serif;
  font-size: 20px;
  line-height: 1.07;
}
.roadmap-overlay-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.36;
}
.roadmap-card[data-active-step="crossings"] .roadmap-panel[data-step="softening"] .roadmap-overlay,
.roadmap-card[data-active-step="softening"] .roadmap-panel[data-step="gap"] .roadmap-overlay,
.roadmap-card[data-active-step="gap"] .roadmap-panel[data-step="softening"] .roadmap-overlay {
  display: grid;
}
.roadmap-card[data-active-step="crossings"] .roadmap-panel[data-step="softening"] .roadmap-overlay-copy[data-overlay-for="crossings"],
.roadmap-card[data-active-step="softening"] .roadmap-panel[data-step="gap"] .roadmap-overlay-copy[data-overlay-for="softening"],
.roadmap-card[data-active-step="gap"] .roadmap-panel[data-step="softening"] .roadmap-overlay-copy[data-overlay-for="gap"] {
  display: block;
}
.roadmap-dictionary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(38,60,91,0.12);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}
.roadmap-dictionary span {
  padding: 13px 16px;
  background: #fffdf8;
  text-align: center;
}

.setup-grid, .two-col, .feature-grid, .response-grid { display: grid; gap: 22px; }
.setup-grid { grid-template-columns: 2fr 1fr; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: 1.36fr 0.64fr; align-items: stretch; }
.response-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.response-grid-simple { align-items: stretch; }

.formula-card, .channels-card, .plot-card, .interpretation-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.formula-card, .channels-card, .interpretation-card { padding: 24px; }
.equation, .math-display { color: var(--navy); font-family: Lato, sans-serif; font-size: 20px; line-height: 1.9; }
.hamiltonian-layout { display: grid; grid-template-columns: minmax(0,1fr) 184px; gap: 8px; align-items: center; margin: 8px 0 16px; }
.hamiltonian {
  margin: 0;
  padding: 15px 18px 11px;
  border-left: 5px solid var(--orange);
  border-radius: 5px 12px 12px 5px;
  background: linear-gradient(100deg, #fff8e7, #fffdf7);
  overflow-x: auto;
  font-size: 21px;
}
.hamiltonian mjx-container[display="true"] { margin: 0 !important; text-align: left !important; }
.hubbard-model-schematic { width: 184px; height: 184px; border: 1px solid rgba(38,60,91,0.09); border-radius: 10px; background: #fffdf8; }
.mf-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 12px;
  align-items: baseline;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f5f5ef;
  color: var(--navy);
  font-size: 16px;
}
.mf-row span { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.mf-row b { font-weight: 700; }
.card-note, .plot-caption, .interaction-hint, .muted { color: var(--muted); }
.phase-sdip { display: inline-block; padding: 0 5px 1px; border-radius: 4px; background: #739bc4; color: #fff; }
.mf-intro, .channel-intro { color: var(--muted); font-size: 15px; line-height: 1.4; }
.mf-intro { margin: 13px 0 8px; }
.channel-intro { margin: 14px 0 10px; }
.phase-card { padding-bottom: 18px; }
.bulk-phase-wrap { position: relative; }
.bulk-phase-wrap h3 { margin: 0 0 1px; color: #243b5a; font-family: Lato, sans-serif; font-size: 19px; text-align: center; }
.bulk-phase-frame { position: relative; width: min(72%,350px); margin: 0 auto; }
.bulk-phase-diagram { width: 100%; height: 246px; }
.phase-axis-title { position: absolute; z-index: 2; display: inline-flex; gap: 1px; align-items: center; color: #263c5b; font-family: Lato, sans-serif; font-size: 17px; pointer-events: none; }
.phase-axis-title b { padding: 1px 4px; border-radius: 3px; }
.phase-axis-title-x { bottom: -31px; left: calc(50% + 17px); transform: translateX(-50%); }
.phase-axis-title-y { top: calc(50% + 11px); left: -3px; transform: translate(-50%,-50%) rotate(-90deg); }
.phase-axis-title-x b { background: #dce9c2; color: #111; }
.phase-axis-title-y b { background: #f2d0e1; color: #111; }
.phase-card-note { margin: 38px 2px 0; color: var(--muted); font-size: 14px; line-height: 1.42; }
.op-inline { display: inline-block; margin: 1px 1px; padding: 0 4px 1px; border-radius: 3px; color: #26312b; font-weight: 800; white-space: nowrap; }
.card-note { margin: 14px 0 0; font-size: 15px; }
.channel-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.chip { padding: 8px 11px; border-radius: 999px; color: #26312b; font-weight: 800; }
.chip small { font-size: 0.82em; font-weight: 700; }
.c0 { background: #d6e6bf; }.c1 { background: #bfe8df; }.c2 { background: #f5c99f; }.c3 { background: #cdbde0; }.c4 { background: #efd1ef; }
.plot-card-head { display: flex; justify-content: space-between; gap: 18px; padding: 20px 22px 0; }
.plot-card-head .mini-label { margin-bottom: 5px; }
.plot-card-head h3 { color: var(--navy); }
.plot { width: 100%; }
.plot .hoverlayer .hovertext path { fill: #fffdf8 !important; stroke: var(--navy) !important; }
.plot .hoverlayer .hovertext text { fill: var(--navy) !important; }
.plot-surface { min-height: 520px; }
.plot-medium { min-height: 390px; }
#soft-mode { position: relative; }
#soft-mode.plot-medium { min-height: 250px; }
.soft-mode-surface-insets { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.soft-mode-surface-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: -8px 18px 14px 58px; pointer-events: none; }
.soft-mode-surface-cell { display: flex; justify-content: center; align-items: center; min-height: 150px; }
.soft-mode-surface-inset { width: min(178px, 100%); height: 146px; overflow: visible; border-radius: 6px; background: rgba(255,255,255,0.01); pointer-events: none; }
.soft-mode-surface-inset svg { display: block; width: 100%; height: 100%; overflow: visible; }
.soft-mode-surface-inset.phase-like { transform: translateX(18%); }
.soft-mode-surface-inset.amplitude-like { transform: translateX(-18%); }
.soft-mode-surface-inset .modebar { display: none !important; }
.plot-caption, .interaction-hint { margin: -3px 22px 18px; font-size: 14px; }
.interaction-hint { color: var(--blue); font-weight: 700; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: start; }
.controls label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
select { display: block; min-width: 125px; margin-top: 5px; padding: 8px 26px 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 700; }
.claim-strip { margin-top: 22px; padding: 15px 19px; border-left: 8px solid var(--orange); background: var(--orange-soft); color: #5d4325; font-size: 18px; font-weight: 700; }
.claim-strip span { margin-right: 12px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: 0.15em; }
.susceptibility-definition { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 10px 22px; align-items: center; margin: 16px 0 18px; padding: 15px 17px; border: 1px solid rgba(38,60,91,0.12); border-left: 5px solid var(--blue); border-radius: 5px 12px 12px 5px; background: rgba(255,255,255,0.74); }
.susceptibility-definition p { margin: 5px 0 0; font-size: 15px; }
.susceptibility-definition > p:last-child { grid-column: 1 / -1; margin-top: 0; color: var(--muted); font-size: 14px; }
.susceptibility-equation { color: var(--navy); font-size: 18px; overflow-x: auto; }
.susceptibility-equation mjx-container[display="true"] { margin: 0.25em 0 !important; }
.kernel-overview { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: center; margin: 16px 0 18px; padding: 15px 17px; border: 1px solid rgba(38,60,91,0.12); border-left: 5px solid var(--blue); border-radius: 5px 12px 12px 5px; background: rgba(255,255,255,0.74); }
.kernel-overview p { margin: 4px 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.kernel-equation { color: var(--navy); font-size: 18px; overflow-x: auto; }
.kernel-equation mjx-container[display="true"] { margin: 0.25em 0 !important; text-align: left !important; }
.kernel-emphasis { margin-top: 8px !important; padding: 6px 8px; border-radius: 6px; background: #eef3f4; color: var(--navy) !important; }
.question-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(38, 60, 91, 0.12);
  border-radius: 12px;
  background: rgba(38, 60, 91, 0.12);
}
.response-summary { justify-content: flex-start; }
.response-summary p { color: var(--muted); font-size: 17px; }
.response-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 17px 0;
  overflow: hidden;
  border: 1px solid rgba(38,60,91,0.12);
  border-radius: 12px;
  background: rgba(38,60,91,0.12);
}
.response-steps div {
  padding: 13px 14px;
  background: #f8f8f3;
}
.response-steps span {
  display: block;
  margin-bottom: 7px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.response-steps b {
  display: block;
  color: var(--navy);
  font-family: Lato, sans-serif;
  font-size: 18px;
}
.response-steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}
.response-claim {
  margin: 0;
  padding: 12px 15px;
  border-left: 5px solid var(--orange);
  border-radius: 4px 10px 10px 4px;
  background: #fffdf6;
}
.response-claim strong { color: var(--navy); }
.response-main-equation {
  margin: 14px 0 16px;
  padding: 10px 13px;
  border-left: 5px solid var(--blue);
  border-radius: 5px 10px 10px 5px;
  background: rgba(255,255,255,0.72);
  color: var(--navy);
  font-size: 18px;
  overflow-x: auto;
}
.response-main-equation mjx-container[display="true"] {
  margin: 0.2em 0 !important;
  text-align: left !important;
}
.question-flow div { min-height: 126px; padding: 13px 14px 11px; background: #f8f8f3; }
.question-flow span { display: block; margin-bottom: 7px; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: 0.14em; }
.question-flow b { display: block; color: var(--navy); font-family: Lato, sans-serif; font-size: 18px; }
.question-flow p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.42; }
.interpretation-card { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, #fff9e9, #fff); }
.interpretation-card h3 { margin-bottom: 8px; color: var(--navy); }
.response-explainer { grid-column: 1 / -1; }
.response-lead { max-width: 1060px; margin-bottom: 0; font-size: 19px !important; }
.explainer-bottom { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 24px; padding-top: 2px; }
.explainer-bottom > div { padding: 16px 17px; border: 1px solid rgba(38, 60, 91, 0.1); border-radius: 12px; background: rgba(255,255,255,0.62); }
.explainer-bottom h3 { font-size: 23px; }
.explainer-bottom p { margin-bottom: 7px; font-size: 15px; }
.explainer-takeaway { display: grid; grid-template-columns: 0.66fr 1.34fr; gap: 20px; align-items: center; margin-top: 16px; }
.explainer-takeaway > p { margin-bottom: 0; font-size: 16px; }
.response-equation { padding: 2px 0; font-size: 23px; }
.response-equation mjx-container[display="true"] { margin: 0.45em 0 !important; text-align: left !important; }
.interpretation-card p { color: #526064; font-size: 17px; }
.bubble-factor {
  padding: 8px 10px;
  border-left: 4px solid var(--orange);
  border-radius: 4px 10px 10px 4px;
  background: #fffdf6;
  color: var(--navy);
  font-size: 16px;
  overflow-x: auto;
}
.bubble-factor mjx-container[display="true"], .nesting-line mjx-container[display="true"] { margin: 0.35em 0 !important; text-align: left !important; }
.nesting-line { color: var(--red); font-size: 22px; font-weight: 800; }
.kernel-label { margin-top: 7px; }
.formula-note { margin: 8px 0 0 !important; color: var(--muted) !important; font-size: 14px !important; }
.response-figure-bridge { margin-top: 16px; padding: 12px 15px; border-left: 5px solid var(--orange); border-radius: 4px 10px 10px 4px; background: #fffdf6; color: var(--muted); font-size: 15px; }
.response-figure-bridge strong { color: var(--navy); }
.response-followup { padding-top: 20px; }
.response-followup-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px; margin-top: 10px; }
.vertex-summary { padding: 15px 17px; border: 1px solid rgba(38,60,91,0.12); border-radius: 12px; background: rgba(255,255,255,0.7); }
.vertex-summary p { margin: 5px 0 7px; color: var(--muted); font-size: 14px; }
.vertex-equation { color: var(--navy); font-size: 17px; overflow-x: auto; }
.vertex-equation mjx-container[display="true"] { margin: 0.35em 0 !important; text-align: left !important; }
.eigenproblem-note {
  margin-top: 15px;
  padding: 15px 17px;
  border: 1px solid rgba(38, 60, 91, 0.12);
  border-radius: 12px;
  background: linear-gradient(100deg, #f2f5f7, #fff);
}
.eigenproblem-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 19px; align-items: center; }
.eigenproblem-equation { color: var(--navy); font-size: 21px; }
.eigenproblem-equation mjx-container[display="true"] { margin: 0.3em 0 !important; text-align: left !important; }
.eigenproblem-grid p { margin: 0 0 7px; color: var(--muted); font-size: 14px; }
.eigenproblem-grid p:last-child { margin-bottom: 0; }
.stability-distinction { margin-top: 15px; padding: 13px 15px; border-left: 5px solid var(--orange); border-radius: 4px 10px 10px 4px; background: #fffdf6; }
.stability-distinction p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.analogy { display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; margin-top: 8px; padding: 15px; border-radius: 12px; background: #f1ead2; }
.analogy span { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; }

.chapter-symmetry { background: #f4f6f4; }
.symmetry-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 22px; align-items: stretch; }
.symmetry-card-main { justify-content: flex-start; }
.symmetry-card-main p { color: var(--muted); font-size: 16px; }
.symmetry-equation {
  margin: 12px 0 13px;
  padding: 9px 12px;
  border-left: 5px solid var(--blue);
  border-radius: 5px 10px 10px 5px;
  background: rgba(255,255,255,0.72);
  color: var(--navy);
  font-size: 17px;
  overflow-x: auto;
}
.symmetry-equation mjx-container[display="true"] { margin: 0.2em 0 !important; text-align: left !important; }
.symmetry-panel {
  padding: 20px 22px;
  border: 1px solid rgba(38,60,91,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
}
.symmetry-panel h3 { margin: 4px 0 12px; color: var(--navy); font-size: 24px; }
.symmetry-rule-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid rgba(38,60,91,0.12); border-radius: 10px; background: rgba(38,60,91,0.12); }
.symmetry-rule-grid div, .symmetry-pattern div { padding: 13px 14px; background: #f8f8f3; }
.symmetry-rule-grid span, .symmetry-pattern span {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.symmetry-rule-grid b, .symmetry-pattern b { display: block; color: var(--navy); font-family: Lato, sans-serif; font-size: 18px; }
.symmetry-rule-grid p, .symmetry-pattern p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.42; }
.symmetry-consequence { grid-column: 1 / -1; }
.symmetry-pattern { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(38,60,91,0.12); border-radius: 10px; background: rgba(38,60,91,0.12); }
.symmetry-claim {
  margin: 15px 0 0;
  padding: 12px 15px;
  border-left: 5px solid var(--orange);
  border-radius: 4px 10px 10px 4px;
  background: #fffdf6;
  color: var(--muted);
  font-size: 16px;
}
.symmetry-claim strong { color: var(--navy); }

.chapter-takeaway { color: #fffdf0; background: linear-gradient(115deg, #263c5b, #385777) !important; }
.chapter-takeaway .chapter-number { color: rgba(255,255,255,0.09); }
.takeaway-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 50px; }
.takeaway-copy { padding: 20px 24px; border-left: 7px solid #f1c062; background: rgba(255,255,255,0.08); font-size: 23px; }
.takeaway-copy p:last-child { margin-bottom: 0; }
.takeaway-copy .muted { color: #e7ebed; font-size: 16px; }
.peierls-box, .analogy-block { margin-top: 34px; padding: 24px 28px 22px; color: #243b5a; border: 1px solid rgba(255,255,255,0.55); border-radius: 22px; background: rgba(255,253,240,0.96); box-shadow: 0 18px 38px rgba(12,29,52,0.22); }
.chapter-peierls .peierls-box { margin-top: 0; }
.analogy-row-title { margin: 0 0 15px; }
.analogy-row-title h3 { color: #243b5a; font-size: 27px; }
.lattice-geometry-card { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: center; margin: 0 0 24px; padding: 17px 19px; border: 1px solid #d8e0e5; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.lattice-geometry-copy h3 { margin: 5px 0 7px; color: #243b5a; font-family: Lato, sans-serif; font-size: 23px; }
.lattice-geometry-copy > p:last-of-type { margin: 0; color: #536576; font-size: 15px; line-height: 1.42; }
.geometry-conditions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; margin-top: 13px; color: #536576; font-size: 13px; }
.geometry-conditions span { display: flex; gap: 6px; align-items: center; }
.geometry-conditions b { color: #243b5a; font-family: Lato, sans-serif; font-size: 15px; font-style: italic; }
.geometry-swatch { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; }
.geometry-swatch-left { background: #9eafff; }
.geometry-swatch-right { background: #ffadad; }
.lattice-geometry-visual { min-width: 0; }
.lattice-geometry-canvas { height: 235px; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg,#fbfcfd,#f3f6f8); cursor: grab; touch-action: none; }
.lattice-geometry-canvas:active { cursor: grabbing; }
.lattice-geometry-canvas canvas, .lattice-geometry-canvas svg { display: block; width: 100%; height: 100%; }
.strip-bond { stroke: #717b81; stroke-width: 1.15; opacity: 0.8; }
.strip-site { fill: #101722; }
.strip-site-left { fill: #9eafff; stroke: #7086d7; stroke-width: 1; }
.strip-site-right { fill: #ffadad; stroke: #d86f70; stroke-width: 1; }
.strip-arrow { fill: none; stroke: #263c5b; stroke-width: 1.8; marker-end: url(#strip-arrowhead); }
.strip-periodic { fill: none; stroke: #d98e28; stroke-width: 2; stroke-dasharray: 5 4; marker-start: url(#strip-arrowhead-orange); marker-end: url(#strip-arrowhead-orange); }
.strip-label { fill: #263c5b; font-family: Lato, sans-serif; font-size: 17px; font-style: italic; }
.strip-note { fill: #536576; font-family: Lato, sans-serif; font-size: 14px; font-weight: 700; }
.lattice-geometry-visual p { margin: 3px 0 0; color: #788794; font-size: 12px; text-align: right; }
.analogy-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: #d98e28; font-size: 12px; font-weight: 900; letter-spacing: 0.15em; text-align: center; }
.analogy-divider::before, .analogy-divider::after { content: ""; height: 1px; flex: 1; background: #d5b26f; }
.peierls-head { display: grid; grid-template-columns: minmax(310px,0.8fr) 1.2fr; gap: 34px; align-items: end; margin-bottom: 16px; }
.peierls-box h3 { margin: 2px 0 0; color: #243b5a; font-family: Lato, sans-serif; font-size: 27px; }
.peierls-head p:last-child { margin: 0; color: #536576; font-size: 16px; line-height: 1.48; }
.peierls-diagram { display: grid; grid-template-columns: minmax(0,1fr) 150px minmax(0,1fr); gap: 18px; align-items: center; }
.peierls-state { padding: 14px 16px 10px; border: 1px solid #d8e0e5; border-radius: 16px; background: #fff; text-align: center; }
.state-label, .mini-label { margin: 0; color: #d98e28; font-size: 13px; font-weight: 800; letter-spacing: 0.13em; }
.peierls-state > p:last-child { margin: 2px 0 0; color: #536576; font-size: 15px; }
.atom-chain { display: flex; align-items: center; justify-content: center; min-height: 34px; margin: 10px 0 2px; }
.lattice-illustration { display: flex; align-items: center; justify-content: center; gap: 12px; }
.illustration-label { color: #536576; font-size: 14px; font-weight: 800; white-space: nowrap; }
.atom { width: 17px; height: 17px; flex: 0 0 17px; border: 2px solid #243b5a; border-radius: 50%; background: #f1c062; }
.bond { width: 36px; height: 3px; flex: 0 0 36px; background: #7b8fa5; }
.bond.short { width: 21px; flex-basis: 21px; background: #d98e28; }
.bond.long { width: 51px; flex-basis: 51px; }
.mini-band { width: min(100%,315px); height: 118px; overflow: visible; }
.mini-band text { fill: #536576; font-family: Lato, sans-serif; font-size: 15px; }
.band-axis { stroke: #a9b8c5; stroke-width: 1.5; }
.band-curve { fill: none; stroke: #406f9d; stroke-width: 4; stroke-linecap: round; }
.fermi-marker { stroke: #cf5b52; stroke-width: 1.6; stroke-dasharray: 4 4; }
.gap-label { fill: #cf5b52 !important; font-weight: 800; }
.peierls-arrow { display: grid; justify-items: center; color: #d98e28; text-align: center; }
.peierls-arrow span { font-size: 21px; font-weight: 800; }
.peierls-arrow strong { font-size: 56px; font-weight: 400; line-height: 0.92; }
.peierls-arrow small { color: #536576; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.bdg-edge-toggles { display: grid; box-sizing: border-box; gap: 5px; width: 145px; margin-top: 12px; padding: 9px 10px; border: 1px solid #d8e0e5; border-radius: 10px; background: rgba(255,255,255,0.82); color: #536576; text-align: left; }
.bdg-edge-toggles > span { color: #d98e28; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.bdg-edge-toggles label { display: flex; gap: 5px; align-items: center; color: #536576; font-size: 11px; font-weight: 700; line-height: 1.18; white-space: nowrap; cursor: pointer; }
.bdg-edge-toggles input { width: 12px; height: 12px; margin: 0; accent-color: #447bb6; }
.edge-toggle-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.edge-toggle-left { background: #ff9290; }
.edge-toggle-right { background: #8ba5ff; }
.peierls-mapping { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 16px; padding: 13px 16px; border-radius: 13px; color: #243b5a; background: #eef3f4; font-size: 15px; text-align: center; }
.peierls-mapping strong { color: #d98e28; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.bdg-state { padding: 16px 8px 9px; }
.bdg-state h3 { margin: 5px 12px 0; color: #243b5a; font-size: 23px; }
.edge-profile { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 6px 14px -2px; }
.edge-profile svg { width: min(66%,250px); height: 50px; overflow: visible; }
.edge-profile span { color: #536576; font-size: 13px; font-weight: 800; white-space: nowrap; }
.edge-profile i { color: #d98e28; font-family: Lato, sans-serif; font-size: 1.08em; font-weight: 700; }
.edge-profile sub { font-size: 0.7em; }
.profile-axis { stroke: #9fa8ad; stroke-width: 2.2; }
.profile-site { fill: #a4adb2; stroke: #748086; stroke-width: 1; }
.profile-curve { fill: none; stroke: #d98e28; stroke-width: 3.4; stroke-linecap: round; }
.profile-direction { fill: none; stroke: #536576; stroke-width: 1.6; stroke-linecap: round; }
.profile-direction-label { fill: #536576; font-family: Lato, sans-serif; font-size: 15px; font-style: italic; font-weight: 700; }
.spectrum-plot-shell { position: relative; }
.spectrum-inset-connectors { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.spectrum-inset-connectors line { stroke: #cf3f35; stroke-width: 1.5; }
.spectrum-inset-shell { position: absolute; top: 18px; right: 38px; z-index: 3; width: 11%; height: 41%; overflow: hidden; border: 3px solid #cf3f35; background: rgba(255,255,255,0.97); box-shadow: 0 5px 13px rgba(38,60,91,0.2); }
.spectrum-inset { width: 100%; height: 100%; pointer-events: none; }
.edge-scale { position: absolute; top: 50%; right: 9px; display: grid; gap: 4px; justify-items: center; transform: translateY(-50%); color: #243b5a; font-family: Lato, sans-serif; font-size: 14px; font-style: normal; line-height: 1.08; text-align: center; pointer-events: none; }
.edge-scale-bar { width: 11px; height: 76px; border: 1px solid #526064; background: linear-gradient(to bottom, #8ba5ff, #101722 50%, #ff9290); }
.bdg-state .plot-medium { min-height: 246px; }
.bdg-state .plot-caption { margin: -3px 14px 8px; text-align: left; }
.abs-dispersion-note { margin-top: 18px; padding: 14px 18px 10px; border-left: 5px solid #d98e28; border-radius: 5px 13px 13px 5px; background: #fff; }
.abs-dispersion-note p { margin: 0; color: #243b5a; font-size: 17px; }
.edge-word { color: #607fdc; }
.states-word { color: #df706d; }
.abs-dispersion-equation { display: flex; flex-wrap: nowrap; gap: 2px 1px; align-items: center; margin-top: 9px; color: #243b5a; font-size: 15px; overflow-x: auto; white-space: nowrap; }
.abs-dispersion-equation mjx-container { margin: 0 !important; }
.equation-chip { display: inline-flex; align-items: center; padding: 2px 5px; border-radius: 4px; }
.equation-delta0 { background: #d6e6bf; }
.equation-deltas { background: #bfe8df; }
.equation-deltad { background: #f5c99f; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.22); color: #e7ebed; font-size: 14px; }
footer a { color: #f1c062; text-decoration: none; }
.poster-references { margin-top: 30px; padding: 16px 18px; border: 1px solid rgba(255,255,255,0.18); border-radius: 13px; background: rgba(255,255,255,0.07); }
.poster-references .mini-label { margin-bottom: 7px; color: #f1c062; }
.poster-references ol { display: grid; gap: 4px; margin: 0; padding-left: 22px; color: #e7ebed; font-size: 13px; }
.poster-references a { color: #e7ebed; text-decoration: none; }
.poster-references a:hover { color: #f1c062; text-decoration: underline; }

@media (max-width: 980px) {
  .hero-grid, .setup-grid, .feature-grid, .two-col, .response-grid, .symmetry-grid, .symmetry-pattern, .takeaway-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-panel { border-right: 0; }
  .roadmap-plot { height: 260px; }
  .roadmap-dictionary { grid-template-columns: 1fr; }
  .peierls-head, .peierls-diagram, .peierls-mapping, .lattice-geometry-card { grid-template-columns: 1fr; }
  .peierls-arrow strong { transform: rotate(90deg); }
  .lattice-illustration { flex-wrap: wrap; gap: 2px 12px; }
  .hero, .chapter { padding-left: 24px; padding-right: 24px; }
  .story-nav { overflow-x: auto; padding-left: 24px; padding-right: 24px; white-space: nowrap; }
  .author-list { flex-wrap: wrap; justify-content: center; overflow-x: visible; padding-bottom: 4px; white-space: normal; font-size: 13px; }
  .institutions { justify-content: center; text-align: center; }
  .author-card { position: fixed; right: 16px !important; bottom: 16px; left: 16px !important; width: auto; transform: none !important; }
  .info-card { position: fixed; top: auto !important; right: 16px !important; bottom: 16px !important; left: 16px !important; width: auto !important; max-width: none; transform: none !important; }
  .chapter-number { right: 24px; font-size: 88px; }
  .plot-surface { min-height: 430px; }
  .question-flow { grid-template-columns: 1fr; }
  .response-steps { grid-template-columns: 1fr; }
  .question-flow div { min-height: auto; }
  .susceptibility-definition, .kernel-overview, .explainer-bottom, .response-followup-grid, .explainer-takeaway, .eigenproblem-grid { grid-template-columns: 1fr; }
  .susceptibility-definition > p:last-child { grid-column: auto; }
}
@media (max-width: 700px) {
  .hamiltonian-layout { grid-template-columns: 1fr; }
  .hubbard-model-schematic { justify-self: center; width: 190px; height: 190px; }
  .hero, .chapter { padding-left: 14px; padding-right: 14px; }
  .bdg-state { overflow: hidden; padding-left: 4px; padding-right: 4px; }
  .bdg-state h3 { margin-left: 6px; margin-right: 6px; font-size: 20px; }
  .spectrum-plot-shell { overflow: hidden; }
  .bdg-state .plot,
  .bdg-state .js-plotly-plot,
  .bdg-state .plot-container,
  .bdg-state .svg-container,
  .bdg-state .main-svg { max-width: 100% !important; }
  .bdg-state .plot-medium { min-height: 220px; }
  .edge-scale { right: 1px; font-size: 11px; gap: 3px; }
  .edge-scale-bar { width: 9px; height: 58px; }
  .spectrum-inset-shell { top: 16px; right: 26px; border-width: 2px; }
}
/* Site visual alignment: pramodhyapa.com house style */
:root {
  --ink: #505050;
  --muted: #6c757d;
  --paper: #ffffff;
  --cream: #f7fbfd;
  --line: rgba(19, 42, 70, 0.14);
  --navy: #132a46;
  --blue: #1a57a1;
  --orange: #d99635;
  --orange-soft: #fff4df;
  --shadow: 0 10px 25px rgba(19, 42, 70, 0.08);
}
body {
  color: var(--ink);
  background: #ffffff;
  font-family: Lato, sans-serif;
}
a { color: var(--blue); }
a:hover, a:focus-visible { color: #2066a1; }
.website-nav {
  border-bottom: 1px solid rgba(19, 42, 70, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(19, 42, 70, 0.08);
}
.website-nav__inner {
  max-width: 1180px;
  min-height: 58px;
  padding: 0 30px;
}
.website-nav a,
.website-nav button,
.story-nav a,
.roadmap-controls button,
select,
.overleaf-button {
  font-family: Lato, sans-serif;
}
.website-nav a,
.website-nav button {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.website-nav__submenu {
  top: calc(100% - 2px);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(19, 42, 70, 0.14);
}
.website-nav__submenu a:hover,
.website-nav__submenu a:focus-visible,
.website-nav__submenu a[aria-current="page"] {
  background: #edf7fb;
  color: #2066a1;
}
.hero, main, .story-nav { max-width: 1180px; }
.hero {
  color: var(--navy);
  background: #edf7fb;
  border-bottom: 1px solid rgba(19, 42, 70, 0.12);
  border-radius: 0;
}
.hero-grid { align-items: center; }
h1, h2, h3,
.chapter-number,
.author-card strong,
.info-card strong,
.equation,
.math-display,
.bulk-phase-wrap h3,
.question-flow b,
.symmetry-rule-grid b,
.symmetry-pattern b,
.lattice-geometry-copy h3,
.peierls-box h3,
.bdg-state h3,
.edge-profile i {
  font-family: Lato, sans-serif;
  letter-spacing: 0;
}
h1 {
  color: var(--navy);
  font-size: 70px;
  line-height: 1.05;
  letter-spacing: 0;
}
h1 span,
.hero .eyebrow,
.hero .mini-label,
.author-name sup,
.institutions sup,
.institutions,
.cite a { color: var(--orange); }
h2 {
  color: var(--navy);
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: 0;
}
h3 { color: #272626; letter-spacing: 0; }
.dek { color: #505050; font-size: 20px; }
.hero-answer {
  border-color: rgba(19, 42, 70, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #505050;
}
.author-row { border-top-color: rgba(19, 42, 70, 0.12); color: #505050; }
.institution-divider { color: rgba(19, 42, 70, 0.35); }
.story-nav {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 12px rgba(19, 42, 70, 0.06);
}
.story-nav a {
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0;
}
main {
  background: #ffffff;
  box-shadow: none;
}
.chapter { border-bottom-color: rgba(19, 42, 70, 0.12); }
.chapter:nth-child(even),
.chapter-symmetry { background: #f7fbfd; }
.chapter-number {
  color: rgba(19, 42, 70, 0.07);
  font-size: 108px;
}
.roadmap-card,
.formula-card,
.channels-card,
.plot-card,
.interpretation-card,
.symmetry-panel,
.lattice-geometry-card,
.peierls-state,
.preview-card {
  border-color: rgba(19, 42, 70, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.roadmap-controls,
.plot-card-head,
.roadmap-inset,
.question-flow div,
.symmetry-rule-grid div,
.symmetry-pattern div,
.hubbard-model-schematic,
.lattice-geometry-canvas,
.peierls-mapping,
.response-step,
.response-followup-grid > div,
.explainer-bottom > div,
.vertex-summary {
  background: #f7fbfd;
}
.roadmap-row-header { background: #e9f3f8; }
.roadmap-row-header.sc-row { background: #fff4df; }
.roadmap-card[data-active-step="crossings"] .roadmap-panel[data-step="crossings"],
.roadmap-card[data-active-step="softening"] .roadmap-panel[data-step="softening"],
.roadmap-card[data-active-step="gap"] .roadmap-panel[data-step="gap"] {
  background: #fffaf0;
}
.roadmap-card[data-active-step="crossings"] .roadmap-panel:not([data-step="crossings"]),
.roadmap-card[data-active-step="softening"] .roadmap-panel:not([data-step="softening"]),
.roadmap-card[data-active-step="gap"] .roadmap-panel:not([data-step="gap"]) {
  background: #eef4f7;
}
.claim-strip,
.response-figure-bridge,
.stability-distinction,
.symmetry-claim,
.abs-dispersion-note,
.takeaway-copy {
  border-left-color: var(--orange);
  background: #fff8e7;
  color: #505050;
}
.chapter-takeaway {
  color: #ffffff;
  background: #132a46 !important;
}
.chapter-takeaway h2,
.chapter-takeaway .eyebrow { color: #ffffff; }
.takeaway-copy {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.takeaway-copy .muted,
footer,
.poster-references ol,
.poster-references a { color: #e9eef3; }
.poster-references {
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}
.peierls-box,
.analogy-block {
  border-color: rgba(19, 42, 70, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.author-card,
.info-card {
  border-radius: 6px;
  background: rgba(19, 42, 70, 0.98);
  font-family: Lato, sans-serif;
}
.info-card a,
.author-card a { color: #d99635 !important; }
@media (max-width: 980px) {
  .hero, .chapter { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
}
@media (max-width: 700px) {
  h1 { font-size: 38px; }
  h2 { font-size: 29px; }
  .dek { font-size: 17px; }
}
/* Sans-serif Useful pages refinement */
h1, h2, h3,
.chapter-number,
.author-card strong,
.info-card strong,
.equation,
.math-display,
.bulk-phase-wrap h3,
.question-flow b,
.symmetry-rule-grid b,
.symmetry-pattern b,
.lattice-geometry-copy h3,
.peierls-box h3,
.bdg-state h3,
.edge-profile i,
.preview-card__heading h2,
.preview-placeholder strong {
  font-family: Lato, sans-serif !important;
}
.author-row {
  position: relative;
  z-index: 45;
  overflow: visible;
}
.author-chip,
.info-chip {
  position: relative;
  z-index: 1;
}
.author-chip:hover,
.author-chip:focus,
.author-chip:focus-within,
.info-chip:hover,
.info-chip:focus,
.info-chip:focus-within {
  z-index: 220;
}
.author-card,
.info-card {
  z-index: 260;
  color: #f8f4e5;
}
.author-card b,
.info-card strong {
  color: #ffffff;
}
.institutions .info-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--orange);
  cursor: help;
}
.institutions .info-chip > a {
  color: inherit;
  text-decoration: none;
}
.institutions .info-chip > a:hover,
.institutions .info-chip > a:focus-visible {
  color: #2066a1;
}
.institutions .info-card {
  bottom: calc(100% + 9px);
}
/* Clickable author and institution credit cards */
.author-chip.is-open .author-card,
.info-chip.is-open .info-card {
  display: grid;
  gap: 5px;
}
.institution-name {
  color: inherit;
}
.institutions .info-chip:focus-visible {
  outline: 2px solid rgba(26, 87, 161, 0.35);
  outline-offset: 3px;
}
/* Sticky section ribbon restored */
.story-nav {
  top: var(--poster-site-nav-height, 58px);
  z-index: 115;
  align-items: center;
  justify-content: center;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}
.story-nav a {
  position: relative;
  padding: 4px 0;
}
.story-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}
.story-nav a:hover::after,
.story-nav a:focus-visible::after,
.story-nav a.is-active::after {
  background: var(--orange);
}
.story-nav a.is-active {
  color: #2066a1;
}
.chapter {
  scroll-margin-top: var(--poster-sticky-offset, 118px);
}
@media (max-width: 980px) {
  .story-nav {
    justify-content: flex-start;
    top: var(--poster-site-nav-height, 58px);
  }
}
/* Mobile roadmap step reader */
.roadmap-mobile-step-notes { display: none; }

@media (max-width: 980px) {
  .roadmap-card {
    overflow: visible;
  }
  .roadmap-controls {
    position: sticky;
    top: calc(var(--poster-sticky-offset, 118px) - 18px);
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    background: rgba(255,253,248,0.97);
    backdrop-filter: blur(12px);
  }
  .roadmap-controls button {
    min-height: 44px;
    padding: 8px 7px;
    white-space: normal;
    line-height: 1.12;
  }
  .roadmap-mobile-step-notes {
    display: block;
    border-bottom: 1px solid rgba(19, 42, 70, 0.12);
    background: #fff8e7;
  }
  .roadmap-mobile-step-note {
    display: none;
    padding: 14px 15px 16px;
  }
  .roadmap-card[data-active-step="crossings"] .roadmap-mobile-step-note[data-roadmap-note="crossings"],
  .roadmap-card[data-active-step="softening"] .roadmap-mobile-step-note[data-roadmap-note="softening"],
  .roadmap-card[data-active-step="gap"] .roadmap-mobile-step-note[data-roadmap-note="gap"] {
    display: block;
  }
  .roadmap-mobile-step-note span {
    display: block;
    margin-bottom: 5px;
    color: var(--orange);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .roadmap-mobile-step-note b {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-family: Lato, sans-serif;
    font-size: 21px;
    line-height: 1.08;
  }
  .roadmap-mobile-step-note p {
    margin: 0;
    color: #505050;
    font-size: 14px;
    line-height: 1.42;
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }
  .roadmap-card[data-active-step="crossings"] .roadmap-panel:not([data-step="crossings"]),
  .roadmap-card[data-active-step="softening"] .roadmap-panel:not([data-step="softening"]),
  .roadmap-card[data-active-step="gap"] .roadmap-panel:not([data-step="gap"]) {
    display: none;
  }
  .roadmap-card[data-active-step] .roadmap-panel,
  .roadmap-card[data-active-step] .roadmap-panel[data-step] {
    background: #fff;
    border-right: 0;
  }
  .roadmap-card[data-active-step="crossings"] .roadmap-panel[data-step="crossings"],
  .roadmap-card[data-active-step="softening"] .roadmap-panel[data-step="softening"],
  .roadmap-card[data-active-step="gap"] .roadmap-panel[data-step="gap"] {
    background: #ffffff;
    box-shadow: inset 0 4px 0 var(--orange);
  }
  .roadmap-card[data-active-step] .roadmap-panel::after,
  .roadmap-card[data-active-step] .roadmap-overlay {
    display: none !important;
  }
  .roadmap-card[data-active-step] .roadmap-panel > :not(.roadmap-overlay) {
    opacity: 1 !important;
    filter: none !important;
  }
  .roadmap-row-header {
    padding: 8px 13px;
    text-align: left;
  }
  .roadmap-panel {
    padding: 13px 12px 10px;
  }
  .roadmap-inset {
    min-height: 38px;
    margin-bottom: 6px;
  }
  .roadmap-plot {
    height: 238px;
  }
  .roadmap-dictionary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .roadmap-controls {
    top: calc(var(--poster-sticky-offset, 118px) - 10px);
    margin-right: -4px;
    margin-left: -4px;
  }
  .roadmap-controls button {
    font-size: 10px;
    letter-spacing: 0.045em;
  }
  .roadmap-mobile-step-note b {
    font-size: 19px;
  }
  .roadmap-plot {
    height: 224px;
  }
}