@font-face{font-family:"Literata";src:url("/fonts/literata-latin-wght-normal.woff2") format("woff2");font-weight:200 900;font-style:normal;font-display:swap}
@font-face{font-family:"Literata";src:url("/fonts/literata-latin-wght-italic.woff2") format("woff2");font-weight:200 900;font-style:italic;font-display:swap}
@font-face{font-family:"Besley";src:url("/fonts/besley-latin-wght-normal.woff2") format("woff2");font-weight:400 900;font-style:normal;font-display:swap}
@font-face{font-family:"Work Sans";src:url("/fonts/work-sans-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
:root{color-scheme:light dark;--display:"Besley", Georgia, 'Times New Roman', serif;--text:"Literata", Georgia, 'Times New Roman', serif;--ui:"Work Sans", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;--figures:"Work Sans", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;--display-weight:800;--tracking:-0.02em;--paper:#ffffff;--ink:#17150f;--soft:#5c574a;--rule:#dedacd;--band:#ffffff;--on-band:#17150f;--link:#17150f;--mark:#e9b824;--on-mark:#17150f;}
@media (prefers-color-scheme:dark){:root{--paper:#141310;--ink:#ece8dc;--soft:#aaa493;--rule:#35322a;--band:#141310;--on-band:#ece8dc;--link:#f0c64a;--mark:#e9b824;--on-mark:#17150f;}}
/* Shared base for every publication. The format stylesheet that follows arranges the pages.
   Colours and fonts come from the site's identity as custom properties. */

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

:root {
  --wrap: 72rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --text-size: 1.0625rem;
  --raised: color-mix(in srgb, var(--ink) 4%, var(--paper));
  --field-rule: #8c8c8c;
  --field-ink: #242424;
  --field-hover: #696969;
  --error: #a4161a;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  accent-color: var(--ink);
  scrollbar-color: var(--field-rule) var(--paper);
}

@media (prefers-color-scheme: dark) {
  :root {
    --error: #ff9a9a;
    --field-ink: #e7e7e7;
    --field-hover: #b0b0b0;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--text-size);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.num,
time {
  font-variant-numeric: lining-nums;
}

/* Skip link and private preview strip */
.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  font: 600 0.9375rem/1.3 var(--ui);
}

.skip:focus {
  top: 0.5rem;
  outline: 2px solid var(--paper);
  outline-offset: -4px;
}

.preview-strip {
  background: var(--ink);
  color: var(--paper);
  font: 0.8125rem/1.4 var(--ui);
  padding: 0.4rem 0;
}

.preview-strip a {
  color: inherit;
  margin-left: 0.5rem;
}

.preview-strip a:focus-visible {
  outline-color: var(--paper);
}

/* Small labels: a preview status, or a disclosure next to a product */
.tag {
  display: inline-block;
  font: 600 0.75rem/1.3 var(--ui);
  letter-spacing: 0;
  color: var(--ink);
  border: 1px solid var(--field-rule);
  padding: 0.05rem 0.4rem;
  margin-left: 0.5rem;
  vertical-align: 0.2em;
  white-space: nowrap;
}

/* Masthead. Each format arranges these parts. */
.masthead {
  font-family: var(--ui);
}

.site-title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking);
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 0;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.masthead-standfirst,
.masthead-note {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.7rem 0;
}

.nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.nav a:is([aria-current="page"], [aria-current="location"]) {
  font-weight: 700;
  box-shadow: inset 0 -3px 0 currentColor;
}

.nav-label {
  color: var(--soft);
  padding: 0.7rem 0;
}

.nav-topics {
  font-size: 0.875rem;
}

/* Section links that cannot share one phone line sit in balanced columns, so that no link is left alone on a line. */
@media (max-width: 520px) {
  .nav:not(.nav-topics):has(> a:nth-of-type(5)) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    column-gap: 1.25rem;
  }
}
@media (max-width: 380px) {
  .nav:not(.nav-topics):has(> a:nth-of-type(4)):not(:has(> a:nth-of-type(5))) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    column-gap: 1.4rem;
  }
}
/* The columns start at the left unless a format centers its navigation; this rule has no specificity, so format rules win. */
:where(.nav) { justify-content: start; }

main {
  display: block;
  padding: 2.5rem 0 4.5rem;
}

/* Page and article heads */
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font: 0.875rem/1.4 var(--ui);
  color: var(--soft);
}

.crumbs li + li::before {
  content: "/";
  margin: 0 0.5rem;
  color: var(--soft);
}

.crumbs a {
  color: inherit;
}

.article-head h1,
.page-head h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  line-height: 1.08;
  margin-top: 0.8rem;
  max-width: 22ch;
}

.article-head h1 {
  max-width: 26ch;
}

.summary {
  font-size: 1.25rem;
  line-height: 1.45;
  margin-top: 0.9rem;
  max-width: 38rem;
  color: var(--ink);
}

.page-head {
  margin-bottom: 2.2rem;
}

.page-count {
  font: 0.875rem/1.4 var(--ui);
  color: var(--soft);
  margin-top: 0.7rem;
}

.note {
  font: 0.9375rem/1.5 var(--ui);
  background: var(--raised);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.9rem;
  margin-top: 1rem;
  max-width: 38rem;
}

/* What was checked */
.checked {
  font: 0.9375rem/1.5 var(--ui);
  display: grid;
  gap: 0.45rem;
}

.checked dt {
  font-weight: 700;
  display: inline;
}

.checked dd {
  display: inline;
}

.toc h2,
.in-article h2 {
  font: 700 0.9375rem/1.3 var(--ui);
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.toc ol {
  list-style: none;
  font: 0.9375rem/1.35 var(--ui);
  display: grid;
  gap: 0.4rem;
}

.toc a {
  color: var(--ink);
  text-decoration-color: var(--field-rule);
}

.in-article ul {
  list-style: none;
  font: 0.9375rem/1.35 var(--ui);
  display: grid;
  gap: 0.3rem;
}

.in-article li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
}

.in-article .tag {
  margin-left: 0;
}

/* Running text */
.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 2.4em;
  scroll-margin-top: 1.5rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.8em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.7em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--soft);
}

.prose strong {
  font-weight: 700;
}

.measure > p,
.measure > ul,
.measure > ol,
.measure > h2,
.measure > h3,
.measure > blockquote {
  max-width: var(--measure);
}

.cite {
  font: 600 0.72em/1 var(--ui);
  vertical-align: super;
  margin-left: 0.12em;
  font-variant-numeric: tabular-nums;
}

.cite a {
  text-decoration: none;
  padding: 0.1em 0.12em;
}

.cite a:hover {
  text-decoration: underline;
}

/* A word and its first citation wrap together, so a source number does not start a line alone. */
.cite-run {
  white-space: nowrap;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--ui);
  font-size: 0.9375rem;
  line-height: 1.4;
  /* Proportional figures: in some faces, tabular figures also widen the comma and the point ("2 , 000"). */
  font-variant-numeric: lining-nums;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

thead th {
  font-weight: 700;
  font-size: 0.875rem;
  vertical-align: bottom;
  border-bottom: 2px solid var(--ink);
}

tbody th {
  font-weight: 600;
}

th.num,
td.num {
  white-space: nowrap;
}

/* Excerpts keep the markdown alignment that the writer chose for a column of figures. */
.article-table :is(th, td)[align="right"] {
  text-align: right;
}

.article-table,
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-table table {
  min-width: 34rem;
}

.article-table:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.table-note,
.block-note {
  font: 0.875rem/1.5 var(--ui);
  color: var(--soft);
  margin-top: 0.6rem;
  max-width: 44rem;
}

.unknown {
  color: var(--soft);
}

.compare-block h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.compare-block {
  margin-bottom: 2.5rem;
}

.labels {
  display: block;
  margin-top: 0.25rem;
}

.labels .tag {
  margin-left: 0;
}

/* Sources */
.sources-block {
  margin-top: 3.5rem;
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}

.sources-block h2 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.sources {
  font: 0.9375rem/1.5 var(--ui);
  padding-left: 2.2rem;
  max-width: 46rem;
}

.sources li {
  padding: 0.55rem 0 0.55rem 0.2rem;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 1.5rem;
}

.sources li::marker {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sources li:target {
  background: var(--mark);
  color: var(--on-mark);
  box-shadow: -2.4rem 0 0 var(--mark), 0.5rem 0 0 var(--mark);
}

.sources li:target a {
  color: inherit;
}

.sources .statement {
  display: block;
}

.sources .where {
  display: block;
  color: var(--soft);
  font-size: 0.875rem;
}

.sources li:target .where {
  color: inherit;
}

.closing {
  margin-top: 2.5rem;
  font: 0.9375rem/1.55 var(--ui);
  max-width: var(--measure);
}

.closing p + p {
  margin-top: 0.5rem;
}

/* A line of record under an article in a list */
.entry-meta {
  font: 0.8125rem/1.4 var(--ui);
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1rem;
  margin-top: 0.7rem;
}

.entry-meta a {
  color: inherit;
}

/* What follows an article */
.more {
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}

.more h2 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.more-related ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2rem;
}

.more-related li > a {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking);
  font-size: 1.125rem;
  line-height: 1.25;
  color: var(--ink);
}

.more-related p {
  font: 0.9375rem/1.45 var(--ui);
  color: var(--soft);
  margin-top: 0.35rem;
}

.more-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.step {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.step span {
  display: block;
  font: 0.8125rem/1.4 var(--ui);
  letter-spacing: 0;
  color: var(--soft);
  margin-bottom: 0.2rem;
}

.step-after {
  grid-column: 2;
  text-align: right;
}

/* Lists of articles on section and topic pages. Formats restyle these. */
.listing {
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 46rem;
}

.listing-item {
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}

.listing-item h2 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.listing-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.listing-item h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.listing-summary {
  margin-top: 0.4rem;
  max-width: 38rem;
}

.listing-date,
.listing-question {
  display: block;
  font: 0.875rem/1.4 var(--ui);
  color: var(--soft);
  margin-bottom: 0.35rem;
}

.listing-products,
.row-products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font: 0.8125rem/1.3 var(--ui);
}

.listing-products span,
.row-products span {
  border: 1px solid var(--rule);
  padding: 0.1rem 0.45rem;
}

.listing-steps {
  list-style: none;
  counter-reset: step;
  font: 0.9375rem/1.4 var(--ui);
  margin-top: 0.8rem;
  display: grid;
  gap: 0.3rem;
}

.listing-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
}

.listing-steps li::before {
  content: counter(step);
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.topic-list {
  list-style: none;
  font: 1rem/1.45 var(--ui);
  display: grid;
  gap: 0.7rem;
  max-width: 44rem;
}

.topic-list a {
  font-weight: 700;
}

.topic-list span {
  display: block;
  color: var(--soft);
  font-size: 0.9375rem;
}

.other-topics {
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}

.other-topics h2,
.empty h2 {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.empty > p {
  max-width: 38rem;
  margin-bottom: 0.8rem;
}

.empty .topic-list {
  margin-top: 1.6rem;
}

/* Forms. Text-entry perimeters are neutral in every state. */
.form {
  display: grid;
  gap: 1.5rem;
  max-width: 34rem;
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 2rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.field > label,
.field > legend,
.filter > label {
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0;
}

.field > legend {
  margin-bottom: 0.4rem;
}

.hint {
  font-size: 0.875rem;
  color: var(--soft);
}

.input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--field-rule);
  border-radius: 0;
  padding: 0.6rem 0.75rem;
  caret-color: var(--link);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}

.input::placeholder {
  color: var(--soft);
  opacity: 1;
}

textarea.input {
  min-height: 7.5rem;
  resize: vertical;
}

select.input {
  padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 50%, calc(100% - 0.7rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.input:hover {
  border-color: var(--field-hover);
}

/* Focus: the border goes to neutral ink, and one neutral notch marks the leading edge.
   No coloured border, outline, ring, or perimeter shadow. */
.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--field-ink);
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--field-ink);
}

/* Invalid: the perimeter stays neutral. The message below carries the error. */
.input[aria-invalid="true"] {
  border-color: var(--field-rule);
}

.input[aria-invalid="true"]:focus {
  border-color: var(--field-ink);
}

.input:-webkit-autofill,
.input:autofill {
  border-color: var(--field-rule);
  -webkit-text-fill-color: var(--ink);
}

/* A focused autofilled field gets the same neutral ink border as any focused field. */
.input:-webkit-autofill:focus,
.input:autofill:focus {
  border-color: var(--field-ink);
}

.error {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--error);
}

.error:empty {
  display: none;
}

.choices {
  display: grid;
  gap: 0.15rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.3rem 0;
  cursor: pointer;
}

.choice input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--ink);
}

.hp {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  justify-self: start;
  font: inherit;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.65rem 1.5rem;
  min-height: 2.75rem;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), opacity 120ms ease-out;
}

.button:hover {
  opacity: 0.88;
}

.button:active {
  transform: scale(0.98);
}

.button[disabled] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.result {
  border: 1px solid var(--ink);
  background: var(--raised);
  padding: 1.1rem 1.25rem;
  max-width: 34rem;
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.55;
  margin-top: 2rem;
  animation: settle 220ms var(--ease-out);
}

.result h2 {
  font-family: var(--ui);
  font-size: 1.125rem;
  letter-spacing: 0;
  margin: 0 0 0.4rem;
}

.result p {
  margin: 0 0 0.5rem;
}

.result p:last-child {
  margin-bottom: 0;
}

.result .ref {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  user-select: all;
}

.form-failure {
  border: 1px solid var(--field-rule);
  background: var(--raised);
  padding: 0.75rem 0.95rem;
  color: var(--error);
  font-weight: 600;
}

.form-failure:empty {
  display: none;
}

/* The next step inside a message. It looks like a link and works like a button. */
.text-action {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.text-action:hover {
  text-decoration-thickness: 2px;
}

.form-failure a {
  color: inherit;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* Footer. The ownership statement keeps full text contrast. It is never dimmed. */
.footer {
  border-top: 1px solid var(--rule);
  padding: 2.2rem 0 3rem;
  font: 0.9375rem/1.55 var(--ui);
  color: var(--soft);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.footer .owner {
  color: var(--ink);
  font-size: 1rem;
  margin-top: 0.7rem;
  max-width: 30rem;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.footer-head {
  font-weight: 700;
  color: var(--ink);
}

.footer-nav a {
  color: var(--soft);
  justify-self: start;
}

/* Below 768px: one column everywhere. A record table becomes one block for each row. */
@media (max-width: 47.99rem) {
  main {
    padding: 1.6rem 0 3.5rem;
  }

  .article-aside .toc ol,
  .article-aside .in-article ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.1rem;
  }

  .article-aside .toc li,
  .article-aside .in-article li {
    border: 0;
    padding: 0.2rem 0;
    gap: 0.4rem;
  }

  .summary {
    font-size: 1.125rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .more-steps {
    grid-template-columns: 1fr;
  }

  .step-after {
    grid-column: 1;
    text-align: left;
  }

  .nav {
    gap: 0 1.1rem;
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td,
  .stack,
  .stack tbody,
  .stack tr,
  .stack th,
  .stack td {
    display: block;
    width: auto;
    min-width: 0;
  }

  .compare thead,
  .stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .compare tbody tr,
  .stack tbody tr {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .compare th,
  .compare td,
  .stack th,
  .stack td {
    padding: 0.2rem 0;
    border-bottom: 0;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--soft);
  }

  .button {
    justify-self: stretch;
  }
}

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

/* Magazine: a feature front. One lead story on a colour field with a figure from its own table. */
:root {
  --wrap: 80rem;
  --measure: 41rem;
  --text-size: 1.125rem;
}

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 0.9rem;
}

.site-title {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem);
  line-height: 1;
}

.masthead-standfirst {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.masthead-nav {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 2rem;
}

.v-banner .site-title {
  font-stretch: 112%;
  text-transform: none;
}

.v-reading .masthead-row,
.v-question .masthead-row {
  justify-content: center;
  text-align: center;
}

.v-reading .nav-row,
.v-question .nav-row {
  justify-content: center;
}

main {
  padding-top: 0;
}

/* Cover */
.cover {
  background: var(--mark);
  color: var(--on-mark);
  box-shadow: 0 0 0 100vmax var(--mark);
  clip-path: inset(0 -100vmax);
  padding: 3rem 0 3.2rem;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.cover a {
  color: inherit;
}

.cover a:focus-visible {
  outline-color: var(--on-mark);
}

.cover-kind {
  font: 700 0.9375rem/1.3 var(--ui);
  margin-bottom: 1rem;
}

.cover-kind a,
.contents-group h3 a {
  text-decoration: none;
  box-shadow: inset 0 -2px 0 currentColor;
}

.cover h2 {
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem);
  line-height: 1.02;
  max-width: 16ch;
}

.cover h2 a {
  text-decoration: none;
}

.cover h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.cover-dek {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-top: 1.2rem;
  max-width: 30rem;
}

.cover .entry-meta {
  color: inherit;
  margin-top: 1.4rem;
}

.cover .tag {
  color: inherit;
  border-color: currentColor;
}

.cover-opening {
  margin-top: 1.4rem;
  max-width: 36rem;
  font-size: 1.0625rem;
}

.cover-figure {
  background: var(--paper);
  color: var(--ink);
  padding: 1.2rem 1.3rem 1rem;
  align-self: center;
  min-width: 0;
}

.cover-figure a {
  color: var(--link);
}

.cover-figure figcaption {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking);
  font-size: 1.2rem;
  line-height: 1.2;
  border-top: 4px solid var(--ink);
  padding-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.cover-figure .article-table {
  overflow-x: auto;
}

/* The figure never scrolls sideways at this size: the table takes the width of the figure and a long cell wraps. */
.cover-figure table {
  font-size: 0.875rem;
  min-width: 0;
}

.cover-figure th,
.cover-figure td {
  padding: 0.45rem 0.8rem 0.45rem 0;
}

.figure-source {
  font: 0.8125rem/1.4 var(--ui);
  color: var(--soft);
  margin-top: 0.6rem;
}

.figure-source a {
  color: inherit;
}

/* Banner: the headline runs the full width, the figure sits under it */
.v-banner .cover {
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.v-banner .cover h2 {
  max-width: 22ch;
  font-size: clamp(2.3rem, 1rem + 5vw, 5rem);
  font-stretch: 108%;
  line-height: 0.98;
}

.v-banner .cover-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.v-banner .cover-figure {
  max-width: 52rem;
}

/* Reading: the story starts on the cover */
.v-reading .cover {
  grid-template-columns: minmax(0, 1fr);
}

.v-reading .cover-text {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  gap: 0 4rem;
}

.v-reading .cover-text > * {
  grid-column: 1;
}

.v-reading .cover-opening {
  grid-column: 2;
  grid-row: 1 / span 5;
  margin-top: 0;
  font-size: 1.125rem;
}

/* Question: the reader's question leads */
.cover-question {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking);
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem);
  line-height: 1.06;
  max-width: 20ch;
  text-wrap: balance;
}

.v-question .cover h2 {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-top: 1.4rem;
  max-width: 34rem;
}

.v-question .cover h2 a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.v-question .cover-dek {
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

/* Second stories and contents */
.second {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  margin-top: 3rem;
}

.story {
  border-top: 4px solid var(--ink);
  padding-top: 1rem;
}

.story h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.1;
}

.story h2 a {
  color: var(--ink);
  text-decoration: none;
}

.story h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.story-question {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-top: 0.7rem;
  color: var(--soft);
}

.story-opening {
  margin-top: 0.9rem;
  font-size: 1.0625rem;
}

.contents {
  margin-top: 3.5rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.2rem;
}

.contents > h2 {
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}

.contents-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 3rem;
}

.contents-group h3 {
  font: 700 0.9375rem/1.3 var(--ui);
  letter-spacing: 0;
  margin-bottom: 0.7rem;
}

.contents-group h3 a {
  color: var(--ink);
}

.contents-group ul {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.contents-group li > a {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking);
  font-size: 1.15rem;
  line-height: 1.22;
  color: var(--ink);
}

.contents-group p {
  font: 0.9375rem/1.45 var(--ui);
  color: var(--soft);
  margin-top: 0.25rem;
}

/* Article: the head on the colour field, the record in a strip, the text in the middle with wide tables */
.article-head {
  background: var(--mark);
  color: var(--on-mark);
  box-shadow: 0 0 0 100vmax var(--mark);
  clip-path: inset(0 -100vmax);
  padding: 2.4rem 0 2.6rem;
}

/* The head and the record strip start where the article body starts, so the colour field does not leave half of a wide screen empty. */
.article > .article-head,
.article > .article-aside {
  padding-inline: max(0px, calc((100% - 56rem) / 2));
}

.article-head .crumbs ol,
.article-head .crumbs li + li::before,
.article-head .summary {
  color: inherit;
}

.article-head a:focus-visible {
  outline-color: var(--on-mark);
}

.article-head h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.8rem);
  line-height: 1.03;
  max-width: 20ch;
}

.article-head .summary {
  font-size: 1.35rem;
}

.article-aside {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 1.5rem 3rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.article-body {
  max-width: 56rem;
  margin: 2.5rem auto 0;
}

.article-body .measure > p,
.article-body .measure > ul,
.article-body .measure > ol,
.article-body .measure > h2,
.article-body .measure > h3,
.article-body .sources,
.article-body .closing {
  margin-inline: auto;
}

.article-body .sources-block h2 {
  max-width: 46rem;
  margin-inline: auto;
}

.article-body .prose > p:first-child {
  font-size: 1.3rem;
  line-height: 1.5;
}

.prose h2 {
  font-size: 1.9rem;
}

.article-table table {
  font-size: 1rem;
}

.page-head {
  padding-top: 2.5rem;
}

.article > .more {
  max-width: 56rem;
  margin-inline: auto;
}

.listing {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 0 4rem;
}

.listing-item {
  border-top: 4px solid var(--ink);
  padding: 1rem 0 2.2rem;
}

.listing-item h2 {
  font-size: 1.7rem;
}

.listing-question {
  font-size: 1rem;
}

.other-topics,
.note {
  margin-top: 2.5rem;
}

@media (max-width: 59.99rem) {
  .cover,
  .v-reading .cover-text {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .v-reading .cover-opening {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1.4rem;
  }

  .article-aside {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 47.99rem) {
  :root {
    --text-size: 1.0625rem;
  }

  .cover {
    padding: 2rem 0 2.2rem;
  }

  .second {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-row {
    display: block;
  }

  .nav-topics {
    border-top: 1px solid var(--rule);
  }

  .v-reading .nav,
  .v-question .nav {
    justify-content: center;
  }

  .cover-figure {
    padding: 0.9rem 0.7rem 0.8rem;
  }

  /* On a phone the figure fits the screen: each column shows and a long cell wraps onto a second line. */
  .cover-figure table,
  .cover-figure thead th {
    font-size: 0.8125rem;
  }

  .cover-figure th,
  .cover-figure td {
    padding-right: 0.4rem;
    overflow-wrap: break-word;
  }

  .cover-figure th:last-child,
  .cover-figure td:last-child {
    padding-right: 0;
  }

  .article-body .prose > p:first-child {
    font-size: 1.15rem;
  }
}

.cover:not(:has(.cover-figure)) { grid-template-columns: minmax(0, 1fr); }
.cover-visual.prose img { max-width: 100%; height: auto; margin: 0; }

/* Each publication keeps its type, colors, and layout. These rules improve article reading. */
.prose { min-width: 0; }
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.8rem auto 0;
}
.prose picture { display: block; }
.prose .article-figure { margin: 1.8rem 0 0; }
.prose .article-figure img { margin: 0 auto; }
.article .prose figcaption { max-width: var(--measure); margin-top: .75rem; font: .875rem/1.55 var(--ui); color: var(--soft); }
.article .article-aside { position: static; max-height: none; overflow: visible; align-self: start; }
.article .source-group {
  max-width: var(--measure);
  border-bottom: 1px solid var(--rule);
}
.article .source-group summary {
  padding: 1rem 0;
  cursor: pointer;
  font: 600 1rem/1.45 var(--ui);
}
.article .source-group summary::marker { color: var(--soft); }
.article .source-group summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.article .source-page { margin: 0 0 1rem; font: .9375rem/1.5 var(--ui); }
.article .source-group .sources { margin-bottom: 1.4rem; }
.article .source-group li:focus { outline: 2px solid var(--ink); outline-offset: 4px; }
.article .in-article ul { max-height: none; overflow: visible; }
.article .article-table--stacked table { table-layout: auto; min-width: 34rem; width: 100%; }
.article .article-table--stacked th:first-child { min-width: 0; }
.article .article-table--stacked th,
.article .article-table--stacked td { min-width: 0; white-space: normal; overflow-wrap: normal; word-break: normal; }
/* At any width, a table wider than its region says so above itself and shades its right edge until the last column. */
.article .article-table[data-wide] {
  background:
    linear-gradient(to left, var(--paper) 40%, transparent) right / 2.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--ink) 22%, transparent), transparent) right / .9rem 100% no-repeat scroll;
}
.article .table-hint { margin: 1.4rem 0 -.8rem; color: var(--soft); font: .9375rem/1.4 var(--ui); }
.article .table-hint::after { content: " \2192"; }
/* A table ends where the paragraphs end. A wider table scrolls inside that measure. Magazine pages center their own measure. */
body:not(.f-magazine) .article .prose.measure > :is(.article-table, .table-hint) { max-width: var(--measure); }
/* A source note is small print under the table or chart that it supports. */
.article .prose .source-note { max-width: var(--measure); margin-top: .6rem; font: .875rem/1.5 var(--ui); color: var(--soft); }
/* Magazine tables span the full column, so their source note starts at the table edge, not in the centered measure. */
.f-magazine .article-body .measure > p.source-note { max-width: none; margin-inline: 0; }
@media (max-width: 767px) {
  .article .prose { font-size: 1.125rem; line-height: 1.7; }
  .article .article-aside { font-size: 1rem; line-height: 1.6; }
  .article .prose figcaption { font-size: 1rem; line-height: 1.6; }
  .article .source-page,
  .article .source-group .sources,
  .article .source-group summary { font-size: 1rem; line-height: 1.6; }
  /* Phone tables stay tables. Row names and two value columns of ordinary words fit the screen whole. Words never break inside a cell, so a long unbroken token widens its column and the table scrolls.
     A wider table keeps its row names in view while the other columns scroll, so one value reads down every row. */
  .article .article-table--stacked table { min-width: 100%; width: auto; }
  .article .article-table--stacked th,
  .article .article-table--stacked td { min-width: 6rem; font-size: 1rem; line-height: 1.5; overflow-wrap: normal; word-break: normal; }
  .article .article-table--stacked th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 6.5rem;
    padding-right: .75rem;
  }
  /* The rule beside the row names shows only when the other columns scroll under them. */
  .article .article-table--stacked[data-wide] th:first-child { box-shadow: inset -1px 0 0 var(--rule); }
  .article .article-table--stacked tr > :nth-child(2) { padding-left: .75rem; }
  :where(.article .article-table--stacked th:first-child) { background: var(--paper); }
  .article .cite a { display: inline-flex; min-width: 1.5rem; min-height: 1.5rem; align-items: center; justify-content: center; }
}

.article-tool { grid-column: 1; min-width: 0; }
@media (min-width: 1100px) {
  .f-desk .prose > .article-figure:has(img.article-image--portrait):not(h2 ~ .article-figure) {
    float: left;
    width: min(46%, 26.25rem);
    margin: 0 2rem 2rem 0;
  }
  .f-desk .prose > .article-figure:has(img.article-image--portrait):not(h2 ~ .article-figure) img { width: 100%; margin: 0; }
  .f-desk .prose > .article-figure:has(img.article-image--portrait):not(h2 ~ .article-figure) + h2 { display: flow-root; margin-top: 0; }
  .f-desk .prose:has(> .article-figure img.article-image--portrait) > h2:not(:first-of-type) { clear: both; }
}
@media (max-width: 767px) {
  .article .toc ol { display: grid; grid-template-columns: minmax(0, 1fr); column-count: 1; row-gap: .35rem; }
  .article .toc li { min-width: 0; width: 100%; }
  .table-scroll:has(> .readings), .table-scroll:has(> .grid) { overflow: visible; }
  .table-scroll > :is(.readings, .grid),
  .table-scroll > :is(.readings, .grid) tbody { display: block; width: 100%; min-width: 0; }
  .table-scroll > :is(.readings, .grid) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-scroll > :is(.readings, .grid) tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
  .table-scroll > :is(.readings, .grid) tbody th,
  .table-scroll > :is(.readings, .grid) tbody td { display: block; width: 100%; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; font-size: 1rem; }
  .table-scroll > :is(.readings, .grid) tbody th { grid-row: 1; font-size: 1.1rem; }
  .table-scroll > :is(.readings, .grid) td::before { content: attr(data-label); display: block; margin-bottom: .2rem; color: var(--soft); font: 600 .9375rem/1.4 var(--ui); }
}

/* Keep the reading task ahead of the supporting record on narrow desk and journal pages. */
:is(.f-desk, .f-journal) .review-strip { display: none; }
:is(.f-desk, .f-journal) .article-disclosure > summary { cursor: pointer; font: 700 .9375rem/1.45 var(--ui); }
:is(.f-desk, .f-journal) .article-disclosure > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
:is(.f-desk, .f-journal) .article-disclosure[open] > summary { margin-bottom: .65rem; }
@media (max-width: 47.99rem) {
  .f-desk .article .article-aside { gap: .7rem; padding: .8rem 1rem; border-color: var(--rule); }
  :is(.f-desk, .f-journal) .review-strip { display: block; margin: 0; font: .875rem/1.5 var(--ui); }
  :is(.f-desk, .f-journal) .article-disclosure .checked { margin-top: .75rem; }
  :is(.f-desk, .f-journal) .article-disclosure.toc { padding-top: .65rem; }
  :is(.f-desk, .f-journal) .article-disclosure.toc nav { padding: .5rem 0; }
  :is(.f-desk, .f-journal) .article-disclosure summary { min-height: 1.6rem; }
}

.f-desk .coverage-links > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.f-desk .coverage-links dt { font: 700 1.125rem/1.45 var(--ui); }
.f-desk .coverage-links dd { min-width: 0; }
.f-desk .coverage-links ul { list-style: none; }
.f-desk .coverage-links li + li { margin-top: .65rem; }
@media (max-width: 767px) {
  .f-desk .coverage-links > div { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
}
@media (min-width: 1100px) {
  /* Keep a complete paragraph beside the opening figure, even when it is taller than the remaining float. */
  .f-desk .prose:has(> .article-figure img.article-image--portrait) > p { display: flow-root; }
}
:is(.f-desk, .f-journal) .review-strip a { margin-left: .2em; }

/* A column that the writer aligned right holds figures. */
.article .article-table :is(th, td).num { text-align: right; }
