/*
 * Page title block (SPEC §2.9). Values from tokens.css only.
 *
 * HTML contract
 *   <hgroup class="page-title">
 *     <h1 class="page-title__eyebrow">お知らせ</h1>
 *     <p class="page-title__display" lang="en">NEWS</p>
 *   </hgroup>
 *   The Japanese eyebrow is the heading: it names the page in the page's
 *   language, and it comes first in reading order as it does visually. The
 *   English display word is its subtitle (<p> inside <hgroup>), marked
 *   lang="en". Use h1 for a page title, h2 for a TOP section title.
 *   Static text: no link, no ARIA, no states.
 *
 * Modifiers
 *   .page-title--start    left-aligned (TOP NEWS, XD title--left--sp and the
 *                         TOP PC NEWS column)
 *   .page-title--on-dark  white text on a photo band (TOP team section)
 *
 * XD: コンポーネント 47 (PC, 8 instances), title--center--sp and
 * title--left--sp (SP, 10), plus two loose groups on TOP PC (NEWS, team).
 *   eyebrow  LINE Seed JP 700 · 20/31 PC · 16/31 SP · green-700
 *   display  Europa Bold Italic · 64/96 PC · 32/48 SP · green-700 · uppercase
 *            (XD rangedStyles textTransform; "Supporters" is typed mixed case)
 *   The display line box starts 26 (SP) / 17.8 (PC) below the eyebrow top,
 *   so it overlaps the eyebrow's 31px line box: --page-title-overlap.
 *   Both are fluid 390 → 1920 (SPEC §4.1 #18, #19).
 *
 * The block hugs its text (fit-content) like the XD text, and is centered
 * with auto margins; long eyebrows wrap and stay centered.
 * Spacing above (from the header) and below belongs to the page layout.
 */

.page-title {
  inline-size: fit-content;
  max-inline-size: 100%;
  margin-inline: auto;
  color: var(--color-green-700);
  text-align: center;
  text-wrap: balance;
}

.page-title__eyebrow {
  font-family: var(--font-ja);
  font-size: var(--text-eyebrow-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-eyebrow-lh);
}

.page-title__display {
  margin-block-start: calc(-1 * var(--page-title-overlap));
  font-family: var(--font-en);
  font-size: var(--text-display-size);
  font-style: italic;
  font-weight: var(--font-weight-bold);
  line-height: var(--text-display-lh);
  text-transform: uppercase;
}

/* ---- Modifiers ---- */

.page-title--start {
  margin-inline: 0;
  text-align: start;
}

.page-title--on-dark {
  color: var(--color-on-dark);
}
