/* =====================================================================
   OSE · Khoá học page composition · styles/pages/khoa-hoc.css
   ---------------------------------------------------------------------
   Page layout only: how the components sit on /khoa-hoc/. Loaded after
   styles/pages/inner.css. Semantic and component tokens only, private
   knobs use --_. Static page: no scenes, no reveal animations.

   Page (site/khoa-hoc/index.html), all cream until the night CTA band
     page header (.page-header--lg: breadcrumb, label, h1, lead, facts)
     .kh-programmes                 wraps the index and the programmes,
       nav.chapter-nav              so the index (sticky glass bar from
       section#tieng-anh-tre-em     64em, chapter-nav.css) lets go after
       section#tieng-anh-thcs       the last programme. Static: no scene,
       section#ielts                so no progress bar, no aria-current.
     section#hoc-phi                fees: a ruled statement, no prices
     section#hoi-dap                FAQ: header | accordion from 64em
     section.cta-band               night band, the three contact actions

   Programme  one section per programme (stable ids: the footer and the
              home page link to them). A hairline opens each one
              (--path-rule, like the home page's stages); inside it the
              path component's parts, used as they are:
                .path__mini     < 64em: the small diagram, own orbit lit
                .path__label    "Chặng 1" (mono data label)
                .path__title    the section's h2
                .path__facts    the fact table (term | detail from 48em)
                .path__diagram  >= 64em: the orbit diagram, own orbit lit
                                (.path__orbit--current) and its tick in
                                full ink (.kh-programme__tick--current)
              < 64em  one column: mini diagram, label, title, facts, CTA.
              >= 64em two equal halves: facts left, diagram right
                      (centred in its half, at most --layout-popover wide),
                      the two halves centred on each other.
              The diagrams are decorative (aria-hidden): the label says
              which stage it is.
   Rhythm     the programmes and the fees use .section--tight; two cream
              sections in a row share one gap (inner.css), and the fees
              section, which follows the .kh-programmes wrapper rather
              than a section, drops its top padding here too. The ruled
              headers (and each programme's own rule) mark the joins.
   Anchors    from 64em the index sticks under the nav, so anchors stop
              below both (--layout-sticky-top).
   Aurora     the planet's ring in each diagram, nothing else.
   ===================================================================== */

@layer page {
  /* Anchors (#tieng-anh-tre-em, #ielts …) stop below the nav and the
     sticky programme index. */
  @media (min-width: 64em) {
    html {
      scroll-padding-block-start: calc(var(--layout-sticky-top) + var(--space-stack-md));
    }
  }

  /* ---- Programmes ------------------------------------------------------ */
  .kh-programme__inner {
    display: grid;
    gap: var(--space-stack-xl);
    padding-block-start: var(--path-stage-padding-block);
    border-block-start: var(--path-rule-width) solid var(--path-rule);
  }

  .kh-programme__copy {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: var(--path-stage-gap);
    min-inline-size: 0;
  }

  .kh-programme__action {
    margin-block-start: var(--space-stack-xs);
  }

  .kh-programme__visual {
    display: none;
  }

  /* The tick of the programme's own orbit, in full ink like its lit orbit. */
  .kh-programme__tick--current {
    color: var(--color-text);
  }

  @media (min-width: 64em) {
    .kh-programme__inner {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: var(--path-column-gap);
      align-items: center;
    }

    .kh-programme__mini {
      display: none;
    }

    .kh-programme__visual {
      display: grid;
      justify-items: center;
      min-inline-size: 0;
    }

    .kh-programme__diagram {
      inline-size: min(100%, var(--layout-popover));
    }
  }

  /* ---- Học phí --------------------------------------------------------- */
  /* Follows the .kh-programmes wrapper: share one gap with the last
     programme, like two cream sections in a row (inner.css). */
  .kh-programmes + .section {
    padding-block-start: var(--space-none);
  }

  /* ---- Hỏi đáp: header | accordion, two halves from 64em --------------- */
  .kh-faq__inner {
    display: grid;
  }

  @media (min-width: 64em) {
    .kh-faq__inner {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: var(--path-column-gap);
      align-items: start;
    }
  }
}
