/* Reading views share the masthead's ink, rule and paper colors. */
.story,
.atlas-header,
.atlas-list,
.quiz-page {
  --reading-serif: var(--serif, Georgia, "Times New Roman", serif);
  --reading-wash: var(--wash);
  --reading-card: #fff;
  color: var(--ink);
}

.story,
.atlas-list,
.quiz-page,
.related-grid {
  min-width: 0;
}

.story-header,
.story-body,
.story-layout,
.story-section,
.atlas-copy,
.quiz-page > * {
  min-width: 0;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  column-gap: clamp(32px, 5vw, 82px);
  align-items: start;
  padding-top: clamp(26px, 3.5vw, 60px);
}

.story-header { padding: 0 0 12px; }
.story-back {
  display: inline-block;
  margin-bottom: clamp(25px, 4vw, 64px);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em .9em;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}
.story-meta span {
  color: var(--accent);
  font-weight: 750;
}
.story-meta time { padding-left: .9em; border-left: 1px solid var(--line); }
.story-header h1,
.atlas-header h1,
.quiz-intro h1 {
  margin: .28em 0;
  font: normal clamp(2.6rem, 4.6vw, 4.7rem)/1.02 var(--reading-serif);
  letter-spacing: -.042em;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.story-lead {
  max-width: 44em;
  margin: 1em 0 1.35em;
  color: var(--ink);
  font-family: var(--reading-serif);
  font-size: clamp(1.13rem, 1.5vw, 1.45rem);
  line-height: 1.48;
}
.story-save,
.quiz-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .65em 1.15em;
  border: 1px solid currentColor;
  border-radius: 2px;
  font: inherit;
  font-size: .87rem;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
}
.story-save { color: var(--ink); background: transparent; }
.story-save[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.story-hero,
.story-figure,
.story-chart,
.atlas-visual {
  margin: 0;
}
.story-hero {
  align-self: center;
  min-width: 0;
}
.story-hero img,
.story-figure img,
.atlas-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  box-sizing: border-box;
}
.story-hero img {
  max-height: min(68vh, 570px);
  background: var(--reading-wash);
}
.story-hero figcaption,
.story-figure figcaption,
.story-chart figcaption,
.atlas-credit {
  margin: .7rem 0 0;
  color: var(--muted);
  font: 400 .8rem/1.53 Onest, Arial, sans-serif;
  overflow-wrap: anywhere;
}
:is(.story-hero, .story-figure, .story-chart, .atlas-credit, .story-sources) a,
.story-archive,
.quiz-source,
.atlas-story {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.story-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, .34fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 110px);
  align-items: start;
  width: min(100%, 1120px);
  margin: clamp(38px, 5vw, 74px) auto 0;
  padding-top: clamp(26px, 3vw, 48px);
  border-top: 1px solid var(--ink);
}
.story-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.story-toc h2 {
  margin: 0 0 .7em;
  font: 700 .94rem/1.4 Onest, Arial, sans-serif;
}
.story-toc ol,
.chart-bars,
.story-sources ol {
  margin: 0;
}
.story-toc ol { list-style: none; padding: 0; }
.story-toc li { border-top: 1px solid var(--line); }
.story-toc a {
  display: block;
  padding: .68rem .25rem .68rem 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.42;
  text-decoration: none;
}
.story-body {
  width: min(100%, 44rem);
  margin: 0;
}
.story-section + .story-section,
.story-sources {
  margin-top: clamp(30px, 4.2vw, 56px);
}
.story-section h2,
.story-sources h2,
.story-related > h2,
.story-booking h2,
.atlas-card > h2 {
  font: 400 clamp(1.8rem, 3.05vw, 3rem)/1.1 var(--serif, Georgia, serif);
  letter-spacing: -.032em;
  overflow-wrap: break-word;
}
.story-section h2,
.story-sources h2 {
  margin: 0 0 .48em;
  scroll-margin-top: 2.5rem;
}
.story-section > p {
  margin: 0 0 .85em;
  font: 400 clamp(1.08rem, 1.25vw, 1.26rem)/1.66 var(--reading-serif);
  overflow-wrap: break-word;
}
.story-figure {
  margin-top: 1.45rem;
}
.story-figure img {
  max-height: 680px;
  background: var(--reading-wash);
}
.story-chart {
  margin-top: 1.45rem;
  padding: clamp(17px, 3vw, 32px);
  background: var(--reading-wash);
}
.chart-title {
  max-width: 33em;
  margin: 0 0 1rem;
  font: 620 1.05rem/1.38 Onest, Arial, sans-serif;
}
.chart-bars {
  display: grid;
  gap: .9rem;
  padding: 0;
  list-style: none;
}
.chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem 1rem;
  align-items: end;
  font-size: .85rem;
  line-height: 1.35;
}
.chart-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  background: var(--line);
}
.chart-track i { display: block; height: 100%; background: var(--accent); }
.chart-compare {
  margin-top: 1.25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.chart-compare summary,
.atlas-answer summary {
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  color: var(--accent);
  font-weight: 650;
  line-height: 1.45;
}
.chart-compare summary { font-size: .9rem; }
.chart-compare[open] summary { margin-bottom: 1rem; }
.story-chart figcaption { margin-top: 1.2rem; }
.story-sources {
  border-top: 1px solid var(--ink);
  padding-top: 1.35rem;
}
.story-sources ol { padding-left: 1.4rem; }
.story-sources li {
  padding: .45rem .1rem;
  font-size: .94rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.story-sources li::marker { color: var(--accent); font-variant-numeric: tabular-nums; }
.story-booking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: clamp(48px, 6vw, 84px) 0;
  padding: clamp(22px, 3.5vw, 42px);
  border: 1px solid var(--line);
  background: var(--wash);
}
.story-booking h2 { max-width: 21em; margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.story-booking a, .story-archive { color: var(--accent); font-weight: 620; }
.story-booking a { line-height: 1.5; }
.story-related {
  margin-bottom: clamp(46px, 6vw, 80px);
  border-top: 2px solid var(--ink);
}
.story-related > h2 { margin: .54em 0 .7em; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px clamp(14px, 2vw, 30px);
}
.related-card[hidden] { display: none; }
.related-card a { display: block; color: inherit; text-decoration: none; }
.related-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.65;
}
.related-card small {
  display: block;
  margin: .7rem 0 .32rem;
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--accent);
}
.related-card h3 {
  margin: 0;
  font: 400 clamp(1.18rem, 1.9vw, 1.75rem)/1.16 var(--serif, Georgia, serif);
  letter-spacing: -.025em;
}
.story-archive { display: inline-block; margin-top: 1.65rem; font-size: .9rem; }

.atlas-header {
  padding: clamp(28px, 5vw, 72px) 0 clamp(22px, 3.5vw, 48px);
}
.atlas-header h1,
.quiz-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .96;
}
.atlas-header p,
.quiz-intro p {
  max-width: 35em;
  margin: .78em 0 0;
  font: 400 clamp(1.09rem, 1.6vw, 1.45rem)/1.48 var(--reading-serif);
}
.atlas-list { margin-bottom: clamp(40px, 6vw, 84px); }
.atlas-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-areas: "figure title" "figure copy";
  grid-template-rows: auto 1fr;
  gap: 14px clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--ink);
  padding: clamp(24px, 3.4vw, 48px) 0;
}
.atlas-card > h2 {
  grid-area: title;
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3.7rem);
}
.atlas-visual { grid-area: figure; min-width: 0; }
.atlas-visual img {
  max-height: 580px;
  background: var(--reading-wash);
}
.atlas-credit { max-width: 62em; }
.atlas-copy {
  grid-area: copy;
  align-self: start;
  padding-top: .7rem;
}
.atlas-question {
  margin: 0 0 .8em;
  font: 550 clamp(.97rem, 1.28vw, 1.15rem)/1.45 Onest, Arial, sans-serif;
}
.atlas-answer {
  padding: .86rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.atlas-answer summary { font-size: .9rem; }
.atlas-answer p {
  margin: .85em 0;
  font: 400 1.08rem/1.55 var(--reading-serif);
}
.atlas-story { font-size: .84rem; line-height: 1.5; }

.quiz-page {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.35fr);
  align-items: start;
  gap: clamp(24px, 5.5vw, 86px);
  margin: clamp(30px, 5vw, 72px) 0 clamp(60px, 8vw, 120px);
}
.quiz-intro { padding-top: .75rem; }
.quiz-intro .kicker { display: block; margin-bottom: 1.3rem; }
.quiz-intro h1 { font-size: clamp(3rem, 6.3vw, 6rem); }
.quiz-panel {
  padding: clamp(21px, 3.2vw, 44px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: var(--reading-card);
}
.quiz-panel [data-quiz] { display: contents; }
.quiz-panel .quiz-next { margin-inline-end: .65rem; }
.quiz-home {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin-top: 1.1rem;
  padding: .65em 1.15em;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font: 650 .87rem/1.25 var(--sans);
}
.quiz-home:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.quiz-progress {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: .8rem;
  line-height: 1.4;
  font-weight: 670;
  font-variant-numeric: tabular-nums;
}
.quiz-question,
.quiz-result {
  margin: 0 0 1.05em;
  font: 400 clamp(1.55rem, 2.65vw, 2.55rem)/1.12 var(--reading-serif);
  letter-spacing: -.028em;
}
.quiz-options {
  display: grid;
  gap: .48rem;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: .8em;
  width: 100%;
  min-height: 48px;
  padding: .75em .95em;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 500 .97rem/1.4 Onest, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
.quiz-option::before {
  content: "";
  flex: 0 0 .88em;
  width: .88em;
  height: .88em;
  border: 1px solid var(--muted);
  border-radius: 50%;
  box-sizing: border-box;
}
.quiz-option[aria-disabled="true"] { cursor: default; }
.quiz-option[data-state="correct"] {
  border-color: #315e55;
  background: #e9f2ee;
}
.quiz-option[data-state="incorrect"] {
  border-color: #903851;
  background: #faedf1;
}
.quiz-option[data-state]::before { border: .29em solid currentColor; }
.quiz-option[data-state="correct"]::before { color: #315e55; }
.quiz-option[data-state="incorrect"]::before { color: #903851; }
.quiz-feedback:not(:empty) {
  padding: 1rem 0 .62rem;
  font-size: .96rem;
  line-height: 1.52;
}
.quiz-feedback p { margin: .24rem 0; }
.quiz-source { display: block; width: fit-content; color: var(--accent); font-size: .85rem; }
.quiz-next {
  margin-top: 1.1rem;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.quiz-result + .quiz-next { margin-top: 0; }
@media (hover: hover) {
  .story-toc a:hover, .story-back:hover,
  .related-card a:hover h3, .atlas-story:hover, .quiz-source:hover { color: var(--accent); }
  .story-save:hover { background: var(--reading-wash); }
  .quiz-option:not([aria-disabled="true"]):hover { border-color: var(--ink); background: var(--wash); }
  .quiz-next:hover { background: var(--accent); border-color: var(--accent); }
}
:is(.story, .story-booking, .story-related, .atlas-list, .quiz-page) :is(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; gap: 22px; }
  .story-header { max-width: 45rem; }
  .story-back { margin-bottom: 1.4rem; }
  .story-hero { width: 100%; }
  .story-layout { gap: 26px; grid-template-columns: minmax(140px, .29fr) minmax(0, 1fr); margin-top: 18px; }
  .quiz-page { grid-template-columns: minmax(0,.7fr) minmax(0,1.4fr); gap: 22px; }
  .atlas-card { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
}
@media (max-width: 640px) {
  .story-header h1 { font-size: clamp(2.15rem, 8.2vw, 3.2rem); }
  .story-lead { font-size: 1.14rem; }
  .story-layout { display: block; }
  .story-toc { position: static; max-height: none; margin-bottom: 2rem; }
  .story-toc ol { padding-left: .82rem; border-left: 2px solid var(--line); }
  .story-toc li { border: 0; }
  .story-toc a { padding: .36rem .1rem; }
  .story-hero img { max-height: 58vh; }
  .related-grid { grid-template-columns: 1fr; gap: 15px; }
  .related-card a { display: grid; grid-template-columns: minmax(88px, .42fr) minmax(0, 1fr); align-items: start; gap: 14px; }
  .related-card img { aspect-ratio: 1.28; }
  .related-card small { margin-top: .1rem; }
  .atlas-card { display: flex; flex-direction: column; gap: 1rem; }
  .atlas-card > h2 { font-size: 2.05rem; }
  .atlas-copy { padding-top: 0; width: 100%; }
  .atlas-visual img { max-height: 75vh; }
  .quiz-page { grid-template-columns: 1fr; }
  .quiz-intro { padding-top: 0; }
  .quiz-intro .kicker { margin-bottom: .78rem; }
  .quiz-intro h1 { font-size: clamp(2.8rem, 10.1vw, 4rem); }
}
