:root {
  --ink: #171615;
  --muted: #63605b;
  --paper: #f7f4ee;
  --panel: #fffefa;
  --line: #d7d0c3;
  --cypress: #176b57;
  --river: #2d6c8f;
  --brick: #a54833;
  --moss: #6b7b36;
  --gold: #b47a18;
  --plum: #6b4a7d;
  --rose: #ad466d;
  --shadow: 0 12px 28px rgba(23, 22, 21, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(45, 108, 143, 0.28);
  outline-offset: 2px;
}

.shell {
  min-height: 100vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 32px;
  align-items: end;
  padding: 42px 44px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(23, 107, 87, 0.11), transparent 42%),
    linear-gradient(180deg, #ffffff, var(--paper));
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--cypress);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 780px;
  margin: 20px 0 0;
  color: #34302c;
  font-size: 1.17rem;
  line-height: 1.55;
}

.lens-card {
  display: grid;
  gap: 16px;
  align-self: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: var(--shadow);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.segmented.vertical {
  grid-template-columns: 1fr;
}

.seg {
  min-height: 38px;
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.seg.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.lens-thesis {
  margin: 0;
  color: #34302c;
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-metrics div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.hero-metrics strong {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.journey,
.executive-summary,
.system-lab,
.reception-lab,
.discovery-lab,
.pattern-lab,
.lineage-lab,
.role-ecology,
.vernacular-guide,
.compass,
.talk-track,
.map-intro,
.table-section,
.sources {
  padding: 34px 44px;
  border-top: 1px solid var(--line);
}

.executive-summary {
  background: #201d1a;
  color: white;
}

.journey {
  background:
    linear-gradient(180deg, #f2eee5, var(--paper));
}

.reception-lab {
  background: #fffefa;
}

.system-lab {
  background: #fbf7ef;
}

.discovery-lab {
  background: #f2eee5;
}

.section-head,
.journey-intro,
.compass {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: end;
}

.section-head {
  align-items: start;
}

.executive-summary .section-kicker,
.executive-summary .section-head p {
  color: #e2cda6;
}

.executive-summary .section-head p {
  max-width: 560px;
}

.section-head h2,
.journey-intro h2,
.compass h2,
.system-lab h2,
.reception-lab h2,
.discovery-lab h2,
.pattern-lab h2,
.lineage-lab h2,
.role-ecology h2,
.vernacular-guide h2,
.talk-track h2,
.map-intro h2,
.table-section h2,
.sources h2 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.journey-intro p,
.map-intro p {
  margin: 0;
  color: #393530;
  font-size: 1rem;
  line-height: 1.55;
}

.executive-summary .section-head h2 {
  color: white;
}

.executive-summary .section-head p {
  color: #e2cda6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item {
  min-height: 260px;
  padding: 18px 18px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item:first-child {
  border-left: 0;
}

.summary-item span {
  display: block;
  margin-bottom: 18px;
  color: #e2cda6;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.summary-item strong {
  display: block;
  color: white;
  font-size: 1.04rem;
  line-height: 1.32;
}

.summary-item p {
  margin: 14px 0 0;
  color: #f4ecde;
  font-size: 0.9rem;
  line-height: 1.52;
}

.system-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 980px;
  margin-top: 24px;
}

.system-board {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.system-board-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: start;
}

.system-board-head h3 {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.system-board-head p:not(.eyebrow) {
  max-width: 940px;
  margin: 10px 0 0;
  color: #34302c;
  font-size: 0.98rem;
  line-height: 1.55;
}

.system-board-head button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}

.system-chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.system-step {
  min-height: 190px;
  padding: 13px 12px 11px;
  border-left: 3px solid rgba(165, 72, 51, 0.44);
  background: #f8f2e6;
}

.system-step:nth-child(2) {
  border-left-color: rgba(45, 108, 143, 0.45);
}

.system-step:nth-child(3) {
  border-left-color: rgba(180, 122, 24, 0.5);
}

.system-step:nth-child(4) {
  border-left-color: rgba(107, 74, 125, 0.5);
}

.system-step:nth-child(5) {
  border-left-color: rgba(23, 107, 87, 0.45);
}

.system-step:nth-child(6) {
  border-left-color: rgba(173, 70, 109, 0.48);
}

.system-step span,
.system-works > span {
  display: block;
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.system-step strong {
  display: block;
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.22;
}

.system-step p {
  margin: 9px 0 0;
  color: #34302c;
  font-size: 0.8rem;
  line-height: 1.42;
}

.system-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(215, 208, 195, 0.78);
}

.system-works p,
.system-works em,
.system-sources {
  margin: 7px 0 0;
  color: #34302c;
  font-size: 0.88rem;
  line-height: 1.45;
}

.system-works em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.system-motifs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.system-motifs b {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #34302c;
  font-size: 0.74rem;
  font-weight: 800;
}

.system-sources {
  text-align: right;
}

.reception-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 24px;
}

.reception-claim {
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reception-claim h3 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.reception-claim p {
  max-width: 940px;
  margin: 10px 0 0;
  color: #34302c;
  font-size: 0.98rem;
  line-height: 1.55;
}

.reception-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.reception-card {
  display: grid;
  gap: 13px;
  min-height: 470px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.reception-card.active {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.reception-card-head span,
.reception-scoreline span {
  display: block;
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.reception-card-head strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.26rem;
  line-height: 1.17;
}

.reception-work b,
.reception-work span {
  display: block;
}

.reception-work b {
  color: var(--cypress);
  font-size: 0.95rem;
  line-height: 1.25;
}

.reception-work span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.reception-card p {
  margin: 0;
  color: #34302c;
  font-size: 0.88rem;
  line-height: 1.48;
}

.reception-reading {
  padding-left: 10px;
  border-left: 3px solid rgba(23, 107, 87, 0.32);
}

.reception-motifs,
.reception-scoreline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reception-motifs span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #34302c;
  font-size: 0.74rem;
  font-weight: 800;
}

.reception-scoreline {
  padding-top: 3px;
}

.reception-scoreline span {
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
}

.reception-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(215, 208, 195, 0.78);
}

.reception-actions button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}

.reception-actions span {
  color: var(--muted);
  text-align: right;
  font-size: 0.76rem;
  line-height: 1.42;
}

.discovery-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 920px;
  margin-top: 24px;
}

.discovery-claim {
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.discovery-claim h3 {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.discovery-claim p {
  max-width: 960px;
  margin: 10px 0 0;
  color: #34302c;
  font-size: 0.98rem;
  line-height: 1.55;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.discovery-card {
  display: grid;
  gap: 13px;
  min-height: 430px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.discovery-card.active {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.discovery-card-head span,
.discovery-evidence span,
.discovery-bookmove span {
  display: block;
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.discovery-card-head strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  line-height: 1.17;
}

.discovery-card p,
.discovery-evidence p,
.discovery-bookmove p {
  margin: 0;
  color: #34302c;
  font-size: 0.88rem;
  line-height: 1.48;
}

.discovery-motifs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.discovery-motifs span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #34302c;
  font-size: 0.74rem;
  font-weight: 800;
}

.discovery-evidence,
.discovery-bookmove {
  display: grid;
  gap: 7px;
  padding-left: 10px;
  border-left: 3px solid rgba(45, 108, 143, 0.28);
}

.discovery-bookmove {
  border-left-color: rgba(180, 122, 24, 0.38);
}

.discovery-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(215, 208, 195, 0.78);
}

.discovery-actions button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}

.discovery-actions span {
  color: var(--muted);
  text-align: right;
  font-size: 0.76rem;
  line-height: 1.42;
}

.pressure-compare {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.pressure-card {
  display: grid;
  gap: 10px;
  min-height: 236px;
  padding: 14px;
  border-radius: 8px;
  text-align: left;
  background: white;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.pressure-card:hover,
.pressure-card.active {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.pressure-top {
  display: flex;
  gap: 8px;
  align-items: center;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.pressure-card strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
}

.pressure-card .count {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 0.95;
}

.pressure-card span,
.pressure-card p {
  margin: 0;
  color: #3a362f;
  font-size: 0.8rem;
  line-height: 1.38;
}

.pressure-card .cue {
  color: var(--muted);
  font-weight: 800;
}

.chapter-tabs {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chapter-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.chapter-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.chapter-card {
  margin-top: 18px;
  padding: 22px 0 6px;
  border-top: 1px solid var(--line);
}

.chapter-card h3 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.chapter-card > p:not(.eyebrow) {
  max-width: 940px;
  margin: 12px 0 0;
  color: #34302c;
  font-size: 1.02rem;
  line-height: 1.58;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.spotlight-item {
  min-height: 166px;
  padding: 16px 16px 10px;
  border-left: 1px solid var(--line);
}

.spotlight-item:first-child {
  border-left: 0;
}

.spotlight-label {
  display: block;
  margin-bottom: 8px;
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spotlight-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.spotlight-item span:not(.spotlight-label) {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.spotlight-item p {
  margin: 10px 0 0;
  color: #34302c;
  font-size: 0.84rem;
  line-height: 1.45;
}

.signal-matrix,
.compass-grid {
  display: grid;
  gap: 10px;
}

.signal-matrix {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 24px;
}

.pattern-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.pattern-card {
  display: grid;
  gap: 12px;
  min-height: 430px;
  padding: 18px;
  border-radius: 8px;
  text-align: left;
  background: white;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.pattern-card:hover,
.pattern-card.active {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.pattern-kicker {
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.pattern-kicker em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.pattern-card > strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  line-height: 1.18;
}

.pattern-card > p,
.pattern-card dd {
  margin: 0;
  color: #34302c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pattern-card dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.pattern-card dt {
  margin-bottom: 3px;
  color: var(--cypress);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lineage-lab {
  background: #fffefa;
}

.lineage-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.lineage-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.lineage-card.active {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.lineage-head span,
.degree-step span,
.lineage-foot span {
  display: block;
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.lineage-head strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.14;
}

.lineage-head p {
  margin: 12px 0 0;
  color: #34302c;
  font-size: 0.92rem;
  line-height: 1.5;
}

.degree-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.degree-step {
  min-height: 176px;
  padding: 12px 12px 10px;
  border-left: 3px solid rgba(23, 107, 87, 0.32);
  background: #f8f2e6;
}

.degree-step:nth-child(2) {
  border-left-color: rgba(180, 122, 24, 0.5);
}

.degree-step:nth-child(3) {
  border-left-color: rgba(45, 108, 143, 0.5);
}

.degree-step:nth-child(4) {
  border-left-color: rgba(107, 74, 125, 0.5);
}

.degree-step:nth-child(5) {
  border-left-color: rgba(173, 70, 109, 0.5);
}

.degree-step strong {
  display: block;
  margin-top: 7px;
  font-size: 0.92rem;
  line-height: 1.22;
}

.degree-step p {
  margin: 8px 0 0;
  color: #34302c;
  font-size: 0.8rem;
  line-height: 1.42;
}

.lineage-foot,
.lineage-sources {
  grid-column: 1 / -1;
}

.lineage-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid rgba(215, 208, 195, 0.78);
}

.lineage-foot p {
  margin: 7px 0 0;
  color: #34302c;
  font-size: 0.88rem;
  line-height: 1.44;
}

.lineage-foot button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}

.lineage-sources {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.42;
}

.role-ecology {
  background: #f2eee5;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.role-card {
  display: grid;
  gap: 13px;
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.role-card.active {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.role-head span,
.role-card dt,
.role-evidence span {
  display: block;
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.role-head strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  line-height: 1.16;
}

.role-card > p,
.role-card dd,
.role-evidence p,
.role-evidence em {
  margin: 0;
  color: #34302c;
  font-size: 0.86rem;
  line-height: 1.46;
}

.role-card dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.role-card dt {
  margin-bottom: 4px;
  color: var(--cypress);
}

.role-evidence {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(215, 208, 195, 0.78);
}

.role-evidence em {
  color: var(--muted);
  font-style: normal;
}

.role-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.role-actions button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}

.role-actions span {
  color: var(--muted);
  text-align: right;
  font-size: 0.76rem;
  line-height: 1.42;
}

.vernacular-guide {
  background: #f2eee5;
}

.grammar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.grammar-card {
  display: grid;
  gap: 14px;
  min-height: 430px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.grammar-card.active {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.grammar-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.grammar-top span,
.grammar-card dt {
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.grammar-top strong {
  max-width: 210px;
  color: var(--cypress);
  text-align: right;
  font-size: 0.94rem;
  line-height: 1.25;
}

.grammar-motif {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.26rem;
  line-height: 1.22;
}

.grammar-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
}

.grammar-card dd {
  margin: 4px 0 0;
  color: #34302c;
  font-size: 0.86rem;
  line-height: 1.46;
}

.grammar-card dl div:nth-child(5) {
  grid-column: 1 / -1;
}

.grammar-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(215, 208, 195, 0.78);
}

.grammar-actions button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}

.grammar-actions span {
  color: var(--muted);
  text-align: right;
  font-size: 0.76rem;
  line-height: 1.42;
}

.compass-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-cell,
.compass-item {
  min-height: 156px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.signal-cell span,
.signal-cell em,
.compass-item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.signal-cell strong,
.compass-item strong {
  display: block;
  margin-top: 8px;
  font-size: 0.96rem;
  line-height: 1.25;
}

.signal-cell em {
  margin-top: 7px;
  color: var(--cypress);
}

.signal-cell p,
.compass-item p {
  margin: 10px 0 0;
  color: #3a362f;
  font-size: 0.82rem;
  line-height: 1.42;
}

.decision-engine {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.decision-item {
  min-height: 170px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.decision-item strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.28;
}

.decision-item p {
  margin: 10px 0 0;
  color: #34302c;
  font-size: 0.84rem;
  line-height: 1.45;
}

.talk-track {
  background: #ece4d6;
}

.talk-list {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.talk-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.talk-list span {
  color: var(--brick);
  font-size: 0.86rem;
  font-weight: 900;
}

.talk-list strong {
  display: block;
  font-size: 1rem;
  line-height: 1.28;
}

.talk-list p {
  max-width: 860px;
  margin: 8px 0 0;
  color: #34302c;
  font-size: 0.94rem;
  line-height: 1.52;
}

.map-intro {
  background: #fffefa;
}

.map-intro p {
  max-width: 690px;
  margin-top: 10px;
}

.workbench {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr) 320px;
  gap: 16px;
  min-height: 760px;
  padding: 16px 20px 30px;
}

.control-panel,
.detail-panel,
.graph-stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.control-panel,
.detail-panel {
  align-self: start;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.control-group,
.detail-panel section {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.control-group:last-child,
.detail-panel section:last-child {
  border-bottom: 0;
}

.control-group h2,
.detail-panel h2,
.graph-toolbar h2 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.range-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cypress);
}

input[type="search"],
select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: white;
}

.graph-stage {
  min-width: 0;
  overflow: hidden;
}

.graph-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 80px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.graph-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

#resetSelection,
#downloadCsv {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  font-weight: 850;
}

#graphSvg {
  display: block;
  width: 100%;
  height: 680px;
  background:
    linear-gradient(rgba(23, 22, 21, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 22, 21, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

.edge {
  stroke: rgba(99, 96, 91, 0.22);
  stroke-linecap: round;
}

.node circle {
  stroke: white;
  stroke-width: 2;
  transition: stroke-width 140ms ease, opacity 140ms ease;
}

.node text {
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4px;
  stroke-linejoin: round;
  fill: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.node.muted,
.edge.muted {
  opacity: 0.16;
}

.node.active circle {
  stroke: var(--ink);
  stroke-width: 3;
}

.selected-detail p:not(.eyebrow),
.combo-result,
.detail-panel section > p:not(.eyebrow) {
  margin: 0;
  color: #3a362f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f2e6;
  color: #33302c;
  font-size: 0.76rem;
  font-weight: 750;
}

.tag.buttonish {
  border-color: rgba(23, 107, 87, 0.35);
  color: var(--cypress);
}

.tag.buttonish.active {
  border-color: var(--cypress);
  background: rgba(23, 107, 87, 0.12);
  color: #0e4a3b;
}

.rank-list {
  display: grid;
  gap: 9px;
}

.rank-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(215, 208, 195, 0.72);
  text-align: left;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  color: var(--gold);
  font-weight: 900;
}

.rank-title {
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
}

.rank-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.score-pill {
  min-width: 44px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf4f1;
  color: var(--cypress);
  text-align: center;
  font-size: 0.77rem;
  font-weight: 900;
}

.muted-text {
  color: var(--muted);
  font-size: 0.78rem;
}

.table-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(215, 208, 195, 0.78);
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
  line-height: 1.45;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1eadf;
  color: #32302d;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td strong {
  display: block;
  margin-bottom: 3px;
}

.score-bars {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.score-bar {
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.bar-track,
.mini-track {
  height: 6px;
  border-radius: 999px;
  background: #ece5d9;
  overflow: hidden;
}

.bar-fill,
.mini-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.source-item {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.source-item h3 {
  margin: 0 0 9px;
  font-size: 1rem;
  line-height: 1.28;
}

.source-item p {
  margin: 0;
  color: #3a362f;
  line-height: 1.58;
}

a {
  color: var(--river);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 1180px) {
  .hero h1 {
    font-size: 3.85rem;
  }

  .pressure-compare,
  .signal-matrix,
  .pattern-stack,
  .reception-grid,
  .discovery-grid,
  .role-grid,
  .summary-grid,
  .source-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spotlight-grid,
  .compass-grid,
  .system-chain,
  .decision-engine,
  .grammar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item:nth-child(4) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .spotlight-item:nth-child(odd) {
    border-left: 0;
  }

  .workbench {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-panel section {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .detail-panel section:last-child {
    border-right: 0;
  }
}

@media (max-width: 840px) {
  .hero,
  .section-head,
  .journey-intro,
  .compass,
  .source-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 32px 24px 22px;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .lede {
    font-size: 1.04rem;
  }

  .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented.vertical {
    grid-template-columns: 1fr;
  }

  .reception-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .system-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .discovery-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey,
  .executive-summary,
  .system-lab,
  .reception-lab,
  .discovery-lab,
  .pattern-lab,
  .lineage-lab,
  .role-ecology,
  .vernacular-guide,
  .compass,
  .talk-track,
  .map-intro,
  .table-section,
  .sources {
    padding: 30px 24px;
  }

  .section-head h2,
  .journey-intro h2,
  .compass h2,
  .system-lab h2,
  .reception-lab h2,
  .discovery-lab h2,
  .pattern-lab h2,
  .lineage-lab h2,
  .role-ecology h2,
  .vernacular-guide h2,
  .talk-track h2,
  .map-intro h2,
  .table-section h2,
  .sources h2 {
    font-size: 2.15rem;
  }

  .pressure-compare,
  .signal-matrix,
  .pattern-stack,
  .reception-grid,
  .discovery-grid,
  .system-chain,
  .role-grid,
  .summary-grid,
  .decision-engine,
  .grammar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lineage-card {
    grid-template-columns: 1fr;
  }

  .system-bottom {
    grid-template-columns: 1fr;
  }

  .system-sources {
    text-align: left;
  }

  .degree-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item:nth-child(odd) {
    border-left: 0;
  }

  .summary-item:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .workbench {
    grid-template-columns: 1fr;
  }

  .control-panel,
  .detail-panel {
    position: static;
    max-height: none;
  }

  .detail-panel {
    display: block;
  }

  .detail-panel section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #graphSvg {
    height: 560px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 22px 16px 16px;
    gap: 18px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.02;
  }

  .lede {
    margin-top: 14px;
    font-size: 0.98rem;
    line-height: 1.43;
  }

  .lens-card {
    gap: 12px;
    padding: 14px;
  }

  .seg {
    min-height: 34px;
    padding: 7px 8px;
  }

  .reception-controls {
    grid-template-columns: 1fr;
  }

  .system-controls {
    grid-template-columns: 1fr;
  }

  .discovery-controls {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics div {
    min-height: 72px;
    padding: 12px 10px;
  }

  .hero-metrics strong {
    font-size: 1.55rem;
  }

  .hero-metrics span {
    font-size: 0.7rem;
  }

  .journey,
  .executive-summary,
  .system-lab,
  .reception-lab,
  .discovery-lab,
  .pattern-lab,
  .lineage-lab,
  .role-ecology,
  .vernacular-guide,
  .compass,
  .talk-track,
  .map-intro,
  .table-section,
  .sources {
    padding: 28px 16px;
  }

  .section-head h2,
  .journey-intro h2,
  .compass h2,
  .system-lab h2,
  .reception-lab h2,
  .discovery-lab h2,
  .pattern-lab h2,
  .lineage-lab h2,
  .role-ecology h2,
  .vernacular-guide h2,
  .talk-track h2,
  .map-intro h2,
  .table-section h2,
  .sources h2 {
    font-size: 1.85rem;
  }

  .pressure-compare,
  .spotlight-grid,
  .signal-matrix,
  .pattern-stack,
  .reception-grid,
  .discovery-grid,
  .system-chain,
  .role-grid,
  .grammar-grid,
  .summary-grid,
  .compass-grid,
  .decision-engine {
    grid-template-columns: 1fr;
  }

  .lineage-card {
    padding: 15px;
  }

  .degree-chain {
    grid-template-columns: 1fr;
  }

  .degree-step {
    min-height: auto;
  }

  .lineage-foot {
    display: grid;
  }

  .system-board {
    padding: 15px;
  }

  .system-board-head {
    display: grid;
    gap: 12px;
  }

  .system-board-head h3 {
    font-size: 1.55rem;
  }

  .system-step {
    min-height: auto;
  }

  .role-card {
    min-height: auto;
    padding: 15px;
  }

  .reception-card {
    min-height: auto;
    padding: 15px;
  }

  .discovery-card {
    min-height: auto;
    padding: 15px;
  }

  .reception-actions {
    display: grid;
  }

  .reception-actions span {
    text-align: left;
  }

  .discovery-actions {
    display: grid;
  }

  .discovery-actions span {
    text-align: left;
  }

  .role-actions {
    display: grid;
  }

  .role-actions span {
    text-align: left;
  }

  .grammar-card {
    min-height: auto;
    padding: 15px;
  }

  .grammar-top {
    display: grid;
    gap: 6px;
  }

  .grammar-top strong {
    max-width: none;
    text-align: left;
  }

  .grammar-card dl {
    grid-template-columns: 1fr;
  }

  .grammar-actions {
    display: grid;
  }

  .grammar-actions span {
    text-align: left;
  }

  .summary-item,
  .summary-item:nth-child(odd),
  .summary-item:nth-child(4) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .summary-item:first-child {
    border-top: 0;
  }

  .talk-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .spotlight-item,
  .spotlight-item:nth-child(odd) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .spotlight-item:first-child {
    border-top: 0;
  }

  .graph-toolbar,
  .table-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .workbench {
    padding: 14px 12px 24px;
  }

  #graphSvg {
    height: 500px;
  }
}
