.history-page {
  max-width: 980px;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 68ch) 220px;
  gap: var(--space-10);
  align-items: start;
}

.history-short .history-layout {
  display: block;
  max-width: 68ch;
}

.history-prose {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.82;
  color: var(--ink-2);
}

.history-prose p + p {
  margin-top: var(--space-5);
}

.history-prose section {
  scroll-margin-top: calc(var(--header-h) + var(--space-6));
}

.history-prose section + section {
  margin-top: var(--space-10);
}

.history-prose h2,
.history-sources h2 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
}

.history-prose h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.history-prose em {
  color: var(--ink);
}

.history-prose sup {
  font-family: var(--font-body);
  font-size: 0.65em;
  line-height: 0;
  margin-left: 0.12em;
}

.history-prose sup + sup {
  margin-left: 0.08em;
}

.history-prose sup a {
  font-weight: 700;
}

.history-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--space-5));
  max-height: calc(100vh - var(--header-h) - var(--space-10));
  overflow-y: auto;
  padding: var(--space-4);
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.history-toc strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}

.history-toc ol {
  list-style: none;
}

.history-toc li + li {
  margin-top: var(--space-2);
}

.history-toc a {
  display: block;
  font-size: var(--text-xs);
  line-height: 1.35;
  color: var(--ink-2);
}

.history-short-link {
  display: inline-block;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 700;
}

.history-sources {
  max-width: 76ch;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
}

.history-sources h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.history-sources ol {
  padding-left: 1.4rem;
  color: var(--ink-3);
}

.history-sources li {
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
  padding-left: var(--space-1);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.history-sources li + li {
  margin-top: var(--space-2);
}

.history-cta {
  max-width: 68ch;
  margin-top: var(--space-10);
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--teal-light), var(--bg-raised));
  border: 1px solid var(--teal);
  border-radius: var(--radius-lg);
}

.history-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.history-cta p {
  color: var(--ink-2);
}

.history-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-4);
  font-weight: 700;
}

@media (max-width: 820px) {
  .history-layout {
    display: block;
  }

  .history-toc {
    position: static;
    max-height: none;
    margin-bottom: var(--space-8);
  }

  .history-toc ol {
    columns: 2;
    column-gap: var(--space-5);
  }
}

@media (max-width: 520px) {
  .history-toc ol {
    columns: 1;
  }

  .history-prose {
    font-size: 1rem;
  }
}
