@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f8f7f4;
  --ink: #18191b;
  --text: #25282e;
  --muted: #4f535b;
  --rule-strong: #7d808a;
  --rule: #b6b8be;
  --link: #2a5a9e;
  --link-hover: #153c74;
  --mark: #f8eab4;
  --help: #6d717a;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Public Sans runs large beside Newsreader: small sizes, slight tracking */
  --label-size: 13.5px;
  --label-track: 0.01em;

  --gutter: clamp(20px, 12vw, 240px);
  --aside: clamp(140px, 15vw, 220px);
  --col-gap: 48px;
  --band-pad: 28px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
  scrollbar-color: var(--rule) var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 26px;
  font-weight: 380;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--mark); color: var(--ink); }

h1, h2, h3, p, ul, pre, table, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 400; text-wrap: balance; }
p, dd, figcaption, td { text-wrap: pretty; }

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--link) 70%, transparent);
  transition: color 120ms ease-out, text-decoration-color 120ms ease-out;
}
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }

/* Standalone links are controls, so they take the sans; links inside a sentence keep the serif */
.source-links a, .colophon-group a {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 22px;
  letter-spacing: var(--label-track);
  text-underline-offset: 5px;
}
/* A 44px hit area for links that stand alone; the negative margin hands the padding back so the rhythm holds */
.section-more .tab-link a, .back-to-filters a, .source-links a, .colophon-group a {
  display: inline-block;
  padding-block: 11px;
  margin-block: -11px;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 1px;
}
[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  /* A centred column, as on balfrontower.org: wide screens get wide margins */
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 22px;
}

/* Help terms */

.term {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  /* A taller hit area that leaves the text where it was: the padding is taken back by the margin */
  padding: 6px 0;
  margin: -6px 0;
  cursor: help;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--help);
  border-radius: 1px;
}
.term:hover, .term[data-open] { text-decoration-color: var(--ink); }

.tip {
  position: absolute;
  z-index: 10;
  width: min(clamp(228px, 17.8vw, 290px), calc(100vw - 32px));
  padding: 11px 13px 12px;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid #9a9da2;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 22px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 140ms cubic-bezier(.16,1,.3,1), transform 220ms cubic-bezier(.16,1,.3,1);
}
.tip.is-open { opacity: 1; transform: none; }
.tip::before, .tip::after {
  content: "";
  position: absolute;
  border: solid transparent;
}
/* Pointer toward the term, on whichever side the tip opened. */
.tip[data-side="left"]::before { left: 100%; top: var(--arrow, 34px); border-width: 9px 0 9px 13px; border-left-color: #9a9da2; transform: translateY(-50%); }
.tip[data-side="left"]::after  { left: calc(100% - 1px); top: var(--arrow, 34px); border-width: 8px 0 8px 12px; border-left-color: var(--ground); transform: translateY(-50%); }
.tip[data-side="below"]::before { bottom: 100%; left: var(--arrow, 24px); border-width: 0 9px 12px; border-bottom-color: #9a9da2; transform: translateX(-50%); }
.tip[data-side="below"]::after  { bottom: calc(100% - 1px); left: var(--arrow, 24px); border-width: 0 8px 11px; border-bottom-color: var(--ground); transform: translateX(-50%); }
.tip[data-side="above"]::before { top: 100%; left: var(--arrow, 24px); border-width: 12px 9px 0; border-top-color: #9a9da2; transform: translateX(-50%); }
.tip[data-side="above"]::after  { top: calc(100% - 1px); left: var(--arrow, 24px); border-width: 11px 8px 0; border-top-color: var(--ground); transform: translateX(-50%); }

/* Bands: a narrow summary beside wide evidence */


.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 24px;
  font-variant-numeric: lining-nums tabular-nums;
}
.ledger th, .ledger td {
  text-align: left;
  vertical-align: middle;
  padding: 8px 10px 9px 12px;
  height: 42px;
}
.ledger th {
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--label-size);
  line-height: 20px;
  font-weight: 500;
  letter-spacing: var(--label-track);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid #5d5f68;
}
.ledger td { border-bottom: 1px solid var(--rule); }
.evidence .ledger th:nth-child(1) { width: 34%; }
.evidence .ledger th:nth-child(2) { width: 22%; }
.evidence .ledger th:nth-child(3) { width: 10%; }
.ledger td.strength {
  font-family: var(--sans);
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: var(--label-track);
  color: var(--ink);
}

.evidence-note, .evidence-scope { font-size: 17.5px; line-height: 25px; }
.evidence-note { margin-top: 14px; }
.source-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 38px;
  row-gap: 6px;
  margin-top: 16px;
  font-size: 17.5px;
}
.evidence-scope { margin-top: 16px; }

/* Commands and the copy control */

.commands { position: relative; padding-top: 7px; }
.commands pre, .repeat pre {
  font-family: var(--mono);
  font-size: 13.5px;
  color: #33363d;
  white-space: pre;
  overflow-x: auto;
  overflow-wrap: normal;
  max-width: 100%;
}
.commands pre { line-height: 23px; }
.copy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  vertical-align: middle;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: var(--label-size);
  line-height: 20px;
  letter-spacing: var(--label-track);
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.copy:hover { color: var(--link-hover); }
.copy-status { margin-left: 12px; vertical-align: middle; font-family: var(--sans); font-size: var(--label-size); letter-spacing: var(--label-track); color: var(--muted); }

.aside-note { margin-top: 14px; font-size: 17.5px; line-height: 25px; color: var(--muted); max-width: 36ch; }

code { font-family: var(--mono); font-size: 0.82em; color: #33363d; }
pre code { font-size: inherit; }

.witness { margin: 0 0 36px; }
.witness figcaption { font-size: 17.5px; line-height: 25px; max-width: 70ch; }
.witness-time {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: var(--label-track);
  color: var(--ink);
}
.witness dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  margin-top: 14px;
  border-top: 1px solid var(--rule-strong);
}
.witness dl > div { padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
.witness dt { font-family: var(--sans); font-size: var(--label-size); line-height: 22px; font-weight: 500; letter-spacing: var(--label-track); color: var(--ink); }
.witness .reading {
  display: block;
  margin-top: 4px;
  font-size: 46px;
  line-height: 52px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
  font-variant-numeric: lining-nums tabular-nums;
}
.witness .reading-off { background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%); width: fit-content; }
.witness .why { display: block; margin-top: 6px; font-size: 17px; line-height: 24px; color: var(--muted); max-width: 40ch; }

.repeat { margin-top: 22px; font-size: 17.5px; line-height: 25px; }
.repeat pre { margin-top: 8px; line-height: 22px; }
.repeat p + .study-list { margin-top: 10px; }
.repeat .study-list + p { margin-top: 14px; }

.ledger caption {
  caption-side: top;
  text-align: left;
  color: var(--ink);
  font-size: 24px;
  line-height: 31px;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 36;
  padding-bottom: 8px;
}

/* The glossary is set as the study page's evidence list: groups with a label column, each term
   an always-open entry with the entry title's type and a definition at reading measure */
.glossary-page { margin-top: 28px; padding-top: 0; border-top: 1px solid var(--rule-strong); }
/* The page's subject leads in the question-heading role, on the content column's edge like the terms */
.glossary-intro {
  display: grid;
  grid-template-columns: var(--aside) minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding: 34px 0 30px;
}
.glossary-intro > * { grid-column: 2; }
/* The way back sits in the heading row's empty label column, its line centred on the heading's */
.glossary-intro .back-to-study {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  margin-top: -5px;
  padding: 11px 0 11px 4px;
  font: 15px/22px var(--sans);
  letter-spacing: var(--label-track);
  text-underline-offset: 5px;
}
.glossary-intro h1 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.glossary-hint { margin-top: 8px; max-width: 56ch; font-size: 17.5px; line-height: 25px; color: var(--muted); }
.glossary-index ul { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 16px; max-width: 72ch; }
.glossary-index a { display: inline-block; padding: 11px 0; font: 400 15px/22px var(--sans); letter-spacing: var(--label-track); text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
.glossary > div { padding: 6px 0 16px; }
/* Each line is measured in its own size, so the 16px account does not run longer than the definition */
.glossary dt, .glossary dd { max-width: 65ch; }
.glossary dt { font-size: 20px; line-height: 27px; font-weight: 450; letter-spacing: -0.005em; color: var(--ink); }
.glossary dfn { font-style: normal; }
.term-link { color: inherit; text-decoration: none; }
.term-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--rule-strong); }
/* A link into the glossary marks the term it lands on, as the study page marks the one result to see */
.glossary > div:target dfn { background-image: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); }
.glossary dd { margin-top: 4px; font-size: 17.5px; line-height: 25px; color: var(--text); }
/* The longer account under a definition; tooltips use only the first line */
.glossary dd.more { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--muted); }
.glossary dd.more a { white-space: nowrap; }


/* Narrower screens: the same order, stacked */

@media (max-width: 1100px) {
  :root { --col-gap: 36px; }

}

@media (max-width: 860px) {
  .glossary-intro { grid-template-columns: minmax(0, 1fr); padding: 26px 0 22px; }
  .glossary-intro > * { grid-column: 1; }
  .glossary-intro .back-to-study { grid-row: auto; margin: -11px 0 4px; padding-left: 0; }

  .aside-note { max-width: 60ch; }

  .witness dl { grid-template-columns: minmax(0, 1fr); }
  .witness .reading { font-size: 38px; line-height: 44px; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }

  /* Prose tables become labelled rows. The numeric ones stay tables, because a number is read against its column. */
  .ledger:not(.ledger-numeric) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ledger:not(.ledger-numeric) tbody { display: block; border-top: 1px solid var(--rule-strong); }
  .ledger:not(.ledger-numeric) tr { display: block; padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
  .ledger:not(.ledger-numeric) th, .ledger:not(.ledger-numeric) td { display: block; height: auto; padding: 2px 0; border: 0; width: auto !important; }
  .ledger-numeric th, .ledger-numeric td { padding: 8px 0 9px 12px; }
  .ledger-numeric th:first-child, .ledger-numeric td:first-child { padding-left: 0; }
  .ledger-numeric th:not(:first-child), .ledger-numeric td:not(:first-child) { text-align: right; }
  .evidence .ledger-numeric th:nth-child(n) { width: auto; }
  .ledger:not(.ledger-numeric) td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    letter-spacing: var(--label-track);
    color: var(--muted);
  }

  .ledger caption { display: block; }

  .source-links { column-gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Study prose, lists and the skip link */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--ground); padding: 12px; }
.skip-link:focus { top: 8px; }

.study-prose { font-size: 17.5px; line-height: 25px; max-width: 65ch; }
.study-prose + .study-prose { margin-top: 16px; }

.study-list { list-style: disc; padding-left: 22px; max-width: 65ch; font-size: 17.5px; line-height: 25px; }
.study-list li + li { margin-top: 12px; }
.revision { overflow-wrap: anywhere; }

#limits .ledger { margin-top: 24px; }
#sources p + p { margin-top: 16px; }
.repeat { min-width: 0; }

/* Definition lists for who did what and the study's design decisions */

.contribution { max-width: 65ch; font-size: 17.5px; line-height: 25px; }
.study-prose + .contribution { margin-top: 20px; }
/* Harry's own words: the page is otherwise third person, so a first-person account is set
   apart by size, ink and hanging quote marks (Newsreader ships no italic) */
.quote { position: relative; max-width: calc(60ch + 18px); margin: 0 0 24px; padding-left: 18px; }
.quote blockquote { margin: 0; }
.quote p { font-size: 19px; line-height: 28px; color: var(--ink); font-variation-settings: "opsz" 24; }
.quote p + p { margin-top: 12px; }
/* The mark is 1.4em; its top sits on the first line's cap height (measured, 19px text on a 28px line) */
.quote p:first-child::before { content: "\201C"; position: absolute; left: 0; top: 3.7px; font-size: 1.4em; line-height: 1; color: var(--muted); }
.quote p:last-child::after { content: "\201D"; }
.quote figcaption { margin-top: 10px; font: 400 var(--label-size)/22px var(--sans); letter-spacing: var(--label-track); color: var(--muted); }
.contribution > div { padding: 13px 0 15px; border-top: 1px solid var(--rule); }
.contribution dt { font: 500 13.5px/22px var(--sans); color: var(--ink); margin-bottom: 6px; }
.contribution dd { margin: 0; }
.decision-boundary { display: block; margin-top: 6px; color: var(--muted); }

/* The study page, arranged like balfrontower.org: a title line, one-line
   sections that open in place, a three-column filter, then the evidence list. */

.title-block { padding: 40px 0 0; }
/* Crosscheck's mark, Counterproof: two proof signs that face each other but do not meet */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}
.mark { display: block; width: 18px; height: 18px; }
/* The wordmark is smaller and heavier than the title, so weight, not size, separates them */
.brand-name {
  font: 520 20px/20px var(--serif);
  letter-spacing: -0.004em;
  font-variation-settings: "opsz" 24;
  /* Flex centres the line box; this centres the capitals on the mark (measured at 4x) */
  transform: translateY(0.11em);
}
.brand-mark:hover .brand-name { text-decoration: underline; text-underline-offset: 5px; }
/* The study's title is the page's one primary heading: a light display cut at the largest optical size */
.title-block h1, .title-block .site-title {
  margin-top: 22px;
  color: var(--ink);
  font-size: min(36px, 8.4vw);
  line-height: 1.12;
  /* The glossary sets this title in a p, which would otherwise take the paragraphs' "pretty" wrap */
  text-wrap: balance;
  font-weight: 320;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
}
.title-block h1 a, .title-block .site-title a { color: inherit; text-decoration: none; }

/* Sections, one line each until opened */

.sections { padding: 22px 0 30px; border-bottom: 1px solid var(--rule-strong); }
.section summary {
  display: flex;
  align-items: baseline;
  gap: 0 10px;
  padding: 5px 0;
  list-style: none;
  cursor: pointer;
}
.section summary::-webkit-details-marker { display: none; }
.section-name {
  flex: none;
  position: relative;
  padding-left: 18px;
  font: 500 15px/26px var(--sans);
  letter-spacing: var(--label-track);
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--link) 60%, transparent);
}
/* A drawn plus that becomes a minus when the section is open */
.section-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
}
.section[open] .section-name::before { background-size: 10px 1.5px, 1.5px 0; }
.section-name::after { content: ":"; color: var(--link); }
.section summary:hover .section-name { color: var(--link-hover); text-decoration-color: currentColor; }
.section-first {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink);
}
.section[open] .section-first { white-space: normal; overflow: visible; }
/* The finding is the point of the page, so its line is never cut short */
#panel-finding .section-first { white-space: normal; overflow: visible; text-overflow: clip; }
.time { color: var(--ink); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.time-early { background-image: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); }
.section-more { padding: 4px 0 26px 18px; max-width: calc(65ch + 18px); }
/* Wider screens hang the labels in a margin column, so every first line and its
   paragraphs share one left edge; the column fits the longest label, "Finding:" */
@media (min-width: 641px) {
  .sections { --section-label: 92px; }
  .section summary { display: grid; grid-template-columns: var(--section-label) minmax(0, 1fr); column-gap: 0; }
  .section-more { padding-left: var(--section-label); max-width: calc(65ch + var(--section-label)); }
}
.section-more p { font-size: 17.5px; line-height: 25px; }
.section-more p + p { margin-top: 12px; }
.section-more strong { font-weight: 550; color: var(--ink); }
.section-more .tab-link a { font: 15px/22px var(--sans); letter-spacing: var(--label-track); text-underline-offset: 5px; }
.section[open] summary { padding-bottom: 8px; }
.section:focus-within summary:focus-visible { outline-offset: 2px; }

/* The filter row: label, questions, strengths */

.filters {
  display: grid;
  grid-template-columns: var(--aside) minmax(0, 1fr) minmax(250px, 320px);
  column-gap: var(--col-gap);
  padding: 36px 0 34px;
  border-bottom: 1px solid var(--rule-strong);
}
.filters h2, .filters h3, .evidence-heading, .group-title {
  font: 500 var(--label-size)/22px var(--sans);
  letter-spacing: var(--label-track);
  color: var(--ink);
}
.filter-label { padding-left: 4px; }
.filter-hint { margin-top: 4px; max-width: 26ch; font: 400 var(--label-size)/20px var(--sans); letter-spacing: var(--label-track); color: var(--muted); }
.filter-strengths h2 { margin-bottom: 8px; }
/* Lifts the first question onto the labels' line, past its own 9px hit padding */
.filter-questions { margin-top: -9px; }
/* The questions keep their chunks (what happened, how sure, do it yourself) by space alone */
.questions + .questions { margin-top: 18px; }
.questions { margin: 0; padding: 0; list-style: none; }
.questions a {
  display: inline-block;
  padding: 9px 0;
  font-size: 19px;
  line-height: 26px;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
}
.questions a[aria-current="true"] { color: var(--ink); text-decoration-color: transparent; }
.questions a[aria-current="true"] > span {
  background-image: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%);
}
/* Newsreader kerns "f?" 0.15em looser than any other pair before a question mark */
.no-kern { font-kerning: none; }

.strengths { margin: 0; padding: 0; list-style: none; }
.strengths[hidden] { display: none; }
.strengths button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: 400 15px/22px var(--sans);
  letter-spacing: var(--label-track);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.strengths button span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--muted) 35%, transparent);
}
.strengths button .strength-count {
  margin-left: -4px;
  color: var(--muted);
  font-variant-numeric: lining-nums tabular-nums;
  text-decoration: none;
}
.strengths button[data-empty] { color: var(--help); }
.strengths button[data-empty] span:not(.strength-count) { text-decoration-color: transparent; }
.strengths button[data-empty] .strength-count { color: var(--help); }
.strengths button:hover { color: var(--ink); }
.strengths button:hover span { text-decoration-color: currentColor; }
.strengths button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.strengths button[aria-pressed="true"] span { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.strength-key { margin: 0; padding: 0; list-style: none; }
.strength-key li { display: flex; align-items: center; gap: 10px; min-height: 36px; font: 15px/22px var(--sans); letter-spacing: var(--label-track); color: var(--text); }
.js .strength-key { display: none; }
.icon { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.filter-status { margin-top: 6px; font: var(--label-size)/22px var(--sans); letter-spacing: var(--label-track); color: var(--muted); }
.filter-status:empty { display: none; }
.filter-notice { margin-top: 10px; max-width: 26ch; font: 400 var(--label-size)/20px var(--sans); letter-spacing: var(--label-track); color: var(--ink); }
.filter-notice:empty { display: none; }

/* The answer to the chosen question */

.answer {
  display: grid;
  grid-template-columns: var(--aside) minmax(0, 1fr);
  column-gap: var(--col-gap);
  row-gap: 12px;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--rule-strong);
}
.answer[hidden] { display: none; }
.answer-label { padding: 6px 0 0 4px; font: 500 var(--label-size)/22px var(--sans); letter-spacing: var(--label-track); color: var(--ink); }
/* The label column is narrow, so the question heads the answer in the main column */
.answer > div { grid-column: 2; }
.answer h2 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; max-width: 28ch; }
.answer h2:focus { outline: none; }
.answer-text { font-size: 21px; line-height: 30px; color: var(--ink); max-width: 56ch; font-variation-settings: "opsz" 24; }
.answer-text p + p { margin-top: 12px; }
.answer-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; margin-top: 6px; font: var(--label-size)/22px var(--sans); letter-spacing: var(--label-track); color: var(--muted); }
.show-all {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: 400 var(--label-size)/22px var(--sans);
  letter-spacing: var(--label-track);
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
}
.show-all:hover { color: var(--link-hover); text-decoration-color: currentColor; }
.change-question { display: none; }
@media (max-width: 860px) {
  .js .change-question {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font: 400 var(--label-size)/22px var(--sans);
    letter-spacing: var(--label-track);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
  }
  .js .change-question:hover { text-decoration-color: currentColor; }
}

/* The evidence list, grouped like the archive's decades */

.evidence { padding: 22px 0 40px; }
.evidence-heading { padding: 0 0 18px 4px; }

/* Without script each answer sits by its question's first entry; with script the answer panel shows it */
.js .answer-inline { display: none; }
.answer-inline { max-width: 65ch; margin: 8px 0 16px; }
.answer-inline-q { font: 500 var(--label-size)/22px var(--sans); letter-spacing: var(--label-track); color: var(--ink); }
.answer-inline [data-answer] { margin-top: 4px; font-size: 17.5px; line-height: 25px; }
.answer-inline [data-answer] p + p { margin-top: 10px; }
.group {
  display: grid;
  grid-template-columns: var(--aside) minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding: 14px 0 10px;
  border-top: 1px solid var(--rule);
}
.group[hidden] { display: none; }
.group-title { padding: 6px 0 0 4px; font-weight: 400; color: var(--muted); }
.q-anchor { display: block; height: 0; }

.entry summary {
  position: relative;
  display: block;
  padding: 6px 0 9px;
  list-style: none;
  cursor: pointer;
}
.entry summary::-webkit-details-marker { display: none; }
/* The sections' drawn plus, hung in the column gap so titles keep their edge; it becomes a minus when open */
.entry summary::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 14.5px;
  width: 10px;
  height: 10px;
  color: var(--muted);
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
}
.entry[open] > summary::before { background-size: 10px 1.5px, 1.5px 0; }
.entry-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 0; font: inherit; }
.entry-title {
  font-size: 20px;
  line-height: 27px;
  color: var(--ink);
  font-weight: 450;
  letter-spacing: -0.005em;
}
.entry summary:hover .entry-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--rule-strong); }
.entry-key .entry-title { background-image: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); }
/* Open, the entry has its own marked reading, so the title gives up its mark */
.entry-key[open] .entry-title { background-image: none; }
.entry-icons { display: inline-flex; gap: 6px; color: var(--muted); }
.entry-meta { display: block; margin-top: 1px; font-size: 16px; line-height: 23px; color: var(--muted); }

.entry-body { padding: 10px 0 30px; }
.entry-body > .aside-note { margin-top: 0; margin-bottom: 18px; max-width: 65ch; }
.block[hidden] { display: none; }
/* Without JavaScript the filters cannot follow the reader, so each entry links back to them */
.back-to-filters { margin-top: 18px; }
/* A route from evidence to the glossary's longer account, for the terms that have one */
.glossary-link { margin-top: 14px; }
.glossary-link a { display: inline-block; padding: 11px 0; font: 15px/22px var(--sans); letter-spacing: var(--label-track); text-underline-offset: 5px; }
.back-to-filters a { font: 14px/22px var(--sans); letter-spacing: var(--label-track); text-underline-offset: 5px; }
/* Wide screens keep the filters in view, so only a phone, where they scroll away, keeps the link */
@media (min-width: 861px) { .js .back-to-filters { display: none; } }
.js .entry[open] .entry-body { animation: entry-in 360ms cubic-bezier(.16,1,.3,1) both; }
@keyframes entry-in { from { opacity: 0; transform: translateY(4px); } }

/* Table captions that only repeat the entry title are kept for screen readers */
#record caption, #results caption, #instants caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Prose keeps a reading measure; only tables use the full width */
.entry-body .evidence-note, .entry-body .evidence-scope, .entry-body > p, .repeat > p { max-width: 70ch; }

/* Each replay command wraps under itself instead of running off the edge */
.commands pre { white-space: normal; }
.commands .cmd { display: block; white-space: pre-wrap; overflow-wrap: normal; padding-left: 2ch; text-indent: -2ch; }
.commands .cmd + .cmd { margin-top: 2px; }
.commands .flag { white-space: nowrap; }
.commands .hash { word-break: break-all; }

/* The footer is a colophon on the filter row's grid: the credit, then this study's
   links, then links that leave the site */
.colophon {
  display: grid;
  grid-template-columns: var(--aside) minmax(0, 1fr) minmax(250px, 320px);
  column-gap: var(--col-gap);
  row-gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-strong);
}
.colophon-label { font: 500 var(--label-size)/22px var(--sans); letter-spacing: var(--label-track); color: var(--muted); margin-bottom: 10px; }
.colophon-credit { padding-left: 4px; }
.colophon-group ul { display: grid; row-gap: 8px; }
.copyright { margin-top: 48px; text-align: center; font: var(--label-size)/22px var(--sans); letter-spacing: var(--label-track); color: var(--muted); }

@media (max-width: 1100px) {
  .filters { grid-template-columns: var(--aside) minmax(0, 1fr); row-gap: 26px; }
  .filters > .filter-strengths { grid-column: 2; }
  .colophon { grid-template-columns: var(--aside) minmax(0, 1fr); }
  .colophon-group + .colophon-group { grid-column: 2; }
}
@media (max-width: 860px) {
  .filters, .answer, .group { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .answer > div { grid-column: 1; }
  .filters > .filter-strengths { grid-column: 1; }
  .filter-label, .answer > :first-child, .group-title, .evidence-heading { padding-left: 0; }
  .filter-hint, .filter-notice { max-width: none; }
  .group { row-gap: 2px; }
  /* With one column, the plus hangs in the page margin so entry text keeps the same left
     edge as group titles and the same margin on both sides */
  .entry summary::before { left: -17px; }
  .colophon { grid-template-columns: minmax(0, 1fr); }
  .colophon-group + .colophon-group { grid-column: 1; }
  .colophon-credit { padding-left: 0; }
}
@media (max-width: 640px) {
  /* Wide margins are a desktop idea; a phone keeps its width for reading */
  :root { --gutter: 24px; }
  .title-block { padding-top: 26px; }
  /* Each first line is one sentence, so a phone shows all of it rather than cutting it short,
     and the plus hangs in the margin like the entries' so every line starts on the same edge */
  /* On a phone the label runs into its sentence, like a run-in heading, and the text wraps
     under it; the plus is placed on the summary so it centres on the first line */
  .section summary { display: block; position: relative; line-height: 25px; }
  .section-name { display: inline; position: static; padding-left: 0; margin-right: 0.3em; line-height: inherit; }
  .section-name::before { left: -17px; top: 12px; }
  .section-first { display: inline; white-space: normal; overflow: visible; text-overflow: clip; font-size: 17.5px; line-height: 25px; }
  .section-more { padding-left: 0; }
  .questions a { font-size: 18px; line-height: 25px; padding: 9.5px 0; }
  .entry-title { font-size: 19px; line-height: 26px; }
  .answer-text { font-size: 19px; line-height: 27px; }
}
