/* =====================================================================
   OSE · Giới thiệu page composition · styles/pages/gioi-thieu.css
   ---------------------------------------------------------------------
   Page layout only: how the components sit on /gioi-thieu/. Loaded after
   styles/pages/inner.css. Semantic and component tokens only, private
   knobs use --_. Static page: no scenes, no reveal animations.

   Page (site/gioi-thieu/index.html)
     page header (.page-header--lg: breadcrumb, label, h1 "Về OSE", lead)
     section#cau-chuyen          cream · title | facts (Sứ mệnh …)
     section#ten-goi             cream · name and lead | the planet
     section#dau-an-8-hanh-tinh  night · title and planet row | facts
     section#co-so               cream · address, figures, facts | facade
     section#giao-vien           cream · three teacher cards
     section.cta-band            night · Đăng ký tư vấn · Xem khoá học

   Grid     the container (--layout-max) with --layout-gutter margins;
            every two-part section is two equal halves from 64em
            (.gt-split, 6 + 6 like the home page), stacked below. The
            team is three equal columns from 48em (4 + 4 + 4).
   Rhythm   two cream sections in a row share one gap (inner.css). The
            join is a hairline across the column: .section-header--ruled
            where the header spans it (#giao-vien), .gt-ruled on the split
            where the header is only one half (#ten-goi). The night band
            keeps both paddings.
   Facts    .gt-facts: term | detail on hairlines (a dl), the same table
            as the home page's learning-path facts (.path__facts): term
            above detail on phones, two columns from 48em. Term in the
            data role (mono, muted), detail in body text.
   Aurora   the planet's ring in #ten-goi, nothing else. The planet row is
            flat and appears once.
   Teachers placeholder avatars only (the cream O icon in the navy disc):
            never a mockup photo or mockup people (CLAUDE.md §6).
   ===================================================================== */

@layer page {
  /* ---- Two halves from 64em ------------------------------------------ */
  .gt-split {
    display: grid;
    gap: var(--space-stack-xl);
  }

  .gt-split__col {
    display: grid;
    align-content: start;
    gap: var(--space-stack-xl);
    min-inline-size: 0;
  }

  /* Inside a split the grid gap does the spacing, not the header's margin. */
  .gt-split > .section-header,
  .gt-split__col > .section-header {
    margin-block-end: var(--space-none);
  }

  @media (min-width: 64em) {
    .gt-split {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      column-gap: var(--space-inline-2xl);
      align-items: start;
    }
  }

  /* A hairline across both halves, for a split that follows another
     cream section (the same rule as .section-header--ruled). */
  .gt-ruled {
    padding-block-start: var(--section-header-rule-gap);
    border-block-start: var(--section-header-rule-width) solid var(--section-header-rule);
  }

  /* ---- Facts table: term | detail on hairlines ------------------------ */
  .gt-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    inline-size: 100%;
    border-block-end: var(--border-width-hairline) solid var(--color-border);
  }

  .gt-facts__term {
    padding-block-start: var(--space-inset-sm);
    border-block-start: var(--border-width-hairline) solid var(--color-border);
    color: var(--color-text-muted);
    font: var(--text-data);
    letter-spacing: var(--text-data-tracking);
  }

  .gt-facts__detail {
    padding-block: var(--space-stack-3xs) var(--space-inset-sm);
    color: var(--color-text);
  }

  @media (min-width: 48em) {
    .gt-facts {
      grid-template-columns: max-content minmax(0, 1fr);
    }

    .gt-facts__term {
      padding-block-end: var(--space-inset-sm);
      padding-inline-end: var(--space-inline-lg);
    }

    .gt-facts__detail {
      padding-block-start: var(--space-inset-sm);
      border-block-start: var(--border-width-hairline) solid var(--color-border);
    }
  }

  /* Small print under a table (the planet data source). */
  .gt-note {
    color: var(--color-text-muted);
    font-size: var(--text-small-size);
  }

  /* ---- 2 · Tên gọi ----------------------------------------------------- */
  .gt-name__text {
    max-inline-size: var(--layout-measure);
    color: var(--color-text);
    font: var(--text-lead);
  }

  /* The planet: the home hero's compact size (120px on phones → 192px),
     start-aligned under the text, centred in its half from 64em. */
  .gt-name__visual {
    display: grid;
    justify-items: start;
    gap: var(--space-stack-md);
    min-inline-size: 0;
  }

  .gt-name__planet {
    --_d: var(--size-planet-hero-compact);
  }

  .gt-name__caption {
    max-inline-size: var(--layout-popover);
    color: var(--color-text-muted);
    font-size: var(--text-small-size);
  }

  @media (min-width: 64em) {
    .gt-name__visual {
      align-self: center;
      justify-items: center;
    }
  }

  /* ---- 3 · Dấu ấn 8 hành tinh (night) ---------------------------------- */
  /* The labelled row is centred by default; here it starts on the text's
     edge. It stretches in the column grid, so it has a definite width. */
  .gt-planets__row {
    margin-inline: var(--space-none);
  }

  /* ---- 4 · Cơ sở ------------------------------------------------------- */
  /* Figures stacked: a date at stat size needs a full column. */
  .gt-place__stats {
    display: grid;
    gap: var(--space-stack-md);
    padding: var(--space-none);
    list-style: none;
  }

  /* ---- 5 · Đội ngũ giáo viên ------------------------------------------- */
  .gt-team {
    display: grid;
    gap: var(--space-stack-xl);
  }

  @media (min-width: 48em) {
    .gt-team {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      column-gap: var(--space-inline-xl);
    }
  }
}
