: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: Georgia, serif; font-size: clamp(54px, 6vw, 96px); line-height: 0.93; letter-spacing: -0.065em; }
h1 span { color: #f1c062; }
h2 { margin-bottom: 14px; font-family: Georgia, serif; font-size: clamp(38px, 4vw, 68px); line-height: 1.02; letter-spacing: -0.045em; }
h3 { margin-bottom: 0; font-family: Georgia, serif; font-size: 26px; line-height: 1.06; letter-spacing: -0.025em; }
.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: Georgia, 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; }

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

.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: Georgia, 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: Georgia, "Times New Roman", 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: "STIX Two Text", "Cambria Math", Georgia, "Times New Roman", 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: #f7d0db; }.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);
}
.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: Georgia, 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-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: Georgia, "Times New Roman", 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: Georgia, "Times New Roman", 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: Georgia, "Times New Roman", serif; font-size: 17px; font-style: italic; }
.strip-note { fill: #536576; font-family: "STIX Two Text", "Cambria Math", Georgia, "Times New Roman", 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: Georgia, "Times New Roman", 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: "STIX Two Text", "Cambria Math", Georgia, "Times New Roman", 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: Georgia, "Times New Roman", 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: "STIX Two Text", "Cambria Math", Georgia, "Times New Roman", 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: "STIX Two Text", "Cambria Math", Georgia, "Times New Roman", 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: #f7d0db; }
.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, .takeaway-grid { 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; }
  .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; }
}
