/*
 * Chaos Tourist editorial redesign
 *
 * This layer intentionally follows the existing component vocabulary while
 * replacing oversized presentation with a compact, legible reading system.
 * The homepage keeps the only immersive hero. Every interior page prioritizes
 * its working content and every published record reads as one continuous article.
 */

:root {
  --shell: 1260px;
  --reading-width: 720px;
  --compact-section: clamp(42px, 6vw, 72px);
}

html { scroll-padding-top: 126px; }
body {
  padding-bottom: 0;
  font-size: 17px;
  line-height: 1.65;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.04; }
h3 { line-height: 1.25; }
.section { padding-block: var(--compact-section); }
.eyebrow,
.section-number {
  margin-bottom: 10px;
  font-size: .68rem;
  letter-spacing: .13em;
}
.section-heading { gap: 18px; margin-bottom: 28px; }
.section-heading > p,
.section-heading > div > p:last-child {
  font-size: .88rem;
  line-height: 1.55;
}
.large-copy { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.55; }
.button { min-height: 44px; padding: 9px 16px; font-size: .76rem; }

/* One quiet, useful global header. */
.site-header { height: 64px; }
.site-header__inner { gap: 24px; }
.site-header .brand__logo { height: 28px; }
.site-nav { inset: 64px 0 0; }
.site-nav__primary { gap: 0; }
.site-search {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  margin: 14px 0 5px;
}
.site-search input {
  min-width: 0;
  height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.site-search button {
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--forest-deep);
  background: var(--signal-bright);
  border: 0;
  font-size: 1.15rem;
  cursor: pointer;
}
.site-nav .site-nav__random {
  gap: 6px;
  color: var(--signal-bright);
}
.site-nav__primary a,
.site-nav__account-link,
.site-nav__random,
.account-menu summary { font-size: .92rem; }

.site-footer { padding: 28px 0 18px; }
.site-footer__main { gap: 20px; }
.site-footer__nav { gap: 9px 18px; }
.site-footer__nav a,
.site-footer__nav button { font-size: .72rem; }
.site-footer__base { margin-top: 20px; }

/* Purpose-based consent stays at the bottom edge and never resembles a modal. */
.analytics-consent {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 11px max(16px, calc((100vw - var(--shell)) / 2));
  border: 0;
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 -5px 18px rgba(4,24,13,.12);
}
.analytics-consent strong { font-size: .86rem; }
.analytics-consent p { margin-top: 2px; font-size: .69rem; }
.analytics-consent__actions { flex-wrap: nowrap; }
.analytics-consent__actions .button {
  min-width: 92px;
  min-height: 38px;
  flex: none;
}

/* Compact utility headers across every non-home surface. */
.page-hero,
.page-hero--dark,
.explore-head,
.brief-index-head,
.research-desk-head,
.community-masthead,
.forum-page-head,
.forum-topic-head,
.region-head,
.route-head,
.brief-head,
.research-question-head,
.source-ledger-head {
  padding-block: clamp(24px, 3.5vw, 44px);
}
.page-hero,
.page-hero--dark,
.explore-head,
.brief-index-head,
.research-desk-head,
.community-masthead,
.forum-page-head,
.forum-topic-head,
.region-head,
.route-head,
.brief-head,
.research-question-head,
.source-ledger-head,
.source-record__head {
  color: var(--ink);
  background: var(--paper);
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.brief-head,
.research-question-head { border-bottom: 3px solid var(--category-color, var(--signal)); }
.page-hero .eyebrow,
.page-hero--dark .eyebrow,
.explore-head .eyebrow,
.brief-index-head .eyebrow,
.research-desk-head .eyebrow,
.region-head .eyebrow,
.route-head .eyebrow,
.brief-head .eyebrow,
.research-question-head .eyebrow,
.source-ledger-head .eyebrow,
.source-record__head .eyebrow { color: var(--forest); }
.page-hero h1,
.page-hero--dark h1,
.brief-index-head h1,
.research-desk-head h1,
.region-head h1,
.route-head h1,
.brief-head h1,
.research-question-head h1,
.source-ledger-head h1,
.source-record__head h1 { color: var(--ink); }
.brief-index-head h1 em,
.research-desk-head h1 em,
.source-ledger-head h1 em { color: var(--forest); }
.brief-index-head__grid > div:last-child,
.research-desk-head__grid > div:last-child,
.brief-head__top,
.research-question-head__top { border-color: var(--line); }
.brief-index-head__grid > div:last-child p,
.research-desk-head__grid > div:last-child p,
.brief-head__standfirst > p,
.research-question-head__grid > div:last-child > p,
.explore-head > .shell > p:not(.eyebrow, .explore-location-status),
.region-head > .shell > p:not(.eyebrow),
.route-head > .shell > p:not(.eyebrow),
.route-head__summary,
.source-ledger-head__note,
.source-record__head h1 + p { color: var(--muted); }
.page-hero .back-link,
.page-hero--dark .back-link,
.brief-head__top .back-link,
.research-question-head__top .back-link,
.region-head .back-link,
.route-head .back-link,
.source-ledger-head .back-link,
.source-record__head .back-link { color: var(--forest); }
.region-head .button--quiet,
.route-head .button--quiet,
.explore-head .button--quiet {
  color: var(--forest);
  border-color: var(--forest);
}
.brief-head__top > span,
.research-question-head__top > span { color: var(--muted); }
.brief-head__standfirst dl,
.research-question-head dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: transparent;
  border: 1px solid var(--line);
}
.brief-head__standfirst dl > div,
.research-question-head dl > div {
  min-width: 125px;
  flex: 1 1 125px;
  padding: 9px 11px;
  background: transparent;
  border-right: 1px solid var(--line);
}
.brief-head__standfirst dl > div:last-child { grid-column: auto; border-right: 0; }
.brief-head__standfirst dt,
.research-question-head dt { color: var(--muted); }
.brief-head__standfirst dd,
.research-question-head dd { color: var(--ink); }
.source-record__head { padding-block: clamp(24px, 3.5vw, 44px); }
.source-record__head h1 {
  max-width: 930px;
  margin: 4px 0 10px;
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.page-hero::after,
.community-masthead::after { display: none; }
.page-hero h1,
.explore-head h1,
.brief-index-head h1,
.research-desk-head h1,
.community-masthead h1,
.forum-page-head h1,
.forum-topic-head h1,
.region-head h1,
.route-head h1,
.brief-head h1,
.research-question-head h1,
.source-ledger-head h1 {
  max-width: 930px;
  margin: 4px 0 10px;
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.page-hero__inner > p:last-child,
.explore-head > .shell > p:not(.eyebrow, .explore-location-status),
.community-masthead p:not(.eyebrow),
.region-head > .shell > p:not(.eyebrow),
.route-head__summary {
  max-width: 740px;
  margin-bottom: 0;
  font-size: .94rem;
  line-height: 1.55;
}
.brief-index-head__grid,
.research-desk-head__grid,
.brief-head__grid,
.research-question-head__grid { gap: 26px; }
.brief-index-head__grid > div:last-child,
.research-desk-head__grid > div:last-child { padding-top: 10px; }
.brief-index-head__grid > div:last-child p,
.research-desk-head__grid > div:last-child p { font-size: .78rem; }
.research-question-head__top,
.brief-head__top {
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.research-question-head__grid > div:last-child > p,
.brief-head__standfirst > p {
  margin: 9px 0 14px;
  font-size: 1rem;
}

/* Homepage: one promise, one search, one featured article, three clear paths. */
.home-intro {
  min-height: auto;
  align-items: center;
}
.home-intro__grid {
  gap: clamp(30px, 5vw, 60px);
  padding-block: clamp(38px, 6vw, 68px);
}
.home-intro h1 {
  max-width: 760px;
  margin-bottom: 17px;
  font-size: clamp(3rem, 5.7vw, 5rem);
  line-height: .94;
}
.home-intro .hero__lede {
  max-width: 600px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}
.home-discovery { margin-top: 20px; }
.home-discovery input,
.home-discovery .button { min-height: 50px; }
.home-random-file { box-shadow: 0 18px 48px rgba(0,0,0,.22); }
.home-random-file__body { padding: clamp(22px, 3vw, 30px); }
.home-random-file__date { margin-top: 16px; }
.home-random-file h2 { font-size: clamp(1.8rem, 2.7vw, 2.65rem); }
.home-random-file__actions a { min-height: 48px; }
.home-paths { padding-block: var(--compact-section); }
.home-paths__head { margin-bottom: 24px; }
.home-paths__head h2 { font-size: clamp(2rem, 3.7vw, 3.2rem); }
.home-path {
  min-height: 220px;
  gap: 10px 20px;
  padding: 21px;
}
.home-path strong { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.home-path p { font-size: .76rem; line-height: 1.5; }
.home-path__icon { width: 36px; height: 36px; }
.home-briefs .brief-card,
.home-region-grid > a { min-height: 205px; }
.home-region-grid > a { padding: 20px; }
.home-region-grid strong { font-size: 1.5rem; }
.home-method__grid { gap: 36px; }
.home-method h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.home-method li { padding: 14px 0; }
.home-community h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.home-community__grid { gap: 30px; }

/* Discovery is a workspace, not a second landing page. */
.explore-head { padding-block: 24px 28px; }
.explore-head h1 { font-size: clamp(2.2rem, 3.6vw, 3.15rem); }
.explore-head > .shell > p:not(.eyebrow, .explore-location-status) { margin-bottom: 14px; }
.explore-search { max-width: 760px; }
.explore-search input,
.explore-search .button { min-height: 48px; }
.explore-actions { margin-top: 10px; }
.explore-actions__topics { color: var(--forest); }
.explore-workspace { padding-block: 14px 60px; }
.explore-layout { gap: 16px; padding-top: 15px; }
.explore-filters { padding: 15px; }
.explore-filters form { gap: 13px; }
.explore-grid { gap: 12px; }
.event-card,
.explore-grid .event-card {
  min-height: 280px;
  box-shadow: none;
  clip-path: none;
}
.event-card:hover { transform: translateY(-2px); }
.event-card__topline,
.event-card__foot { padding: 10px 14px; }
.event-card__body { padding: 18px 14px; }
.event-card h3 { font-size: 1.35rem; }
.event-card__body > p:last-child { font-size: .78rem; line-height: 1.5; }
.map--explore { min-height: 380px; height: min(62vh, 600px); }

/* Dedicated map: useful geography with a calm results rail. */
.chaos-map-header { padding-block: 20px 16px; }
.chaos-map-header h1 { font-size: clamp(2.2rem, 3.8vw, 3.15rem); }
.chaos-map-header > p { font-size: .88rem; }
.chaos-map-workspace { gap: 10px; padding-bottom: 55px; }
.chaos-map-filters,
.chaos-map-results { padding: 14px; }
.chaos-map-result__link { padding-block: 11px; }

/* Community surfaces show actual activity and honest empty states compactly. */
.community-masthead { padding-block: 24px; }
.community-masthead h1 { font-size: clamp(2.25rem, 4vw, 3.4rem); }
.forum-home-layout {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 26px;
  padding-block: 30px 60px;
}
.forum-home-main { gap: 40px; }
.forum-row { min-height: 82px; }
.forum-row__about p { line-height: 1.4; }
.forum-home-rail > section { padding: 18px; }
.forum-board,
.forum-topic-table,
.file-forum-table { box-shadow: none; }
.active-file-forums__grid article { padding: 16px; }
.latest-discussions .community-empty,
.forum-topic-table .community-empty { min-height: 0; padding: 24px; }

/* Evidence and research indexes read like compact editorial ledgers. */
.brief-lead-card { min-height: 0; }
.brief-lead-card__body { padding: clamp(22px, 4vw, 36px); }
.brief-lead-card__body h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.brief-card { min-height: 240px; padding: 20px; }
.brief-card h3 { font-size: 1.45rem; }
.brief-method { gap: 30px; }
.research-desk-layout { gap: 38px; }
.research-desk-count { font-size: 3.5rem; }
.research-question-card { gap: 10px; padding: 20px; }
.research-question-card h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.research-contract li { padding: 16px; }

/* A published article is one continuous reference narrative with stable navigation and facts. */
.file-progress { top: 64px; height: 2px; }
.file-hero {
  padding: 15px 0 23px;
  background: var(--cream);
  border-top: 4px solid var(--category-color);
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
}
.file-hero::after { display: none; }
.file-hero__top { margin-bottom: 15px; }
.file-hero__main { display: block; }
.file-hero h1 {
  max-width: 940px;
  margin: 7px 0 11px;
  font-size: clamp(2.25rem, 3.9vw, 3.55rem);
  line-height: 1.02;
}
.file-hero__summary {
  max-width: 780px;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.58;
}
.wiki-inline-edit { margin-top: 7px; }
.file-wiki-bar { top: 64px; }
.file-wiki-bar__inner { min-height: 44px; }
.file-wiki-bar nav a { min-height: 44px; padding-inline: 11px; }
.file-wiki-meta { gap: 7px; }
.file-share-link,
.file-wiki-meta button,
.file-save-link {
  min-height: 30px;
  padding: 4px 8px;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line);
  font-size: .64rem;
}
.file-layout {
  display: grid;
  gap: 32px;
  padding-block: 34px 68px;
}
.file-toc {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.file-toc p {
  flex: none;
  margin: 0 8px 0 0;
  color: var(--ink);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.file-toc a {
  flex: none;
  padding: 3px 7px;
  color: var(--muted);
  font-size: .68rem;
  text-decoration: none;
}
.file-toc a[aria-current="location"] {
  color: var(--forest-deep);
  background: var(--signal-soft);
  font-weight: 750;
}
.file-fact-rail { min-width: 0; }
.file-fact-rail__card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--category-color, var(--signal));
}
.file-fact-rail__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.file-fact-rail__title::-webkit-details-marker { display: none; }
.file-fact-rail__title span {
  color: var(--forest);
  font-size: .58rem;
  letter-spacing: .04em;
}
.file-fact-rail__card[open] .file-fact-rail__title span::before { content: "Hide details"; }
.file-fact-rail__card[open] .file-fact-rail__title span { font-size: 0; }
.file-fact-rail__card[open] .file-fact-rail__title span::before {
  font-size: .58rem;
  letter-spacing: .04em;
}
.file-fact-map { height: 170px; min-height: 0; border-block: 1px solid var(--line); }
.file-facts { margin: 0; border: 0; }
.file-facts div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 12px;
}
.file-facts dt { font-size: .57rem; }
.file-facts dd { font-size: .74rem; line-height: 1.3; }
.file-facts small { margin-top: 2px; font-size: .59rem; line-height: 1.35; }
.file-fact-rail__place {
  display: block;
  padding: 8px 12px;
  color: var(--forest);
  border-top: 1px solid var(--line);
  font-size: .65rem;
  font-weight: 750;
  text-decoration: none;
}
.file-content {
  min-width: 0;
  max-width: var(--reading-width);
}
.file-quick-read,
.file-article-lead {
  padding: 0 0 32px;
  margin: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.file-quick-read h2 {
  margin: 0 0 15px;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
}
.file-article-lead > p {
  margin-bottom: 1em;
  color: #31463a;
  font-size: 1.05rem;
  line-height: 1.72;
}
.file-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 125px;
}
.file-section__label {
  gap: 10px;
  margin-bottom: 6px;
  letter-spacing: 0;
  text-transform: none;
}
.file-section__label > span { display: none; }
.file-section__label p {
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.file-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 2.8vw, 2.25rem);
  line-height: 1.08;
}
.file-section.prose > p,
.matters-panel > p:not(.eyebrow) {
  max-width: 70ch;
  color: #263a2f;
  font-size: 1.06rem;
  line-height: 1.78;
}
.file-section.prose > h3 {
  padding-top: 24px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
}
.timeline { margin-top: 2px; }
.timeline article { padding-block: 15px; }
.timeline h3 { font-size: 1.08rem; }
.timeline p { font-size: .85rem; line-height: 1.6; }
.matters-panel {
  overflow: visible;
  padding: 38px 0;
  color: var(--ink);
  background: transparent;
  clip-path: none;
}
.matters-panel::after { display: none; }
.matters-panel .file-section__label,
.matters-panel .eyebrow { color: var(--muted); }
.matters-panel h2,
.matters-panel h3 { color: var(--ink); }
.matters-panel .remains {
  padding: 25px 0 0;
  margin-top: 25px;
  border-top: 1px solid var(--line);
}
.wiki-section-edit--dark { color: var(--forest); }
.claim-citations,
.claim-citations--dark {
  padding: 10px 12px;
  margin-top: 14px;
  color: var(--ink);
  background: #edf4e8;
  border-left: 3px solid var(--signal);
}
.claim-citations li a,
.claim-citations--dark li a { color: var(--forest); }
.claim-citations li small,
.claim-citations--dark li small { color: var(--muted); }
.context-note,
.uncertainty-note {
  padding: 16px 18px;
  margin: 28px 0;
  background: var(--paper);
  border: 0;
  border-left: 4px solid var(--signal);
}
.field-reports-panel { padding: 30px 0; }
.field-reports-panel .section-heading { margin-bottom: 15px; }
.field-report-list { margin-top: 15px; }
.field-report,
.field-report-empty,
.field-report-boundary { padding: 14px; }
.field-report-boundary { margin-top: 10px; }
.file-research-panel,
.file-brief-panel {
  padding: 22px 0;
  margin: 28px 0;
  background: transparent;
  border: 0;
  border-block: 1px solid var(--line);
}
.file-research-panel .section-heading { margin-bottom: 15px; }
.file-research-panel li a {
  padding: 14px;
  background: var(--paper);
  color: var(--ink);
  border-left: 3px solid var(--forest);
}
.file-research-panel li small { color: var(--muted); }
.file-research-panel li strong {
  color: var(--ink);
  font-size: 1.12rem;
}
.file-research-panel li em { color: var(--forest); }
.file-brief-panel > div:first-child h2 { font-size: 2rem; }
.file-brief-panel > div:last-child a {
  min-height: 0;
  padding: 15px;
}
.file-brief-panel a strong {
  margin: 18px 0 7px;
  font-size: 1.35rem;
}
.media-grid,
.chain-list { gap: 8px; }
.media-card,
.chain-list a {
  min-height: 0;
  padding: 16px;
  clip-path: none;
}
.sources-section .section-heading { margin-bottom: 12px; }
.source-list li { padding-block: 14px; }
.references-section {
  padding-bottom: 10px;
  border-bottom: 0;
}
.references-section__intro {
  max-width: 64ch;
  margin: -2px 0 18px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}
.reference-notes {
  margin: 0 0 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.reference-notes > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--forest-deep);
  font-size: .77rem;
  font-weight: 780;
  list-style-position: inside;
}
.reference-notes > summary span {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 650;
}
.reference-notes > ol {
  margin: 0;
  padding: 0 18px 14px 42px;
  border-top: 1px solid var(--line);
}
.reference-notes > ol > li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.reference-notes > ol > li:last-child { border-bottom: 0; }
.reference-notes > ol > li > span {
  color: var(--forest);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.reference-notes p {
  margin: 4px 0 7px;
  font-size: .86rem;
  line-height: 1.55;
}
.reference-notes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.reference-notes li li {
  font-size: .72rem;
  line-height: 1.45;
}
.reference-notes li li a { color: var(--forest); }
.reference-notes li li small { color: var(--muted); }
.file-community-panel {
  padding: 24px 0;
  color: var(--ink);
  background: transparent;
}
.file-community-panel .file-section__label,
.file-community-panel .section-heading p,
.file-community-panel .section-heading > div > p:last-child { color: var(--muted); }
.file-community-panel .text-link { color: var(--forest); }
.file-community-topics a {
  color: var(--ink);
  background: var(--paper);
}
.file-community-topics a:hover { background: var(--signal-soft); }
.file-community-topics span,
.file-community-topics small { color: var(--muted); }
.file-revision-bar {
  padding: 22px;
  margin-top: 34px;
  clip-path: none;
}
.continue-trail { padding-block: 46px 20px; }
.continue-trail__heading { margin-bottom: 22px; }
.continue-trail__lead { min-height: 230px; clip-path: none; }
.continue-trail__more a { clip-path: none; }
.file-random-dock {
  top: 132px;
  right: 14px;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: none;
}
.file-random-dock span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  writing-mode: horizontal-tb;
}
.file-random-dock:hover { width: 42px; }

/* Long-form supporting pages inherit the same reading measure. */
.prose { max-width: var(--reading-width); }
.prose h2 { margin: 1.4em 0 .45em; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.prose p { line-height: 1.75; }
.brief-question__inner {
  gap: 8px;
  padding-block: 22px;
}
.brief-question blockquote {
  max-width: 820px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.3;
}
.brief-layout,
.research-question-layout { padding-block: 40px 65px; }
.brief-section,
.brief-sources {
  padding-bottom: 40px;
  margin-bottom: 40px;
}
.brief-section h2,
.brief-sources h2,
.research-outcome h2,
.research-section-heading h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.brief-section__copy,
.research-outcome > p:not(.section-number, .research-outcome__audit),
.research-outcome > div {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.75;
}
.research-outcome { padding: 24px; margin-bottom: 42px; }
.research-file-cta,
.brief-file-cta { padding: 24px; }

/* Dense index cards should scan quickly. */
.region-card,
.route-card,
.people-index > a,
.force-card {
  min-height: 220px;
  padding: 20px;
}
.region-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.route-card--field { min-height: 300px; }
.place-index-grid > a { min-height: 125px; padding: 18px; }
.route-index-contract > div,
.route-field-guide__cards article { min-height: 150px; padding: 18px; }
.route-field-guide > header h2,
.route-itinerary__head h2,
.route-practical-sources header h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }

@media (min-width: 760px) {
  .research-desk-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
  }
  .research-desk-rail {
    position: sticky;
    top: 92px;
  }
}

@media (min-width: 900px) {
  .brief-index-head__grid,
  .research-desk-head__grid,
  .brief-head__grid,
  .research-question-head__grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .35fr);
  }
  .home-method__grid,
  .home-community__grid { gap: 50px; }
}

@media (min-width: 1100px) {
  .file-layout {
    grid-template-columns: 160px minmax(0, var(--reading-width)) 240px;
    grid-template-areas: "toc article facts";
    justify-content: center;
    gap: 34px;
    align-items: start;
  }
  .file-toc {
    grid-area: toc;
    position: sticky;
    top: 128px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    overflow: visible;
    padding: 4px 0 4px 13px;
    border: 0;
    border-left: 1px solid var(--line);
  }
  .file-toc p { margin: 0 0 8px; }
  .file-toc a { padding: 5px 7px; }
  .file-toc a[aria-current="location"] {
    position: relative;
    background: transparent;
  }
  .file-toc a[aria-current="location"]::before {
    content: "";
    position: absolute;
    top: 10px;
    left: -17px;
    width: 7px;
    height: 7px;
    background: var(--signal);
  }
  .file-content { grid-area: article; }
  .file-fact-rail {
    grid-area: facts;
    position: sticky;
    top: 128px;
  }
}

@media (min-width: 1200px) {
  .site-nav {
    flex: 1;
    gap: 18px;
  }
  .site-nav__primary { gap: 22px; }
  .site-nav a,
  .site-nav summary,
  .nav-logout button { font-size: .72rem; }
  .site-search {
    width: clamp(150px, 15vw, 220px);
    grid-template-columns: minmax(0, 1fr) 34px;
    margin: 0 0 0 auto;
  }
  .site-search input,
  .site-search button { height: 34px; }
  .site-search input { padding: 6px 9px; font-size: .7rem; }
  .site-search button { font-size: .95rem; }
  .site-nav .site-nav__random { gap: 4px; }
  .site-nav__random span:last-child { display: none; }
}

@media (max-width: 1099px) {
  .file-layout {
    grid-template-columns: minmax(0, var(--reading-width)) 230px;
    grid-template-areas:
      "toc toc"
      "article facts";
    justify-content: center;
  }
  .file-toc {
    grid-area: toc;
    position: static;
    top: auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 10px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .file-toc p { margin: 0 8px 0 0; }
  .file-content { grid-area: article; }
  .file-fact-rail { grid-area: facts; }
}

@media (max-width: 820px) {
  .forum-home-layout { grid-template-columns: 1fr; }
  .file-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "toc"
      "facts"
      "article";
    gap: 20px;
  }
  .file-fact-map { display: none; }
  .file-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .file-facts div { grid-template-columns: 62px minmax(0, 1fr); }
  .file-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
  .file-content { max-width: none; }
  .analytics-consent {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 16px;
  }
  .analytics-consent__actions { justify-content: flex-start; }
  .analytics-consent__actions .button { flex: 0 1 110px; }
}

@media (max-width: 699px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .section { padding-block: 42px; }
  .site-header { height: 60px; }
  .site-nav { inset: 60px 0 0; }
  .site-header .brand__logo { height: 25px; }
  .file-progress { top: 60px; }
  .file-wiki-bar { top: 60px; }
  .home-intro__grid { padding-block: 32px 38px; }
  .home-intro h1 {
    max-width: 570px;
    font-size: clamp(2.65rem, 12vw, 3.5rem);
  }
  .home-intro__grid { gap: 25px; }
  .home-random-file__body > p:last-child { display: none; }
  .home-path-grid { gap: 8px; }
  .home-path { min-height: 0; padding: 18px; }
  .home-path p { margin-bottom: 8px; }
  .home-method ol { margin-top: -8px; }
  .file-hero { padding-bottom: 19px; }
  .file-hero__top { margin-bottom: 12px; }
  .file-hero h1 { font-size: clamp(2.15rem, 9vw, 2.7rem); }
  .file-hero__summary { font-size: 1rem; line-height: 1.55; }
  .file-wiki-bar__inner { padding-left: 18px; }
  .file-wiki-bar nav a { padding-inline: 10px; }
  .file-wiki-meta { padding-right: 12px; }
  .file-wiki-meta .file-share-link { display: none; }
  .file-layout { padding-block: 20px 48px; }
  .file-toc { margin-inline: -18px; padding: 0 18px 9px; }
  .file-fact-rail__title { padding-block: 8px; }
  .file-facts { grid-template-columns: 1fr; }
  .file-facts div:nth-child(odd) { border-right: 0; }
  .file-facts div { padding-block: 7px; }
  .file-article-lead { padding-bottom: 26px; }
  .file-section { padding-block: 31px; }
  .file-section h2 { font-size: 1.9rem; }
  .file-section.prose > p,
  .matters-panel > p:not(.eyebrow) { font-size: 1rem; line-height: 1.72; }
  .file-random-dock {
    inset: auto 12px 12px auto;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .file-random-dock:hover { width: 44px; }
  .chaos-file-page { padding-bottom: 0; }
  .explore-head { padding-block: 20px 24px; }
  .explore-head h1 { font-size: 2.25rem; }
  .explore-search { grid-template-columns: minmax(0, 1fr) auto; }
  .explore-search input { border-right: 0; }
  .explore-search .button { width: auto; padding-inline: 16px; }
  .explore-actions__topics { display: none; }
  .explore-toolbar { gap: 8px; }
  .community-masthead { padding-block: 20px; }
  .community-masthead h1 { font-size: 2.2rem; }
  .brief-index-head,
  .research-desk-head,
  .brief-head,
  .research-question-head,
  .source-record__head { padding-block: 19px; }
  .brief-index-head h1,
  .research-desk-head h1,
  .brief-head h1,
  .research-question-head h1,
  .source-record__head h1 { font-size: 2.05rem; line-height: 1; }
  .brief-index-head__grid,
  .research-desk-head__grid,
  .brief-head__grid,
  .research-question-head__grid { gap: 14px; }
  .brief-head__top,
  .research-question-head__top { padding-bottom: 10px; margin-bottom: 16px; }
  .brief-head__standfirst > p,
  .research-question-head__grid > div:last-child > p {
    margin: 5px 0 12px;
    font-size: .9rem;
    line-height: 1.5;
  }
  .brief-head__standfirst dl,
  .research-question-head dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-head__standfirst dl > div,
  .research-question-head dl > div {
    min-width: 0;
    padding: 7px 9px;
    border-bottom: 1px solid var(--line);
  }
  .brief-head__standfirst dl > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
  .forum-home-layout { padding-block: 22px 45px; }
  .forum-home-main { gap: 32px; }
  .brief-layout,
  .research-question-layout { padding-block: 30px 48px; }
}

@media (max-width: 420px) {
  .analytics-consent__actions { display: grid; grid-template-columns: 1fr 1fr auto; }
  .analytics-consent__actions .button { width: 100%; min-width: 0; }
  .home-discovery__shortcuts { gap: 7px 14px; }
  .file-wiki-meta { display: none; }
  .file-wiki-bar nav { padding-right: 14px; }
}

@media print {
  .file-fact-rail { position: static; margin-bottom: 20px; }
}
