.history-main { max-width: 930px; padding: 0 clamp(17px, 5vw, 60px) 48px; margin: 0 auto; }
.history-head { padding: clamp(35px, 6vw, 70px) 0 27px; }
.history-head .edition, .history-section .kind { color: #665224; font-size: .83rem; font-weight: 700; letter-spacing: .035em; }
.history-head h1 { margin: 8px 0 17px; color: var(--forest); font: 800 clamp(2.25rem, 6vw, 3.9rem)/1.18 var(--serif); }
.history-head p:not(.edition), .history-section p, .source-types dd { line-height: 1.9; overflow-wrap: anywhere; }
.return-links, .history-contents { display: flex; flex-wrap: wrap; gap: 7px 17px; }
.return-links { margin-top: 17px; }
.return-links a, .history-contents a { display: inline-flex; align-items: center; min-height: 40px; font-size: .9rem; font-weight: 700; }
.history-contents { padding: 9px 0; border-block: 1px solid var(--line); }
.history-contents a { text-decoration: none; }
.history-contents a:hover, .return-links a:hover { text-decoration: underline; }
.history-section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.history-section h2 { margin: 0 0 15px; color: var(--forest); font: 750 clamp(1.6rem, 4vw, 2.25rem)/1.4 var(--serif); }
.history-section h3 { font-size: 1.18rem; color: var(--ink); line-height: 1.55; margin: 24px 0 7px; }
.history-section h3 time { display: inline-block; color: var(--forest); }
.history-section p + p { margin-top: 8px; }
.history-section .ref, .source-types .ref { font-size: .89rem; color: var(--muted); margin-top: 9px; line-height: 1.7; }
.history-section code { font: 650 .92em/1.5 Consolas, "Courier New", monospace; white-space: nowrap; }
.compare-card { background: var(--paper); padding: 10px clamp(8px, 2.5vw, 19px); margin: 15px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-card table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
.compare-card caption { font-weight: 700; color: var(--forest); text-align: left; margin: 4px 0 6px; }
.compare-card th, .compare-card td { text-align: left; padding: 8px 4px; border-top: 1px solid var(--line); }
.compare-card thead th { color: var(--muted); font-size: .88em; }
.compare-card td { white-space: nowrap; }
.example, .handoff-grid > div { border-left: 3px solid #88703d; background: #eeebdd; padding: 12px 16px; margin: 16px 0; }
.handoff-grid > div > h3 { margin: 0 0 5px; font-size: 1.1rem; }
.example p { margin-top: 5px; }
.source-types { margin: 0; }
.source-types dt { margin-top: 19px; color: var(--forest); font-weight: 750; }
.source-types dd { margin: 3px 0 0; }
.archive-files { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; list-style: none; padding: 0; }
.archive-files a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); }
@media(max-width: 540px) {
  .history-main { padding-inline: 17px; }
  .history-head { padding-top: 33px; }
  .history-head p:not(.edition), .history-section p, .source-types dd { line-height: 1.82; }
  .history-section { padding: 25px 0; }
  .history-contents { gap: 0 15px; }
  .compare-card table { font-size: .84rem; }
  .compare-card th, .compare-card td { padding: 7px 2px; }
  .archive-files { grid-template-columns: 1fr; }
}
