/* The Scope Desk — bespoke editorial research-desk theme.
   Paper/ink layers, cobalt marginalia, restrained orange for the single call to action.
   No gradients, no rounded card grid, no pill badges, no fabricated charts.
   System fonts only; no @import. */

:root {
  --paper: #faf6ee;
  --paper-deep: #f1ebdf;
  --ink: #14161a;
  --ink-soft: #3c4048;
  --ink-muted: #5a5f69;
  --rule: #c9c2b4;
  --rule-strong: #8f887a;
  --cobalt: #1c3f9e;
  --cobalt-deep: #14307a;
  --orange: #b3440e;
  --orange-ink: #8a3309;
  --focus: #1c3f9e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 68ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --field: clamp(1.25rem, 5vw, 4.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; overflow-wrap: anywhere; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

p, li, dd, dt, th, td { overflow-wrap: break-word; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 50;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule-strong);
  background: var(--paper);
}
.header-inner {
  max-width: 86rem;
  margin: 0 auto;
  padding: 1.1rem var(--field) 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem 2rem;
}
.brand {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.standfirst {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 46ch;
}
.site-nav { min-width: 0; }
.site-nav ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}
.site-nav li { margin: 0; }
.site-nav a {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }

@media (min-width: 62rem) {
  .header-inner {
    grid-template-columns: auto minmax(14rem, 26rem) minmax(0, 1fr);
    align-items: baseline;
  }
  .site-nav ul { justify-content: flex-end; margin-top: 0; }
}

/* ---------- Main shell ---------- */

main { display: block; }
.page {
  max-width: 86rem;
  margin: 0 auto;
  padding: 0 var(--field);
}
.page > section { border-bottom: 1px solid var(--rule); }
.page > section:last-of-type { border-bottom: 0; }

.article-header { padding-top: clamp(1.5rem, 4vw, 3rem); }

/* ---------- Typographic base ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 3.2vw, 3.6rem); margin: 0 0 0.7em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.05rem); margin: 0 0 0.55em; }
h3 { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.32rem); margin: 0 0 0.4em; line-height: 1.2; }

p { margin: 0 0 1.05em; }
.lede {
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  margin: 0 0 0.9rem;
}

.fig-ref {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  border-bottom: 1px solid var(--cobalt);
  padding-bottom: 0.05em;
  overflow-wrap: anywhere;
}

.margin-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  border-left: 2px solid var(--cobalt);
  padding: 0.15rem 0 0.15rem 0.85rem;
  margin: 1.3rem 0 1.5rem;
  max-width: 46ch;
}

.source-note {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 0.6rem;
  margin-top: 1.1rem;
  max-width: 78ch;
}

/* ---------- Figures (renderer inserts figure.article-figure > img + figcaption.media-caption) ---------- */

figure,
.article-figure {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.article-figure img,
figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-deep);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
}
.article-figure figcaption,
.media-caption,
figure figcaption {
  display: block;
  margin: 0.55rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
  overflow-wrap: break-word;
}
.opener-media,
.evidence-media,
.guides-media { min-width: 0; }

/* ---------- Opener ---------- */

.opener {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem 2.6rem;
  padding-top: clamp(1.4rem, 3.5vw, 2.6rem);
  padding-bottom: clamp(2rem, 4.5vw, 3.2rem);
  align-items: start;
}
.opener-media { order: -1; }
.opener-text { max-width: var(--measure); }
.opener-text p { max-width: 64ch; }

@media (min-width: 58rem) {
  .opener {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
  }
  .opener-media { order: 0; }
  .opener-media .article-figure,
  .opener-media figure {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .opener-media .article-figure img,
  .opener-media figure img {
    flex: 1 1 auto;
    min-height: 18rem;
    max-height: 34rem;
  }
  .opener-text { padding-top: 0.1rem; }
}

.cta-line { margin: 1.4rem 0 0; }
.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
  background: var(--orange-ink);
  border: 1px solid var(--orange-ink);
  border-radius: 0;
  padding: 0.72rem 1.15rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cta:hover,
.cta:focus { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Section heads ---------- */

.section-head {
  padding: clamp(1.6rem, 3.5vw, 2.6rem) 0 0;
  max-width: 74ch;
}
.section-note {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* ---------- Workflow spread ---------- */

.workflow { padding-bottom: clamp(2rem, 4.5vw, 3.2rem); }
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 3.2rem;
  margin-top: 1.5rem;
}
@media (min-width: 56rem) {
  .spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.spread-col { min-width: 0; }

.step {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 0.9rem;
  border-top: 1px solid var(--rule-strong);
  padding: 1.15rem 0 1.35rem;
}
.step-number {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cobalt-deep);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.step h3 { grid-column: 2; margin-top: 0; }
.step-body { grid-column: 2; min-width: 0; }
.step-body p { margin-bottom: 0.7em; max-width: 60ch; font-size: 1rem; }
.step-src {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 2px solid var(--cobalt);
  padding: 0.1rem 0 0.1rem 0.7rem;
  margin: 0.55rem 0 0;
}

/* ---------- Evidence section ---------- */

.evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 2.8rem;
  padding: clamp(2rem, 4.5vw, 3.2rem) 0;
  align-items: start;
}
.evidence-text { min-width: 0; max-width: var(--measure); }
.evidence-text p { max-width: 66ch; }
@media (min-width: 58rem) {
  .evidence { grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); }
  .evidence-media .article-figure img,
  .evidence-media figure img { max-height: 26rem; }
}

/* ---------- Four-way table ---------- */

.fourway { padding-bottom: clamp(2rem, 4.5vw, 3.2rem); }
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  margin: 1.4rem 0 0;
}
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-family: var(--sans);
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--ink);
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 0.55rem 0.85rem 0.6rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--rule);
}
thead th {
  background: var(--paper-deep);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}
tbody th { font-weight: 700; white-space: nowrap; }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Guides + tool links ---------- */

.guides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 2.8rem;
  padding: clamp(2rem, 4.5vw, 3.2rem) 0 clamp(2.2rem, 5vw, 3.6rem);
  align-items: start;
}
.guides-text { min-width: 0; max-width: var(--measure); }
@media (min-width: 58rem) {
  .guides { grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr); }
  .guides-media { order: 2; }
  .guides-text { order: 1; }
  .guides-media .article-figure img,
  .guides-media figure img { max-height: 24rem; }
}
.guide-list {
  list-style: none;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.guide-list li {
  margin: 0;
  padding: 0.75rem 0 0.8rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.55;
}
.guide-list li a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cobalt-deep);
}
.guide-desc { color: var(--ink-soft); }
.guide-list .guide-tool { border-bottom: 1px solid var(--rule-strong); }
.guide-list .guide-tool a { color: var(--orange-ink); }

/* ---------- Article pages ---------- */

.article { max-width: 86rem; margin: 0 auto; padding: 0 var(--field); }
.article-header { padding: clamp(1.6rem, 4vw, 3rem) 0 1.4rem; border-bottom: 1px solid var(--rule-strong); }
.article-header .lede { max-width: 62ch; color: var(--ink-soft); }
.article-body { max-width: 72ch; padding: 1.6rem 0 3rem; }
.article-body h2 { margin-top: 2rem; }
.article-body h3 { margin-top: 1.5rem; }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body li { margin-bottom: 0.45em; }
.article-body blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid var(--cobalt);
  color: var(--ink-soft);
}
.article-body .article-figure { margin: 1.6rem 0; }

/* ---------- Tool ---------- */

.tool-page { max-width: 72rem; }
.tool-page .lede { max-width: 64ch; }
.desk-note {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 0.8rem 0 0.85rem;
  margin: 1.4rem 0 1.8rem;
  max-width: 70ch;
}
.desk-note p { margin: 0; }

#scope-form { margin: 0 0 2rem; max-width: 46rem; }
fieldset {
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  margin: 0 0 1.4rem;
  padding: 1rem 1.1rem 1.3rem;
  min-width: 0;
  background: transparent;
}
legend {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 0.35rem;
  color: var(--ink);
}
.fieldset-help {
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0.2rem 0 1.1rem;
}
.field { margin: 0 0 1.25rem; }
.field label {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.help {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 0.45rem;
  max-width: 60ch;
}
input[type="text"],
input[type="url"],
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.6rem 0.7rem;
  min-height: 2.75rem;
}
textarea { resize: vertical; min-height: 6rem; }
select { appearance: auto; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--orange-ink); border-width: 2px; }
fieldset:disabled input,
fieldset:disabled select,
fieldset:disabled textarea { background: var(--paper-deep); color: var(--ink-muted); }
.error {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--orange-ink);
  margin: 0.35rem 0 0;
  min-height: 0;
}
.error:empty { display: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
}
button {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--ink-soft);
  border-radius: 0;
  padding: 0.65rem 1rem;
  min-height: 2.75rem;
  cursor: pointer;
  overflow-wrap: anywhere;
  text-align: left;
}
button:hover:not(:disabled) { background: var(--paper-deep); border-color: var(--ink); }
button:disabled { color: var(--ink-muted); background: var(--paper-deep); border-color: var(--rule); cursor: not-allowed; }
#run { color: var(--paper); background: var(--orange-ink); border-color: var(--orange-ink); }
#run:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
#run:disabled { background: var(--paper-deep); color: var(--ink-muted); border-color: var(--rule); }

.status {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0.5rem 0 0;
  min-height: 1.4em;
}
/* preserved-prefix focused completion */
.results-region { margin: 2.4rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--rule-strong); }
.results-region h2 { margin-top: 0; }
#results { margin: 1rem 0 0; min-height: 6rem; max-height: 34rem; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; word-break: break-word; padding: 1rem 1.1rem; background: var(--paper-deep); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 0; font-family: var(--mono); font-size: 0.85rem; line-height: 1.55; tab-size: 2; }
#results:empty { display: none; }
#results.error, .results-region.error #results { border-color: var(--orange-ink); border-width: 2px; }

.site-footer { border-top: 1px solid var(--rule-strong); background: var(--paper-deep); margin-top: clamp(2rem, 5vw, 3.5rem); }
.footer-inner { max-width: 86rem; margin: 0 auto; padding: clamp(1.6rem, 4vw, 2.6rem) var(--field) clamp(1.8rem, 4vw, 2.8rem); }
.site-footer p { margin: 0 0 0.9rem; max-width: 78ch; font-family: var(--sans); font-size: 0.84rem; line-height: 1.6; color: var(--ink-soft); }
.site-footer p:last-of-type { margin-bottom: 0; }
.footer-nav { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--rule); min-width: 0; }
.footer-nav ul, .site-footer > nav:not(.footer-nav) { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; }
.footer-nav li { margin: 0; }
.footer-nav a, .site-footer > nav:not(.footer-nav) a { font-family: var(--sans); font-size: 0.82rem; color: var(--cobalt-deep); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 0.08rem; overflow-wrap: anywhere; }
.footer-nav a:hover, .site-footer > nav:not(.footer-nav) a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.wordmark { margin: 0 0 0.3rem; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.site-header .standfirst { margin: 0 0 0.2rem; }
.site-header > .wordmark, .site-header > .standfirst, .site-header > .site-nav { max-width: 86rem; }
.site-header { padding: 1.1rem var(--field) 1.15rem; }
.site-header > .site-nav ul, .site-header > .site-nav { display: flex; flex-wrap: wrap; gap: 0.15rem 1.15rem; }
.site-header > .site-nav a { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 0.1rem; }
.site-header > .site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.site-header > .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }

.article, .article-header, .article-body { min-width: 0; }
.article-header h1 { margin-bottom: 0.5em; }
.article-body p, .article-body li { max-width: 72ch; }
.article-body figure, .article-figure { margin: 1.6rem 0; }

.tool-page, .page.tool, main > h1, main > .lede { min-width: 0; }
main { max-width: 86rem; margin: 0 auto; padding: 0 var(--field); }
main > h1 { margin-top: clamp(1.6rem, 4vw, 2.8rem); max-width: 22ch; }
main > .lede { max-width: 64ch; }
main > .reference { border-top: 1px solid var(--rule-strong); margin-top: 2.4rem; padding-top: 1.4rem; }
main > .reference table { min-width: 34rem; }
.reference .source-note { max-width: 80ch; }
noscript p { border: 1px solid var(--rule-strong); border-left: 3px solid var(--orange-ink); background: var(--paper-deep); padding: 0.9rem 1rem; font-family: var(--sans); font-size: 0.9rem; line-height: 1.55; color: var(--ink); max-width: 72ch; }

@media (max-width: 47.99rem) {
  .header-inner { grid-template-columns: minmax(0, 1fr); padding-left: 1rem; padding-right: 1rem; }
  .site-header { padding-left: 1rem; padding-right: 1rem; }
  .opener, .evidence, .guides, .spread { gap: 1.4rem 0; }
  .opener-text, .evidence-text, .guides-text { max-width: 100%; }
  .article-body, .article-header { max-width: 100%; }
  .article { padding-left: 1rem; padding-right: 1rem; }
  .page { padding-left: 1rem; padding-right: 1rem; }
  main { padding-left: 1rem; padding-right: 1rem; }
  .article-figure img, figure img { height: auto; max-height: none; }
  .step { grid-template-columns: 2.1rem minmax(0, 1fr); column-gap: 0.7rem; }
  .step-number { font-size: 0.85rem; }
  .step-body p, .step-src { max-width: 100%; }
  .fourway, .table-wrap, table { max-width: 100%; }
  .table-wrap { margin-left: 0; margin-right: 0; }
  fieldset { padding: 0.85rem 0.85rem 1.1rem; }
  #scope-form { max-width: 100%; }
  .actions { gap: 0.5rem; }
  .actions button { flex: 1 1 100%; text-align: center; }
  #results { font-size: 0.8rem; padding: 0.8rem; max-height: 26rem; }
  .footer-nav ul, .footer-nav, .site-footer > nav:not(.footer-nav) { flex-direction: column; gap: 0.4rem; }
  .cta { display: block; text-align: center; }
}

@media (max-width: 30rem) {
  .article-figure img, figure img { height: auto; }
  .margin-note, .source-note, .step-src, .desk-note { padding-left: 0.65rem; }
  h1 { font-size: clamp(1.75rem, 1.4rem + 2.4vw, 2.4rem); }
  .guide-list li { padding-top: 0.65rem; padding-bottom: 0.7rem; }
  a, .step-src, .source-note { overflow-wrap: anywhere; }
}

@media (min-width: 64rem) {
  .page { max-width: 80rem; }
  .article, main { max-width: 80rem; }
  .article-body { padding-right: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  @page { margin: 18mm 16mm; }
  :root { --paper: #ffffff; --paper-deep: #ffffff; --ink: #000000; --ink-soft: #1a1a1a; --ink-muted: #333333; --rule: #999999; --rule-strong: #666666; --cobalt-deep: #000000; --orange-ink: #000000; }
  body { background: #ffffff; color: #000000; font-size: 11pt; line-height: 1.5; }
  .site-header, .site-footer, .site-nav, .footer-nav, .skip-link, .cta, .actions, button, .table-wrap { border-color: #666666; }
  .site-header { border-bottom: 1px solid #666666; }
  .site-nav a[aria-current="page"] { border-bottom-color: #000000; }
  .site-footer { border-top: 1px solid #666666; }
  a { color: #000000; text-decoration: underline; }
  a[href^="http"]::after, a[href^="/"]::after { content: ""; }
  .cta, button { display: none; }
  .opener, .evidence, .guides, .spread { display: block; }
  .opener-media, .evidence-media, .guides-media { margin-bottom: 1rem; }
  .article-figure img, figure img { height: auto; max-height: none; border: 1px solid #666666; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  .article-figure, figure, .step, table { break-inside: avoid; page-break-inside: avoid; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; font-size: 9.5pt; }
  thead th { background: #f2f2f2; }
  #results { white-space: pre-wrap; overflow: visible; max-height: none; background: #ffffff; border: 1px solid #666666; }
  .page > section { border-bottom: 1px solid #999999; }
}

.table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; border-collapse: collapse; }
.table-wrap th, .table-wrap td { overflow-wrap: anywhere; word-break: break-word; white-space: normal; vertical-align: top; }
.table-wrap td a, .table-wrap th a, .table-wrap td code, .article-body a, .article-body code { overflow-wrap: anywhere; word-break: break-word; }
.table-wrap caption { text-align: left; overflow-wrap: anywhere; }

