/* Classification of Elements: scene styles for this chapter only (the kit is assets/xp/xp.css).
   Content palette: the pilot's tokens, used the same way so the two chapters read as one book. Block colours on the
   tiles: s --xp-plus, p --xp-minus, d --xp-na, f --xp-hd. Gaps and predictions --xp-gold. Trend landscapes: radius
   --xp-minus, ionisation --xp-plus, electron gain --xp-green, electronegativity --xp-hb. Type is never coloured. */

/* the chapter title is long (8 words): a smaller display size than the pilot's 3-word title, so "Classification"
   fits a 375 px phone and the title fits one screen on desktop */
.xp-hub-title .xp-display { font-size: clamp(2.4rem, 12.2vw, 7.4rem); max-width: 13ch; }
@media (min-width: 900px) { .xp-hub-title .xp-display { font-size: clamp(3.4rem, 7.4vw, 7.4rem); } }

/* swatches beside neutral text (block names, property colours) */
.c3-sw { display: inline-block; width: .7em; height: .7em; border-radius: 2px; margin-right: .45em; vertical-align: -.02em; background: var(--c); }

/* element tile, drawn as HTML (spec cards, comparisons): a square with symbol, number, weight */
.c3-tile { --c: var(--mix-4); display: inline-grid; place-items: center; align-content: center; gap: 2px; width: 64px; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 16%, var(--void)); border-radius: 4px; font-variant-numeric: tabular-nums; }
.c3-tile b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--bone); }
.c3-tile small { font-size: 13px; color: var(--mix-2); line-height: 1; }
.c3-tile.ghost { border-style: dashed; background: transparent; }
.c3-tile.glow { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 0 28px color-mix(in srgb, var(--c) 35%, transparent); }
.c3-tile.on { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent), 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }

/* a row of tiles with jumps between them (back rooms) */
.c3-jumps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.c3-jumps .c3-tile { width: 52px; }
.c3-jumps i { font-style: normal; font-size: 14px; color: var(--mix-2); font-variant-numeric: tabular-nums; }

/* scrubbed footage in a frame under the stage head (phones: full width, 16:9; desktop: the right side) */
.c3-film .c3-film-frame { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--xp-bar) + 150px); aspect-ratio: 16 / 9; overflow: hidden; }
.c3-film .c3-film-frame.tall { aspect-ratio: 4 / 3; }
.c3-film .c3-film-num { position: absolute; z-index: 2; left: var(--xp-g); bottom: calc(clamp(24px, 6svh, 64px) + 92px); margin: 0; }
@media (min-width: 900px) {
  .c3-film .c3-film-frame { left: 44%; right: var(--xp-g); top: 50%; translate: 0 -50%; border-radius: 4px; }
  .c3-film .c3-film-num { bottom: auto; top: calc(var(--xp-bar) + 210px); }
}
html.xp-reduced .c3-film .c3-film-frame { position: relative; top: auto; left: auto; right: auto; translate: none; }
html.xp-reduced .c3-film .c3-film-num { position: relative; bottom: auto; top: auto; margin: 16px var(--xp-g); }

/* a gap with its four neighbours */
.c3-cross { display: grid; grid-template-areas: ". t ." "l c r" ". b ."; gap: 8px; justify-content: center; }

/* desktop two-column sections: now in the kit (xp.css, kit merge 2026-11-20) */
