/* Historical Notion document; all typography inherits the shared site fonts. */
.historical-document {
  padding-bottom: 8px;
}

.historical-document .history-document-header {
  max-width: 840px;
  margin: 32px 0 48px;
}

.historical-document .history-document-header h1 {
  margin-top: 16px;
  font-size: 44px;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.historical-document .history-context {
  max-width: 800px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.historical-document .history-date-list {
  max-width: 800px;
  margin: 28px 0 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.historical-document .history-date-list > div {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 8px 24px;
  align-items: baseline;
}

.historical-document .history-date-list > div + div {
  margin-top: 10px;
}

.historical-document .history-date-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.historical-document .history-date-list dd {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0;
}

.historical-document .history-original-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.historical-document .history-category {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.historical-document .history-category > h2 {
  max-width: 840px;
  font-size: 32px;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.historical-document .history-category-intro {
  max-width: 800px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.historical-document .history-category > h2 > span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}

.historical-document .history-section {
  max-width: 840px;
  margin-top: 48px;
}

.historical-document .history-section > h3 {
  font-size: 24px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.historical-document .history-category > h2 > span,
.historical-document .history-original-title {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
}

.historical-document .history-source-identity {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
}

.historical-document .history-category-continuous {
  margin-top: 40px;
}

.historical-document .history-section > h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.historical-document .history-section-text {
  max-width: 800px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.95;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.historical-document .history-image {
  margin: 26px 0 30px;
  max-width: 840px;
}

.historical-document .history-image-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
}

.historical-document .history-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 640px;
  object-fit: contain;
}

.historical-document .history-image figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.historical-document .history-image-context,
.historical-document .history-image-credit {
  display: block;
}

.historical-document .history-image figcaption p {
  margin-top: 7px;
}

.historical-document .history-image figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.historical-document .history-section-text h4,
.historical-document .history-section-text h3 {
  margin: 32px 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: -.025em;
}

.historical-document .history-section-text p + p,
.historical-document .history-category-intro p + p {
  margin-top: 18px;
}

.historical-document .history-section-text ul,
.historical-document .history-section-text ol {
  margin: 18px 0;
  padding-left: 22px;
}

.historical-document .history-section-text li + li {
  margin-top: 10px;
}

.historical-document .history-comparison {
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.historical-document .history-section-text table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.8;
}

.historical-document .history-section-text th,
.historical-document .history-section-text td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.historical-document .history-source-note {
  max-width: 800px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  word-break: keep-all;
}

@media (max-width: 760px) {
  .historical-document .history-document-header {
    margin: 24px 0 36px;
  }

  .historical-document .history-document-header h1 {
    font-size: 34px;
  }

  .historical-document .history-context {
    margin-top: 20px;
    font-size: 15px;
  }

  .historical-document .history-date-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .historical-document .history-date-list > div + div {
    margin-top: 14px;
  }

  .historical-document .history-category {
    margin-top: 48px;
    padding-top: 28px;
  }

  .historical-document .history-category > h2 {
    font-size: 27px;
  }

  .historical-document .history-category-intro {
    font-size: 16px;
  }

  .historical-document .history-section {
    margin-top: 36px;
  }

  .historical-document .history-section > h3,
  .historical-document .history-section > h2 {
    font-size: 22px;
  }

  .historical-document .history-section-text {
    margin-top: 18px;
    font-size: 15px;
  }

  .historical-document .history-image {
    margin: 22px 0 26px;
  }

  .historical-document .history-image img {
    max-height: 480px;
  }
}
