/* Shared shell for the public pages (landing, ledger, verify, watch, guide, whitepaper, economics).
   One header, one footer bar and, with site-shell.js, sections that scroll as one page with a contents list. */

.site-header { min-height:72px;gap:24px; }
.site-header .wordmark { font-size:28px; }
.site-header .desktop-nav { display:flex;align-items:center;gap:4px;margin-left:auto;margin-right:12px;font-size:13px;color:var(--muted); }
.site-header .desktop-nav a { min-height:36px;padding:0 12px;border-radius:999px;transition:color 150ms var(--ease),background 150ms var(--ease); }
.site-header .desktop-nav a[aria-current='page'] { color:var(--text);background:var(--soft); }
.nav-play { gap:14px;min-height:40px;padding:0 16px;font-size:13px;font-weight:500;background:var(--button);color:var(--button-text);border-color:var(--button); }
.mobile-nav a[aria-current='page'] { font-weight:600; }
@media(hover:hover) and (pointer:fine) {
  .site-header .desktop-nav a:hover { color:var(--text);text-decoration:none;background:var(--soft); }
  .nav-play:hover { background:color-mix(in srgb,var(--button) 86%,var(--signal)); }
}
@media(max-width:899px) {
  .site-header .desktop-nav { display:none; }
  .mobile-nav { display:block;position:relative;z-index:5; }
  .mobile-nav summary { list-style:none;display:flex;align-items:center;gap:8px;font-size:13px;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:8px;cursor:pointer; }
  .mobile-nav summary::-webkit-details-marker { display:none; }
  .mobile-nav[open] summary>span { transform:rotate(45deg); }
  .mobile-nav summary>span { transition:transform 150ms var(--ease); }
  .mobile-nav nav { position:absolute;right:0;top:48px;display:flex;flex-direction:column;align-items:stretch;gap:0;width:220px;padding:8px 6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-2);font-size:14px; }
  .site-header .mobile-nav a { min-height:44px;padding:0 12px;border-radius:8px; }
  .site-header .mobile-nav a:hover { background:var(--soft); }
}
@media(max-width:639px) { .site-header { min-height:64px;gap:10px; }.site-header .wordmark { font-size:26px; }.nav-actions { gap:8px; }.nav-play { padding-inline:14px; } }

/* Footer bar: the page meta. */
.shell-footer { display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;border-top:1px solid var(--line);font-size:12px;color:var(--muted); }
.shell-meta { display:flex;align-items:center;gap:18px;min-width:0;flex-wrap:wrap; }
.shell-meta a { display:inline-flex;align-items:center;min-height:36px; }
.shell-meta a:hover { color:var(--text); }










/* Sections read as one scrolling page; the header stays in reach. */
.screens-ready body { min-height:100vh;min-height:100dvh;display:flex;flex-direction:column; }
.screens-ready body>.site-header { position:sticky;top:0;z-index:40;background:var(--bg); }
.screens-ready body>header,.screens-ready body>footer { flex:none; }
.screens-ready [data-screens] { flex:1 0 auto; }
.screens-ready [data-screen] { scroll-margin-top:84px;outline:none; }
.screens-ready [data-screen]:not([hidden])+[data-screen] { margin-top:clamp(48px,10vh,120px); }
/* The landing: the first screen fills the window; the sections after it take their own height with room around. */
.screens-ready [data-screens][data-snap]>[data-screen] { min-height:calc(100svh - 72px);display:flex;flex-direction:column;justify-content:safe center;margin-top:0;padding-block:clamp(16px,4vh,40px); }
.screens-ready [data-screens][data-snap]>[data-screen]:not(:first-child) { min-height:0;padding-block:clamp(56px,11vh,128px); }

@media (prefers-reduced-motion:no-preference) { html:has(body [data-screens]) { scroll-behavior:smooth; } }

/* Contents: a sidebar on wide screens, a key under the header on narrow ones. */
.screen-toc { position:sticky;top:76px;z-index:30; }
.screen-toc>summary { list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;border-radius:10px;cursor:pointer;background:var(--surface);
  box-shadow:0 0 0 1px var(--line);font-size:14px;color:var(--muted); }
.screen-toc>summary::-webkit-details-marker { display:none; }
.screen-toc>summary b { color:var(--text);font-weight:600; }
.screen-toc nav { display:grid;gap:2px;margin-top:8px;padding:8px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 18px 40px -24px #0006; }
body.vs .screen-toc nav a[href] { display:flex;align-items:center;min-height:44px;min-width:44px;padding:0 12px;border-radius:8px;font-size:14px;color:var(--muted);text-decoration:none; }
body.vs .screen-toc nav a[href]:hover { background:var(--soft);color:var(--text);text-decoration:none; }
body.vs .screen-toc nav a[href][aria-current] { color:var(--text);font-weight:600;background:var(--soft); }
.screen-toc nav a[hidden] { display:none; }
@media (max-width:1099px) {
  .screen-toc { margin-bottom:20px; }
  .screen-toc nav { position:absolute;left:0;right:0; }
}
@media (min-width:1100px) {
  .screens-ready [data-toc] { display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:clamp(32px,4vw,64px);align-items:start; }
  .screens-ready [data-toc]>[data-screen] { grid-column:2; }
  .screen-toc { grid-column:1;grid-row:1 / span 99;align-self:start;top:96px; }
  .screen-toc>summary { display:none; }
  .screen-toc nav { margin:0;padding:0;background:none;box-shadow:none; }
  /* The sidebar is the contents; the cover's own list would repeat it. */
  .screens-ready [data-toc] .paper-toc { display:none; }
}
@media(max-width:899px) { .shell-footer { min-height:56px; } }

/* Single-view pages (watch, verify): fixed header and footer; only the content area scrolls, and only if it must. */
.shell-page { height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden; }
.shell-page>header,.shell-page>footer { flex:none; }
.shell-page>main { flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin; }
.shell-footer .feed-footnote { margin:0;max-width:none;font-size:12px;line-height:1.5;padding-block:10px; }
.shell-footer:has(>.shell-meta[hidden]:only-child) { display:none; }
.screens-ready body.shell-page>.site-header { position:sticky;top:0;z-index:40;background:var(--bg); }
