/* ─────────────────────────────────────────────────────────────
   A docket sheet: entry label or date at left, the record in the
   middle, sources in the right margin. One column on a phone.
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/spectral-400.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/spectral-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/spectral-500.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/spectral-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-var.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-var-italic.woff2") format("woff2"); }

:root {
  --paper: #fbfaf6;
  --paper-sunk: #f3f0e8;
  --ink: #1b1a17;
  --ink-soft: #3b3933;
  --muted: #625e55;
  --rule: #d6d1c4;
  --rule-soft: #e7e3d8;
  --link: #1a3e9e;
  --link-visited: #5a3a91;
  --mark: #fbec9a;
  --mark-ink: #1b1a17;

  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --col-label: 8.5rem;
  --col-main: 39rem;
  --col-src: 16.5rem;
  --gap: 2.75rem;
  --pad: clamp(1.125rem, 4.5vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171613;
    --paper-sunk: #1f1e1a;
    --ink: #ebe7dd;
    --ink-soft: #d2cdc1;
    --muted: #a59f92;
    --rule: #3d3a32;
    --rule-soft: #2b2924;
    --link: #a3bbff;
    --link-visited: #c9b1f2;
    --mark: #57490c;
    --mark-ink: #fff4c4;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.25rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.09375rem;            /* 17.5px on a phone */
  line-height: 1.55;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (min-width: 46rem) {
  body { font-size: 1.1875rem; }    /* 19px */
}

h1, h2, h3, h4, p, ul, ol, dl, dd, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

p + p { margin-top: 0.85em; }

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.18em;
}
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 0.12em; }

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

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

mark {
  background: var(--mark);
  color: var(--mark-ink);
  padding: 0.06em 0.16em;
  margin: 0 -0.16em;
  border-radius: 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--pad); top: -4rem;
  background: var(--ink); color: var(--paper);
  font: 600 0.95rem/1 var(--sans);
  padding: 0.7rem 0.9rem; z-index: 10;
}
.skip:visited { color: var(--paper); }
.skip:focus { top: 0.5rem; }

/* JS swaps the plain link for a copy button */
.js .no-js-only { display: none; }

/* ───────────── The sheet and its three columns ───────────── */

.sheet {
  max-width: calc(var(--col-label) + var(--col-main) + var(--col-src) + 2 * var(--gap) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.entry { padding-block: 1.1rem; }
.entry > * + * { margin-top: 0.6rem; }

.entry-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 46rem) {
  .entry {
    display: grid;
    grid-template-columns: 7.25rem minmax(0, 1fr);
    column-gap: 2rem;
    padding-block: 1.35rem;
  }
  .entry > * + * { margin-top: 0; }
  .entry > .entry-label { grid-column: 1; padding-top: 0.5em; }
  .entry > .entry-body,
  .entry > .wide,
  .entry > .sources { grid-column: 2; }
  .entry > .entry-body { max-width: var(--col-main); }
  .entry > .sources { margin-top: 1rem; max-width: var(--col-main); }
}

@media (min-width: 70rem) {
  .entry {
    grid-template-columns: var(--col-label) minmax(0, var(--col-main)) minmax(0, var(--col-src));
    column-gap: var(--gap);
  }
  .entry > .sources { grid-column: 3; margin-top: 0; padding-top: 0.42em; }
  .entry > .wide { grid-column: 2 / 4; }
}

/* ───────────── Masthead ───────────── */

.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 1.5rem;
  padding-block: 0.8rem 0.65rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}
.masthead p + p { margin-top: 0; }
.masthead-for { font-weight: 650; }
.masthead-meta { color: var(--muted); font-weight: 500; }

/* ───────────── First screen ───────────── */

.hero { padding-top: clamp(0.35rem, 3vw, 2.25rem); }
.hero .entry { padding-block: 0.45rem; }
@media (min-width: 46rem) { .hero .entry { padding-block: 0.6rem; } }

h1 {
  font-weight: 500;
  font-size: clamp(2rem, 1.25rem + 3.6vw, 3.55rem);
  line-height: 1.07;
  letter-spacing: -0.012em;
  text-wrap: balance;
  max-width: none;
}
@media (min-width: 46rem) {
  .hero .entry > h1.entry-body { max-width: 20ch; }
  .hero .entry > .entry-label { padding-top: 0.75em; }
  .hero .entry:first-child > .entry-label { padding-top: 1.55em; }
}
@media (min-width: 70rem) {
  .hero .entry > h1.entry-body { grid-column: 2 / 4; }
}

.lede {
  font-size: 1.05em;
  line-height: 1.45;
  text-wrap: pretty;
}
@media (min-width: 46rem) {
  .lede { font-size: 1.14em; line-height: 1.46; }
}

.status p:not(.sources-h) { color: var(--ink-soft); }

.actions {
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 46rem) {
  .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .actions > li { display: grid; }
}
/* The answer entry holds the lede, the actions and the status note. On a phone they stack in
   that order, so the actions stay on the first screen; on a wide sheet the note moves to the margin. */
.answer > .actions { margin-top: 0.8rem; }
.answer > .status { margin-top: 1.1rem; }
@media (min-width: 46rem) {
  .answer > .actions { grid-column: 2; grid-row: 2; margin-top: 1.6rem; }
  .answer > .status { grid-column: 2; grid-row: 3; margin-top: 1.4rem; }
}
@media (min-width: 70rem) {
  .answer > .actions { grid-column: 2 / 4; max-width: 52rem; }
  .answer > .status { grid-column: 3; grid-row: 1; margin-top: 0; }
}

.btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.95rem 0.62rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn[hidden] { display: none; }
.btn:visited { color: var(--ink); }
.btn-label { font-weight: 650; letter-spacing: 0.003em; }
.btn-meta { font-size: 0.83rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.btn:hover { background: var(--paper-sunk); }
.btn:hover .btn-label { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
.btn:active { transform: translateY(1px); }

.btn-primary, .btn-primary:visited { background: var(--ink); color: var(--paper); }
.btn-primary .btn-meta { color: var(--paper); opacity: 0.78; }
.btn-primary:hover { background: var(--ink-soft); }

.btn-small { width: auto; min-height: 2.25rem; padding: 0.35rem 0.85rem; font-size: 0.92rem; }

.btn.is-copied { border-color: var(--ink); background: var(--mark); color: var(--mark-ink); }
.btn.is-copied .btn-meta { color: var(--mark-ink); }

/* On a phone the secondary notes would push the actions off the first screen */
@media (max-width: 45.99rem) {
  .actions .btn:not(.btn-primary) .btn-meta:not(.is-live) { display: none; }
}

/* ───────────── Contents ───────────── */

.contents {
  margin-top: clamp(1.1rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
  padding-block: 0.9rem;
}
.contents ol {
  counter-reset: toc;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.35;
  columns: 2;
  column-gap: 1.5rem;
}
.contents li {
  counter-increment: toc;
  break-inside: avoid;
  padding-block: 0.3rem;
  padding-left: 1.35rem;
  text-indent: -1.35rem;
}
.contents li::before {
  content: counter(toc);
  display: inline-block;
  width: 1.35rem;
  text-indent: 0;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 46rem) {
  .contents { padding-block: 1rem; }
  .contents > .entry-label { padding-top: 0.45em; }
  .contents ol { columns: auto; display: flex; flex-wrap: wrap; gap: 0.1rem 1.6rem; }
  .contents li { padding-left: 0; text-indent: 0; }
  .contents li::before { width: auto; margin-right: 0.4rem; }
}

/* ───────────── Sections ───────────── */

main > section { border-top: 1px solid var(--ink); margin-top: clamp(1.5rem, 4vw, 2.75rem); padding-bottom: 0.25rem; }
main > section.hero { border-top: 0; margin-top: 0; }
main > section > .entry + .entry,
main > section > .entry + .docket,
main > section > .docket + .entry,
main > section > .qlist,
main > section > .qlist > .entry + .entry { border-top: 1px solid var(--rule-soft); }
main > section.hero > .entry + .entry { border-top: 0; }
main > section > .section-head + .entry { border-top: 0; padding-top: 0.1rem; }

section[id], [id="agent-prompt"] { scroll-margin-top: 0.5rem; }

.section-head { padding-block: 1.35rem 0.45rem; }
@media (min-width: 46rem) {
  .section-head { padding-block: 2rem 0.75rem; }
  .section-head > .entry-label { padding-top: 0.95em; }
}
.num {
  display: inline-block;
  min-width: 1.1em;
  margin-right: 0.3em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

h2 {
  font-weight: 500;
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.2rem);
  line-height: 1.14;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
h3 {
  font-weight: 600;
  font-size: 1.16em;
  line-height: 1.26;
  text-wrap: balance;
}
h3 + p, h3 + ol, h3 + dl { margin-top: 0.5em; }
h4 {
  font-weight: 600;
  font-size: 1.12em;
  line-height: 1.28;
  text-wrap: balance;
}

.entry-body > p, .q-cols p, .steps li { text-wrap: pretty; hanging-punctuation: first; }

/* ───────────── Sources in the margin ───────────── */

.sources {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.38;
  color: var(--ink-soft);
}
@media (max-width: 69.99rem) {
  .sources { padding-top: 0.7rem; border-top: 1px dotted var(--rule); }
}
.sources-h {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.sources ul + .sources-h { margin-top: 0.95rem; }
.sources p + p { margin-top: 0; }
.sources li + li { margin-top: 0.6rem; }
.sources a { font-weight: 500; }
.host {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* ───────────── 1 · What exists ───────────── */

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.25rem;
  margin-top: 1.1rem;
  padding-block: 0.8rem 0.9rem;
  border-block: 1px solid var(--rule);
}
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.figures dd {
  font-size: 1.85em;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.figures dt {
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--muted);
}

.limit { margin-top: 1rem; }
.limit-k, .k, .q-k {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--muted);
}
.limit-k, .k { display: block; margin-bottom: 0.15rem; }

/* ───────────── 2 · Questions ───────────── */

.subhead { padding-block: 1.5rem 0.9rem; }
.subhead h3 { font-size: 1.22em; font-weight: 500; max-width: 26ch; }
@media (min-width: 46rem) { .subhead h3 { max-width: none; } }

.q h4 { max-width: 34ch; }
.q-cols { display: grid; gap: 0.9rem; margin-top: 0.75rem; font-size: 0.95em; line-height: 1.5; }
.q-k { margin-bottom: 0.25rem; }
.q-k + p { margin-top: 0; }
.q-cols > div { padding-top: 0.6rem; border-top: 1px solid var(--rule); }
.q-cols > div + div { border-top-style: dashed; }
@media (min-width: 46rem) {
  .q-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.25rem; }
  .q-cols > div + div { border-top-style: dashed; }
  .q-cols p:not(.q-k) { max-width: 31rem; }
}

.steps { counter-reset: step; margin-top: 0.7em; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  border-top: 1px solid var(--rule-soft);
}
.steps li:last-child { border-bottom: 1px solid var(--rule-soft); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.72rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.steps + p { margin-top: 0.9em; }

/* ───────────── 3 · Routes ───────────── */

.route-n { display: block; color: var(--ink); margin-bottom: 0.1rem; }
.route h3 { max-width: 30ch; }

/* ───────────── 4 · One file ───────────── */

.legend {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.legend mark { font-weight: 500; margin: 0 0.35em 0 0; }

.docket .event { padding-block: 1.1rem 1.2rem; }
.docket .event + .event { border-top: 1px solid var(--rule); }
.docket { border-bottom: 1px solid var(--rule); }
.docket + .entry { border-top: 0 !important; }

.event .entry-label {
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.98rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.event .entry-label time { font-weight: 650; }
.event .filed { display: block; font-weight: 500; }
.event .filed time { font-weight: 500; }
.event .party { display: block; margin-top: 0.15rem; font-size: 0.85rem; font-weight: 400; color: var(--muted); }
@media (min-width: 46rem) {
  .event > .entry-label { padding-top: 0.2em; }
}

.doc-type {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-type + .event-text { margin-top: 0.2rem; }
.event-text { font-size: 1.14em; line-height: 1.42; text-wrap: pretty; }

.notes li { position: relative; padding-left: 1.5rem; }
.note-n {
  position: absolute; left: 0; top: 0.05em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.copy-line { display: block; margin-top: 0.3rem; }
.copy-line .host { display: inline; }
.copy-line a { font-weight: 400; }

/* ───────────── 5 · Counts ───────────── */

.count .entry-label {
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.fig {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fig-n { font-size: 1.55em; font-weight: 500; letter-spacing: -0.01em; }
.fig-unit { display: block; margin-top: 0.3rem; font-size: 0.84rem; font-weight: 500; color: var(--muted); }
@media (min-width: 46rem) {
  .count > .entry-label { padding-top: 0; }
}
.count h3 + p { margin-top: 0.6em; }

/* ───────────── 6 · Files ───────────── */

.zip-row { display: grid; gap: 1rem 2.5rem; align-items: start; }
@media (min-width: 46rem) {
  .zip-row { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
  .zip > .entry-label { padding-top: 1.1em; }
}
.doclinks { font-family: var(--sans); font-size: 0.95rem; line-height: 1.35; }
.doclinks li + li { margin-top: 0.5rem; }
.doclinks a, .file-name { font-family: var(--mono); font-size: 0.88em; font-weight: 500; letter-spacing: -0.01em; }

.folder {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}
.filegroup > .entry-label { letter-spacing: 0.01em; text-transform: none; font-weight: 400; font-size: 0.85rem; }
@media (min-width: 46rem) { .filegroup > .entry-label { padding-top: 0.55em; } }

.files { font-family: var(--sans); font-size: 0.97rem; line-height: 1.4; }
.files > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 1rem;
  padding-block: 0.6rem;
  border-top: 1px solid var(--rule-soft);
}
.files > li:first-child { border-top: 0; padding-top: 0.2rem; }
.file-name { grid-column: 1; font-size: 0.9rem; overflow-wrap: anywhere; }
.file-rows, .file-size { color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.file-rows { grid-column: 2; grid-row: 1; }
.file-size { grid-column: 2; grid-row: 2; }
.file-desc { grid-column: 1; grid-row: 2; color: var(--ink-soft); }
.files-pdf .file-size { grid-row: 1; }
.file-desc .k { display: inline; margin-right: 0.45em; }
.file-desc .k::after { content: ":"; }

@media (min-width: 46rem) {
  .files > li {
    grid-template-columns: 13.5rem 5rem 4.6rem minmax(0, 1fr);
    gap: 0 1.25rem;
    align-items: baseline;
  }
  .files > li > * { grid-row: 1; }
  .file-name { grid-column: 1; }
  .file-rows { grid-column: 2; }
  .file-size { grid-column: 3; }
  .file-desc { grid-column: 4; }
  .files-pdf > li { grid-template-columns: 13.5rem 4.6rem minmax(0, 1fr); }
  .files-pdf .file-size { grid-column: 2; }
  .files-pdf .file-desc { grid-column: 3; }
  .file-desc .k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}

/* ───────────── 7 · Agent ───────────── */

.prompt-wrap { max-width: 52rem; }
.prompt-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3rem;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  border: 1px solid var(--ink);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.prompt-title {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.085em; text-transform: uppercase;
  color: var(--muted);
}
.prompt {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 1rem 1rem 1.1rem;
  background: var(--paper-sunk);
  border: 1px solid var(--ink);
  border-radius: 0 0 2px 2px;
  -webkit-user-select: all;
  user-select: all;
}
@media (min-width: 46rem) { .prompt { font-size: 0.9rem; padding: 1.2rem 1.35rem 1.35rem; } }
.prompt-urls {
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--muted);
}
.prompt-urls a { display: block; margin-top: 0.2rem; font-family: var(--mono); font-size: 0.92em; overflow-wrap: anywhere; }

/* ───────────── Colophon ───────────── */

.colophon {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-block: 1.5rem 3.5rem;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.colophon p + p { margin-top: 0.55rem; }
@media (min-width: 46rem) { .colophon > .entry-label { padding-top: 0.25em; } }

/* ───────────── Print: single column, sources as numbered notes ───────────── */

@media print {
  :root {
    --paper: #fff; --paper-sunk: #fff; --ink: #000; --ink-soft: #111; --muted: #444;
    --rule: #999; --rule-soft: #ccc; --link: #000; --link-visited: #000;
    --mark: #fff3a3; --mark-ink: #000;
  }
  @page { margin: 18mm 16mm; }
  body { font-size: 10.5pt; line-height: 1.42; }
  .sheet { max-width: none; padding: 0; }
  .skip, .actions, .contents, .prompt-bar button, .colophon a[href="#top"] { display: none !important; }
  a { text-decoration: none; }
  mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .entry {
    display: grid;
    grid-template-columns: 30mm minmax(0, 1fr);
    column-gap: 7mm;
    padding-block: 3mm;
  }
  .entry > * + * { margin-top: 0; }
  .entry > .entry-label { grid-column: 1; }
  .entry > .entry-body, .entry > .wide, .entry > .sources { grid-column: 2; max-width: none; }
  .entry > .sources { margin-top: 2mm; padding-top: 1.5mm; border-top: 0.5pt dotted var(--rule); font-size: 8.5pt; }
  .hero .entry > h1.entry-body { max-width: none; }
  h1 { font-size: 26pt; }
  h2 { font-size: 17pt; }
  h2, h3, h4, .section-head, .subhead { break-after: avoid; }
  .entry.q, .entry.route, .entry.count, .entry.build, .files > li, .steps li { break-inside: avoid; }
  main > section { margin-top: 5mm; }

  /* Keep the four Mallard Creek events on one page, with their notes */
  .docket { break-inside: avoid; page-break-inside: avoid; }
  .sources a[href^="http"]::after {
    content: " " attr(href);
    display: block;
    font-family: var(--mono);
    font-size: 7pt;
    font-weight: 400;
    color: #333;
    overflow-wrap: anywhere;
  }
  .host { font-size: 7.5pt; }
  .copy-line { display: none; }

  .q-cols { grid-template-columns: 1fr 1fr; gap: 0 6mm; }
  .files > li { grid-template-columns: 48mm 16mm 16mm minmax(0, 1fr); gap: 0 4mm; }
  .files > li > * { grid-row: 1; }
  .file-name { grid-column: 1; } .file-rows { grid-column: 2; } .file-size { grid-column: 3; } .file-desc { grid-column: 4; }
  .files-pdf > li { grid-template-columns: 48mm 16mm minmax(0, 1fr); }
  .files-pdf .file-size { grid-column: 2; } .files-pdf .file-desc { grid-column: 3; }
  .prompt { font-size: 8pt; background: none; }
  .prompt-bar { border-bottom: 0; }
}
