/* A single page grid keeps headings, navigation and content on the same rails. */
:root {
  --page-gutter: clamp(20px, 5vw, 64px);
  --content-width: 1240px;
  --section-space: clamp(28px, 4vw, 48px);
}
html { scrollbar-gutter: stable; scroll-behavior: auto; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }
.container { width: min(var(--content-width), calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }
.container .container { width: 100%; margin-inline: 0; }
#main { overflow-anchor: none; }
.page-hero { min-height: 0; padding: 132px 0 40px; }
.page-hero .breadcrumb { display: block; width: fit-content; margin: 0 0 22px; }
.page-hero .section-kicker { display: block; margin: 0; }
.page-hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.14; margin: 16px 0 20px; letter-spacing: -.02em; }
.page-hero p { max-width: 68ch; font-size: 20px; line-height: 1.55; }
.reference-shell { min-width: 0; }
.reference-shell > .canon-nav {
  display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0;
  width: 100%; margin: 0 0 var(--section-space); padding: 6px 0;
  border-block: 1px solid var(--line); overscroll-behavior-x: contain;
}
.reference-shell > .canon-nav a {
  display: flex; align-items: center; flex: 0 0 auto;
  padding: 13px 18px; min-height: 52px; line-height: 1.35;
  font-size: 18px; white-space: nowrap;
}
.reference-body, .reference-body > *, .editorial-grid > *, .concept-grid > *, .fact-grid > * { min-width: 0; }
.reference-body > .chapter-body { padding-top: 0; }
.reference-body > .canon-section { margin: 0; }
.reference-body > .chapter-body + .canon-section { margin-top: var(--section-space); padding-top: 32px; border-top: 1px solid var(--line); }
.reference-body > .canon-section > h2:first-child,
.reference-body .chapter-body > .prose-block:first-child h2 { margin-top: 0; }
.reference-body h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.2; }
.reference-body .prose-block { margin-bottom: 0; }
.reference-body .prose-block p { font-size: 20px; line-height: 1.65; }
.reference-body > .canon-section > p { max-width: 72ch; margin-bottom: 28px; }
.reference-body .section-head { margin-bottom: 24px; }
.reference-body .archive-search { display: block; min-height: 48px; }
.editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.editorial-grid.compact { gap: 40px; margin-top: var(--section-space); }
.concept-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.concept-grid .text-card { height: 100%; }
.fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-block: 32px; padding-block: 26px; }
.fact-grid > div { padding-inline: 24px; border-left: 1px solid var(--line); }
.fact-grid > div:first-child { padding-left: 0; border-left: 0; }
.fact-grid strong { font-size: clamp(25px, 2.4vw, 34px); }
.fact-grid span { margin-top: 12px; line-height: 1.45; }
.reading-prose, .reference-card, .reference-card > div { overflow-wrap: break-word; }
.dossier .dossier-heading h2 { text-wrap: pretty; }
.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.story-card { display: flex; flex-direction: column; }
.story-card > div { flex: 1; }
.story-card > img { width: 100%; aspect-ratio: 1.8; object-fit: cover; }
.sample-banner { margin-top: 0; margin-bottom: 28px; }
.club-toolbar { flex-wrap: wrap; gap: 18px 24px; margin-block: 0 24px; }
.club-toolbar > p { margin: 0; align-self: flex-end; padding-bottom: 12px; }
.club-toolbar .field { min-width: min(280px, 100%); margin: 0; }
.club-list { display: grid; gap: 20px; }
.club-list .club-card { margin: 0; }
.news-list { max-width: none; }
.resource-list article { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; }
.resource-list article > * { min-width: 0; }
.page-end { gap: 24px; align-items: center; }
.page-end h3 { margin-block: 12px 0; }
.page-end .button { flex-shrink: 0; }
.char-tabs { overflow-anchor: none; }
.char-form > :first-child { margin-top: 0; }
.char-form .field-grid { align-items: start; }
.char-form .wizard-nav { align-items: center; }
.char-top > div:first-child h1 { text-wrap: pretty; }
.site-footer { padding-inline: var(--page-gutter); }
.site-footer > div { align-items: center; justify-content: center; }
@media (max-width: 1050px) {
  .page-hero { padding-top: 116px; }
  .editorial-grid, .editorial-grid.compact { gap: 28px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concept-grid { gap: 18px; }
}
@media (max-width: 820px) {
  .editorial-grid, .editorial-grid.compact { grid-template-columns: minmax(0, 1fr); }
  .concept-grid { grid-template-columns: minmax(0, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .fact-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .reference-shell > .canon-nav a { padding-inline: 16px; font-size: 17px; }
}
@media (max-width: 600px) {
  :root { --page-gutter: 20px; }
  .page-hero { padding: 110px 0 30px; }
  .page-hero .breadcrumb { margin-bottom: 18px; }
  .page-hero h1 { font-size: 38px; line-height: 1.16; }
  .page-hero p, .reference-body .prose-block p { font-size: 19px; }
  .reference-body h2 { font-size: 30px; }
  .reference-body > .chapter-body + .canon-section { padding-top: 26px; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .fact-grid > div { padding-inline: 16px; }
  .fact-grid strong { font-size: 26px; }
  .fact-grid span { font-size: 16px; }
  .club-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .club-toolbar .field { width: 100%; }
  .club-toolbar > p { align-self: flex-start; padding-bottom: 0; }
  .resource-list article { grid-template-columns: 38px minmax(0, 1fr); gap: 16px; }
  .resource-list article > .button { grid-column: 2; justify-self: start; }
  .page-end { align-items: flex-start; }
}
