/* Right margin with a floating table of contents and the main links. The black heading bars start at the left edge of the
   window and stop where this margin begins. On wide monitors the content column and the rail are centred together. */
:root{--rail:212px;--side:max(0px,calc((100% - var(--maxw) - var(--rail))/2))}
.page{display:grid;grid-template-columns:minmax(0,1fr) var(--rail) var(--side)}
main{min-width:0;padding-bottom:26px;--gut:max(22px,calc(100% - var(--maxw) + 22px))}
main .wall{margin-right:0}
main .bar,main .bleed{padding-right:22px;margin-right:22px}
.rail{position:sticky;top:0;align-self:start;padding:18px 22px 22px 0;display:grid;gap:14px}
.toc{background:#fff;display:flex;flex-direction:column}
.toc-h{background:#000;color:#fff;font-size:15px;font-weight:800;letter-spacing:-.02em;padding:7px 10px 8px}
.toc a{display:grid;grid-template-columns:2em 1fr;align-items:baseline;font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;padding:8px 10px;border-top:1px solid #111}
.toc a span{font-family:var(--monof);font-size:12px;font-weight:400}
.toc a:hover{text-decoration:underline}
.toc a.on{background:var(--acc);color:var(--acc-fg)}
.toc a:focus-visible,.rlinks a:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.rlinks{display:flex;flex-direction:column;background:#000;color:#fff}
.rlinks a{display:flex;justify-content:space-between;align-items:baseline;gap:8px;text-decoration:none;padding:9px 10px 10px;font-size:15px;letter-spacing:-.02em}
.rlinks a+a{border-top:1px solid rgba(255,255,255,.35)}
.rlinks a b{font-weight:800}
.rlinks a b::after{content:" \2197";font-weight:500}
.rlinks a span{font-family:var(--monof);font-size:11px;font-weight:400;opacity:.7}
.rlinks a:hover{background:var(--acc)}
[id]{scroll-margin-top:14px}
/* Narrow windows: no margin, the bars run edge to edge again. */
@media (max-width:1180px){
  .page{display:block}
  .rail{display:none}
  main{--gut:22px}
}
/* The margin takes width from the four-column rows, so their label bands and bar labels tighten below wide monitors. */
@media (max-width:1620px){
  .g4 .lb b{font-size:25px}
  .g4 .lb span{font-size:11.5px}
  .g4 .bars{--bar-label:7.6em;font-size:13px}
  .g4 .bars .n{font-size:13px}
}
@media (max-width:1400px){
  .fcrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2.1fr)}
  .fcrow .plate .in{padding:20px 16px}
  .fcrow .tbl{font-size:12.5px}
  .fcrow .tbl th,.fcrow .tbl td{padding:.4em .3em}
}
.rlinks a.soon{cursor:default}
.rlinks a.soon b{opacity:.55}
.rlinks a.soon b::after{content:""}
.rlinks a.soon:hover{background:none}
