/* =====================================================================
   OSE · Inner pages, shared layout · styles/pages/inner.css
   ---------------------------------------------------------------------
   Loaded by every page except the home page (/khoa-hoc/, /gioi-thieu/,
   /blog/, /blog/<slug>/, /lien-he/, /404.html), after the components and
   before the page's own stylesheet, if it has one. Page layout only:
   semantic and component tokens, private knobs --_. Static pages: no
   scenes, no reveal animations (no motion.js, no motion.css).

   Page skeleton (chrome/page-template.html)
     nav (sticky, in flow) · mobile menu
     <main id="main">
       <header class="page-header">…</header>     top of the page, its rule
       <section class="section">…</section>        then sections on the
       <section class="section">…</section>        page grid (.container)
     </main>
     footer · contact bar

   What this file does
   - Contact bar: below 64em the body leaves room for the fixed bar.
     The same rule as the home page's (styles/pages/home.css); it is
     repeated rather than shared because each page loads one page
     stylesheet and the home page's head stays as it is.
   - Anchors (/khoa-hoc/#ielts, a post's h2) stop a step below the sticky
     nav instead of touching it.
   - The section right under the page header starts a tighter step below
     it: the header's rule (or the night band's edge) already separates
     them.
   - Two cream sections in a row share one gap: the second drops its top
     padding. Give its header .section-header--ruled for a hairline
     between them. A section with data-surface keeps both paddings (its
     surface edge needs them).
   ===================================================================== */

@layer page {
  /* Room for the fixed contact bar on phones and tablets. */
  @media (width < 64em) {
    body {
      padding-block-end: calc(var(--contact-bar-height) + var(--contact-bar-safe-area));
    }
  }

  html {
    scroll-padding-block-start: calc(var(--nav-height) + var(--space-stack-md));
  }

  .page-header + .section {
    padding-block-start: var(--space-section-tight);
  }

  .section:not([data-surface]) + .section:not([data-surface]) {
    padding-block-start: var(--space-none);
  }
}
