:root {
  --history-bg: #0c0e16;
  --history-surface: #11141d;
  --history-rule: #252a33;
  --history-rule-bright: #414854;
  --history-text: #eeece6;
  --history-muted: #a0a7b3;
  --history-faint: #808998;
  --history-amber: #f7931a;
  --history-atlas-gold: #e1b969;
  --history-atlas-gold-soft: #cba65d;
  --history-atlas-blue: #71a4b7;
  --history-paper: #eee9df;
  --history-route: rgb(225 185 105 / 0.34);
  --history-route-blue: rgb(113 164 183 / 0.3);
  --history-violet: #8f8af0;
  --history-blue: #6ba5f5;
  --history-coral: #e8927c;
  --history-mint: #5fd6a5;
  --history-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --history-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

html {
  background: var(--history-bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body.history-page {
  margin: 0;
  min-height: 100vh;
  color: var(--history-text);
  background-color: var(--history-bg);
  background-image: url('/starfield.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: var(--history-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.history-page::before {
  content: "";
}

.history-page *,
.history-page *::before,
.history-page *::after {
  box-sizing: border-box;
}

.history-page img {
  display: block;
  max-width: 100%;
}

.history-page a {
  color: inherit;
  text-decoration-color: #596174;
  text-underline-offset: 0.2em;
}

.history-page a:hover {
  color: var(--history-amber);
  text-decoration-color: currentColor;
}

.history-page :is(a, button, summary):focus-visible {
  outline: 2px solid var(--history-amber);
  outline-offset: 4px;
}

.history-skip {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 13px;
  color: var(--history-bg);
  background: var(--history-amber);
  font: 600 12px/1 var(--history-sans);
  transform: translateY(-180%);
}

.history-skip:focus {
  color: var(--history-bg);
  transform: translateY(0);
}

.history-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  width: min(100% - 40px, 1080px);
  min-height: 54px;
  margin: 0 auto;
  border-bottom: 1px solid var(--history-rule);
  background: var(--history-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.history-brand,
.history-back,
.history-toplink {
  color: var(--history-muted);
  font-family: var(--history-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.history-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.history-brand::before {
  content: "₿";
  color: var(--history-amber);
  font: 600 14px/1 var(--history-sans);
  letter-spacing: 0;
}

.history-topnav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.history-toplink {
  color: var(--history-faint);
}

.history-toplink:hover,
.history-toplink:focus-visible {
  color: var(--history-amber);
}

.history-brand > span {
  color: var(--history-text);
  font-weight: 500;
}

.history-brand small {
  color: var(--history-faint);
  font: inherit;
}

.history-back span {
  color: var(--history-amber);
}

.history-publication {
  width: 100%;
}

.history-masthead {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: clamp(66px, 8vw, 96px) 0 clamp(72px, 8vw, 104px);
}

.publication-label,
.section-marker,
.entry-label,
.chapter-number,
.figure-heading span {
  margin: 0;
  color: var(--history-amber);
  font: 500 10px/1.3 var(--history-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.publication-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.publication-label span {
  font: 600 18px/1 var(--history-sans);
  letter-spacing: 0;
}

.masthead-title {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.masthead-period {
  margin: 11px 0 0;
  color: var(--history-faint);
  font: 400 11px/1.3 var(--history-mono);
  letter-spacing: 0.08em;
}

.masthead-title h1 {
  max-width: 760px;
  margin: 0;
  font: 500 clamp(54px, 7vw, 78px)/0.94 var(--history-sans);
  letter-spacing: -0.062em;
}

.masthead-introduction {
  max-width: 846px;
  margin: 42px 0 0 144px;
  padding-top: 25px;
  border-top: 1px solid var(--history-rule-bright);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(36px, 6vw, 76px);
}

.masthead-introduction p {
  margin: 0;
}

.masthead-deck {
  color: var(--history-text);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.masthead-introduction p:last-child {
  color: var(--history-muted);
  font-size: 14px;
  line-height: 1.7;
}

.masthead-method {
  margin: 34px 0 0 144px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px 25px;
  color: var(--history-faint);
  font: 400 10px/1.4 var(--history-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.masthead-method span + span::before {
  content: "/";
  margin-right: 25px;
  color: var(--history-rule-bright);
}

.masthead-actions {
  max-width: 846px;
  margin: 36px 0 0 144px;
  border-top: 1px solid var(--history-rule-bright);
  border-bottom: 1px solid var(--history-rule-bright);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.masthead-actions a {
  position: relative;
  min-height: 88px;
  padding: 20px 48px 19px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.masthead-actions a + a {
  padding-left: 28px;
  border-left: 1px solid var(--history-rule);
}

.masthead-actions span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.masthead-actions small {
  margin-top: 6px;
  color: var(--history-faint);
  font: 400 10px/1.4 var(--history-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.masthead-actions b {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--history-amber);
  font: 400 18px/1 var(--history-mono);
  transform: translateY(-50%);
}

.history-lead-figure {
  width: min(100% - 40px, 1080px);
  margin: 0 auto clamp(58px, 7vw, 82px);
}

.history-lead-figure img {
  width: 100%;
  max-height: 510px;
  border: 1px solid var(--history-rule);
  object-fit: cover;
  object-position: center;
}

.history-lead-figure figcaption {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--history-rule);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  gap: 28px;
  color: var(--history-muted);
  font: 400 11px/1.55 var(--history-mono);
}

.history-lead-figure figcaption b {
  color: var(--history-text);
  font-weight: 500;
}

.history-lead-figure figcaption cite {
  color: var(--history-faint);
  font-style: normal;
}

.history-explorer {
  width: min(100% - 40px, 1080px);
  margin: clamp(72px, 9vw, 112px) auto clamp(82px, 10vw, 124px);
  padding-top: 30px;
  border-top: 1px solid var(--history-rule-bright);
  scroll-margin-top: 76px;
}

.explorer-heading {
  padding-bottom: clamp(44px, 6vw, 66px);
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.explorer-heading .section-marker {
  padding-top: 8px;
}

.explorer-heading h2 {
  max-width: 760px;
  margin: 0;
  font: 500 clamp(38px, 5vw, 58px)/1.02 var(--history-sans);
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.explorer-heading div > p {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--history-muted);
  font-size: 15px;
  line-height: 1.75;
  text-wrap: pretty;
}

.explorer-columns {
  border-top: 1px solid var(--history-rule-bright);
  border-bottom: 1px solid var(--history-rule-bright);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.explorer-columns nav {
  min-width: 0;
}

.explorer-research {
  scroll-margin-top: 76px;
}

.explorer-columns nav + nav {
  border-left: 1px solid var(--history-rule-bright);
}

.explorer-columns nav > header {
  min-height: 116px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--history-rule-bright);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.explorer-columns header span,
.explorer-columns nav > header > small {
  color: var(--history-amber);
  font: 500 10px/1.35 var(--history-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.explorer-columns nav > header > small {
  color: var(--history-faint);
  white-space: nowrap;
}

.explorer-columns h3 {
  max-width: 350px;
  margin: 9px 0 0;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.explorer-columns nav > a {
  min-height: 82px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--history-rule);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  text-decoration: none;
}

.explorer-columns nav > a:last-child {
  border-bottom: 0;
}

.explorer-columns nav > a > b,
.explorer-columns nav > a > em {
  color: var(--history-faint);
  font: 400 9px/1.35 var(--history-mono);
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.explorer-columns nav > a > b {
  color: var(--history-amber);
}

.explorer-columns nav > a > em {
  text-align: right;
  white-space: nowrap;
}

.explorer-columns nav > a > span {
  min-width: 0;
}

.explorer-columns nav > a strong,
.explorer-columns nav > a small {
  display: block;
}

.explorer-columns nav > a strong {
  color: var(--history-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.explorer-columns nav > a small {
  margin-top: 5px;
  color: var(--history-faint);
  font-size: 10px;
  line-height: 1.45;
}

.explorer-columns nav > a:hover {
  background: var(--history-surface);
}

.explorer-columns nav > a:hover strong {
  color: var(--history-amber);
}

.explorer-chronology .explorer-start,
.explorer-research .explorer-dataset {
  min-height: 92px;
  background: var(--history-surface);
}

.explorer-chronology .explorer-start {
  grid-template-columns: minmax(0, 1fr) auto;
}

.explorer-start > span {
  color: var(--history-text);
  font: 500 11px/1.4 var(--history-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.explorer-start > b {
  font-size: 16px !important;
}

.explorer-dataset > b {
  letter-spacing: 0 !important;
}

.chapter-index {
  --history-progress: 0%;
  position: sticky;
  z-index: 20;
  top: 54px;
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 16px 0 17px;
  border-top: 2px solid var(--history-amber);
  border-bottom: 1px solid var(--history-rule-bright);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px 22px;
  background: var(--history-bg);
}

.chapter-index::after {
  content: "";
  position: absolute;
  right: auto;
  bottom: -1px;
  left: 0;
  width: var(--history-progress);
  height: 2px;
  background: var(--history-amber);
  transition: width 120ms linear;
}

.chapter-index::before {
  content: "₿ / MAINNET / ERA INDEX";
  flex: none;
  margin-right: 2px;
  color: var(--history-faint);
  font: 500 9px/1.4 var(--history-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chapter-index a {
  min-width: 0;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--history-muted);
  font-family: var(--history-sans);
  text-decoration: none;
}

.chapter-index a::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border: 1px solid var(--history-rule-bright);
  background: var(--history-bg);
}

.chapter-index a + a {
  padding-left: 0;
}

.chapter-index a:hover {
  color: var(--history-text);
}

.chapter-index a[aria-current="location"] {
  color: var(--history-text);
}

.chapter-index a[aria-current="location"]::before {
  border-color: var(--history-amber);
  background: var(--history-amber);
}

.chapter-index a[aria-current="location"] b {
  color: var(--history-amber);
}

.chapter-index b {
  color: var(--history-amber);
  font: 500 9px/1.4 var(--history-mono);
  letter-spacing: 0.02em;
}

.chapter-index span {
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.chapter-index small {
  display: none;
  color: var(--history-faint);
  font: 400 10px/1.3 var(--history-mono);
}

.history-chapter {
  --chapter-rail-position: 126px;
  position: relative;
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: clamp(76px, 8vw, 104px) 0 0;
  scroll-margin-top: 126px;
}

.history-chapter::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--chapter-rail-position) - 2px);
  width: 5px;
  border-right: 1px solid var(--history-rule);
  border-left: 1px solid var(--history-rule);
  pointer-events: none;
}

.chapter-opener {
  position: relative;
  z-index: 1;
  padding: 30px 0 46px;
  border-top: 2px solid var(--history-amber);
  background: var(--history-bg);
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(210px, 250px);
  gap: 36px;
  align-items: start;
}

.chapter-register {
  min-width: 0;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.chapter-register .chapter-number {
  color: var(--history-faint);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.chapter-reference {
  color: var(--history-faint);
  font: 400 8px/1.3 var(--history-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-register code {
  color: var(--history-amber);
  font: 500 10px/1.45 var(--history-mono);
  overflow-wrap: normal;
}

.chapter-register small {
  color: var(--history-faint);
  font: 400 9px/1.4 var(--history-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chapter-period {
  margin: 0 0 9px;
  color: var(--history-faint);
  font: 400 10px/1.3 var(--history-mono);
  letter-spacing: 0.05em;
}

.chapter-period::before {
  content: "record span / ";
  color: var(--history-amber);
}

.chapter-opener h2 {
  max-width: 680px;
  margin: 0;
  font: 500 clamp(38px, 4.5vw, 54px)/1.02 var(--history-sans);
  letter-spacing: -0.045em;
}

.chapter-summary {
  margin: 4px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--history-amber);
  color: var(--history-muted);
  font-size: 13px;
  line-height: 1.72;
}

.block-header-fields {
  grid-column: 2 / -1;
  max-width: 100%;
  margin: 20px 0 -20px;
  padding-top: 10px;
  border-top: 1px solid var(--history-rule);
  overflow: hidden;
  color: var(--history-faint);
  font: 400 9px/1.4 var(--history-mono);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.history-entry {
  --rail-position: 126px;
  --rail-to-body: 18px;
  position: relative;
  padding: 38px 0 42px;
  border-top: 1px solid var(--history-rule);
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(190px, 240px);
  gap: 36px;
  align-items: start;
  scroll-margin-top: 126px;
}

.history-entry::before {
  content: none;
}

.history-entry::after {
  content: none;
}

.entry-date {
  position: relative;
  padding-top: 3px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--history-text);
}

.entry-date::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 22px;
  right: -22px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--history-amber);
  background: var(--history-bg);
}

.entry-date time {
  display: block;
  font: 500 11px/1.5 var(--history-mono);
  font-variant-numeric: tabular-nums;
}

.entry-date span {
  display: block;
  margin-top: 7px;
  color: var(--history-faint);
  font: 500 10px/1.35 var(--history-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.entry-date .entry-record {
  color: var(--history-faint);
  letter-spacing: 0.12em;
}

.entry-date .entry-plane {
  color: var(--history-text);
}

.entry-locator {
  display: block;
  margin-top: 7px;
  color: var(--history-amber);
  font: 500 10px/1.45 var(--history-mono);
  overflow-wrap: break-word;
}

.entry-body {
  position: relative;
  min-width: 0;
  max-width: 680px;
}

.entry-body::before {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(-1 * var(--rail-to-body));
  width: var(--rail-to-body);
  border-top: 1px solid var(--history-rule-bright);
}

.entry-label {
  margin-bottom: 11px;
}

.entry-label::before {
  content: "RECORD / ";
  color: var(--history-faint);
}

.entry-body h3 {
  max-width: 670px;
  margin: 0 0 22px;
  font: 500 clamp(27px, 3vw, 35px)/1.16 var(--history-sans);
  letter-spacing: -0.035em;
}

.entry-body > p:not(.entry-label) {
  margin: 0 0 1.15em;
  color: #c9ceda;
  font-size: 16px;
  line-height: 1.78;
}

.history-entry-major {
  padding-top: 68px;
  padding-bottom: 74px;
}

.history-entry-major .entry-body h3 {
  max-width: 760px;
  font-size: clamp(37px, 4.4vw, 49px);
  line-height: 1.08;
  letter-spacing: -0.047em;
}

.history-entry-major .entry-body > p:not(.entry-label) {
  font-size: 17px;
}

.history-entry-major .entry-date::after {
  width: 9px;
  height: 9px;
  right: -23px;
  border: 1px solid var(--history-amber);
  background: var(--history-amber);
}

.entry-note {
  position: relative;
  margin-top: 52px;
  padding-left: 19px;
  color: var(--history-muted);
}

.entry-note::before {
  content: "//";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--history-amber);
  font: 500 10px/1.4 var(--history-mono);
}

.entry-note > strong,
.entry-note > div > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--history-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-note p {
  margin: 0.45em 0;
  font-size: 13px;
  line-height: 1.62;
}

.entry-note p b {
  color: var(--history-text);
}

.entry-facts dl {
  margin: 13px 0 0;
}

.entry-facts dl div {
  padding: 7px 0;
  border-top: 1px solid var(--history-rule);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.entry-facts dt,
.entry-facts dd {
  margin: 0;
  font: 400 10px/1.35 var(--history-mono);
}

.entry-facts dt {
  color: var(--history-faint);
}

.entry-facts dd {
  color: var(--history-text);
  text-align: right;
}

.client-note {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.client-note img {
  image-rendering: pixelated;
}

.quote-note > strong {
  color: var(--history-amber);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-transform: none;
}

.custody-note p {
  padding-top: 8px;
  border-top: 1px solid var(--history-rule);
}

.entry-citations {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--history-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  font: 400 10px/1.55 var(--history-mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.entry-citations a {
  color: var(--history-faint);
}

.entry-citations a::after {
  content: " ↗";
  color: var(--history-amber);
}

.entry-citations a[href^="/"]::after {
  content: " →";
}

.archive-figure.entry-figure {
  grid-column: 2 / 4;
  margin: 36px 0 6px;
}

.archive-figure.entry-figure img {
  width: 100%;
  max-height: 720px;
  border: 1px solid var(--history-rule);
  object-fit: contain;
  background: var(--history-surface);
}

.whitepaper-figure img,
.software-figure img,
.market-figure img {
  padding: clamp(24px, 5vw, 70px);
}

.whitepaper-figure img,
.software-figure img {
  background: #e9e9e7;
}

.whitepaper-figure img {
  width: min(100%, 600px);
  margin: 0 auto;
}

.genesis-figure img {
  object-fit: cover;
}

.archive-figure figcaption,
.chapter-figure figcaption {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--history-rule);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
  gap: 26px;
  color: var(--history-muted);
  font: 400 11px/1.55 var(--history-mono);
}

.archive-figure figcaption b,
.chapter-figure figcaption b {
  color: var(--history-text);
  font-weight: 500;
}

.archive-figure figcaption cite,
.chapter-figure figcaption cite {
  color: var(--history-faint);
  font-style: normal;
}

/* Evidence plates interrupt the prose with source material, protocol rules
   and measured data. They stay on the same ruled page rather than becoming
   standalone cards or controls. */
.evidence-plate {
  min-width: 0;
  margin: 38px 0 8px;
  padding-top: 22px;
  border-top: 1px solid var(--history-rule-bright);
}

.evidence-plate.entry-figure {
  grid-column: 2 / 4;
}

.evidence-heading {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.45fr);
  gap: 30px;
  align-items: end;
}

.evidence-heading > p {
  grid-column: 1 / -1;
  margin: 0 0 -9px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--history-faint);
  font: 400 10px/1.4 var(--history-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.evidence-heading > p span {
  color: var(--history-amber);
  font-weight: 500;
}

.evidence-heading > p em {
  font-style: normal;
}

.evidence-heading h3,
.evidence-heading h4 {
  grid-column: 1;
  margin: 0;
  color: var(--history-text);
  font: 500 clamp(24px, 3vw, 34px)/1.14 var(--history-sans);
  letter-spacing: -0.035em;
}

.evidence-plate pre {
  min-width: 0;
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  border-top: 1px solid var(--history-rule);
  border-bottom: 1px solid var(--history-rule);
  color: #d9deea;
  background: #080a11;
  font: 400 11px/1.72 var(--history-mono);
  tab-size: 2;
}

.evidence-plate pre code {
  font: inherit;
  white-space: pre;
}

.syntax-type,
.syntax-keyword {
  color: var(--history-violet);
}

.syntax-string {
  color: var(--history-mint);
}

.syntax-number {
  color: var(--history-coral);
}

.syntax-focus {
  color: var(--history-amber);
}

.source-split,
.patch-layout,
.monetary-code-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  gap: 30px;
  align-items: stretch;
}

.decoded-data {
  margin: 0;
  border-top: 1px solid var(--history-rule);
}

.decoded-data div {
  padding: 10px 0;
  border-bottom: 1px solid var(--history-rule);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.decoded-data dt,
.decoded-data dd {
  margin: 0;
  font: 400 11px/1.45 var(--history-mono);
}

.decoded-data dt {
  color: var(--history-faint);
}

.decoded-data dd {
  color: var(--history-text);
  text-align: right;
}

.decoded-data code {
  color: var(--history-muted);
}

.patch-explanation,
.code-annotations {
  border-top: 1px solid var(--history-rule);
}

.patch-explanation p,
.code-annotations p {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--history-rule);
  color: var(--history-muted);
  font-size: 12px;
  line-height: 1.65;
}

.patch-explanation b,
.code-annotations b {
  display: block;
  margin-bottom: 4px;
  color: var(--history-text);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.code-annotations code {
  color: var(--history-amber);
  font-size: 11px;
}

.evidence-caption {
  margin: 14px 0 0;
  color: var(--history-faint);
  font: 400 10px/1.65 var(--history-mono);
}

.evidence-caption a {
  color: var(--history-muted);
}

.gox-total {
  margin-bottom: 13px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.gox-total strong {
  color: var(--history-text);
  font: 500 clamp(25px, 3vw, 34px)/1 var(--history-mono);
}

.gox-total span {
  color: var(--history-muted);
  font-size: 12px;
}

.gox-bar {
  min-height: 118px;
  border-top: 1px solid var(--history-rule-bright);
  border-bottom: 1px solid var(--history-rule-bright);
  display: flex;
}

.gox-bar > i {
  flex: 0 0 var(--share);
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-style: normal;
}

.gox-bar > i + i {
  border-left: 1px solid var(--history-bg);
}

.gox-missing {
  color: var(--history-text);
  background: #473318;
}

.gox-located {
  color: var(--history-text);
  background: #173149;
}

.gox-bar span {
  font: 500 10px/1.3 var(--history-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gox-bar b {
  margin-top: 8px;
  font: 500 clamp(16px, 2vw, 23px)/1.2 var(--history-mono);
}

.utxo-diagram {
  padding: 24px 0;
  border-top: 1px solid var(--history-rule-bright);
  border-bottom: 1px solid var(--history-rule-bright);
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) auto minmax(0, 1.2fr);
  gap: 25px;
  align-items: center;
}

.utxo-input,
.utxo-outputs > div {
  padding-left: 16px;
  border-left: 2px solid var(--history-blue);
}

.utxo-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.utxo-outputs > div {
  border-left-color: var(--history-amber);
}

.utxo-diagram span,
.utxo-diagram strong,
.utxo-diagram small {
  display: block;
}

.utxo-diagram span {
  color: var(--history-faint);
  font: 500 10px/1.3 var(--history-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.utxo-diagram strong {
  margin-top: 7px;
  color: var(--history-text);
  font: 500 clamp(21px, 2.7vw, 31px)/1 var(--history-mono);
}

.utxo-diagram small {
  margin-top: 8px;
  color: var(--history-muted);
  font-size: 11px;
}

.utxo-diagram > i {
  color: var(--history-amber);
  font: 400 22px/1 var(--history-mono);
  font-style: normal;
}

.transaction-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.transaction-facts > div {
  padding: 15px 14px 15px 0;
  border-bottom: 1px solid var(--history-rule);
}

.transaction-facts > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--history-rule);
}

.transaction-facts dt,
.transaction-facts dd {
  margin: 0;
  font: 400 10px/1.4 var(--history-mono);
}

.transaction-facts dt {
  color: var(--history-faint);
  text-transform: uppercase;
}

.transaction-facts dd {
  margin-top: 5px;
  color: var(--history-text);
  font-size: 12px;
}

.segwit-rule {
  padding: 21px 0;
  border-top: 1px solid var(--history-rule-bright);
  border-bottom: 1px solid var(--history-rule-bright);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.segwit-rule > div span {
  display: block;
  margin-bottom: 8px;
  color: var(--history-faint);
  font: 500 10px/1.3 var(--history-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segwit-rule code {
  color: var(--history-text);
  font: 400 clamp(16px, 2.2vw, 24px)/1.35 var(--history-mono);
}

.segwit-rule > strong {
  color: var(--history-amber);
  font: 500 clamp(19px, 2.5vw, 29px)/1 var(--history-mono);
  text-align: right;
}

.segwit-rule small {
  display: block;
  margin-top: 8px;
  color: var(--history-muted);
  font: 400 10px/1.3 var(--history-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.serialization-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--history-rule);
}

.serialization-compare > div {
  min-width: 0;
  padding: 22px 22px 22px 0;
}

.serialization-compare > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--history-rule);
}

.serialization-compare b,
.serialization-compare code,
.serialization-compare span {
  display: block;
}

.serialization-compare b {
  margin-bottom: 11px;
  color: var(--history-amber);
  font: 500 11px/1.3 var(--history-mono);
}

.serialization-compare code {
  min-height: 49px;
  color: var(--history-text);
  font: 400 10px/1.6 var(--history-mono);
  overflow-wrap: anywhere;
}

.serialization-compare mark {
  color: var(--history-mint);
  background: transparent;
}

.serialization-compare span {
  margin-top: 10px;
  color: var(--history-muted);
  font-size: 11px;
  line-height: 1.55;
}

.fork-sequence {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.fork-sequence li {
  position: relative;
  padding: 19px 18px 0 0;
  border-top: 1px solid var(--history-rule-bright);
}

.fork-sequence li + li {
  padding-left: 18px;
}

.fork-sequence li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--history-amber);
  transform: rotate(45deg);
}

.fork-sequence li + li::before {
  left: 18px;
}

.fork-sequence time,
.fork-sequence span {
  display: block;
}

.fork-sequence time {
  color: var(--history-amber);
  font: 500 10px/1.3 var(--history-mono);
}

.fork-sequence span {
  margin-top: 6px;
  color: var(--history-muted);
  font-size: 12px;
}

.taproot-note code {
  display: block;
  margin: 12px 0 13px;
  color: var(--history-amber);
  font: 500 13px/1.45 var(--history-mono);
  white-space: nowrap;
}

.technical-interlude {
  margin: 38px 0 58px 144px;
  padding: 32px 0 34px;
  border-top: 1px solid var(--history-rule-bright);
  border-bottom: 1px solid var(--history-rule-bright);
  display: grid;
  grid-template-columns: minmax(190px, 0.5fr) minmax(0, 1.5fr);
  gap: 46px;
}

.interlude-heading h3 {
  margin: 10px 0 0;
  font: 500 clamp(24px, 3vw, 34px)/1.14 var(--history-sans);
  letter-spacing: -0.035em;
}

.process-line {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.process-line li {
  min-width: 0;
  padding: 0 15px;
  border-left: 1px solid var(--history-rule);
}

.process-line b,
.actor-line span {
  display: block;
  margin-bottom: 15px;
  color: var(--history-amber);
  font: 500 10px/1.3 var(--history-mono);
}

.process-line strong,
.actor-line strong {
  display: block;
  color: var(--history-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.process-line span,
.actor-line p {
  display: block;
  margin: 6px 0 0;
  color: var(--history-muted);
  font-size: 11px;
  line-height: 1.55;
}

.interlude-footnote {
  grid-column: 2;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--history-rule);
  color: var(--history-faint);
  font: 400 10px/1.6 var(--history-mono);
}

.actor-line {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 12px;
  align-items: start;
}

.actor-line > i {
  padding-top: 25px;
  color: var(--history-amber);
  font-style: normal;
}

.chapter-figure {
  width: 100%;
  margin: 48px 0 54px;
}

.chapter-figure img {
  width: 100%;
  max-height: 690px;
  border: 1px solid var(--history-rule);
  object-fit: cover;
}

.chapter-synthesis {
  margin: 44px 0 0 144px;
  padding: 24px 0 0;
  border-top: 1px solid var(--history-rule-bright);
  display: grid;
  grid-template-columns: 130px minmax(0, 680px);
  gap: 28px;
}

.chapter-synthesis span {
  color: var(--history-amber);
  font: 500 10px/1.5 var(--history-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chapter-synthesis p {
  margin: 0;
  color: var(--history-text);
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.monetary-essay {
  width: min(100% - 40px, 1080px);
  margin: clamp(82px, 9vw, 118px) auto 0;
  padding: 72px 0 80px;
  border-top: 1px solid var(--history-rule-bright);
  border-bottom: 1px solid var(--history-rule-bright);
  scroll-margin-top: 126px;
}

.monetary-code {
  margin: 60px 0 0 144px;
}

.monetary-code .evidence-heading {
  grid-template-columns: minmax(0, 1fr);
}

.monetary-code .evidence-heading h3 {
  max-width: 720px;
}

.monetary-code-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
}

.essay-header {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 36px;
}

.essay-header > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
  gap: 36px;
}

.essay-header h2 {
  margin: 0;
  font: 500 clamp(37px, 4.5vw, 53px)/1.03 var(--history-sans);
  letter-spacing: -0.045em;
}

.essay-header p {
  margin: 4px 0 0;
  color: var(--history-muted);
  font-size: 13px;
  line-height: 1.7;
}

.data-figure {
  margin: 70px 0 0 144px;
}

.figure-heading {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--history-rule-bright);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.figure-heading h3 {
  margin: 7px 0 0;
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.figure-heading > p {
  margin: 0 0 3px;
  color: var(--history-faint);
  font: 400 10px/1.4 var(--history-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.subsidy-chart {
  height: 350px;
  padding: 34px 0 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
}

.chart-y-axis {
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--history-faint);
  font: 400 10px/1 var(--history-mono);
}

.subsidy-stair {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.subsidy-step {
  position: relative;
  min-width: 0;
  height: calc(100% - var(--level));
  margin-top: var(--level);
  padding: 10px;
  border-top: 2px solid var(--history-text);
  border-right: 1px solid var(--history-rule-bright);
}

.subsidy-step b {
  display: block;
  color: var(--history-text);
  font: 500 clamp(15px, 1.8vw, 22px)/1 var(--history-mono);
}

.subsidy-step span {
  display: block;
  margin-top: 8px;
  color: var(--history-faint);
  font: 400 10px/1.5 var(--history-mono);
}

.subsidy-step-current {
  border-top-color: var(--history-amber);
}

.subsidy-step-current b {
  color: var(--history-amber);
}

.data-figure figcaption,
.data-source {
  margin: 17px 0 0 74px;
  color: var(--history-faint);
  font: 400 11px/1.65 var(--history-mono);
}

.monetary-explanation {
  margin: 62px 0 0 144px;
  border-top: 1px solid var(--history-rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.monetary-explanation > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--history-rule);
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 32px;
}

.monetary-explanation > div + div {
  padding-left: 0;
}

.monetary-explanation span {
  color: var(--history-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.monetary-explanation p {
  margin: 0;
  color: var(--history-muted);
  font-size: 13px;
  line-height: 1.65;
}

.supply-bars {
  padding-top: 25px;
}

.supply-row {
  min-height: 54px;
  border-bottom: 1px solid var(--history-rule);
  display: grid;
  grid-template-columns: 62px minmax(160px, 1fr) 105px 66px;
  gap: 18px;
  align-items: center;
  font-family: var(--history-mono);
}

.supply-row > span,
.supply-row b,
.supply-row em {
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.supply-row > div {
  height: 7px;
  border: 1px solid var(--history-rule-bright);
}

.supply-row i {
  display: block;
  width: var(--width);
  height: 100%;
  background: var(--history-blue);
}

.supply-row b {
  color: var(--history-muted);
  text-align: right;
}

.supply-row em {
  color: var(--history-text);
  text-align: right;
}

.supply-row.projected i {
  background: var(--history-amber);
  opacity: 0.72;
}

.mining-share {
  margin-bottom: 12px;
}

.share-axis {
  margin: 0 126px 8px 132px;
  display: flex;
  justify-content: space-between;
  color: var(--history-faint);
  font: 400 10px/1 var(--history-mono);
}

.share-chart {
  border-top: 1px solid var(--history-rule-bright);
}

.share-row {
  min-height: 62px;
  border-bottom: 1px solid var(--history-rule);
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 116px;
  gap: 16px;
  align-items: center;
}

.share-row > span {
  color: var(--history-text);
  font-size: 12px;
  font-weight: 600;
}

.share-row > i {
  position: relative;
  height: 18px;
  font-style: normal;
}

.share-row > i::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--history-rule);
}

.share-row > i em {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: var(--start);
  width: var(--span);
  height: 3px;
  background: var(--history-blue);
}

.share-row > i b,
.share-row > i strong {
  position: absolute;
  z-index: 2;
  top: 3px;
  width: 11px;
  height: 11px;
  transform: translateX(-50%) rotate(45deg);
}

.share-row > i b {
  left: var(--from);
  border: 2px solid var(--history-muted);
  background: var(--history-bg);
}

.share-row > i strong {
  left: var(--to);
  background: var(--history-amber);
}

.share-row > small {
  color: var(--history-text);
  font: 500 11px/1.3 var(--history-mono);
  text-align: right;
}

.share-row s {
  color: var(--history-faint);
  text-decoration: none;
}

.share-key {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--history-faint);
  font: 400 10px/1.4 var(--history-mono);
}

.share-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.share-key i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--history-muted);
  transform: rotate(45deg);
}

.share-key span:last-child i {
  border-color: var(--history-amber);
  background: var(--history-amber);
}

.difficulty-shock-heading {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--history-rule-bright);
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 22px;
  align-items: end;
}

.difficulty-shock-heading > span {
  color: var(--history-amber);
  font: 500 10px/1.4 var(--history-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.difficulty-shock-heading h5 {
  margin: 0;
  color: var(--history-text);
  font: 500 clamp(20px, 2.5vw, 28px)/1.15 var(--history-sans);
  letter-spacing: -0.03em;
}

.difficulty-shock-heading p {
  margin: 0;
  color: var(--history-faint);
  font: 400 10px/1.5 var(--history-mono);
}

.difficulty-shock {
  height: 238px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--history-rule);
  border-bottom: 1px solid var(--history-rule-bright);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5px;
}

.difficulty-shock > i {
  position: relative;
  min-width: 0;
  height: 214px;
  font-style: normal;
}

.difficulty-shock > i::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  height: 1px;
  background: var(--history-rule);
}

.difficulty-shock em {
  position: absolute;
  z-index: 1;
  right: 14%;
  bottom: 28px;
  left: 14%;
  height: var(--height);
  min-height: 5px;
  background: var(--history-blue);
}

.difficulty-shock .is-trough em {
  background: var(--history-amber);
}

.difficulty-shock b {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(var(--height) + 32px);
  left: 0;
  color: var(--history-muted);
  font: 400 10px/1 var(--history-mono);
  text-align: center;
}

.difficulty-shock .is-key b {
  color: var(--history-text);
}

.difficulty-shock span {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  color: var(--history-faint);
  font: 400 10px/1 var(--history-mono);
  text-align: center;
  white-space: nowrap;
}

.open-questions,
.history-sources,
.history-outro {
  width: min(100% - 40px, 1080px);
  margin-right: auto;
  margin-left: auto;
}

.open-questions {
  padding: clamp(100px, 11vw, 150px) 0;
}

.open-questions > div {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 60px;
}

.open-questions h2,
.history-sources h2,
.history-outro h2 {
  margin: 0;
  font: 500 clamp(35px, 4.2vw, 50px)/1.04 var(--history-sans);
  letter-spacing: -0.045em;
}

.open-questions > div p {
  margin: 4px 0 0;
  color: var(--history-muted);
  font-size: 13px;
}

.open-questions ol {
  margin: 50px 0 0;
  padding: 0;
  border-top: 1px solid var(--history-rule-bright);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
}

.open-questions li {
  min-height: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--history-rule);
  display: grid;
  grid-template-columns: 42px minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
}

.open-questions li:nth-child(odd) {
  border-right: 0;
}

.open-questions li:nth-child(even) {
  padding-left: 0;
}

.open-questions li b {
  color: var(--history-amber);
  font: 500 10px/1.5 var(--history-mono);
}

.open-questions li strong {
  color: var(--history-text);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.open-questions li span {
  margin-top: 0;
  color: var(--history-muted);
  font-size: 13px;
  line-height: 1.6;
}

.history-sources {
  padding: 74px 0;
  border-top: 1px solid var(--history-rule-bright);
  border-bottom: 1px solid var(--history-rule-bright);
  scroll-margin-top: 20px;
}

.history-sources header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
}

.source-principles {
  margin: 52px 0 0 216px;
  border-top: 1px solid var(--history-rule-bright);
}

.source-principles > div {
  padding: 17px 0;
  border-bottom: 1px solid var(--history-rule);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
}

.source-principles b {
  color: var(--history-amber);
  font: 500 10px/1.5 var(--history-mono);
}

.source-principles p {
  margin: 0;
  color: var(--history-muted);
  font-size: 12px;
  line-height: 1.68;
}

.source-principles strong {
  color: var(--history-text);
}

.edition-note {
  margin: 24px 0 0 216px;
  color: var(--history-faint);
  font: 400 10px/1.5 var(--history-mono);
}

.history-outro {
  padding: clamp(92px, 10vw, 132px) 0;
}

.history-outro h2 {
  max-width: 760px;
  margin-top: 21px;
}

.history-outro > p:not(.section-marker) {
  max-width: 600px;
  margin: 21px 0 0;
  color: var(--history-muted);
  font-size: 15px;
}

.history-outro > div {
  margin-top: 28px;
  display: flex;
  gap: 25px;
  font: 500 10px/1.4 var(--history-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.text-cta {
  color: var(--history-amber) !important;
}

.history-footer {
  width: min(100% - 40px, 1080px);
  min-height: 80px;
  margin: 0 auto;
  border-top: 1px solid var(--history-rule);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--history-faint);
  font: 400 10px/1.4 var(--history-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.history-entry:target .entry-body h3 {
  color: var(--history-amber);
}

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

  .explorer-columns nav + nav {
    border-top: 1px solid var(--history-rule-bright);
    border-left: 0;
  }

  .chapter-index span {
    font-size: 11px;
  }

  .history-chapter,
  .monetary-essay {
    width: min(100% - 40px, 820px);
  }

  .history-chapter {
    --chapter-rail-position: 106px;
  }

  .chapter-opener,
  .history-entry {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 30px;
  }

  .chapter-summary,
  .entry-note {
    grid-column: 2;
  }

  .chapter-summary {
    max-width: 620px;
  }

  .history-entry {
    --rail-position: 106px;
    --rail-to-body: 16px;
  }

  .entry-date::after {
    right: -18px;
  }

  .history-entry-major .entry-date::after {
    right: -19px;
  }

  .entry-note {
    max-width: 560px;
    margin-top: 6px;
  }

  .archive-figure.entry-figure {
    grid-column: 2;
  }

  .evidence-plate.entry-figure {
    grid-column: 2;
  }

  .evidence-heading,
  .source-split,
  .patch-layout,
  .monetary-code-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .evidence-heading h3,
  .evidence-heading h4 {
    grid-column: 1;
  }

  .technical-interlude,
  .chapter-synthesis,
  .data-figure,
  .monetary-explanation,
  .monetary-code {
    margin-left: 122px;
  }

  .essay-header {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 30px;
  }

  .essay-header > div {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .actor-line {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .actor-line > i {
    display: none;
  }
}

@media (max-width: 1100px) and (min-width: 681px) {
  .chapter-index {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .chapter-index::-webkit-scrollbar {
    display: none;
  }

  .chapter-index a {
    flex: none;
  }

  .chapter-index span {
    display: none;
  }
}

@media (max-width: 680px) {
  body.history-page {
    font-size: 16px;
  }

  .history-topbar,
  .history-masthead,
  .history-lead-figure,
  .history-explorer,
  .chapter-index,
  .history-chapter,
  .monetary-essay,
  .open-questions,
  .history-sources,
  .history-outro,
  .history-footer {
    width: calc(100% - 36px);
  }

  .history-brand small {
    display: none;
  }

  .history-back {
    display: none;
  }

  .history-masthead {
    padding: 54px 0 68px;
  }

  .masthead-title {
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .masthead-period {
    margin: 0;
  }

  .masthead-title h1 {
    font-size: clamp(47px, 14vw, 62px);
  }

  .masthead-introduction {
    margin: 34px 0 0;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .masthead-deck {
    font-size: 20px;
  }

  .masthead-method {
    margin-left: 0;
    gap: 9px 16px;
  }

  .masthead-method span + span::before {
    margin-right: 16px;
  }

  .masthead-actions {
    margin: 30px 0 0;
    grid-template-columns: 1fr;
  }

  .masthead-actions a {
    min-height: 78px;
    padding-left: 0;
  }

  .masthead-actions a + a {
    padding-left: 0;
    border-top: 1px solid var(--history-rule);
    border-left: 0;
  }

  .history-lead-figure {
    margin-bottom: 52px;
  }

  .history-lead-figure figcaption {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .history-explorer {
    margin-top: 70px;
    margin-bottom: 76px;
  }

  .explorer-heading {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .explorer-heading .section-marker {
    padding-top: 0;
  }

  .explorer-heading h2 {
    font-size: clamp(35px, 10vw, 46px);
  }

  .explorer-columns nav > header {
    min-height: 104px;
    padding: 22px 18px;
  }

  .explorer-columns nav > a {
    min-height: 78px;
    padding: 16px 18px;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 12px;
  }

  .explorer-columns nav > a > em {
    display: none;
  }

  .explorer-columns nav > a > span {
    grid-column: 2;
  }

  .explorer-chronology .explorer-start {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .explorer-start > span {
    grid-column: 1 !important;
  }

  .explorer-research .explorer-dataset {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .chapter-index {
    position: relative;
    top: auto;
    flex-wrap: wrap;
    overflow: visible;
    gap: 10px 18px;
    white-space: normal;
  }

  .chapter-index::before {
    flex-basis: 100%;
  }

  .chapter-index a,
  .chapter-index a + a,
  .chapter-index a:nth-child(even) {
    padding: 0;
    border: 0;
  }

  .history-chapter {
    --chapter-rail-position: 9px;
    padding-top: 68px;
    scroll-margin-top: 72px;
  }

  .chapter-opener {
    padding: 24px 0 42px;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .chapter-register {
    padding: 0 0 5px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 14px;
  }

  .chapter-register .chapter-number {
    grid-column: 1 / -1;
  }

  .chapter-register small {
    text-align: right;
  }

  .chapter-opener h2 {
    font-size: clamp(35px, 10vw, 46px);
  }

  .chapter-summary {
    grid-column: 1;
    margin-top: 7px;
  }

  .block-header-fields {
    display: none;
  }

  .history-entry {
    --rail-position: 9px;
    padding: 38px 0 42px 32px;
    grid-template-columns: 1fr;
    gap: 20px;
    scroll-margin-top: 72px;
  }

  .history-entry::before {
    top: -1px;
    bottom: -1px;
  }

  .history-entry::after {
    top: 21px;
    left: 32px;
  }

  .entry-date {
    padding-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4px 16px;
    align-items: start;
  }

  .entry-date::after,
  .history-entry-major .entry-date::after {
    top: 5px;
    right: auto;
    left: -27px;
  }

  .entry-date time {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
  }

  .entry-date span {
    margin-top: 0;
  }

  .entry-date .entry-record {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .entry-date .entry-plane {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .entry-locator {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    text-align: right;
  }

  .entry-body,
  .entry-note,
  .archive-figure.entry-figure,
  .evidence-plate.entry-figure {
    grid-column: 1;
  }

  .entry-body::before {
    display: none;
  }

  .entry-body h3,
  .history-entry-major .entry-body h3 {
    font-size: clamp(29px, 8.5vw, 39px);
  }

  .entry-body > p:not(.entry-label),
  .history-entry-major .entry-body > p:not(.entry-label) {
    font-size: 15px;
  }

  .entry-note {
    margin-top: 4px;
  }

  .archive-figure.entry-figure {
    margin-top: 27px;
  }

  .evidence-plate.entry-figure {
    margin-top: 27px;
  }

  .evidence-heading {
    margin-bottom: 18px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .evidence-heading > p {
    margin-bottom: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .evidence-heading h3,
  .evidence-heading h4 {
    font-size: clamp(24px, 7.5vw, 31px);
  }

  .source-split,
  .patch-layout,
  .monetary-code-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .evidence-plate pre {
    padding: 18px;
    font-size: 11px;
  }

  .gox-bar {
    min-height: 86px;
  }

  .gox-bar > i {
    padding: 12px 9px;
  }

  .gox-bar span {
    display: none;
  }

  .gox-bar b {
    font-size: 11px;
  }

  .utxo-diagram {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .utxo-diagram > i {
    transform: rotate(90deg);
  }

  .utxo-outputs {
    grid-template-columns: 1fr 1fr;
  }

  .transaction-facts {
    grid-template-columns: 1fr 1fr;
  }

  .transaction-facts > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .segwit-rule {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .segwit-rule > strong {
    text-align: left;
  }

  .serialization-compare {
    grid-template-columns: 1fr;
  }

  .serialization-compare > div,
  .serialization-compare > div + div {
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--history-rule);
  }

  .fork-sequence {
    grid-template-columns: 1fr;
  }

  .fork-sequence li,
  .fork-sequence li + li {
    padding: 15px 0 15px 26px;
    border-top: 0;
    border-left: 1px solid var(--history-rule-bright);
  }

  .fork-sequence li::before,
  .fork-sequence li + li::before {
    top: 19px;
    left: -4px;
  }

  .taproot-note code {
    font-size: 11px;
    white-space: normal;
  }

  .whitepaper-figure img,
  .software-figure img,
  .market-figure img {
    padding: 20px;
  }

  .archive-figure figcaption,
  .chapter-figure figcaption {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .technical-interlude {
    margin: 30px 0 45px 32px;
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .process-line {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .interlude-footnote {
    grid-column: 1;
  }

  .actor-line {
    grid-template-columns: 1fr 1fr;
    gap: 27px 20px;
  }

  .chapter-synthesis {
    margin-left: 32px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .monetary-essay {
    padding: 60px 0;
    scroll-margin-top: 72px;
  }

  .essay-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .essay-header > div {
    grid-template-columns: 1fr;
  }

  .data-figure,
  .monetary-explanation,
  .monetary-code {
    margin-left: 0;
  }

  .figure-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .subsidy-chart {
    height: 290px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .subsidy-step {
    padding: 7px 4px;
  }

  .subsidy-step b {
    font-size: 12px;
  }

  .subsidy-step span {
    font-size: 10px;
  }

  .data-figure figcaption,
  .data-source {
    margin-left: 46px;
  }

  .monetary-explanation {
    grid-template-columns: 1fr;
  }

  .monetary-explanation > div,
  .monetary-explanation > div + div {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--history-rule);
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .supply-row {
    grid-template-columns: 50px minmax(90px, 1fr) 54px;
    gap: 9px;
  }

  .supply-row b {
    display: none;
  }

  .share-axis {
    margin-left: 104px;
    margin-right: 0;
  }

  .share-row {
    padding: 11px 0;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 7px 16px;
  }

  .share-row > small {
    grid-column: 2;
    text-align: left;
  }

  .share-key {
    justify-content: flex-start;
  }

  .difficulty-shock-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .difficulty-shock {
    height: 238px;
    gap: 3px;
  }

  .difficulty-shock > i {
    height: 214px;
  }

  .difficulty-shock b,
  .difficulty-shock span {
    display: none;
  }

  .difficulty-shock .is-key b,
  .difficulty-shock .is-key span {
    display: block;
  }

  .difficulty-shock em {
    right: 8%;
    left: 8%;
  }

  .open-questions > div,
  .history-sources header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .open-questions ol {
    grid-template-columns: 1fr;
  }

  .open-questions li:nth-child(odd) {
    border-right: 0;
  }

  .open-questions li:nth-child(even) {
    padding-left: 0;
  }

  .open-questions li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .open-questions li span {
    grid-column: 2;
  }

  .source-principles,
  .edition-note {
    margin-left: 0;
  }

  .history-outro > div {
    flex-direction: column;
    gap: 13px;
  }
}

@media (max-width: 420px) {
  .process-line,
  .actor-line {
    grid-template-columns: 1fr;
  }

  .client-note {
    grid-template-columns: 40px minmax(0, 1fr);
  }
}

/* ---- Atlas-derived historical constellation ---------------------------
   The article remains a linear, crawlable record. This layer changes only
   its visual field: five landmarks, 26 observation stars and one measured
   route through normal document flow. */
.history-topbar {
  top: 14px;
  width: min(100% - 56px, 1120px);
  padding: 0 18px;
  border: 1px solid rgb(232 225 208 / 0.16);
  border-radius: 14px;
  background: rgb(10 12 19 / 0.86);
  box-shadow: 0 18px 56px rgb(0 0 0 / 0.24);
  backdrop-filter: blur(18px);
}

.history-brand::before {
  color: var(--history-amber);
}

.history-constellation {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.history-route-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.history-route-segment {
  position: absolute;
  top: var(--route-y);
  left: var(--route-x);
  width: var(--route-length);
  height: 1px;
  background: var(--history-route);
  box-shadow: 0 0 10px rgb(225 185 105 / 0.12);
  opacity: 0.56;
  transform: rotate(var(--route-angle));
  transform-origin: 0 50%;
}

.history-route-segment.is-later-era {
  background: var(--history-route-blue);
  box-shadow: 0 0 10px rgb(113 164 183 / 0.1);
}

.chapter-index,
.history-chapter,
.monetary-essay {
  position: relative;
  z-index: 1;
}

.chapter-index {
  top: 82px;
  width: min(100% - 48px, 790px);
  min-height: 66px;
  margin: 44px auto 0;
  padding: 11px 18px 10px;
  border: 1px solid rgb(232 225 208 / 0.16);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 124px repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  background: rgb(10 12 19 / 0.88);
  box-shadow: 0 20px 64px rgb(0 0 0 / 0.24);
  backdrop-filter: blur(18px);
}

.chapter-index::before {
  content: "TIME / 1976—2025";
  align-self: center;
  margin: 0;
  color: var(--history-faint);
  font: 500 8px/1.4 var(--history-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-index::after {
  right: 18px;
  bottom: 0;
  left: 18px;
  width: var(--history-progress);
  max-width: calc(100% - 36px);
  height: 1px;
  background: var(--history-atlas-gold);
  box-shadow: 0 0 10px rgb(225 185 105 / 0.3);
}

.chapter-index a {
  position: relative;
  min-height: 44px;
  padding: 25px 3px 0;
  display: grid;
  place-items: end center;
  color: var(--history-faint);
  text-align: center;
}

.chapter-index a::before {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgb(238 233 222 / 0.58);
  border-radius: 50%;
  background: var(--history-bg);
  content: "";
  transform: translateX(-50%);
}

.chapter-index a:not(:last-child)::after {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: rgb(232 225 208 / 0.18);
  content: "";
}

.chapter-index a[aria-current="location"]::before {
  border-color: #f3d48f;
  background: #edc56f;
  box-shadow: 0 0 0 4px var(--history-bg), 0 0 18px rgb(232 180 76 / 0.62);
}

.chapter-index b,
.chapter-index a[aria-current="location"] b {
  color: inherit;
  font: 500 9px/1 var(--history-mono);
  letter-spacing: 0.08em;
}

.chapter-index a[aria-current="location"] {
  color: #f1d79f;
}

.chapter-index span {
  display: none;
}

.history-chapter {
  --chapter-star-x: 24px;
  width: min(100% - 48px, 1180px);
  padding-top: clamp(104px, 11vw, 158px);
  scroll-margin-top: 176px;
}

#launch { --chapter-star-x: 82px; }
#infrastructure { --chapter-star-x: 42px; }
#governance { --chapter-star-x: 96px; }
#institutions { --chapter-star-x: 58px; }

.history-chapter::before,
.history-chapter::after {
  content: none;
}

.chapter-opener {
  min-height: 360px;
  padding: 58px 0 94px;
  border: 0;
  grid-template-columns: minmax(180px, 220px) minmax(0, 650px) minmax(180px, 220px);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  background: transparent;
}

.chapter-register {
  position: relative;
  min-height: 210px;
  padding: 36px 0 0 calc(var(--chapter-star-x) + 27px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.chapter-star,
.event-star {
  position: absolute;
  z-index: 3;
  display: block;
  margin: 0;
  width: 6px;
  height: 6px;
  border: 1px solid #fff8e8;
  border-radius: 50%;
  background: var(--history-atlas-gold);
  box-shadow: 0 0 0 4px rgb(12 14 22 / 0.94), 0 0 18px rgb(225 185 105 / 0.68), 0 0 46px rgb(225 185 105 / 0.2);
  pointer-events: none;
}

.chapter-star {
  top: 26px;
  left: var(--chapter-star-x);
  width: 8px;
  height: 8px;
}

.chapter-star::before,
.chapter-star::after,
.event-star::before,
.event-star::after {
  position: absolute;
  background: rgb(225 185 105 / 0.46);
  content: "";
}

.chapter-star::before,
.event-star::before {
  top: -13px;
  left: 50%;
  width: 1px;
  height: 32px;
  transform: translateX(-50%);
}

.chapter-star::after,
.event-star::after {
  top: 50%;
  left: -13px;
  width: 32px;
  height: 1px;
  transform: translateY(-50%);
}

.chapter-degree {
  display: block;
  margin: 0 0 5px;
  color: var(--history-paper);
  font: 400 58px/0.88 "Iowan Old Style", Baskerville, Georgia, serif;
  letter-spacing: -0.055em;
  text-shadow: 0 0 28px rgb(220 171 75 / 0.15);
}

.chapter-degree sup {
  margin-left: 0.08em;
  color: var(--history-atlas-gold);
  font: 500 0.3em/1 var(--history-sans);
  vertical-align: top;
}

.chapter-register .chapter-number,
.chapter-reference,
.chapter-register small {
  color: var(--history-faint);
  font: 500 8px/1.35 var(--history-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-register code {
  margin-top: 3px;
  color: var(--history-amber);
  font: 500 9px/1.5 var(--history-mono);
  letter-spacing: 0.05em;
}

.chapter-copy {
  grid-column: 2 / 4;
  max-width: 820px;
}

.chapter-period {
  margin-bottom: 14px;
  color: var(--history-atlas-gold-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chapter-period::before {
  content: "COORDINATES / ";
  color: var(--history-faint);
}

.chapter-opener h2 {
  max-width: 780px;
  color: var(--history-paper);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.chapter-summary {
  grid-column: 2 / 4;
  max-width: 650px;
  margin: -56px 0 0;
  padding: 0;
  border: 0;
  color: rgb(222 220 216 / 0.68);
  font-size: 15px;
  line-height: 1.75;
}

.block-header-fields {
  position: absolute;
  bottom: 42px;
  left: 0;
  width: 220px;
  margin: 0;
  padding: 0;
  border: 0;
  color: rgb(218 213 203 / 0.34);
  font-size: 8px;
  line-height: 1.65;
  white-space: normal;
}

.history-entry {
  --star-x: 14px;
  min-height: 260px;
  padding: clamp(70px, 7vw, 96px) 0 clamp(86px, 9vw, 126px);
  border: 0;
  grid-template-columns: minmax(180px, 220px) minmax(0, 650px) minmax(180px, 220px);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
  scroll-margin-top: 176px;
}

.history-chapter > .history-entry:nth-of-type(6n + 1) { --star-x: 12px; }
.history-chapter > .history-entry:nth-of-type(6n + 2) { --star-x: 68px; }
.history-chapter > .history-entry:nth-of-type(6n + 3) { --star-x: 30px; }
.history-chapter > .history-entry:nth-of-type(6n + 4) { --star-x: 82px; }
.history-chapter > .history-entry:nth-of-type(6n + 5) { --star-x: 46px; }
.history-chapter > .history-entry:nth-of-type(6n) { --star-x: 72px; }

.history-entry::before,
.history-entry::after,
.entry-date::before,
.entry-date::after,
.entry-body::before {
  content: none;
}

.entry-date {
  position: relative;
  grid-column: 1;
  min-height: 148px;
  padding: 50px 0 0 calc(var(--star-x) + 27px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--history-paper);
}

.event-star {
  top: 18px;
  left: var(--star-x);
}

.history-entry-major .event-star {
  top: 15px;
  width: 9px;
  height: 9px;
  border-color: #fffdf2;
  background: #f4d590;
  box-shadow: 0 0 0 5px rgb(12 14 22 / 0.94), 0 0 24px rgb(225 185 105 / 0.86), 0 0 62px rgb(225 185 105 / 0.28);
}

.history-entry[data-history-active="true"] .event-star {
  border-color: #fffdf2;
  background: #fff8e8;
  box-shadow: 0 0 0 5px rgb(12 14 22 / 0.94), 0 0 24px rgb(225 185 105 / 0.78), 0 0 64px rgb(225 185 105 / 0.24);
}

.history-entry:target .event-star {
  background: var(--history-amber);
  box-shadow: 0 0 0 5px rgb(12 14 22 / 0.94), 0 0 25px rgb(247 147 26 / 0.78), 0 0 70px rgb(247 147 26 / 0.24);
}

.entry-date time {
  margin: 0 0 9px;
  color: var(--history-paper);
  font: 400 13px/1.5 var(--history-mono);
}

.entry-date span:not(.event-star) {
  margin-top: 5px;
}

.entry-date .entry-record {
  color: var(--history-atlas-gold-soft);
}

.entry-date .entry-plane {
  color: rgb(238 233 223 / 0.72);
}

.entry-locator {
  margin-top: 9px;
  color: rgb(113 164 183 / 0.82);
  font-size: 9px;
  line-height: 1.55;
}

.entry-body {
  z-index: 1;
  grid-column: 2;
  max-width: 650px;
}

.entry-label {
  color: var(--history-atlas-gold-soft);
}

.entry-label::before {
  content: "OBSERVATION / ";
  color: var(--history-faint);
}

.entry-body h3 {
  color: var(--history-paper);
  font-size: clamp(31px, 3.3vw, 43px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.history-entry-major .entry-body h3 {
  font-size: clamp(43px, 5vw, 62px);
  line-height: 1.02;
}

.entry-body > p:not(.entry-label),
.history-entry-major .entry-body > p:not(.entry-label) {
  color: rgb(222 220 216 / 0.76);
  font-size: 16px;
  line-height: 1.82;
}

.entry-note {
  grid-column: 3;
  margin-top: 48px;
  padding: 0;
  color: rgb(218 213 203 / 0.58);
}

.entry-note::before {
  content: none;
}

.entry-note > strong,
.entry-note > div > strong {
  color: var(--history-atlas-gold-soft);
  font: 500 8px/1.4 var(--history-mono);
  letter-spacing: 0.14em;
}

.entry-note p {
  font-size: 12px;
  line-height: 1.68;
}

.entry-citations {
  border-top-color: rgb(232 225 208 / 0.14);
}

.entry-citations a {
  color: rgb(218 213 203 / 0.48);
}

.archive-figure.entry-figure,
.evidence-plate.entry-figure {
  grid-column: 2 / 4;
}

.technical-interlude,
.chapter-synthesis {
  margin-left: calc(220px + clamp(28px, 4vw, 54px));
  border-top: 0;
  border-bottom: 0;
}

.technical-interlude {
  padding-top: 54px;
  padding-bottom: 62px;
}

.chapter-synthesis {
  position: relative;
  padding-top: 38px;
}

.chapter-synthesis::before {
  position: absolute;
  top: 42px;
  left: -25px;
  color: var(--history-atlas-gold);
  content: "✦";
  font-size: 12px;
  text-shadow: 0 0 15px rgb(225 185 105 / 0.55);
}

.chapter-synthesis span {
  color: var(--history-atlas-gold-soft);
}

.monetary-essay {
  width: min(100% - 48px, 1180px);
  border-top: 0;
  border-bottom: 0;
}

.history-constellation .essay-header {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
}

.history-constellation .monetary-code,
.history-constellation .data-figure,
.history-constellation .monetary-explanation {
  margin-left: calc(220px + clamp(28px, 4vw, 54px));
}

/* Key-date field: a compact answer surface, plotted like an Atlas route. */
.history-reference {
  position: relative;
  width: min(100% - 40px, 1080px);
  margin: clamp(72px, 8vw, 104px) auto clamp(92px, 10vw, 132px);
  overflow: hidden;
  scroll-margin-top: 88px;
}

.history-reference::after {
  position: absolute;
  z-index: -1;
  top: 42px;
  right: -10px;
  color: rgb(225 185 105 / 0.035);
  content: "₿";
  font: 400 clamp(180px, 26vw, 310px)/0.8 "Iowan Old Style", Baskerville, Georgia, serif;
  pointer-events: none;
}

.reference-heading {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.reference-heading .section-marker {
  padding-top: 8px;
}

.reference-heading h2 {
  max-width: 780px;
  margin: 0;
  color: var(--history-paper);
  font: 400 clamp(38px, 5vw, 58px)/1.02 var(--history-sans);
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.reference-heading div > p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--history-muted);
  font-size: 14px;
  line-height: 1.72;
  text-wrap: pretty;
}

.reference-trajectory {
  position: relative;
  margin: clamp(54px, 7vw, 78px) 0 0 144px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 28px);
  list-style: none;
}

.reference-trajectory::before {
  position: absolute;
  top: 13px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgb(225 185 105 / 0.62), rgb(225 185 105 / 0.28) 44%, rgb(113 164 183 / 0.44));
  box-shadow: 0 0 15px rgb(225 185 105 / 0.12);
  content: "";
}

.reference-trajectory li {
  position: relative;
  min-width: 0;
}

.reference-trajectory a {
  min-height: 180px;
  padding: 48px 6px 0 0;
  display: block;
  text-decoration: none;
}

.reference-node {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid #fff9e9;
  border-radius: 50%;
  background: var(--history-atlas-gold);
  box-shadow: 0 0 0 5px rgb(12 14 22 / 0.96), 0 0 22px rgb(225 185 105 / 0.62);
}

.reference-node::before,
.reference-node::after {
  position: absolute;
  background: rgb(225 185 105 / 0.42);
  content: "";
}

.reference-node::before {
  top: -10px;
  left: 3px;
  width: 1px;
  height: 27px;
}

.reference-node::after {
  top: 3px;
  left: -10px;
  width: 27px;
  height: 1px;
}

.reference-trajectory li:nth-child(n + 4) .reference-node {
  border-color: #d8edf1;
  background: var(--history-atlas-blue);
  box-shadow: 0 0 0 5px rgb(12 14 22 / 0.96), 0 0 22px rgb(113 164 183 / 0.52);
}

.reference-trajectory li:nth-child(n + 4) .reference-node::before,
.reference-trajectory li:nth-child(n + 4) .reference-node::after {
  background: rgb(113 164 183 / 0.42);
}

.reference-trajectory time,
.reference-trajectory small {
  display: block;
  font: 500 8px/1.45 var(--history-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reference-trajectory time {
  color: var(--history-atlas-gold-soft);
}

.reference-trajectory li:nth-child(n + 4) time {
  color: rgb(137 186 201 / 0.9);
}

.reference-trajectory strong {
  max-width: 145px;
  margin-top: 10px;
  display: block;
  color: var(--history-paper);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.38;
}

.reference-trajectory small {
  max-width: 145px;
  margin-top: 8px;
  color: var(--history-faint);
  font-weight: 400;
  letter-spacing: 0.025em;
  text-transform: none;
}

.reference-trajectory a:hover strong,
.reference-trajectory a:focus-visible strong {
  color: var(--history-amber);
}

.history-reference > footer {
  margin: 18px 0 0 144px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  color: var(--history-faint);
  font: 500 8px/1.5 var(--history-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-reference > footer a {
  color: var(--history-muted);
  text-decoration: none;
}

.history-reference > footer b {
  margin-left: 5px;
  color: var(--history-amber);
}

/* Accession-style citation record: metadata, not a perimeter card. */
.history-citation {
  position: relative;
  margin: clamp(58px, 7vw, 82px) 0 0;
  padding: 34px 0 28px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(210px, 0.48fr);
  gap: 36px;
  background:
    radial-gradient(circle at 8% 35%, rgb(225 185 105 / 0.09), transparent 17%),
    linear-gradient(90deg, rgb(238 233 223 / 0.025), transparent 70%);
}

.history-citation::before {
  position: absolute;
  top: 0;
  left: 216px;
  width: min(220px, 30%);
  height: 1px;
  background: linear-gradient(90deg, var(--history-atlas-gold), transparent);
  content: "";
}

.citation-coordinate {
  position: relative;
  min-height: 154px;
  padding: 42px 0 0 48px;
  color: var(--history-faint);
  font: 500 8px/1.4 var(--history-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.citation-coordinate::before {
  position: absolute;
  top: 26px;
  left: 10px;
  width: 8px;
  height: 8px;
  border: 1px solid #fff9e9;
  border-radius: 50%;
  background: var(--history-atlas-gold);
  box-shadow: 0 0 0 5px var(--history-bg), 0 0 24px rgb(225 185 105 / 0.7);
  content: "";
}

.citation-coordinate b {
  margin: 12px 0 8px;
  display: block;
  color: var(--history-paper);
  font: 400 48px/0.9 "Iowan Old Style", Baskerville, Georgia, serif;
  letter-spacing: -0.05em;
}

.citation-coordinate sup {
  color: var(--history-atlas-gold);
  font: 500 0.3em/1 var(--history-sans);
  vertical-align: top;
}

.citation-coordinate small {
  font: inherit;
}

.citation-copy h3 {
  max-width: 560px;
  margin: 13px 0 0;
  color: var(--history-paper);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.citation-copy blockquote {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--history-muted);
  font: 400 11px/1.7 var(--history-mono);
}

.citation-copy nav {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 19px;
}

.citation-copy nav a {
  color: var(--history-atlas-gold-soft);
  font: 500 9px/1.45 var(--history-mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.history-citation dl {
  margin: 0;
  padding: 2px 0 0;
}

.history-citation dl div {
  padding: 11px 0 13px;
  border-bottom: 1px solid var(--history-rule);
}

.history-citation dt,
.history-citation dd {
  margin: 0;
}

.history-citation dt {
  color: var(--history-faint);
  font: 500 8px/1.4 var(--history-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-citation dd {
  margin-top: 5px;
  color: var(--history-text);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .reference-trajectory,
  .history-reference > footer {
    margin-left: 0;
  }

  .reference-trajectory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 38px;
  }

  .reference-trajectory::before {
    right: auto;
    width: 100%;
  }

  .reference-trajectory::after {
    position: absolute;
    top: 231px;
    right: 0;
    left: 0;
    height: 1px;
    background: rgb(113 164 183 / 0.4);
    content: "";
  }

  .history-citation {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 30px;
  }

  .history-citation::before {
    left: 180px;
  }

  .history-citation dl {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .chapter-opener,
  .history-entry {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 30px;
  }

  .chapter-copy,
  .chapter-summary,
  .entry-body,
  .entry-note,
  .archive-figure.entry-figure,
  .evidence-plate.entry-figure {
    grid-column: 2;
  }

  .chapter-summary {
    margin-top: -42px;
  }

  .block-header-fields {
    width: 145px;
  }

  .history-chapter > .history-entry {
    --star-x: 24px;
  }

  .entry-date {
    grid-column: 1;
    padding-left: calc(var(--star-x) + 25px);
  }

  .entry-note {
    margin-top: 0;
  }

  .technical-interlude,
  .chapter-synthesis,
  .history-constellation .monetary-code,
  .history-constellation .data-figure,
  .history-constellation .monetary-explanation {
    margin-left: 180px;
  }

  .history-constellation .essay-header {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 680px) {
  body.history-page {
    background-size: auto 100svh;
    background-repeat: repeat-y;
    background-attachment: scroll;
  }

  .history-topbar {
    top: 8px;
    width: calc(100% - 24px);
    padding: 0 14px;
  }

  .reference-heading {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .reference-heading .section-marker {
    padding-top: 0;
  }

  .reference-trajectory {
    margin-top: 44px;
    padding-left: 28px;
    display: block;
  }

  .reference-trajectory::before {
    top: 4px;
    bottom: 8px;
    left: 4px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgb(225 185 105 / 0.62), rgb(113 164 183 / 0.44));
  }

  .reference-trajectory::after {
    content: none;
  }

  .reference-trajectory a {
    min-height: 0;
    padding: 0 0 34px;
  }

  .reference-node {
    top: 3px;
    left: -28px;
  }

  .reference-trajectory strong,
  .reference-trajectory small {
    max-width: none;
  }

  .history-reference > footer {
    margin-top: 5px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .history-citation {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .history-citation::before {
    left: 0;
  }

  .citation-coordinate {
    min-height: 112px;
    padding-top: 25px;
  }

  .history-citation dl {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .chapter-index {
    position: relative;
    top: auto;
    width: calc(100% - 32px);
    min-height: 88px;
    margin-top: 32px;
    padding: 12px 13px 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .chapter-index::before {
    grid-column: 1 / -1;
    margin-bottom: 3px;
    text-align: center;
  }

  .chapter-index::after {
    right: 13px;
    left: 13px;
    width: var(--history-progress);
    max-width: calc(100% - 26px);
  }

  .history-chapter {
    width: calc(100% - 36px);
    padding-left: 30px;
    scroll-margin-top: 74px;
  }

  .chapter-opener,
  .history-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .chapter-opener {
    min-height: 0;
    padding: 48px 0 72px;
  }

  .chapter-register {
    min-height: 150px;
    padding: 31px 0 0;
  }

  .chapter-star,
  .event-star,
  .history-chapter > .history-entry .event-star {
    left: -25px;
  }

  .chapter-copy,
  .chapter-summary,
  .entry-date,
  .entry-body,
  .entry-note,
  .archive-figure.entry-figure,
  .evidence-plate.entry-figure {
    grid-column: 1;
  }

  .chapter-opener h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .chapter-summary {
    margin: 0;
  }

  .block-header-fields {
    display: none;
  }

  .history-entry {
    padding: 58px 0 82px;
    scroll-margin-top: 74px;
  }

  .entry-date {
    min-height: 118px;
    padding: 44px 0 0;
    display: flex;
    gap: 0;
    text-align: left;
  }

  .entry-date time,
  .entry-date .entry-record,
  .entry-date .entry-plane,
  .entry-locator {
    text-align: left;
  }

  .entry-body h3,
  .history-entry-major .entry-body h3 {
    font-size: clamp(33px, 9.5vw, 46px);
  }

  .entry-note {
    margin-top: 0;
  }

  .technical-interlude,
  .chapter-synthesis,
  .history-constellation .monetary-code,
  .history-constellation .data-figure,
  .history-constellation .monetary-explanation {
    margin-left: 0;
  }

  .history-constellation .essay-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .history-route-segment {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .chapter-index::after {
    transition: none;
  }
}

@media (forced-colors: active) {
  .history-route-layer {
    display: none;
  }

  .chapter-star,
  .event-star {
    border-color: Highlight;
    background: Highlight;
    box-shadow: none;
  }

  .history-chapter::before,
  .supply-row i,
  .subsidy-step-current {
    border-color: CanvasText;
    background: CanvasText;
  }

  .history-page :is(a, button, summary):focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  html,
  body.history-page {
    color: #000;
    background: #fff;
  }

  .history-topbar,
  .chapter-index,
  .history-route-layer,
  .chapter-star,
  .chapter-degree,
  .event-star,
  .history-footer,
  .history-outro {
    display: none !important;
  }

  .history-masthead,
  .history-chapter,
  .monetary-essay,
  .open-questions,
  .history-sources {
    width: 100%;
  }

  .history-chapter {
    padding-left: 0;
  }

  .chapter-opener,
  .history-entry,
  .essay-header {
    display: block;
  }

  .chapter-register,
  .entry-date {
    min-height: 0;
    padding: 0;
  }

  .chapter-summary {
    margin-top: 16px;
  }

  .entry-note,
  .technical-interlude,
  .chapter-synthesis,
  .history-constellation .monetary-code,
  .history-constellation .data-figure,
  .history-constellation .monetary-explanation {
    margin-left: 0;
  }

  .history-entry::before,
  .entry-date::after {
    display: none;
  }

  .block-header-fields {
    display: none;
  }

  .history-entry,
  .technical-interlude,
  .archive-figure,
  .chapter-figure,
  .data-figure,
  .evidence-plate {
    break-inside: avoid;
  }

  .history-page a {
    color: #000;
  }
}
