/* Market Primer site styles.
   Layout: a broadsheet front page built around the Map, section pages with a
   standing head, and a three-rail reference article (contents, text, infobox)
   for each of the 13 layers. */
:root {
  --paper: #f6f6f3;
  --paper-2: #ecebe5;
  --ink: #1c1c1a;
  --ink-2: #55534d;
  --ink-3: #85827a;
  --rule: #d6d3ca;
  --accent: #27476d;
  --accent-wash: #e1e8f0;
  --mark: #f0e2b0;
  --s1: #2a5f9e;
  --s2: #c8642c;
  --s3: #2f9a76;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --measure: 40rem;
  --bar-h: 3.25rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151618; --paper-2: #1e2023; --ink: #e8e6e0; --ink-2: #aaa69d; --ink-3: #7c7970;
    --rule: #34353a; --accent: #93b2d8; --accent-wash: #1f2a38; --mark: #5a4b1c; --s1: #4a86d0; --s2: #cf6a30; --s3: #2a9c76; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151618; --paper-2: #1e2023; --ink: #e8e6e0; --ink-2: #aaa69d; --ink-3: #7c7970;
  --rule: #34353a; --accent: #93b2d8; --accent-wash: #1f2a38; --mark: #5a4b1c; --s1: #4a86d0; --s2: #cf6a30; --s3: #2a9c76; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.55;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--paper);
}
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
[id] { scroll-margin-top: calc(var(--bar-h) + 1.25rem); }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 500; }
p { margin: 0; }
mark { background: var(--mark); color: inherit; padding: 0 .1em; }

.wrap {
  max-width: 82rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.kicker {
  font-family: var(--sans); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.kicker a { text-decoration: none; }
.kicker a:hover { color: var(--accent); }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.bar .wrap { display: flex; align-items: center; gap: 1rem; height: var(--bar-h); }
.wordmark { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.wordmark span { font-style: italic; font-weight: 400; }
.bar nav { display: flex; gap: .15rem; flex: 1; min-width: 0; overflow: hidden; }
.bar nav a {
  font-family: var(--sans); font-size: .85rem; text-decoration: none; color: var(--ink-2);
  padding: .35rem .55rem; border-radius: 3px; white-space: nowrap;
}
.bar nav a b { font-weight: 600; color: var(--ink); margin-right: .3em; }
.bar nav a:hover, .bar nav a[aria-current="true"] { color: var(--ink); background: var(--paper-2); }
.bar nav .t { display: none; }
@media (min-width: 1500px) { .bar nav .t { display: inline; } }
@media (max-width: 980px) { .bar nav { display: none; } }
.btn {
  font: 500 .85rem var(--sans); color: var(--ink); background: none; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 3px; padding: .35rem .65rem; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.search { position: relative; margin-left: auto; }
.search input {
  font: .9rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 3px; padding: .4rem .6rem .4rem 1.9rem;
  width: 15rem; max-width: 46vw;
}
.search input::placeholder { color: var(--ink-3); }
.search svg { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); width: .85rem; height: .85rem; stroke: var(--ink-3); fill: none; stroke-width: 2; pointer-events: none; }
.results {
  position: absolute; right: 0; top: calc(100% + .4rem); width: min(34rem, calc(100vw - 32px));
  max-height: min(70vh, 34rem); overflow: auto; background: var(--paper);
  border: 1px solid var(--ink-3); box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: .35rem 0;
}
.results a { display: block; padding: .55rem .9rem; text-decoration: none; border-bottom: 1px solid var(--rule); }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a.sel { background: var(--paper-2); }
.results .where { font: 500 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.results .snip { font-size: .95rem; line-height: 1.4; color: var(--ink-2); margin-top: .15rem; }
.results .none { padding: .8rem .9rem; color: var(--ink-2); font-size: .95rem; }

/* ---------- contents drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 40; display: flex; }
.drawer .scrim { flex: 1; background: rgba(10,10,10,.35); }
.drawer .panel {
  order: -1; width: min(22rem, 88vw); height: 100%; overflow: auto; background: var(--paper);
  border-right: 1px solid var(--rule);
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
}
.drawer .panel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

.toc { font-family: var(--sans); font-size: .9rem; line-height: 1.3; }
.toc h3 { font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 1.4rem 0 .45rem; }
.toc h3:first-child { margin-top: 0; }
.toc h3 a { text-decoration: none; }
.toc h3 a:hover { color: var(--accent); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: flex; gap: .55rem; padding: .3rem .4rem; margin-left: -.4rem; text-decoration: none; color: var(--ink-2); border-radius: 3px; }
.toc li a:hover { color: var(--ink); background: var(--paper-2); }
.toc li a[aria-current="page"] { color: var(--ink); background: var(--accent-wash); }
.toc .n { font-family: var(--serif); font-size: .95rem; min-width: 1.3rem; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc li a[aria-current="page"] .n { color: var(--accent); }

/* ---------- labels ---------- */
.tag {
  font-family: var(--sans); font-size: .78em; color: var(--ink-2); letter-spacing: .01em;
  white-space: normal; cursor: help;
}
.tag::before {
  content: ""; display: inline-block; width: .62em; height: .62em; border-radius: 50%;
  margin: 0 .3em .05em .1em; vertical-align: baseline; border: 1.5px solid var(--ink-2);
}
.tag[data-k="established"]::before { background: var(--ink-2); }
.tag[data-k="contested"]::before { background: linear-gradient(90deg, var(--ink-2) 50%, transparent 50%); }
.tag[data-k="synthesis"]::before { border-style: dotted; border-color: var(--accent); }
.tag[data-k="synthesis"] { color: var(--accent); }

a.lref { color: var(--accent); text-decoration: none; font-variant-numeric: lining-nums; border-bottom: 1px dotted currentColor; }
a.lref:hover { border-bottom-style: solid; }

/* ---------- shared prose ---------- */
.prose > * + * { margin-top: 1rem; }
.prose ul { margin-bottom: 0; padding-left: 1.15rem; }
.prose ul li + li { margin-top: .45rem; }
.prose ul li::marker { color: var(--ink-3); }
.entries { display: grid; gap: .9rem; }
.entry strong { font-weight: 600; }
.runhead { font: 600 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 1.6rem 0 .2rem; }
.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 30% { background: var(--mark); } 100% { background: transparent; } }

.table-wrap { overflow-x: auto; margin-top: 1.1rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.4; }
.table-wrap table { min-width: 40rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem .7rem 0; }
thead th {
  font: 600 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px solid var(--ink); padding-top: .55rem; padding-bottom: .5rem;
}
tbody tr + tr > * { border-top: 1px solid var(--rule); }
tbody th { font-weight: 600; width: 22%; }
tbody th a { text-decoration: none; color: var(--accent); }

/* ---------- front page ---------- */
.masthead { text-align: center; padding-block: 1.6rem 0; }
.masthead h1 {
  font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -.022em;
  margin: .2rem 0 .5rem; font-variation-settings: "opsz" 72;
}
.tagline { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); padding: .45rem 0; font: .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

.front-lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2rem 2.5rem; }
@media (min-width: 1000px) { .front-lead { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 2.5rem; } }
.front-lead > aside { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
@media (min-width: 1000px) { .front-lead > aside { border-top: 0; border-left: 1px solid var(--rule); padding: 0 0 0 2.5rem; } }
.lead-head { font-size: clamp(1.6rem, 3.2vw, 2.35rem); line-height: 1.12; letter-spacing: -.012em; margin: .35rem 0 1.25rem; }

/* the Map */
.stack { display: grid; gap: 0; }
.band { border: 1px solid var(--rule); border-radius: 4px; padding: .7rem .75rem .8rem; background: var(--paper); }
.band[data-part="A"] { border-color: var(--accent); background: var(--accent-wash); }
.band-head { display: inline-block; font: 600 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; margin-bottom: .55rem; }
.band-head:hover { color: var(--accent); }
.cells { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(7.4rem, 1fr)); }
.cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 4.6rem; padding: .5rem .45rem; border: 1px solid var(--rule); border-radius: 3px;
  background: var(--paper); text-decoration: none; line-height: 1.2;
  transition: opacity .18s, border-color .18s, background-color .18s;
}
.cell .num { font-size: 1.35rem; font-weight: 500; line-height: 1; color: var(--ink-3); font-variant-numeric: lining-nums; margin-bottom: .2rem; }
.cell .nm { font-size: .98rem; font-weight: 500; }
.cell .sub { font: .78rem var(--sans); color: var(--ink-2); margin-top: .1rem; }
.cell:hover, .cell.on { border-color: var(--ink); }
.cell.on .num { color: var(--accent); }
.stack.focus .cell { opacity: .3; }
.stack.focus .cell.on { opacity: 1; background: var(--paper); }
.stack.focus .cell.link { opacity: 1; border-color: var(--accent); }
.stack.focus .cell.link .num { color: var(--accent); }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .15rem 1.2rem; }
.flow span { display: flex; align-items: center; gap: .5rem; font: .78rem/1.25 var(--sans); color: var(--ink-2); min-height: 2.6rem; }
.flow svg { flex: none; width: 10px; height: 2.4rem; stroke: var(--ink-3); fill: var(--ink-3); }
.flow span:last-child { justify-content: flex-start; }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-top: .8rem; font: .8rem var(--sans); color: var(--ink-3); }
.readout { margin-top: 1.1rem; min-height: 3.2em; font-size: 1rem; color: var(--ink-2); border-left: 2px solid var(--rule); padding-left: .8rem; }
.readout b { color: var(--ink); font-weight: 600; }
.map-text { margin-top: 1.25rem; max-width: var(--measure); color: var(--ink); border-bottom: 1px solid var(--rule); }

.parts-index { list-style: none; margin: .6rem 0 0; padding: 0; }
.parts-index li { padding: .9rem 0; border-top: 1px solid var(--rule); }
.parts-index li:first-child { border-top: 0; padding-top: .3rem; }
.parts-index h3 { font-size: 1.2rem; margin: 0 0 .25rem; line-height: 1.2; }
.parts-index h3 a { text-decoration: none; }
.parts-index h3 a:hover { color: var(--accent); }
.parts-index h3 small { font: 600 .72rem var(--sans); letter-spacing: .1em; color: var(--ink-3); display: block; text-transform: uppercase; margin-bottom: .15rem; }
.parts-index p { font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.chip {
  font: 500 .78rem/1 var(--sans); text-decoration: none; padding: .3rem .45rem; min-width: 1.6rem; text-align: center;
  border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.key { margin-top: 1.5rem; border-top: 1px solid var(--ink); padding-top: .8rem; }
.key dl { margin: .5rem 0 0; display: grid; gap: .55rem; }
.key dt { font-size: 1rem; }
.key dd { margin: .05rem 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }

.sect { border-top: 1px solid var(--ink); padding-block: 1.2rem 3rem; }
.sect > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.4rem; }
.sect > header h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; margin: .2rem 0 0; letter-spacing: -.01em; }
.sect > header p { max-width: 34rem; color: var(--ink-2); font-size: 1rem; }
.cols { columns: 3 17rem; column-gap: 2.5rem; column-rule: 1px solid var(--rule); }
.cols > * { break-inside: avoid; margin: 0 0 1rem; }
.cols p { font-size: 1rem; line-height: 1.55; hyphens: auto; }

.couple { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 1000px) { .couple { grid-template-columns: minmax(0, 1fr) 19rem; } }
.channels { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.channel { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: 1.1rem 0 1.2rem 1rem; border-top: 1px solid var(--rule); border-left: 2px solid transparent; transition: border-color .2s; }
.channel:first-child { border-top: 0; }
.channel.on { border-left-color: var(--accent); }
.channel h3 { font-size: 1.25rem; line-height: 1.2; margin: 0; }
.channel p { max-width: var(--measure); }
.channel .chips { margin-top: .25rem; }
.mini { position: sticky; top: calc(var(--bar-h) + 1.5rem); align-self: start; }
.mini .grid { display: grid; gap: .35rem; margin-top: .7rem; }
.mini .row { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); align-items: center; gap: .4rem; }
.mini .row > span { font: 600 .72rem var(--sans); color: var(--ink-3); }
.mini .cs { display: flex; gap: .3rem; }
.mini a {
  flex: 1; display: grid; place-items: center; height: 2.3rem; font-size: 1rem; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-2); transition: all .2s;
}
.mini .row[data-part="A"] a { background: var(--accent-wash); }
.mini.focus a { opacity: .35; }
.mini.focus a.link { opacity: 1; border-color: var(--accent); color: var(--accent); background: var(--accent-wash); font-weight: 600; }
.mini .what { margin-top: .9rem; font-size: .95rem; color: var(--ink-2); min-height: 4.5em; }
.mini .what b { color: var(--ink); font-weight: 600; }
@media (max-width: 999px) { .mini { display: none; } }
.pull {
  margin-top: 2rem; padding: 1.1rem 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
  font-size: 1.2rem; line-height: 1.5; max-width: 52rem;
}

.horizon-table tbody th { width: 9%; white-space: nowrap; font: 600 .82rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.horizon-table td { width: 22.75%; }
.horizon-table thead a { color: inherit; text-decoration: none; }
.horizon-table thead a:hover { color: var(--accent); }
.horizon-table .table-wrap table, .horizon-table table { min-width: 52rem; }

.twocol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 900px) { .twocol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.twocol h3 { font: 600 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .9rem; }
.questions { list-style: none; padding: 0; margin: 0; }
.questions li { padding: .75rem 0; border-top: 1px solid var(--rule); font-size: 1rem; }
.questions li:first-child { border-top: 0; padding-top: 0; }
.questions b { display: block; font: 600 .78rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .15rem; }
.small-print p, .small-print li { font-size: .95rem; color: var(--ink-2); }
.small-print strong { color: var(--ink); }

/* ---------- article (layer / part) ---------- */
.page { display: grid; gap: 0 3rem; padding-block: 2rem 4rem;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "cover" "head" "body" "rail"; }
.page > .page-cover { grid-area: cover; min-width: 0; }
.page > .ahead { grid-area: head; }
.page > .rail { grid-area: rail; }
.page > .abody { grid-area: body; min-width: 0; }
@media (min-width: 1000px) {
  .page { grid-template-columns: minmax(0, var(--measure)) 17rem; grid-template-areas: "cover cover" "head rail" "body rail"; justify-content: center; }
}
.ahead-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; }
.toppager { display: flex; gap: .35rem; margin-left: auto; font: 500 .8rem/1.2 var(--sans); }
.toppager a { display: inline-block; padding: .3rem .55rem; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 15rem; }
.toppager a:hover, .toppager a:focus-visible { border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) { .toppager .tl { display: none; } }
.ahead h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.04; letter-spacing: -.02em; margin: .45rem 0 1rem; font-variation-settings: "opsz" 72; }
.ahead h1 .ln { display: block; font: 500 .9rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .45rem; }
.standfirst { font-size: 1.28rem; line-height: 1.45; color: var(--ink); padding-bottom: 1.5rem; border-bottom: 1px solid var(--ink); }
.standfirst p + p { margin-top: .7rem; }
.abody > section { padding-top: 1.8rem; }
.abody > section > h2 { font-size: 1.55rem; line-height: 1.15; margin: 0 0 .9rem; letter-spacing: -.005em; display: flex; align-items: baseline; gap: .6rem; }
.abody > section > h2 small { font: 500 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.rail { margin: 1.5rem 0 .5rem; }
@media (min-width: 1000px) { .rail { margin: 0; } .rail-inner { position: sticky; top: calc(var(--bar-h) + 2rem); } }
.infobox { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: .92rem; line-height: 1.4; }
.infobox .ib-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.infobox .big { font-size: 2.6rem; line-height: .9; font-weight: 400; color: var(--accent); font-variant-numeric: lining-nums; }
.infobox .ib-head div { font-size: 1rem; line-height: 1.25; }
.infobox .ib-head small { display: block; font: .8rem var(--sans); color: var(--ink-2); }
.infobox dl { margin: 0; }
.infobox .r { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.infobox .r:last-child { border-bottom: 0; }
.infobox dt { font: 600 .7rem/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.infobox dd { margin: 0; }
.infobox dd .chips { margin-top: 0; }
.infobox dd ul { margin: 0; padding: 0; list-style: none; }
.infobox dd li + li { margin-top: .3rem; }
.infobox .verify { color: var(--ink-2); }
.infobox .verify b { color: var(--ink); font-weight: 600; display: block; }
@media (max-width: 999px) {
  .infobox .r { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .infobox .r.ch { display: none; }
  .standfirst { border-bottom: 0; padding-bottom: 0; }
}
.onpage { margin-top: 1.5rem; font-family: var(--sans); font-size: .88rem; }
.onpage ol { list-style: none; padding: 0; margin: .5rem 0 0; border-left: 1px solid var(--rule); }
.onpage a { display: block; padding: .25rem 0 .25rem .8rem; margin-left: -1px; text-decoration: none; color: var(--ink-2); border-left: 2px solid transparent; }
.onpage a:hover { color: var(--ink); }
.onpage a.on { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 999px) { .onpage { display: none; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; border-top: 1px solid var(--ink); padding-top: 1rem; }
.pager a { text-decoration: none; display: block; }
.pager a:hover .pt { color: var(--accent); }
.pager .pt { font-size: 1.1rem; line-height: 1.25; display: block; margin-top: .2rem; }
.pager .next { text-align: right; grid-column: 2; }

.layer-list { list-style: none; margin: 0; padding: 0; }
.layer-list li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--rule); }
.layer-list li:first-child { border-top: 0; padding-top: .4rem; }
.layer-list .big { font-size: 2.6rem; line-height: .95; color: var(--accent); text-align: right; font-variant-numeric: lining-nums; }
.layer-list h3 { font-size: 1.45rem; line-height: 1.15; margin: 0 0 .4rem; }
.layer-list h3 a { text-decoration: none; }
.layer-list h3 a:hover { color: var(--accent); }
.layer-list p { font-size: 1rem; color: var(--ink-2); }
.layer-list nav { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin-top: .55rem; font: .8rem var(--sans); }
.layer-list nav a { color: var(--ink-3); text-decoration: none; }
.layer-list nav a:hover { color: var(--accent); }

footer.colophon { border-top: 1px solid var(--ink); margin-top: 1rem; padding-block: 1.2rem calc(2rem + env(safe-area-inset-bottom, 0px)); font: .82rem/1.5 var(--sans); color: var(--ink-2); }
footer.colophon .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.keys kbd { font: 500 .75rem var(--sans); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 3px; padding: 0 .3rem; }

/* ---------- map modes and arrows ---------- */
.modebar { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; margin: 0 0 .9rem; }
.seg { display: inline-flex; border: 1px solid var(--ink-3); border-radius: 3px; overflow: hidden; }
.seg button { font: 500 .82rem var(--sans); color: var(--ink-2); background: var(--paper); border: 0; padding: .4rem .8rem; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pbtn { font: .8rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: .3rem .55rem; cursor: pointer; }
.pbtn:hover { border-color: var(--accent); }
.pbtn:disabled { opacity: .4; cursor: default; }
.stack { position: relative; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.wires path { fill: none; stroke-linecap: round; }
.wires .now { stroke: var(--accent); stroke-width: 2; }
.wires .ah-now { fill: var(--accent); }
.cell { position: relative; }
.steps { display: flex; gap: .35rem; }

/* ---------- episode timeline ---------- */
.tl-wrap { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; }
.tl { min-width: 52rem; position: relative; }
.tl svg { display: block; width: 100%; }
.tl text { font-family: var(--sans); font-size: 11px; fill: var(--ink-2); }
.tl .rl { fill: var(--ink); font-size: 12.5px; font-family: var(--serif); }
.tl .rn { fill: var(--accent); font-size: 13px; font-family: var(--serif); }
.tl .pl { font-weight: 600; font-size: 10px; letter-spacing: .1em; fill: var(--ink-3); }
.tl .vg { stroke: var(--rule); stroke-width: 1; }
.tl .rowline { stroke: var(--rule); stroke-width: 1; opacity: .6; }
.tl .dens { fill: var(--accent); opacity: .45; }
.tl .ep { fill: var(--accent); cursor: pointer; }
.tl .ep.approx { fill: url(#tl-hatch); stroke: var(--accent); stroke-width: 1; }
.tl .ep:hover, .tl .ep:focus, .tl .ep.sel { fill: var(--ink); stroke: var(--ink); outline: none; }
.tl .guide { stroke: var(--ink); stroke-width: 1; pointer-events: none; }
.tl .brk { stroke: var(--ink-3); stroke-width: 1.2; }
.tl .hatch { stroke: var(--accent); stroke-width: 1.5; }
.tl-read { margin-top: .8rem; font-size: 1rem; color: var(--ink-2); min-height: 3em; max-width: 60rem; }
.tl-read b { color: var(--ink); font-weight: 600; }
.tl-detail { margin-top: .8rem; background: var(--paper-2); padding: 1rem 1.2rem 1.15rem; border-top: 3px double var(--ink); max-width: 60rem; }
.tl-detail h3 { font-size: 1.35rem; line-height: 1.2; margin: .3rem 0 .15rem; }
.tl-detail .when { font: .8rem var(--sans); color: var(--ink-2); }
.tl-detail dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem 1.5rem; margin: .8rem 0 .6rem; }
@media (min-width: 760px) { .tl-detail dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tl-detail dt { font: 600 .7rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tl-detail dd { margin: .15rem 0 0; font-size: .98rem; line-height: 1.4; }
.tl-detail .go { font: 500 .85rem var(--sans); color: var(--accent); text-decoration: none; }
.src { font: .76rem/1.45 var(--sans); color: var(--ink-3); margin-top: .5rem; }
.src a { color: inherit; }

/* ---------- indicator charts ---------- */
.data-intro { font-size: 1rem; color: var(--ink-2); }
.charts { display: grid; gap: 2.4rem; margin-top: 1.4rem; }
.chart { position: relative; margin: 0; }
.chart h3 { font-size: 1.12rem; line-height: 1.25; margin: 0; font-weight: 600; }
.chart .sub { font-size: .92rem; color: var(--ink-2); margin-top: .2rem; line-height: 1.4; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .65rem; font: .8rem var(--sans); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 16px; height: 2px; border-radius: 1px; display: inline-block; flex: none; }
.legend i.box { height: 10px; border-radius: 2px; opacity: .3; }
.legend b { color: var(--ink); font-weight: 600; }
.plot { margin-top: .4rem; position: relative; touch-action: pan-y; height: 250px; }
@media (max-width: 600px) { .plot { height: 210px; } }
.plot svg { display: block; width: 100%; overflow: visible; }
.plot text { font: 10.5px var(--sans); fill: var(--ink-3); }
.plot .gl { stroke: var(--rule); stroke-width: 1; }
.plot .zero { stroke: var(--ink-3); stroke-width: 1; }
.plot .rec { fill: var(--ink-3); opacity: .7; }
.plot .epb { fill: var(--accent); opacity: .12; }
.plot text.epl { fill: var(--ink-2); font-size: 10px; }
.plot .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .band { opacity: .16; }
.plot .xh { stroke: var(--ink-2); stroke-width: 1; }
.plot .dot { stroke: var(--paper); stroke-width: 2; }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--paper); border: 1px solid var(--ink-3); box-shadow: 0 4px 14px rgba(0,0,0,.12); padding: .45rem .6rem; font: .78rem/1.4 var(--sans); color: var(--ink); min-width: 10rem; max-width: 16rem; z-index: 3; }
.tip .d { color: var(--ink-2); margin-bottom: .15rem; }
.tip i { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: .4rem; }
.tip .e { color: var(--ink-2); margin-top: .25rem; }
.chart details { margin-top: .5rem; font: .8rem var(--sans); color: var(--ink-2); }
.chart summary { cursor: pointer; width: fit-content; }
.chart details table { font-size: .82rem; margin-top: .4rem; }
.chart details th, .chart details td { padding: .35rem .8rem .35rem 0; }
.s1 { stroke: var(--s1); fill: var(--s1); background: var(--s1); }
.s2 { stroke: var(--s2); fill: var(--s2); background: var(--s2); }
.s3 { stroke: var(--s3); fill: var(--s3); background: var(--s3); }
.plot .ln.s1, .plot .ln.s2, .plot .ln.s3 { fill: none; }

.checks { margin-top: 2.4rem; }
.checks > p { font-size: 1rem; color: var(--ink-2); }
.checklist { margin-top: .9rem; border-top: 2px solid var(--ink); }
.check { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.check q { font-style: italic; }
.check .ctx { font: .75rem var(--sans); color: var(--ink-3); margin-left: .3rem; }
.check .m { grid-column: 1; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.check .links { font: .72rem var(--sans); color: var(--ink-3); margin-left: .25rem; white-space: nowrap; }
.check .links a { color: inherit; }
.verdict { grid-column: 2; grid-row: 1 / span 2; align-self: start; font: 600 .68rem var(--sans); letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 3px; padding: .2rem .45rem; white-space: nowrap; }
.verdict.matches { color: var(--ink); }
.verdict.close { color: var(--ink-2); border-style: dashed; }
.verdict.partly { color: var(--accent); }
.verdict.differs { color: var(--ink); background: var(--mark); border-color: var(--mark); }
.checked { text-decoration: underline dotted var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a.qmark { font: 600 .6rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; vertical-align: super; margin-left: .2em; }
a.qmark:hover { text-decoration: underline; }

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .ears { display: none; }
  /* The search box takes whatever the wordmark and Contents button leave, so the bar never overflows. */
  .bar .wrap { gap: .6rem; }
  .search { flex: 1 1 auto; min-width: 0; }
  .search input { width: 100%; max-width: none; }
  .flow { padding: .1rem .2rem; gap: .6rem; }
  .flow span { font-size: .72rem; }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layer-list li { grid-template-columns: 2.2rem minmax(0, 1fr); gap: .7rem; }
  .layer-list .big { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- multi-page additions ---------- */
html { scroll-padding-top: calc(var(--bar-h) + 1rem); }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--ink); color: var(--paper); padding: .5rem .8rem; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: .5rem; }
main:focus { outline: none; }
.loading { padding-block: 4rem; color: var(--ink-3); font: .9rem var(--sans); min-height: 60vh; }
.pagehead { padding-block: 2.2rem 1.5rem; border-bottom: 1px solid var(--ink); margin-bottom: 1.8rem; }
.pagehead h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.04; letter-spacing: -.02em; margin: .4rem 0 .8rem; font-variation-settings: "opsz" 72; }
.pagehead .deck { max-width: 46rem; font-size: 1.2rem; line-height: 1.45; color: var(--ink-2); }
.pagebody { padding-bottom: 4rem; }
.pagebody > section + section { margin-top: 3rem; }
.pagebody h2.sub { font-size: 1.6rem; line-height: 1.15; margin: 0 0 1rem; padding-top: 1rem; border-top: 1px solid var(--ink); }

.tally { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-bottom: 2rem; font: .95rem var(--sans); color: var(--ink-2); }
.tally b { font: 600 1.6rem var(--serif); color: var(--ink); margin-right: .35rem; font-variant-numeric: lining-nums; }
.checkgroup + .checkgroup { margin-top: 2.4rem; }
.checkgroup h2 { font-size: 1.35rem; margin: 0 0 .2rem; }
.checkgroup h2 a { text-decoration: none; }
.checkgroup h2 a:hover { color: var(--accent); }
.checkgroup .kicker { display: block; }

.sources td, .sources th { font-size: .9rem; }
.sources tbody th { width: auto; font-weight: 500; }
.notfound ul { margin-top: 1rem; }

/* ---------- walkthrough (home page) ---------- */
.stack.walking .cell { opacity: .14; transition: opacity .35s, border-color .35s, background-color .35s; }
.stack.walking .cell.shown { opacity: 1; }
.stack.walking .cell.focus { border-color: var(--accent); background: var(--accent-wash); }
.stack.walking .cell.focus .num { color: var(--accent); }
.stack.walking .band.unseen { opacity: .45; }
.stack.walking .flow { opacity: .3; }
.band[data-part="A"] .cell.focus { background: var(--paper); }
.walk { display: grid; gap: .9rem; }
.walk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.walk-dots { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.walk-dots button { width: 1.6rem; height: .5rem; padding: 0; border: 1px solid var(--ink-3); border-radius: 1px; background: transparent; cursor: pointer; }
.walk-dots button.done { background: var(--ink-3); }
.walk-dots button[aria-current="step"] { background: var(--accent); border-color: var(--accent); }
.walk-title { font-size: 1.55rem; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.walk-quote { margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--accent); font-size: 1.02rem; line-height: 1.5; }
.walk-quote cite { display: block; margin-top: .45rem; font: normal .78rem var(--sans); color: var(--ink-3); }
.walk-quote cite a { color: inherit; }
.walk-ch, .walk-note { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.walk-ch .kicker, .walk-note .kicker { display: block; margin-bottom: .15rem; }
.walk-ch a { color: var(--ink); }
.walk-chart .chart h3 { font-size: 1rem; }
.walk-chart .chart .sub { font-size: .85rem; }
.walk-chart .plot { height: 200px; }
.walk-chart .chart details { display: none; }
.walk-end { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; font: .88rem var(--sans); padding-top: .4rem; border-top: 1px solid var(--rule); }
.wmini { display: none; gap: .25rem; }
.wmini .row { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); align-items: center; gap: .3rem; }
.wmini .row > span { font: 600 .68rem var(--sans); color: var(--ink-3); }
.wmini .cs { display: flex; gap: .25rem; }
.wmini i { flex: 1; display: grid; place-items: center; height: 1.6rem; font: normal .8rem var(--serif); border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-3); opacity: .35; }
.wmini i.s { opacity: 1; color: var(--ink-2); }
.wmini i.f { opacity: 1; color: var(--accent); border-color: var(--accent); background: var(--accent-wash); font-weight: 600; }
@media (max-width: 999px) {
  .front-lead.walking > aside { order: -1; border-top: 0; padding-top: 0; }
  .wmini { display: grid; }
}
@media (min-width: 1000px) {
  .front-lead.walking > aside .walk { position: sticky; top: calc(var(--bar-h) + 1rem); max-height: calc(100vh - var(--bar-h) - 2rem); overflow: auto; padding-right: .3rem; }
}

/* ---------- situation reports and learning layout ---------- */
.sitrep { background: var(--paper-2); border-top: 3px double var(--ink); padding: 1.1rem 1.3rem 1.3rem; margin-top: 1.4rem; }
.abody > section.sitrep { padding-top: 1.1rem; }
.sitrep > h2 { margin-bottom: .3rem; }
.stamp { font: .78rem/1.4 var(--sans); color: var(--ink-3); margin-bottom: .9rem; }
.prose.plain p { font-size: 1.08rem; line-height: 1.6; }
.primer-quote { margin: 1.4rem 0 0; padding: .2rem 0 .2rem 1rem; border-left: 2px solid var(--accent); }
.primer-quote .kicker { display: block; margin-bottom: .35rem; }
.primer-quote p { font-size: 1rem; color: var(--ink-2); }
.depth { margin-top: 2.6rem; padding-top: .7rem; border-top: 1px solid var(--ink); }
.depth .kicker { color: var(--accent); }
.abody > .depth + section { padding-top: .6rem; }
.ideas { list-style: none; counter-reset: idea; margin: 0 0 1.4rem; padding: .7rem 0 .2rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  columns: 2 14rem; column-gap: 1.5rem; font: .88rem/1.35 var(--sans); }
.ideas li { counter-increment: idea; break-inside: avoid; margin-bottom: .5rem; display: flex; gap: .45rem; }
.ideas li::before { content: counter(idea); color: var(--accent); font: 600 .78rem var(--sans); min-width: 1rem; }
.ideas a { text-decoration: none; color: var(--ink); }
.ideas a:hover { color: var(--accent); }
.links-list { display: grid; gap: 1.1rem; }
.link-item { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.link-item h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.link-item h3 a { text-decoration: none; }
.link-item h3 a:hover { color: var(--accent); }
.link-item p { font-size: 1rem; }
.link-item .chips { margin-top: .45rem; }
.refs { margin: .3rem 0 .6rem; padding-left: 1.1rem; }
.refs li { font-size: .98rem; margin-bottom: .35rem; }
.refs a { color: var(--ink); }
.refnote, .refs-inline { font: .82rem/1.45 var(--sans); color: var(--ink-3); }
.refs-inline a { color: var(--ink-2); }
.sources-sec p { font-size: .98rem; }
.dash { display: grid; border-top: 1px solid var(--ink); }
.dash-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 10.5rem 6.5rem; grid-template-areas: "n t v s" "n j v s"; gap: .2rem .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.dash-row .dn { grid-area: n; align-self: start; } .dash-row .dt { grid-area: t; } .dash-row .dj { grid-area: j; } .dash-row .dv { grid-area: v; } .dash-row .ds { grid-area: s; }
.dash-row .dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.dash-row .dj { font-size: .95rem; line-height: 1.35; color: var(--ink-2); }
.dash-row:hover b { color: var(--accent); }
.dn { font-size: 1.7rem; color: var(--accent); text-align: right; font-variant-numeric: lining-nums; line-height: 1; }
.dt, .dv { display: grid; gap: .1rem; }
.dt b, .dv b { font-weight: 600; font-size: 1rem; }
.dt span, .dv span { font: .8rem/1.35 var(--sans); color: var(--ink-2); }
.ds { display: grid; gap: .1rem; }
.ds span { font: .7rem var(--sans); color: var(--ink-3); text-align: right; }
.spark { width: 100%; height: 30px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--s1); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
@media (max-width: 640px) {
  .dash-row { grid-template-columns: 1.6rem minmax(0, 1fr); grid-template-areas: "n t" "n j" "n v"; }
  .dash-row .ds { display: none; }
  .sitrep { padding: 1rem .9rem 1.1rem; }
}

/* ---------- sections written for the site ---------- */
.authored .prose h3 { font: 600 .82rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 1.7rem 0 .55rem; }
.authored .prose h3:first-child { margin-top: .4rem; }
.authored .prose.plain li { font-size: 1.02rem; line-height: 1.55; }
.plot .ref { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 4 3; }

/* ---------- the read: dated judgments with citations ---------- */
.read { border-top: 3px solid var(--ink); padding-top: 1rem; margin-top: 1.2rem; }
.read > h2 { margin-bottom: .25rem; }
.read .prose > ul { list-style: none; padding-left: 0; counter-reset: j; }
.read .prose > ul > li { counter-increment: j; position: relative; padding: .85rem 0 .85rem 2.1rem; border-bottom: 1px solid var(--rule); margin: 0; }
.read .prose > ul > li::before { content: counter(j); position: absolute; left: 0; top: .9rem; font: 600 1.25rem/1 var(--serif, Georgia, serif); color: var(--accent); }
.read .prose > ul > li > strong:first-child { display: block; font-size: 1.12rem; line-height: 1.35; margin-bottom: .3rem; }
.read .prose h3 { font: 600 .78rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 1.3rem 0 .4rem; }
.read .prose h3 + ul { list-style: disc; padding-left: 1.15rem; counter-reset: none; }
.read .prose h3 + ul > li { counter-increment: none; padding: 0; border: 0; margin-top: .35rem; }
.read .prose h3 + ul > li::before { content: none; }
.prose a[href*="#fig-"] { font: .78rem/1 var(--sans); white-space: nowrap; color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; }
.prose a[href*="#fig-"]::before { content: "▸ "; }

/* ---------- front page: the situation across all layers ---------- */
.front { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 1.6rem 2.2rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 1000px) { .front { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3rem; } }
.cover-head { font-size: clamp(1.75rem, 3.6vw, 2.7rem); line-height: 1.08; letter-spacing: -.015em; margin: .35rem 0 .6rem; }
.cover .stamp { margin-bottom: 1.1rem; }
.cover-story p { font-size: 1.1rem; line-height: 1.62; }
.cover-story p + p { margin-top: .85rem; }
.cover-story p:first-child::first-letter { float: left; font-size: 3.4rem; line-height: .82; padding: .3rem .45rem 0 0; font-weight: 600; }
.cover-story a, .watchlist a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.cover-story a:hover, .watchlist a:hover { color: var(--accent); }
.watchlist { margin-top: 1.6rem; border-top: 1px solid var(--rule); }
.watchlist ul { padding-left: 1.1rem; }
.watchlist li { font-size: .98rem; line-height: 1.5; }
.watchlist li a { font: .78rem var(--sans); white-space: nowrap; }
.cover-map { margin-top: 1.2rem; font: .85rem var(--sans); }
.cover-map a { color: var(--accent); text-decoration: none; }
.board { border-top: 1px solid var(--rule); padding-top: 1rem; }
@media (min-width: 1000px) { .board { border-top: 0; border-left: 1px solid var(--rule); padding: 0 0 0 1.6rem; } }
.board-note { font: .82rem/1.4 var(--sans); color: var(--ink-3); margin: .3rem 0 .6rem; }
.bgroup h3 { font: 600 .74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 1.1rem 0 .25rem; }
.bgroup h3 a { color: var(--ink-2); text-decoration: none; }
.bgroup h3 a:hover { color: var(--accent); }
.bgroup ol { list-style: none; padding: 0; margin: 0; }
.brow { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); column-gap: .5rem; row-gap: .1rem; padding: .5rem 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.brow:hover .bl b, .brow:focus-visible .bl b { color: var(--accent); }
.brow .bn { grid-row: span 3; font: 600 1rem/1.3 var(--serif); color: var(--ink-3); }
.brow .bl { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; font: .86rem/1.3 var(--sans); }
.brow .bj { font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
.brow .bv { font: .76rem/1.3 var(--sans); color: var(--ink-3); }
.tone { font: 600 .66rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; padding: .2rem .35rem; border-radius: 2px; border: 1px solid currentColor; }
.tone-stress { color: var(--s2); }
.tone-boom { color: var(--s1); }
.tone-calm { color: var(--s3); }
.tone-watch { color: var(--ink-3); }

/* ---------- footer links to the Map's reference pages ---------- */
.footlinks { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; width: 100%; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); margin-bottom: .2rem; }
.footlinks a { color: var(--ink); text-decoration: none; }
.footlinks a:hover, .footlinks a[aria-current="page"] { color: var(--accent); }

/* ---------- charts: ten-year view, full-history switch, compact evidence charts ---------- */
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; }
.chart-head h3 { margin: 0; }
.chart .win { font: 500 .74rem/1 var(--sans); color: var(--ink-2); background: none; border: 1px solid var(--rule); border-radius: 3px; padding: .3rem .5rem; cursor: pointer; white-space: nowrap; }
.chart .win:hover, .chart .win[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.chart details.readings summary { font: .74rem var(--sans); color: var(--ink-3); cursor: pointer; }
.chart details.readings .table-wrap { margin-top: .4rem; }
.evidence > .chart { min-width: 0; }
.evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem 1.2rem; margin-top: .9rem; }
.chart.compact { margin: 0; padding: .7rem .8rem .5rem; background: var(--paper-2); border-radius: 3px; }
.chart.compact h3 { font-size: .92rem; line-height: 1.25; }
.chart.compact .sub { font-size: .78rem; line-height: 1.35; margin: .2rem 0 .3rem; }
.chart.compact .plot { height: 190px; }
.chart.compact .src { font-size: .7rem; }

/* ---------- key readings ---------- */
.readings-sec { margin-top: 2.2rem; }
.table-wrap table.kr { min-width: 0; }
.kr { width: 100%; border-collapse: collapse; font: .86rem/1.35 var(--sans); }
.kr th, .kr td { text-align: left; vertical-align: middle; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--rule); }
.kr thead th { font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--ink); }
.kr tbody th { font-weight: 600; color: var(--ink); }
.kr tbody th a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .18em; }
.kr tbody th a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.kr td b { display: block; font: 600 1rem/1.2 var(--serif); }
.kr td small { color: var(--ink-3); font-size: .74rem; }
.kr td.hist { color: var(--ink-3); font-size: .78rem; max-width: 12rem; }
.kr td.sp { width: 6rem; }
.kr .spark { height: 24px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) { .kr .hist { display: none; } .kr td.sp { width: 4rem; } }
.reports { padding-left: 1.1rem; }
.reports li { font-size: .98rem; line-height: 1.5; margin-top: .4rem; }
.reports .cite { font: .76rem var(--sans); color: var(--ink-3); }
.reports .cite a { color: var(--ink-2); }
.inside { font: .86rem/1.6 var(--sans); margin-top: 1.4rem; }
.inside a { display: inline-block; margin: 0 .5rem .3rem 0; padding: .2rem .5rem; border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; color: var(--ink); }
.inside a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- background: collapsed reference sections ---------- */
.background { margin-top: 2.6rem; }
.bg-note { font: .86rem/1.45 var(--sans); color: var(--ink-3); margin: .2rem 0 .8rem; }
details.bg { border-top: 1px solid var(--rule); }
details.bg:last-of-type { border-bottom: 1px solid var(--rule); }
details.bg > summary { list-style: none; cursor: pointer; padding: .75rem 0 .75rem 1.4rem; position: relative; display: grid; gap: .15rem; }
details.bg > summary::-webkit-details-marker { display: none; }
details.bg > summary::before { content: "+"; position: absolute; left: 0; top: .72rem; font: 500 1.05rem/1 var(--sans); color: var(--accent); }
details.bg[open] > summary::before { content: "−"; }
details.bg > summary .bt { font: 600 1.05rem/1.3 var(--serif); color: var(--ink); }
details.bg > summary:hover .bt { color: var(--accent); }
details.bg > summary .bs { font-size: .9rem; line-height: 1.4; color: var(--ink-3); }
details.bg .bg-body { padding: .2rem 0 1.4rem 1.4rem; }
.conn { list-style: none; padding: 0; margin: 0; }
.conn li { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); font: .88rem/1.4 var(--sans); }
.conn .ct { font-weight: 600; color: var(--ink); text-decoration: none; }
.conn a.ct:hover { color: var(--accent); }
.conn span { color: var(--ink-2); }
.conn span a { color: var(--ink-2); }
.ib-links { display: grid; gap: .1rem; margin-top: .6rem; font: .86rem/1.35 var(--sans); }
.ib-links .kicker { margin-bottom: .2rem; }
.ib-links a { color: var(--ink); text-decoration: none; padding: .15rem 0; }
.ib-links a:hover { color: var(--accent); }

/* ---------- cover images (printed as a CMYK halftone by covers.js) ---------- */
.cover-art { margin: 0 0 1.1rem; padding: 0; border: 0; background: none; }
.cover-art .art { position: relative; overflow: hidden; background: #f3f1ea; border-radius: 2px; }
.cover-art.band .art { aspect-ratio: 4 / 1; }
.cover-art.lead .art { aspect-ratio: 16 / 9; }
.cover-art img, .cover-art .shader { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-art img { object-fit: cover; filter: grayscale(1) contrast(1.05); }
.cover-art figcaption { margin-top: .35rem; font: .72rem/1.4 var(--sans); color: var(--ink-3); }
.cover-art .credit { white-space: nowrap; }
.cover-art .credit a { color: var(--ink-2); }
.cover-art.band figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
/* Part and layer pages open with a hero across the text column and side panel. */
.cover-art.hero { margin-bottom: 1.6rem; }
.cover-art.hero .art { aspect-ratio: 3 / 1; }
.cover-art.hero figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
@media (max-width: 640px) { .cover-art.band .art { aspect-ratio: 5 / 2; } .cover-art.hero .art { aspect-ratio: 2 / 1; } }
