/* Shared page chrome: masthead (hero + compact variants), nav, footer and storage notice.
   Moved verbatim out of styles.css by site-shell.js's extraction; see that file for render(). */
.masthead { position: relative; overflow: hidden; margin-bottom: 26px; padding: 30px clamp(20px, 5vw, 64px) 0; border-radius: 8px; color: var(--cream); text-align: center; background: #261336 url("/assets/celestial-hero.webp") center / cover no-repeat; box-shadow: var(--shadow); }
.masthead .account-bar { position: absolute; top: 22px; right: 22px; z-index: 2; margin: 0; }
.masthead .account-button { border-color: rgba(230,177,126,.6); background: rgba(20,9,30,.45); color: var(--cream); }
.masthead .account-button:hover, .masthead .account-button:focus-visible { background: var(--gold-light); color: var(--plum-dark); }
.brand-lockup { display: grid; justify-items: center; }
.brand-lockup img { display: block; width: min(300px, 66vw); height: auto; filter: drop-shadow(0 0 22px rgba(255,220,160,.22)); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 26px; border: 1px solid var(--gold-light); border-radius: 3px; background: var(--gold-light); color: var(--plum-dark); font-size: 15px; font-weight: 600; text-decoration: none; transition: .2s ease; }
.hero-cta--ghost { background: rgba(20,9,30,.35); color: var(--cream); }
.hero-cta:hover, .hero-cta:focus-visible { background: var(--cream); color: var(--plum-dark); }
.hero-cta:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.hero-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: clamp(60px, 20vw, 300px) calc(-1 * clamp(20px, 5vw, 64px)) 0; padding: 18px clamp(20px, 5vw, 64px); list-style: none; border-top: 1px solid rgba(230,177,126,.28); background: rgba(20,9,30,.6); text-align: left; }
.hero-strip li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hero-strip li + li { padding-left: 18px; border-left: 1px solid rgba(230,177,126,.28); }
.hero-strip i { color: var(--gold-light); font: 26px/1 "Segoe UI Symbol", "Apple Symbols", serif; }
.hero-strip b { display: block; color: var(--gold-light); font: 500 10px "DM Mono", monospace; letter-spacing: .18em; text-transform: uppercase; }
.hero-strip small { display: block; margin-top: 3px; color: rgba(255,250,244,.74); font-size: 13px; }
@media (max-width: 700px) { .masthead { margin-inline: -17px; padding-top: 70px; border-radius: 0; background-image: url("/assets/celestial-hero-900.webp"); } .masthead .account-bar { top: 14px; right: 14px; } .brand-lockup img { width: min(260px, 72vw); } .hero-cta { flex: 1 1 100%; justify-content: center; } .hero-strip { grid-template-columns: 1fr; gap: 14px; margin-top: 34px; background: rgba(20,9,30,.9); } .hero-strip li + li { padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(230,177,126,.22); } }
/* The mount point is display: contents so .page-nav sticks within the page, not within a wrapper of its own height. */
[data-shell="nav"] { display: contents; }
.page-nav { position: sticky; top: 0; z-index: 30; margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.section-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 10px 0; }
.page-sections { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 4px; padding: 0 8px 8px; font-size: 12px; }
.page-sections span { margin-right: 6px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.page-sections a { display: flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: 16px; color: var(--plum); font-weight: 600; text-decoration: none; }
.page-sections a:hover, .page-sections a:focus-visible { background: var(--plum); color: var(--cream); }
.page-sections a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* The floating bar must not cover a heading a section link scrolls to. */
@media (min-width: 701px) { [data-fold] { scroll-margin-top: 112px; } }
/* Phones keep the bar in the flow: the folds and their ↑ Sections button do the navigating there. */
@media (max-width: 700px) { .page-nav { position: static; } .page-sections { display: none; } }
.section-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 24px; color: var(--plum); font-size: 13px; font-weight: 600; text-decoration: none; }
.section-nav a:hover, .section-nav a:focus-visible { background: var(--plum); color: var(--cream); }
.section-nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 700px) { .section-nav { gap: 0 3px; padding: 6px 0; } .section-nav a { padding: 7px 9px; font-size: 12px; } }
/* Footer: the page ends in the same night sky it opens with -- the lotus, a line of purpose,
   and the links set as a quiet index. Colours are the masthead's. */
.footer { --night: #261336; --dim: rgba(255,250,244,.7); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 34px clamp(28px, 5vw, 72px); margin-top: 66px; padding: clamp(36px, 5vw, 56px) clamp(22px, 5vw, 64px) 26px; border-radius: 8px; color: var(--dim); font-size: 13.5px; line-height: 1.6; background: radial-gradient(1.2px 1.2px at 14% 22%, rgba(255,250,244,.7) 50%, transparent 55%), radial-gradient(1.4px 1.4px at 63% 12%, rgba(230,177,126,.8) 50%, transparent 55%), radial-gradient(1px 1px at 86% 70%, rgba(255,250,244,.55) 50%, transparent 55%), radial-gradient(1px 1px at 38% 84%, rgba(255,250,244,.5) 50%, transparent 55%), radial-gradient(120% 90% at 50% 100%, var(--plum) 0%, var(--night) 64%); box-shadow: var(--shadow); }
.footer p { margin: 0; }
.footer a { color: var(--gold-light); text-decoration-color: rgba(230,177,126,.45); text-underline-offset: .2em; }
.footer a:hover { text-decoration-color: currentColor; }
.footer a:focus-visible, .footer .text-button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 2px; }
.footer-sign { display: grid; gap: 16px; align-content: start; }
.footer-sign img { display: block; width: 150px; height: auto; filter: drop-shadow(0 0 18px rgba(255,220,160,.18)); }
.footer-sign p { max-width: 36ch; }
.footer-sign strong { display: block; margin-bottom: 4px; color: var(--cream); font: 600 20px/1.25 "Playfair Display", serif; letter-spacing: -.01em; }
.footer-lookup, .footer-links { display: grid; align-content: start; }
.footer-lookup p { margin-bottom: 6px; color: var(--cream); font: 600 17px/1.3 "Playfair Display", serif; }
.footer-lookup a, .footer-links a, .footer-links .text-button { display: flex; align-items: center; min-height: 40px; border-bottom: 1px solid rgba(230,177,126,.18); color: var(--cream); text-decoration: none; }
.footer-lookup a::after { content: "→"; margin-left: auto; padding-left: 12px; color: var(--gold-light); opacity: .6; transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s; }
.footer-lookup a:hover::after, .footer-lookup a:focus-visible::after { opacity: 1; transform: translateX(3px); }
.footer-links { align-self: start; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.footer-links a, .footer-links .text-button { color: var(--dim); font-size: 13px; }
.footer-links .text-button { margin: 0; padding: 0; border-width: 0 0 1px; border-color: rgba(230,177,126,.18); background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.footer-lookup a:hover, .footer-links a:hover, .footer-links .text-button:hover { color: var(--gold-light); }
.footer-credit { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(230,177,126,.22); font-size: 12px; }
@media (max-width: 900px) { .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-sign { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .footer { grid-template-columns: 1fr; gap: 30px; margin: 46px -17px -30px; padding: 44px 24px calc(28px + env(safe-area-inset-bottom, 0px)); border-radius: 0; box-shadow: none; text-align: center; }
  .footer-sign { justify-items: center; }
  .footer-sign img { width: 168px; }
  .footer-sign p { margin-inline: auto; }
  .footer-lookup, .footer-links { text-align: left; }
  .footer-lookup a, .footer-links a, .footer-links .text-button { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .footer-lookup a::after { transition: none; } }
.storage-notice { position: fixed; z-index: 60; bottom: 16px; left: 16px; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; background: var(--cream); color: var(--ink); border: 1px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); }
.storage-notice[hidden] { display: none; }
.storage-notice h2 { font-size: 24px; }
.storage-notice p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.storage-notice a { color: var(--plum); }

/* Compact masthead: topic pages carry the account bar, a smaller logo and the page title
   instead of the hub's full hero (lede, hero actions and hero strip are absent). */
.masthead--compact { padding-bottom: 30px; }
.masthead--compact .brand-lockup img { width: 160px; }
.masthead--compact h1 { max-width: none; margin: 14px auto 0; font-size: clamp(15px, 1.6vw, 20px); letter-spacing: normal; }
.masthead-title { max-width: none; margin: 14px auto 0; color: #fff; font: 700 clamp(15px, 1.6vw, 20px)/1.08 "Playfair Display", serif; letter-spacing: normal; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.masthead .lede { text-wrap: balance; }
