/* ============================================================
   Inner-page kit · loaded AFTER ../../../orbit-path/style.css and BEFORE a version's own stylesheet.
   The homepage stylesheet already supplies the tokens, type, nav, reader panel, footer, buttons, chips, panels and the
   motion-off and reduced-motion rules, so inner pages wear literally the homepage's chrome. This file holds only what
   an inner page needs that the homepage scopes to its hero or never needed, and restyles none of the homepage's
   components. No hex here: every color is a token from orbit-path/style.css.
   ============================================================ */

/* ---------- current page ----------
   The nav already marks aria-current="page" (style.css 302). Accessibility, Privacy and Terms are linked only from the
   footer, so the footer needs the same mark: the nav's own gradient bar, under the word. */
.footer-nav a[aria-current="page"] { position: relative; }
.footer-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.3rem;
  height: 2px; border-radius: 2px; background: var(--grad-cta);
}

/* ---------- clearing the fixed nav ----------
   The homepage hero clears the fixed nav with its own padding (style.css 411). An inner page whose first block is not a
   .page-sky puts .page-first on that block instead, so the gap under the nav is the homepage's at every text size. */
.page-first { padding-top: calc(var(--nav-h) + 1rem / var(--ts)); }

/* ---------- the sky band ----------
   The homepage's .hero-sky (style.css 412-419) is scoped to its hero and carries the lockup's halo; this is the same
   ground for an inner page: the galaxy canvas behind, fading into the page ground over its last third, and everything
   readable on an opaque plate in front (information sits ON atmosphere, never IN it). */
.page-sky { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 1rem / var(--ts)) 0 clamp(2.5rem, 7vh, 4.5rem); }
.page-sky-ground {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  --sky-fade: 68%;
  -webkit-mask-image: linear-gradient(to bottom, var(--bg) var(--sky-fade), transparent 100%);
  mask-image: linear-gradient(to bottom, var(--bg) var(--sky-fade), transparent 100%);
}
/* the homepage's combo-b fade (style.css 199), light theme only */
html[data-theme="light"][data-sky="combo-b"] .page-sky-ground { --sky-fade: 70%; }
.page-sky > .wrap { position: relative; z-index: 2; }

/* ---------- optional plate and section, in the homepage's panel language ----------
   .page-plate is the hero plate (style.css 445-456) without its grid placement; .page-panel is the station panel
   (style.css 492-495). A version may use them or draw its own from the same tokens. */
.page-plate {
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3.6vw, 3.2rem); box-shadow: 0 30px 80px var(--plate-shadow);
  max-width: 44rem; container-type: inline-size;
}
/* the homepage's display weight and rhythm; 13cqw keeps a long word inside the plate at every text size */
.page-title { font-size: min(clamp(2.4rem, calc(4.8vw * var(--ts)), 5rem), 13cqw); font-weight: 700; margin: 0.4rem 0 0.45em; hyphens: manual; overflow-wrap: break-word; }
.page-section { position: relative; z-index: 2; padding: clamp(2rem, 6vh, 4rem) 0; }
.page-panel {
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.6rem); box-shadow: 0 24px 60px var(--plate-shadow);
}
.page-panel h2 { font-size: clamp(1.8rem, calc(2.9vw * var(--ts)), 3.3rem); font-weight: 700; margin-bottom: 0.55em; }

@media (max-width: 959px) {
  /* the homepage gives its phone sky a visible band above the plate (style.css 709-710); the same breathing room here */
  .page-sky { padding-top: calc(var(--nav-h) + 7rem); }
  .page-plate { max-width: none; padding: 1.4rem 1.2rem 1.6rem; }
  .page-panel { padding: 1.3rem 1.1rem; }
  .page-title { font-size: min(clamp(2.2rem, calc(9.2vw * var(--ts)), 3.4rem), 13cqw); }
  .page-panel h2 { font-size: clamp(1.6rem, calc(7vw * var(--ts)), 2.4rem); overflow-wrap: break-word; }
}
