/* Docs: one reading column on the navy sheet, hairline note tables, Spectral italic for the proof headings.
   The sheet lifts off the curtain footer at the end, as on the landing. */
:root { --foot-h: 300px; }
.sheet { position: relative; z-index: 2; margin-left: var(--rail); margin-bottom: var(--foot-h); background: var(--ground); border-bottom: 1px solid var(--line-2); }
.doc { display: grid; grid-template-columns: minmax(0, 760px) minmax(250px, 1fr); gap: 0 56px; padding: 56px 56px 96px; }
.doc > * { grid-column: 1; }
.doc .wide { grid-column: 1 / -1; max-width: 1100px; }
.dhead { padding-bottom: 36px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.dhead h1 { font: 400 min(60px, calc((100vw - var(--rail)) * .05))/1.04 var(--sans); letter-spacing: -0.035em; }
.dhead h1 span, .dhead h1 em { display: block; white-space: nowrap; }
.dhead h1 em { font: italic 500 min(66px, calc((100vw - var(--rail)) * .055))/1.04 var(--serif); letter-spacing: -0.02em; color: var(--glyph); }
.dhead .lede { margin-top: 20px; max-width: 40em; color: var(--text-2); font-size: 18px; }
.status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.status > span { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: 3px; box-shadow: var(--hair); font: 500 13px/1 var(--mono); color: var(--text-2); }

.ds { padding-top: 52px; scroll-margin-top: 12px; }
.ds .no { font: 500 13px/1 var(--mono); color: var(--text-3); letter-spacing: .02em; }
.ds h2 { margin-top: 10px; font: 400 34px/1.12 var(--sans); letter-spacing: -0.025em; }
.ds h3 { margin-top: 30px; font: italic 500 22px/1.25 var(--serif); color: var(--glyph); }
.ds p { margin-top: 14px; color: var(--text-2); max-width: 40em; }
.ds p b { color: var(--text); font-weight: 500; }
.ds code { font-size: max(13px, .86em); color: var(--text); }
.ds .note-t { margin-top: 18px; }
.ds .note-t td:first-child { color: var(--text); }
.ds ol.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line-2); }
.ds ol.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.ds ol.steps li::before { content: counter(s, decimal-leading-zero); font: 500 13px/1.7 var(--mono); color: var(--text-3); }
.ds ul.thin { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.ds ul.thin li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.ds ul.thin li .mk { margin-top: 6px; }

/* byte maps: proportional bars of the real layouts */
.bytes { margin-top: 20px; }
.bytes .bar { display: flex; height: 44px; border-radius: 3px; overflow: hidden; box-shadow: var(--hair); }
.bytes .bar i { position: relative; flex: none; min-width: 6px; border-right: 1px solid var(--ground); background: var(--slate-2); transition: background-color var(--step-1); }
.bytes .bar i.y { background: var(--slate-3); }
.bytes .bar i.t { background: var(--plaster-1); }
.bytes .bar i.k { background: var(--glyph); }
.bytes .bar i:hover, .bytes .bar i.on { background: var(--text); }
.bytes .scale { display: flex; justify-content: space-between; margin-top: 6px; font: 500 13px/1 var(--mono); color: var(--text-3); }
.bytes .note-t tr.on td { color: var(--text); background: var(--panel-2); }

.measure { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.measure .hint { font-size: 13px; color: var(--text-3); }
.copyid { display: inline-flex; align-items: center; gap: 8px; }

.dside { grid-column: 2; grid-row: 2 / span 12; align-self: start; position: sticky; top: 56px; padding-top: 52px; }
.dhead { grid-column: 1 / -1 !important; }
.rail nav.toc a { min-height: 32px; }
.dside .card { border-radius: 4px; background: var(--panel); box-shadow: var(--hair); padding: 18px; display: grid; gap: 10px; }
.dside .card h2 { font: italic 500 20px/1.2 var(--serif); color: var(--glyph); }
.dside .card p { font-size: 15px; color: var(--text-2); }

details.q { border-bottom: 1px solid var(--line); }
details.q summary { list-style: none; cursor: pointer; padding: 16px 0; font: 500 17px/1.35 var(--sans); display: grid; grid-template-columns: minmax(0, 1fr) 14px; gap: 12px; align-items: center; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: ""; width: 10px; height: 14px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--text-3); }
details.q[open] summary::after { background: var(--text-2); box-shadow: none; }
details.q p { margin: 0 0 16px; }
.faqs { margin-top: 18px; border-top: 1px solid var(--line-2); }

.curtain { position: fixed; left: var(--rail); right: 0; bottom: 0; z-index: 1; height: var(--foot-h); padding: 40px 56px 26px; background: var(--panel); display: flex; flex-direction: column; gap: 16px; }
.fname { font: 400 clamp(44px, 4.2vw, 60px)/.95 var(--sans); letter-spacing: -0.045em; }
html.js .curtain:not(.up) { visibility: hidden; }
.fname em { font: italic 500 .5em/1 var(--serif); color: var(--glyph); letter-spacing: -0.01em; margin-left: 14px; }
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.places a { color: var(--text-2); text-decoration: none; font-size: 17px; transition: color var(--step-1); }
.places a:hover { color: var(--ochre); }
.curtain .fine { max-width: 60em; margin-top: auto; font-size: 13px; color: var(--text-3); }
.keysheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(5, 8, 15, .7); }
.keysheet .ks { width: min(460px, 92vw); padding: 22px; border-radius: 4px; background: var(--panel); box-shadow: var(--hair); display: flex; flex-direction: column; gap: 12px; }
.keysheet h2 { font: 400 24px/1 var(--sans); }
.keysheet p { font-size: 15px; color: var(--text-2); }
.rail .keys { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1320px) {
  .doc { grid-template-columns: minmax(0, 1fr); padding: 44px 36px 80px; }
  .dside { grid-column: 1; grid-row: auto; position: static; margin-top: 28px; }
}
@media (max-width: 860px) {
  :root { --foot-h: 380px; }
  .sheet { margin-left: 0; }
  .doc { padding: 28px 14px 64px; }
  .dhead h1 { font-size: 9.2vw; } .dhead h1 em { font-size: 10vw; }
  .ds h2 { font-size: 28px; }
  .curtain { left: 0; padding: 28px 14px; }
  .rail nav.toc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rail nav.toc a, .rail nav.toc .closed { flex: none; min-height: 44px; }
  .note-t td.v { white-space: normal; overflow-wrap: anywhere; }
}
