/* Page-specific rules. Keep this file small: a big one means a component is missing. */
@layer pages {

  /* ── /styleguide (development and staging only) ─────────────────────── */
  .sg-section { padding-block: var(--space-8); border-bottom: 1px solid var(--line); }
  .sg-section > h2 { font-size: var(--text-xl); }
  .sg-label { font-size: var(--text-xs); color: var(--ink-600); margin: var(--space-5) 0 var(--space-3); text-transform: uppercase; letter-spacing: 0.08em; }
  .sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--space-4); }
  .sg-swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: var(--text-xs); }
  .sg-swatch__chip { height: 4.5rem; }
  .sg-swatch__name { padding: var(--space-2) var(--space-3); line-height: 1.4; }
  .sg-swatch__name code { display: block; color: var(--ink-600); }
  .sg-dark-panel { padding: var(--space-6); border-radius: var(--radius-lg); }
  .sg-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: var(--space-3); list-style: none; padding: 0; }
  .sg-icons li { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--text-xs); color: var(--ink-600); }
  .sg-type > * { margin-bottom: var(--space-3); }
  /* Classes, not style attributes: the Content Security Policy blocks those. */
  .sg-display { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 750; line-height: 1.15; color: var(--navy-900); }
  .sg-h2 { font-size: var(--text-2xl); }
  .sg-h3-large { font-size: var(--text-xl); }
  .sg-lede { font-size: var(--text-lg); color: var(--ink-600); }
  .sg-small { font-size: var(--text-sm); color: var(--ink-600); }
  .sg-chip--navy-950 { background: var(--navy-950); }
  .sg-chip--navy-900 { background: var(--navy-900); }
  .sg-chip--navy-800 { background: var(--navy-800); }
  .sg-chip--navy-700 { background: var(--navy-700); }
  .sg-chip--navy-600 { background: var(--navy-600); }
  .sg-chip--navy-200 { background: var(--navy-200); }
  .sg-chip--navy-100 { background: var(--navy-100); }
  .sg-chip--navy-50 { background: var(--navy-50); }
  .sg-chip--gold-700 { background: var(--gold-700); }
  .sg-chip--gold-500 { background: var(--gold-500); }
  .sg-chip--gold-400 { background: var(--gold-400); }
  .sg-chip--gold-300 { background: var(--gold-300); }
  .sg-chip--gold-100 { background: var(--gold-100); }
  .sg-chip--white { background: var(--white); }
  .sg-chip--mist { background: var(--mist); }
  .sg-chip--ink-900 { background: var(--ink-900); }
  .sg-chip--ink-600 { background: var(--ink-600); }
  .sg-chip--ink-500 { background: var(--ink-500); }
  .sg-chip--line { background: var(--line); }
  .sg-chip--line-strong { background: var(--line-strong); }
  .sg-chip--danger { background: var(--danger); }
  .sg-chip--danger-bg { background: var(--danger-bg); }
  .sg-chip--success { background: var(--success); }
  .sg-chip--success-bg { background: var(--success-bg); }

  /* ── Placeholder pages (until their phase builds them) ──────────────── */
  .placeholder-note { color: var(--color-text-muted); }
}
