/* CA POST misconduct collection browser.
   The data is the figure. Neutrals do the structure; there is one accent
   (links and focus), the highlighter yellow for search hits, and amber
   for the few things a reader must check (a quote not found, a figure
   page, a match in review). Spacing comes from one 4px scale. */

:root {
  --bg: #fcfcfb;
  --surface: #ffffff;
  --sunken: #f3f3f1;
  --text: #1b1b19;
  --muted: #5d5d58;
  --faint: #8a8a84;
  --rule: #e7e7e3;
  --rule-strong: #cdcdc7;
  --link: #1f4f9c;
  --focus: #1f4f9c;
  --mark: #fde68a;
  --mark-text: #1b1b19;
  --flag: #94500a;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
          "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Noto Serif", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px;
  --s12: 48px;

  /* density: compact is the default; comfortable opens rows up */
  --row-pad: 5px;
  --data-size: 13px;
  --clip-lines: 1;
  color-scheme: light;
}
html[data-density="comfortable"] {
  --row-pad: 9px;
  --data-size: 14px;
  --clip-lines: 3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171716; --surface: #1d1d1c; --sunken: #252523;
    --text: #e4e4df; --muted: #a2a29b; --faint: #75756f;
    --rule: #2b2b29; --rule-strong: #41413d;
    --link: #93b3e6; --focus: #93b3e6;
    --mark: #5c4a06; --mark-text: #fff3c4; --flag: #e3ac62;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171716; --surface: #1d1d1c; --sunken: #252523;
  --text: #e4e4df; --muted: #a2a29b; --faint: #75756f;
  --rule: #2b2b29; --rule-strong: #41413d;
  --link: #93b3e6; --focus: #93b3e6;
  --mark: #5c4a06; --mark-text: #fff3c4; --flag: #e3ac62;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
}
/* links: accent colour, underlined only in running prose and on hover */
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
p a, dd a, .caption a { text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 600; }
h1 { font-size: 22px; }
h2 { font-size: 17px; margin: var(--s8) 0 var(--s3); }
h2.first { margin-top: 0; }
h3 { font-size: 14px; margin: var(--s6) 0 var(--s2); }
h2 .count, h3 .count { color: var(--faint); font-weight: 400;
  font-size: .85em; margin-left: var(--s1); }
p { margin: 0 0 var(--s3); }
code, .mono { font-family: var(--mono); font-size: .86em; }
mark { background: var(--mark); color: var(--mark-text); padding: 0 1px;
  border-radius: 2px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .5rem; background: var(--surface);
  padding: .4rem .7rem; z-index: 10; }

/* labels: plain text, no fills. "flag" is the one colour, for what a
   reader has to check */
.src { color: var(--muted); }
.machine { color: var(--faint); font-size: 12px; font-weight: 400;
  font-style: italic; white-space: nowrap; }
.flag { color: var(--flag); font-size: 12px; font-weight: 500;
  white-space: nowrap; }
.flag::before { content: "⚠ "; }

/* --- header --------------------------------------------------------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s2) var(--s8);
  padding: var(--s3) var(--s6); border-bottom: 1px solid var(--rule);
}
.site-name { font-weight: 600; color: var(--text); white-space: nowrap; }
.site-name:hover { text-decoration: none; }
.site-nav { display: flex; gap: var(--s6); flex-wrap: wrap; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.site-tools { margin-left: auto; display: flex; gap: var(--s2); }
.tool { font: inherit; font-size: 12px; color: var(--muted);
  background: none; border: 1px solid var(--rule);
  border-radius: 4px; padding: 2px var(--s2); cursor: pointer; }
.tool:hover { color: var(--text); border-color: var(--rule-strong); }

main { padding: var(--s6) var(--s6) var(--s12); max-width: 1440px;
  margin: 0 auto; }
footer { color: var(--faint); font-size: 12px; line-height: 1.6;
  padding: var(--s6) var(--s6) var(--s8); border-top: 1px solid var(--rule);
  max-width: 1440px; margin: 0 auto; }
footer > * { max-width: 60rem; }
@media (max-width: 600px) {
  .site-header, main, footer { padding-left: 16px; padding-right: 16px; }
}

.page-head { margin-bottom: var(--s4); }
.page-head h1 { margin-bottom: var(--s1); }
.lede { color: var(--muted); font-size: 14px; max-width: 46rem; margin: 0; }

/* --- search box ------------------------------------------------------ */
.searchbar { display: flex; gap: var(--s2); margin-bottom: var(--s3);
  max-width: 44rem; }
.searchbar input[type="search"] {
  flex: 1; font: inherit; padding: 7px var(--s3);
  border: 1px solid var(--rule-strong); border-radius: 6px;
  background: var(--surface); color: var(--text); min-width: 0;
}
button.primary { font: inherit; font-size: 14px; padding: 7px var(--s4);
  border-radius: 6px; border: 1px solid var(--text); background: var(--text);
  color: var(--bg); cursor: pointer; }
button.secondary { font: inherit; font-size: 14px; padding: 7px var(--s4);
  border-radius: 6px; border: 1px solid var(--rule-strong);
  background: var(--surface); color: var(--text); cursor: pointer; }
button.secondary:hover { border-color: var(--text); }
table.data .mono { font-size: .92em; }
.hint { color: var(--faint); font-size: 12px; margin: calc(-1 * var(--s1)) 0
  var(--s6); max-width: 44rem; }

/* --- filters: a row of dropdowns above a table ----------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s2);
  margin-bottom: var(--s3); }
.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; font-size: 13px;
  color: var(--muted); padding: 3px 10px; border: 1px solid var(--rule);
  border-radius: 999px; white-space: nowrap; user-select: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: "▾"; margin-left: 6px;
  color: var(--faint); font-size: 11px; }
.dropdown summary:hover { border-color: var(--rule-strong);
  color: var(--text); }
.dropdown summary.on { color: var(--text); border-color: var(--text); }
.dropdown[open] summary { border-color: var(--rule-strong);
  color: var(--text); }
.dropdown .menu { position: absolute; z-index: 5; top: calc(100% + 4px);
  left: 0; min-width: 15rem; max-width: 24rem; background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: 6px;
  box-shadow: 0 6px 20px rgb(0 0 0 / .12); padding: var(--s1); }
.dropdown .menu ul { max-height: 22rem; }

/* facet lists: the dropdown menus and the documents sidebar share these */
.facets ul, .dropdown ul { list-style: none; margin: 0; padding: 0;
  overflow-y: auto; }
.facets li a, .dropdown li a { display: flex; justify-content: space-between;
  gap: var(--s3); padding: 3px var(--s2); border-radius: 4px;
  color: var(--text); font-size: 13px; line-height: 1.35; }
.facets li a:hover, .dropdown li a:hover { background: var(--sunken);
  text-decoration: none; }
.facets li a[aria-pressed="true"], .dropdown li a[aria-pressed="true"] {
  font-weight: 600; }
.facets li a[aria-pressed="true"]::before,
.dropdown li a[aria-pressed="true"]::before { content: "✓"; margin-right: -4px;
  order: -1; }
.facets .n, .dropdown .n { color: var(--faint); font-weight: 400; }
.facets .zero, .dropdown .zero { opacity: .5; }

/* --- documents: facets in a sidebar beside a reading list ------------ */
.listing { display: grid; grid-template-columns: 14rem minmax(0, 1fr);
  gap: var(--s8); align-items: start; }
@media (max-width: 860px) {
  .listing { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .facets { order: 2; }
}
.facets details { padding: 0 0 var(--s4); }
.facets summary { cursor: pointer; font-size: 12px; font-weight: 600;
  color: var(--muted); padding: 0 0 var(--s1); list-style: none; }
.facets summary::-webkit-details-marker { display: none; }
.facets summary::before { content: "▸"; display: inline-block; width: 1em;
  color: var(--faint); }
.facets details[open] summary::before { content: "▾"; }
.facets ul { max-height: 15rem; margin-left: -8px; }

.result-head { display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--s2) var(--s4); margin-bottom: var(--s2); font-size: 13px; }
.result-head .count { font-weight: 600; font-size: 14px; }
.result-head form { margin-left: auto; color: var(--muted); }
.result-head select { font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 4px; padding: 1px 4px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2);
  margin-bottom: var(--s3); }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; border: 1px solid var(--rule-strong);
  border-radius: 999px; padding: 1px 10px; color: var(--text);
  background: var(--sunken); }
.chip:hover { text-decoration: none; border-color: var(--text); }
.chip .x { color: var(--faint); }
.chip:hover .x { color: var(--text); }

/* --- document results ------------------------------------------------- */
.results { list-style: none; margin: 0; padding: 0; max-width: 60rem; }
.result { padding: calc(var(--row-pad) * 2) 0;
  border-bottom: 1px solid var(--rule); }
.result-title { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.result-meta { font-size: 12px; color: var(--muted); margin: 2px 0 var(--s1);
  display: flex; flex-wrap: wrap; gap: 2px var(--s3); align-items: baseline; }
.result-meta .src { color: var(--text); }
.snippet { font-family: var(--serif); font-size: 15px; color: var(--text);
  margin: 0; overflow-wrap: anywhere; display: -webkit-box;
  -webkit-line-clamp: calc(var(--clip-lines) + 1);
  -webkit-box-orient: vertical; overflow: hidden; }

.empty { padding: var(--s8) 0; color: var(--muted); }
.error { color: var(--flag); border: 1px solid currentColor;
  padding: var(--s2) var(--s3); border-radius: 6px;
  margin-bottom: var(--s4); }

.pager { display: flex; gap: var(--s4); align-items: center;
  margin-top: var(--s4); font-size: 13px; color: var(--muted); }

/* --- tables ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%;
  font-size: var(--data-size); line-height: 1.4; }
table.data th { text-align: left; font-weight: 500; color: var(--faint);
  font-size: 12px; border-bottom: 1px solid var(--rule-strong);
  padding: var(--s1) var(--s4) var(--s1) 0; white-space: nowrap;
  position: sticky; top: 0; background: var(--bg); z-index: 1; }
table.data td { border-bottom: 1px solid var(--rule); vertical-align: top;
  padding: var(--row-pad) var(--s4) var(--row-pad) 0; }
table.data td:last-child, table.data th:last-child { padding-right: 0; }
table.data td.num, table.data th.num { text-align: right; }
table.data tbody tr:hover > td,
table.data tbody.row:hover td { background: var(--sunken); }
table.data td a { overflow-wrap: break-word; }
/* listings scroll sideways on a phone rather than crush their columns */
table.cases, table.listing-table { min-width: 56rem; }
.filter-bar .clear { font-size: 13px; align-self: center;
  margin-left: var(--s1); }
table.data a.id { font-weight: 500; }
td .clip { display: -webkit-box; -webkit-line-clamp: var(--clip-lines);
  -webkit-box-orient: vertical; overflow: hidden; }
/* a case's summary on its own line under the case, the width of the row */
table.cases tbody.row tr:first-child td,
table.paired tbody.row tr:first-child td { border-bottom: 0; }
table.cases tr.sub td, table.paired tr.sub td { color: var(--muted);
  padding-top: 0; }
/* an incident's evidence quote: a line under the row, opened in place,
   as wide as the columns from Conduct on */
table.paired .quote-box summary { font-size: 12px; color: var(--muted);
  width: max-content; }
table.paired .quote-box[open] { padding-bottom: var(--s2); }
table.paired .quote-box blockquote { max-width: 52rem;
  margin: var(--s2) 0 var(--s1); }
.quote-source { font-size: 12px; }
table.cases tr.sub .clip { max-width: 72rem; }
table.cases tr.sub .machine { margin-right: var(--s1); }
/* column widths that keep short fields on one line */
.w-case { width: 9rem; } .w-src { width: 5rem; } .w-date { width: 7rem; }
.w-n { width: 4rem; } .w-id { width: 6.5rem; } .w-kind { width: 11rem; }
.w-basis { width: 7rem; }
/* the cert list's actions among the NPI spells: earlier ones recede, as
   POST strikes them through */
table.timeline tr.cert-row.earlier td { color: var(--muted); }
.cert-label { font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--faint); }
.caption { font-size: 12px; color: var(--faint); margin: var(--s2) 0 0;
  max-width: 50rem; }

/* --- record pages ----------------------------------------------------- */
.crumbs { font-size: 12px; color: var(--faint); margin-bottom: var(--s2); }
.crumbs a { color: var(--muted); }
.record-head { margin-bottom: var(--s6); }
.record-head h1 { overflow-wrap: anywhere; margin-bottom: var(--s1); }
.record-head .sub { color: var(--muted); }
dl.fields { display: grid; grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px var(--s6); margin: 0 0 var(--s4); font-size: 14px; }
dl.fields dt { color: var(--faint); font-size: 13px; }
dl.fields dd { margin: 0; }
dl.fields.prose { max-width: 52rem; }
@media (max-width: 600px) {
  dl.fields { grid-template-columns: 1fr; gap: 0; }
  dl.fields dd { margin-bottom: var(--s2); }
}
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s12); }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr;
  gap: 0; } }
.note { font-size: 12px; color: var(--faint); margin: 0 0 var(--s3);
  max-width: 50rem; }
.summary { font-family: var(--serif); font-size: 16px; line-height: 1.55;
  max-width: 44rem; }
blockquote.quote { font-family: var(--serif); margin: var(--s1) 0;
  padding-left: var(--s3); border-left: 2px solid var(--rule-strong);
  color: var(--text); font-size: 14px; white-space: pre-line; }
details.quote-box summary, .timeline details summary { cursor: pointer; }
.timeline { list-style: none; padding: 0; margin: 0; max-width: 64rem; }
.timeline li { display: grid; grid-template-columns: 7rem minmax(0, 1fr);
  gap: var(--s4); padding: calc(var(--row-pad) + 2px) 0;
  border-bottom: 1px solid var(--rule); font-size: 14px; }
.timeline .small { color: var(--muted); }
.doc-group h3:first-child { margin-top: var(--s4); }
.doc-group table.data { margin-bottom: var(--s2); }

/* --- document viewer -------------------------------------------------- */
.viewer-nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  align-items: center; padding: var(--s2) 0;
  border-bottom: 1px solid var(--rule); margin-bottom: var(--s4);
  position: sticky; top: 0; background: var(--bg); z-index: 2;
  font-size: 14px; }
.viewer-nav form { display: flex; gap: 6px; align-items: center; }
.viewer-nav input, .viewer-nav select { font: inherit;
  padding: 2px 6px; background: var(--surface); color: var(--text);
  border: 1px solid var(--rule-strong); border-radius: 4px; }
.viewer-nav .find { width: 14rem; }
.hits { display: flex; flex-wrap: wrap; gap: var(--s1); font-size: 12px; }
.hits a { padding: 0 6px; border-radius: 3px; background: var(--mark);
  color: var(--mark-text); }
.hits a[aria-current="page"] { outline: 2px solid var(--text); }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s6); align-items: start; }
@media (max-width: 960px) {
  .viewer { grid-template-columns: minmax(0, 1fr); }
  .viewer-nav { position: static; }
}
.page-image { background: var(--sunken); min-height: 20rem;
  display: flex; justify-content: center; }
.page-image img { max-width: 100%; height: auto; display: block;
  background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.page-text { white-space: pre-wrap; overflow-wrap: break-word;
  font-family: var(--serif); font-size: 15px; line-height: 1.55;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 4px; padding: var(--s4) var(--s4); margin: 0;
  max-height: calc(100vh - 7rem); overflow-y: auto; }
.panel-label { font-size: 12px; color: var(--faint);
  margin-bottom: var(--s1); display: flex; gap: var(--s3);
  flex-wrap: wrap; align-items: baseline; }
video, audio { width: 100%; max-height: 70vh; background: #000; }
.record-head .result-meta { font-size: 13px; }
details.about { font-size: 13px; margin-bottom: var(--s2); }
details.about summary { cursor: pointer; color: var(--muted); }
details.about dl.fields { margin-top: var(--s2); font-size: 13px; }

/* --- home ------------------------------------------------------------- */
.home-head { margin-top: var(--s4); }
.home-search { margin: var(--s6) 0 var(--s8); }
.home-search input[type="search"] { font-size: 16px; padding: 10px 14px; }
.sources { display: grid; gap: var(--s8) var(--s12);
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  max-width: 64rem; padding-top: var(--s6);
  border-top: 1px solid var(--rule); }
.source h2 { margin: 0 0 var(--s1); font-size: 15px; }
.source p { font-size: 13px; min-height: 2.6em; }
.tallies { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s8);
  margin: var(--s3) 0 0; }
.tallies div { display: flex; flex-direction: column-reverse; }
.tallies dt { font-size: 13px; color: var(--muted); }
.tallies dd { margin: 0; font-size: 22px; font-weight: 500;
  line-height: 1.2; }

/* --- rendered OCR / office markdown ----------------------------------- */
.page-text.rendered { white-space: normal; }
.page-text.transcript { white-space: normal; list-style: none; margin: 0;
  padding-left: var(--s2); }
.transcript li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr);
  gap: 10px; padding: 2px 6px; border-radius: 3px; }
.transcript li[aria-current] { background: var(--sunken); }
.transcript .ts { font: inherit; font-size: .85em; font-variant-numeric: tabular-nums;
  color: var(--muted); text-align: right; padding: 0; border: 0;
  background: none; align-self: start; padding-top: .1em; }
.transcript button.ts { cursor: pointer; color: var(--link); }
.transcript button.ts:hover { text-decoration: underline; }
.page-text.rendered > :first-child { margin-top: 0; }
.page-text.rendered p { margin: 0 0 .7rem; }
.page-text.rendered h1, .page-text.rendered h2, .page-text.rendered h3,
.page-text.rendered h4, .page-text.rendered h5, .page-text.rendered h6 {
  font-family: var(--font); font-size: 15px; font-weight: 600;
  margin: 1.1rem 0 .5rem; }
.page-text.rendered h1 { font-size: 17px; }
.page-text.rendered ul, .page-text.rendered ol { padding-left: 1.4rem;
  margin: 0 0 .7rem; }
.page-text.rendered hr { border: 0; border-top: 1px solid var(--rule); }
/* a table scrolls sideways on its own, so the prose around it keeps
   wrapping at the panel's width; cells wrap only between words */
.page-text.rendered .wide { overflow-x: auto; margin: .5rem 0 1rem;
  /* edge shadows show there is more to the side */
  background:
    linear-gradient(to right, var(--surface) 30%, transparent) left / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, transparent) right / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / .18), transparent) left / .8rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / .18), transparent) right / .8rem 100% no-repeat scroll; }
.page-text.rendered table { border-collapse: collapse;
  font-family: var(--font); font-size: 13px; line-height: 1.35;
  overflow-wrap: normal; word-break: normal; min-width: 100%; }
.page-text.rendered th, .page-text.rendered td {
  border: 1px solid var(--rule-strong); padding: 4px 7px;
  vertical-align: top; text-align: left; min-width: 6rem; max-width: 22rem; }
.page-text.rendered th { background: var(--sunken); font-weight: 600; }
.page-text.rendered td.redacted, .page-text.rendered th.redacted {
  background: #111; color: #eee; text-align: center; font-size: 12px;
  letter-spacing: .02em; min-width: 3rem; }
.page-text.rendered input { margin: 0 .3rem 0 0; vertical-align: -1px;
  accent-color: var(--text); }
.page-text.rendered .figure { display: block; margin: .6rem 0 .9rem;
  padding: .5rem .7rem; border: 1px dashed var(--rule-strong);
  border-radius: 4px; background: var(--sunken); color: var(--muted);
  font-family: var(--font); font-size: 13px; font-style: italic; }
.page-text.rendered .figure-label { display: block; font-style: normal;
  font-size: 12px; font-weight: 600; color: var(--flag);
  margin-bottom: .2rem; }

/* --- about ------------------------------------------------------------ */
/* --- about: a page meant to be read, not scanned ---------------------
   Serif body at a ~65-character measure; major sections (h1) set apart
   by space alone; h2 is a small label, not a second headline size. */
.prose-page { max-width: 38rem; margin: var(--s4) 0 0;
  font: 17px/1.65 var(--serif); font-variant-numeric: normal; }
.prose-page p, .prose-page ul { margin: 0 0 var(--s4); }
.prose-page ul { padding-left: 1.25em; }
.prose-page li { margin-bottom: var(--s2); }
.prose-page li::marker { color: var(--faint); }
.prose-page a { text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); }
.prose-page a:hover { text-decoration-color: currentColor; }
.prose-page h1 { font: 600 24px/1.25 var(--font); letter-spacing: -.01em;
  margin: var(--s12) 0 var(--s4); padding-top: var(--s4);
  scroll-margin-top: var(--s4); }
.prose-page h1:first-of-type { margin-top: var(--s8); }
.prose-page h2 { font: 600 12px/1.3 var(--font); color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin: var(--s8) 0 var(--s2); }
.prose-page h1 + h2 { margin-top: 0; }
.toc { font: 14px/1.5 var(--font); border-left: 2px solid var(--rule);
  padding: var(--s1) 0 var(--s1) var(--s4); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* footnotes: <sup class="fnref"><a href="#fn-N" id="fnref-N">N</a></sup>
   in the text, and <section class="footnotes"><ol><li id="fn-N"> at the end */
.prose-page sup.fnref { font: 600 11px/0 var(--font); margin-left: 1px; }
.prose-page sup.fnref a { text-decoration: none; padding: 0 2px; }
.prose-page .footnotes { margin-top: var(--s12); padding-top: var(--s4);
  border-top: 1px solid var(--rule); font: 13px/1.5 var(--font);
  color: var(--muted); }
.prose-page .footnotes ol { padding-left: 1.5em; margin: 0; }
.prose-page .footnotes li { margin-bottom: var(--s1); }
.prose-page .footnotes a { text-decoration: none; }
.prose-page :target { scroll-margin-top: var(--s6); }
.prose-page .footnotes li:target { color: var(--text); }
