/* Reading Room pages inside the site's own header and footer (2026-11-01): the open pieces, the Month Ahead preview
   and the shared issue on the site, and every members' page through the Worker. The room's own stylesheet sets the
   whole page (paper, Inter 18px, paragraph spacing); these rules keep the header and footer as they are on every other
   page, and make room for the fixed header. */
.do-header, .do-footer { font-size: 16px; line-height: normal; font-weight: 400; }
.do-header p, .do-footer p { margin: 0; }
html { scroll-padding-top: calc(var(--site-header-shell-height, 76px) + 24px); }
/* The page itself stays the site's black, so the header and footer sit on it as on every other page (on a phone the
   header has a row of its own, and the paper would show through it as a grey strip). The room's paper and ink are the
   main column's; the site's ivory text stops there. Each room stylesheet keeps its own reading size. */
.rr-site { background: var(--paper); color: var(--text); }
/* The site's header shows the reading progress. */
.progress { display: none; }
/* The first dark band (a Table piece, the Reading Room home, the Table index, the gates) begins under the header,
   which lies over the page on a computer and has its own row on a phone or narrow window (site shell.css, 900px). */
.rr-site .top, .rr-site > .night:first-child { padding-top: var(--site-header-shell-height, 76px); }
@media (max-width: 900px) { .rr-site .top, .rr-site > .night:first-child { padding-top: 0; } }
/* The Month Ahead: the contents rail stays clear of the header, and the phone sheet opens above it. */
.rr-site .rail { top: calc(var(--site-header-shell-height, 76px) + 28px); max-height: calc(100vh - var(--site-header-shell-height, 76px) - 56px); }
html .contents-button { z-index: 90; }
html .sheet { z-index: 120; }

/* Members' way back to the Reading Room, above a page's title: quiet ivory on the dark, quiet ink on the paper. */
.room-back { display: flex; justify-content: center; align-items: center; gap: 9px; width: max-content; margin: 0 auto 26px; color: rgba(244, 237, 224, .72); font: 400 16px/1 "Playfair Display", Georgia, serif; text-decoration: none; transition: color .2s; }
.room-back svg { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; transition: transform .25s; }
.room-back:hover { color: #f4ede0; }
.room-back:hover svg { transform: translateX(-3px); }
.masthead[data-header-theme="light"] .room-back { color: #6f6556; }
.masthead[data-header-theme="light"] .room-back:hover { color: #1c1915; }
.all-head .room-back { margin: 0 0 22px; }
