/* Additions to the original reading desk for the four sections and their source records. */
body.desk-site { grid-template-rows: auto minmax(0, 1fr) auto; }
.desk-site [hidden] { display: none !important; }
.sev-narrative { --sev: var(--st-interpretation); }
.st-detail { background: var(--page-muted); }
.page-fact .page-head { flex-wrap: wrap; }
.page-fact .badges { max-width: 100%; }
.desk-site #rail { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
#desk-finder { flex: none; }
.section-tabs { padding-top: 2px; }
.section-tab .n { font-variant-numeric: tabular-nums; }
.desk-site #desk-groups { min-height: 0; min-width: 0; align-content: start; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--desk-rule) transparent; padding: 2px 4px 6px; }
#desk-groups .fc { text-decoration: none; }
#desk-groups .fc-t { display: block; overflow: visible; }
.sev-why { margin: 12px 0; }
.essay-prose, .evidence-section, .desk-comparison, .desk-facsimile { overflow-wrap: anywhere; font: 17px/1.58 var(--serif); }
.essay-prose > p, .evidence-section > p, .desk-comparison p { margin: .65em 0; }
.essay-prose > .verdict { margin: 0 0 1em; font-size: 1.12em; line-height: 1.46; }
.essay-prose h3, .evidence-section h3, .supporting h3, .desk-comparison h3 {
  margin: 1.25em 0 .32em; font: 600 20px/1.22 var(--serif); letter-spacing: -.012em;
}
.supporting { overflow-wrap: anywhere; }
.supporting ul, .desk-comparison ul { margin: .4em 0 1.1em; padding-left: 1.2em; }
.supporting li, .desk-comparison li { margin: .35em 0; }
.desk-comparison { grid-row: 2; min-height: 0; overflow: auto; padding: 7px clamp(14px, 2.3vw, 34px) 24px; }
.desk-comparison a, .entry-locators a, .desk-facsimile a, .reference-page a { color: var(--src); text-underline-offset: 3px; }
.entry-locators, .evidence-section .locator { color: var(--ink-2); font: 14px/1.55 var(--sans); }
.entry-locators { margin: 1.5rem 0 .2rem; padding-top: 12px; border-top: 1px solid var(--rule); }
.desk-facsimile { margin: 1.5em 0; }
.desk-facsimile button { display: block; padding: 0; max-width: 100%; border: 1px solid var(--rule-2); background: var(--paper); cursor: zoom-in; }
.desk-facsimile img, .discussion-gallery img, .evidence-gallery img, .reference-page img { display: block; max-width: 100%; height: auto; }
.desk-facsimile img { max-height: 20rem; object-fit: contain; }
.desk-facsimile figcaption, .evidence-gallery figcaption, .reference-page figcaption { margin: .55em 0; font: 14px/1.48 var(--sans); color: var(--ink-2); }
.evidence-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.evidence-gallery figure, .reference-page figure { margin: 1rem 0; }
.desk-facsimile blockquote, .reference-page blockquote { margin: 1em 0; padding-left: 1em; border-left: 2px solid var(--rule-2); }
.page-doc .doc-stage:has(> .scan) { display: block; overflow-y: auto; scrollbar-width: thin; }
.desk-site .transcript { margin-bottom: 8px; }
.desk-site .transcript blockquote { max-height: none; overflow: visible; }
.evidence-section .follow-body, .reference-page .table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
.evidence-section table, .reference-page table { border-collapse: collapse; font: 14px/1.45 var(--sans); }
.evidence-section :is(td, th), .reference-page :is(td, th) { border-bottom: 1px solid var(--rule); padding: 7px; text-align: left; vertical-align: top; }
.evidence-section thead, .reference-page thead { background: var(--well); }
.reference-page {
  display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; border-radius: 8px;
  overflow: hidden; box-shadow: var(--shadow); background: var(--paper); color: var(--ink);
}
.reference-top {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px clamp(15px, 2vw, 32px);
  border-bottom: 1px solid var(--rule); font: 600 13px/1.4 var(--sans);
}
.reference-scroll { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#reference-body { max-width: 80ch; margin: 0 auto; padding: clamp(16px, 3.3vw, 54px); overflow-wrap: anywhere; font: 17px/1.55 var(--serif); }
#reference-body h2 { margin: 0 0 .5em; font: 550 clamp(25px, 3vw, 39px)/1.12 var(--serif); letter-spacing: -.028em; }
#reference-body h3 { margin: 1.2em 0 .45em; font: 600 1.24em/1.25 var(--serif); }
#reference-body h4 { margin: 1.15em 0 .4em; }
#reference-body :is(ol, ul) { padding-left: 1.3em; }
#reference-body :is(p, li) { margin-block: .55em; }
#reference-body .reference-meta, .reference-related, .reference-directory small { color: var(--muted); font: 13px/1.4 var(--sans); }
#reference-body .reference-meta { margin-top: 0; }
.reference-directory li { padding: .35em 0 .55em; border-bottom: 1px solid var(--rule); }
.reference-directory small { display: block; }
.reference-related { padding-top: 1rem; border-top: 1px solid var(--rule); }
.reading-reference .pager { visibility: hidden; }
.pane-jump { display: none; }
.passage-sources { margin: 0 !important; padding: 0 clamp(16px, 2vw, 28px) 1em; }
.passage-sources h3 { padding-top: 14px; margin: 0 0 .4em; border-top: 1px solid var(--rule); font-size: 18px; }
.passage-sources ul { padding-left: 1.1em; }
.desk-site .position { min-width: 0; }
.desk-site .pos-text { padding: 2px 6px; border: 0; background: none; font-variant-numeric: tabular-nums; text-align: center; }
.desk-site .pos-text:hover, .desk-site .pos-text:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 901px) {
  #desk-finder { container-type: inline-size; }
  .section-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-tab { min-width: 0; justify-content: center; gap: 4px; padding-inline: 5px; }
  .desk-site .pager { padding-top: 2px; }
}
@container (max-width: 222px) {
  .section-tab .meter { display: none; }
}
@media (max-width: 900px) {
  .desk-site .desk { padding-top: 10px; gap: 12px; }
  .desk-site #rail { overflow: visible; }
  .section-tabs { flex-wrap: wrap; }
  .section-tab { min-height: 36px; }
  .desk-site #desk-groups { overflow-x: auto; overflow-y: hidden; gap: 7px; overscroll-behavior-x: contain; }
  #desk-groups .fc { height: 100%; align-content: start; column-gap: 6px; row-gap: 3px; }
  .pane-jump { display: inline; margin: 6px 0 0; padding: 4px 0; border: 0; background: transparent; color: var(--src); font: 550 13px/1.3 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
  .doc-actions .pane-jump { margin: 0; }
  .desk-site .spread:not(.swapped) .page-fact, .desk-site .spread.swapped .page-doc { order: 1; }
  .desk-site .spread:not(.swapped) .page-doc, .desk-site .spread.swapped .page-fact { order: 3; }
  .desk-comparison, .reference-scroll, .page-doc .doc-stage:has(> .scan) { overflow: visible; }
  .reference-page { display: block; overflow: visible; }
  .reference-top { position: sticky; top: 0; z-index: 2; background: var(--paper); }
  .desk-site .pg-btn span { display: inline; }
  .desk-site .pos-text { font-size: 12px; }
  .desk-site .masthead .tools { gap: 5px; }
}
@media (max-width: 580px) {
  .desk-site .masthead { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 12px 6px; }
  .desk-site .masthead h1 { font-size: 17px; }
  .desk-site .masthead .tools { justify-self: end; }
  .masthead .tool { min-width: 35px; min-height: 36px; padding: 7px; justify-content: center; }
  .masthead .tool span { display: none; }
  .section-tabs { gap: 4px; padding-inline: 0; }
  .section-tab { justify-content: center; padding: 5px 6px; gap: 3px; }
  .desk-site .pg-btn { padding: 8px; min-height: 36px; }
}
@media (max-width: 420px) {
  .section-tab .meter { display: none; }
}
@media print {
  body.desk-site { display: block; height: auto; overflow: visible; }
  .desk-site :is(#rail, .pager, .masthead .tools, .doc-actions) { display: none; }
  .desk-site :is(.desk, .spread, .page, .page-body, .doc-stage, .reference-page, .reference-scroll) { display: block; height: auto; overflow: visible; }
}
