/* Rules shared, word for word, by the document pages (templates/layouts/document.html).
   It loads after atmosphere.css and landing.css and before each page's own <style>, so a page
   rule of the same weight still wins. The desktop padding of .legal-shell and .shell stays in
   each page, right after the page's own base rule for the pane, which it must follow. */

/* Legal pages: terms, rights, privacy and dontcount. */

.legal-body { position: fixed; inset: 0; z-index: 55; overflow-y: auto; scrollbar-width: none; }
.legal-body::-webkit-scrollbar { display: none; }
.legal-shell h1 { font: 500 36px/1.2 var(--font-display); color: rgba(230,225,245,0.95); margin: 0 0 8px; }
.legal-shell a { color: #7A78B0; text-decoration: none; }
.legal-shell a:hover { text-decoration: underline; color: #6A68A0; }

/* Articles: the light lavender pane of the articles and research pages. */

:where(.shell) h1 { font-size: clamp(2rem, 6.5vw, 3.1rem); margin: .2rem 0 .9rem; }
:where(.shell) p { margin: 0 0 1.1rem; }
.shell a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.shell a:hover { text-decoration-thickness: 2px; }
.shell :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.byline { font-size: 1rem; color: var(--soft); margin: -.4rem 0 2rem; text-align: right; }
/* A long read needs its scrollbar: landing.css hides it on every .ld page. */
html:has(.ld .shell) { scrollbar-width: thin; }
