/* Forward for Health: one stylesheet for every page.
   Look: spec §2 "Visual design" (docs/plans/archive/brand-and-design.md): Public Sans, warm stone
   neutrals, near-black buttons and a signal orange. Colours are defined only in the two :root
   blocks below; tests/core/test_layout.py checks their WCAG 2.2 AA contrast. The only files
   fetched are the self-hosted Public Sans fonts beside this file (SIL OFL, fonts/OFL.txt). */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-ext-wght-normal.d0a5d26ee7e7.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-wght-normal.e4c9b081863a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-ext-wght-italic.70c4758ac72a.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-wght-italic.5ac660b00f40.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f3ef;
  --surface: #e9e5df;
  --text: #1d1f22;
  --muted: #5a534c;
  --rule: #d6d0c8;
  --hatch: #e2ddd6; /* the Unassessed tile's stripes, light enough for text across them */
  --border: #827a71;
  --accent: #b0390b;
  --signal: #e04e17;
  --button: #1d1f22;
  --on-button: #f5f3ef;
  --focus: #b0390b;
  --danger: #a3172e;
  --notice: #f7e7c4;
  --backdrop: #1d1f2299; /* behind a modal dialog */
  --qr-bg: #ffffff; /* behind the authenticator QR code, in both themes */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517;
    --surface: #1e2023;
    --text: #ece8e3;
    --muted: #a69e95;
    --rule: #2f3135;
    --hatch: #2f3135;
    --border: #77716a;
    --accent: #ff8a5c;
    --signal: #ff6a2f;
    --button: #ece8e3;
    --on-button: #141517;
    --focus: #ff8a5c;
    --danger: #ff8a9b;
    --notice: #2e2716;
    --backdrop: #000000b3;
    --qr-bg: #ffffff;
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.inner, main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main { padding-top: 1.5rem; padding-bottom: 3rem; }

main p, main li, main dd, main blockquote { max-width: 70ch; }

h1, h2, h3, h4 { line-height: 1.2; margin: 1.6em 0 0.5em; font-weight: 650; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: 2.1rem; margin-top: 0.5em; letter-spacing: -0.025em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -100vw;
  top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  color: var(--accent);
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; }

/* Header and menus: the items wrap on narrow screens; no menu button, no script. */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mark { flex: none; }
.mark-f { fill: currentColor; }
.mark-arrow { fill: var(--signal); }
.site-header nav ul, .site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header nav[aria-label="Main"] a {
  display: inline-block;
  padding: 0.25rem 0;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.4em;
}
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.5rem 0;
}

/* Breadcrumbs: where a nested page sits, ahead of its heading. The separator is decoration,
   hidden from screen readers by its empty alternative text. */
.breadcrumbs { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li + li::before {
  content: "›";
  content: "›" / "";
  margin-right: 0.5rem;
}
.breadcrumbs [aria-current] { color: var(--text); }

/* Content */
.notice {
  background: var(--notice);
  border-left: 4px solid var(--accent);
  padding: 0.6rem 0.9rem;
}

/* Catalog cards (design slice 3): a hatched edge, an eyebrow, the title, then the three signals
   side by side, never combined. */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem 0.9rem 1.6rem;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 6px);
}
.card h3 { margin: 0.2rem 0 0.6rem; font-size: 1.1rem; }
.card h3 a { color: var(--text); text-decoration: none; }
/* The title's link covers the whole card, so the card is one link and one tab stop. */
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card:hover { border-color: var(--border); }
.card:hover h3 a { text-decoration: underline; }
.card p { margin: 0; }
.eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.25rem; margin: 0; }
.signals .signal:first-child { grid-column: 1 / -1; }
.signals dt, .signal-tiles dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}
.signals dd { margin: 0.1rem 0 0; font-size: 0.95rem; }
.signals dd p + p { margin-top: 0.25rem; }
.signal-unassessed dd {
  display: inline-block;
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 0 0.45em;
}
.card-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.7rem !important; }
@media (min-width: 48rem) {
  .signals { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .signals .signal:first-child { grid-column: auto; }
}

/* The impact ruler (catalog.ruler): one log scale, 1 thousand to 100 million deaths a year. */
.ruler { display: block; width: 100%; overflow: visible; }
.ruler-mini { height: 12px; max-width: 14rem; margin-top: 0.4rem; }
.ruler-mini + .ruler-scale { max-width: 14rem; font-size: 0.65rem; height: 1.05rem; }
.ruler-mini + .ruler-scale span:nth-child(1), .ruler-mini + .ruler-scale span:nth-child(6) { transform: translateX(-50%); }
.ruler-full { height: 22px; margin-top: 0.5rem; }
.ruler-tick { stroke: var(--border); stroke-width: 1; }
.ruler-major, .ruler-base { stroke: var(--text); stroke-width: 1; }
.ruler-needle { fill: var(--signal); }
.ruler-band { fill: var(--signal); fill-opacity: 0.3; }
.ruler-scale { position: relative; height: 1.2rem; color: var(--muted); font-size: 0.72rem; }
.ruler-scale span { position: absolute; top: 0.15rem; transform: translateX(-50%); }
.ruler-scale span:nth-child(1) { left: 0; transform: none; }
.ruler-scale span:nth-child(2) { left: 20%; }
.ruler-scale span:nth-child(3) { left: 40%; }
.ruler-scale span:nth-child(4) { left: 60%; }
.ruler-scale span:nth-child(5) { left: 80%; }
.ruler-scale span:nth-child(6) { left: 100%; transform: translateX(-100%); }

/* The entry's signal tiles */
.signal-tiles { display: grid; gap: 0.75rem; margin: 1.25rem 0 0.5rem; }
.tile {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}
.signal-tiles dd { margin: 0; }
.signal-tiles p { margin: 0; }
.tile-v { font-size: 1.7rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; margin-top: 0.2rem !important; font-variant-numeric: tabular-nums; }
.tile-d { color: var(--muted); font-size: 0.88rem; }
.tile-link { font-size: 0.88rem; margin-top: 0.6rem !important; }
.tile-unassessed {
  background: repeating-linear-gradient(135deg, transparent 0 7px, var(--hatch) 7px 8px), var(--bg);
  border: 1.5px dashed var(--border);
}
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0.6rem 0 0.2rem; padding: 0; font-size: 0.8rem; }
.stages li { border-top: 3px solid var(--border); color: var(--muted); padding: 0.35rem 0.4rem 0 0; }
.stages li[aria-current] { border-top-color: var(--signal); color: var(--text); font-weight: 650; }
.signals-note { color: var(--muted); font-size: 0.85rem; }
@media (min-width: 48rem) {
  .signal-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin: 1.5rem 0 1rem;
}
.tabs a {
  display: inline-block;
  padding: 0.4rem 0;
  font-weight: 600;
  text-decoration: none;
}
.tabs a[aria-current] {
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--accent);
}

table, .card { font-variant-numeric: tabular-nums; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td {
  border-bottom: 1px solid var(--rule);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th { font-weight: 600; }
caption { text-align: left; font-weight: 600; padding: 0.4rem 0; }

dt { font-weight: 600; margin-top: 0.6rem; }
dd { margin-left: 0; }

blockquote {
  border-left: 3px solid var(--rule);
  margin: 1rem 0;
  padding-left: 1rem;
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
pre { overflow-x: auto; background: var(--surface); padding: 0.75rem; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* Forms */
form > div, fieldset > div { margin: 0 0 1rem; }
label, legend { font-weight: 600; }
label { display: block; margin-bottom: 0.25rem; }
input[type="checkbox"] + label, input[type="radio"] + label,
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
  display: inline;
  font-weight: normal;
}
fieldset {
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin: 1rem 0;
  min-width: 0; /* fieldsets otherwise never shrink below their content, widening phone pages */
  padding: 0.75rem 1rem;
}
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  max-width: 100%;
  padding: 0.45rem 0.6rem;
}
input[type="checkbox"], input[type="radio"] { padding: 0; }
textarea { width: 100%; min-height: 6rem; }
.helptext { color: var(--muted); display: block; font-size: 0.95rem; margin-top: 0.25rem; }
.errorlist { color: var(--danger); font-weight: 600; list-style: none; margin: 0.25rem 0; padding: 0; }

button, input[type="submit"] {
  background: var(--button);
  border: 1px solid var(--button);
  border-radius: 6px;
  color: var(--on-button);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1rem;
}
button:hover, input[type="submit"]:hover { text-decoration: underline; }
button.secondary { background: transparent; border-color: var(--border); color: var(--text); }
/* allauth's link-style buttons (Cancel, Download codes, Generate new codes): outlined and
   spaced, so two in a row read as two actions. */
a.button-link {
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  display: inline-block;
  font-weight: 600;
  margin: 0 0.75rem 0.75rem 0;
  padding: 0.5rem 1rem;
  text-decoration: none;
}
a.button-link:hover { text-decoration: underline; }

/* A modal question, such as the physician application's "no institutional email". */
dialog {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  max-width: min(32rem, calc(100vw - 2rem));
  padding: 1.25rem 1.5rem;
}
dialog::backdrop { background: var(--backdrop); }
dialog h2 { font-size: 1.2rem; margin-top: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* allauth's authenticator QR code (the only data: image the CSP allows) is a transparent SVG
   with black modules: keep it dark on white in both themes, with a quiet zone for scanners. */
img[src^="data:image/svg+xml"] {
  background: var(--qr-bg);
  border-radius: 4px;
  display: block;
  padding: 1rem;
}
/* The authenticator secret (32 characters) shown in full, so it can be read or copied. */
#authenticator_secret { display: block; letter-spacing: 0.05em; margin-bottom: 0.25rem; max-width: 30rem; width: 100%; }

details > summary { cursor: pointer; font-weight: 600; }

/* The catalog filters sit in a grid so the entries stay near the top. */
form[role="search"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem 1.25rem;
  align-items: start;
  margin: 1rem 0 1.5rem;
}
form[role="search"] > div { margin: 0; }
form[role="search"] > div:has(input[type="checkbox"]) { grid-column: span 2; }
form[role="search"] select, form[role="search"] input:not([type="checkbox"]) { width: 100%; }
form[role="search"] button { justify-self: start; }

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

/* Home (site-structure slice 2): a search-first hero, three ways in, recent entries. */
.hero { padding: 1rem 0 0.5rem; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-top: 0.25em;
  max-width: 16ch;
}
.hero-soft { display: block; color: var(--muted); }
form.hero-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1.5rem 0 0;
  max-width: 38rem;
  padding: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
form.hero-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
form.hero-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  font-size: 1.05rem;
  padding: 0.55rem 0.6rem;
}
form.hero-search input:focus-visible { outline: none; }
form.hero-search button { flex: none; }
.hero-note { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }
.ways { display: grid; gap: 0.75rem; margin: 2rem 0 2.5rem; }
.ways a {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding: 1rem 2.5rem 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.ways a::after { content: "→" / ""; position: absolute; right: 1rem; top: 0.95rem; color: var(--accent); font-size: 1.15rem; }
.ways a b { font-weight: 650; }
.ways a span { color: var(--muted); font-size: 0.92rem; }
.ways a:hover { border-color: var(--border); }
.ways a:hover b { text-decoration: underline; }
@media (min-width: 48rem) {
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Diseases (site-structure slice 3): a letter bar and plain A–Z lists, never ordered by burden. */
.letters { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0 0 1.5rem; }
.letters a, .letters span {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 4px;
  font-weight: 600;
}
.letters a { background: var(--surface); border: 1px solid var(--rule); text-decoration: none; }
.letters a:hover { border-color: var(--border); }
.letters span { color: var(--muted); }
.condition-group h2 { border-bottom: 1px solid var(--rule); padding-bottom: 0.3rem; }
.condition-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; }
.condition-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--rule); max-width: none; }
.condition-list a { font-weight: 600; }
.synonyms { color: var(--muted); font-size: 0.9rem; }
.count { color: var(--muted); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 48rem) {
  .condition-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* How AI helps (site-structure slice 4): the approaches in four groups */
.approach-group { margin: 1.75rem 0 0; }
.approach-group h3 { margin: 0; padding-bottom: 0.4rem; border-bottom: 2px solid var(--text); }
.approach-group > p { color: var(--muted); margin: 0.5rem 0 0.25rem; }
.approach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; }
.approach-list li { display: grid; align-content: start; gap: 0.1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); max-width: none; }
.approach-list a { font-weight: 650; }
.approach-list span { color: var(--muted); font-size: 0.92rem; }
.approach-facts { display: grid; gap: 0.75rem; margin: 1.25rem 0; }
.approach-facts div { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 0.9rem 1rem; }
.approach-facts dt { color: var(--muted); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; margin: 0; text-transform: uppercase; }
.approach-facts dd { margin: 0.25rem 0 0; }
@media (min-width: 48rem) {
  .approach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contribute and About (site-structure slice 5) */
.lead { font-size: 1.12rem; }
.paths { display: grid; gap: 1rem; margin: 1.75rem 0 2rem; }
.path { display: grid; align-content: start; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 1.1rem 1.2rem; }
.path h2 { margin: 0.1rem 0 0.5rem; }
.path p { margin: 0 0 0.75rem; }
.path-step { color: var(--muted); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.path dl { margin: 0 0 0.9rem; display: grid; gap: 0.4rem; }
.path dt { color: var(--muted); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; margin: 0; text-transform: uppercase; }
.path dd { margin: 0; }
.path-link { margin-top: auto; font-weight: 650; }
.path-link a::after { content: " →"; }
.about-links { padding-left: 1.2rem; }
@media (min-width: 60rem) {
  .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Account hub (site-structure slice 6) */
.hub { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.hub section { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.2rem; }
.hub h2 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.hub p { margin: 0 0 0.6rem; color: var(--muted); }
.hub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.hub a { font-weight: 650; }
.hub .hub-editor { border-color: var(--border); }
@media (min-width: 48rem) {
  .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub .hub-editor { grid-column: 1 / -1; }
}

/* Entry page section list (Ledger profile layout): a short list on phones, a side column that
   stays in view on wide screens. No JavaScript. */
.toc { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 1.5rem 0; padding: 0.75rem 0; }
.toc p { color: var(--muted); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; margin: 0 0 0.4rem; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.92rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.entry-main > :first-child { margin-top: 0; }
[id] { scroll-margin-top: 1rem; }
@media (min-width: 60rem) {
  .entry-layout { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 2.5rem; margin-top: 2rem; }
  .toc { position: sticky; top: 1rem; align-self: start; border: 0; border-left: 2px solid var(--rule); margin: 0; padding: 0 0 0 0.9rem; }
  .toc ol { display: grid; gap: 0.45rem; }
}
