/* /cf/cftr/stills/ — zero color literals; tokens only. */
@layer page {
.stills-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.stills-hero-copy { min-width: 0; }
.stills-hero .stills-player { width: 100%; max-width: none; margin: 0; padding: var(--space-3); box-sizing: border-box; background: var(--surface-raised); border: 1px solid var(--line-1); border-radius: var(--radius-md); }
.stills-hero .stills-player figcaption { margin-top: var(--space-3); font-size: var(--step--1); line-height: 1.5; color: var(--text-2); }
.stills-hero .stills-player figcaption strong { color: var(--text-1); font-family: var(--font-display); }
.stills-legend-panel { background: var(--cftr-stage-bg); color: var(--cftr-stage-ink); border: 1px solid var(--cftr-swatch-frame); border-radius: var(--radius-md); padding: var(--space-4); margin-top: var(--space-4); }
.stills-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: var(--space-2) var(--space-4); }
.stills-legend li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--step--1); }
.stills-swatch { width: 0.9rem; height: 0.9rem; flex: none; border-radius: var(--radius-chip); border: 1px solid var(--cftr-swatch-frame); }
.stills-swatch.tmd1 { background: var(--cftr-dom-tmd1); }
.stills-swatch.nbd1 { background: var(--cftr-dom-nbd1); }
.stills-swatch.rreg { background: var(--cftr-dom-r); }
.stills-swatch.tmd2 { background: var(--cftr-dom-tmd2); }
.stills-swatch.nbd2 { background: var(--cftr-dom-nbd2); }
.stills-swatch.other { background: var(--cftr-dom-other); }
.stills-swatch.med { background: var(--cftr-dom-medicine); }
.stills-swatch.atp { background: var(--cftr-dom-atp); }
.stills-swatch.pka { background: var(--cftr-dom-pka); }
.stills-swatch.env { background: var(--cftr-dom-envelope); }
.stills-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-5); }
.still-plate { margin: 0; border: 1px solid var(--line-1); background: var(--surface-raised); border-radius: var(--radius-md); overflow: hidden; }
.still-frame { background: var(--cftr-stage-bg); line-height: 0; border-bottom: 1px solid var(--line-1); }
.still-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.still-plate figcaption { padding: var(--space-4); display: grid; gap: var(--space-2); }
.still-plate h3 { margin: 0; font-size: var(--step-1); line-height: var(--leading-tight); }
.still-limit { margin: 0; font-size: var(--step--1); color: var(--text-2); border-left: 2px solid var(--line-2); padding-left: var(--space-3); }
.still-links { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--step--1); font-family: var(--font-mono); }
.cftr-tablewrap { overflow-x: auto; max-width: 100%; }
.cftr-table { width: 100%; min-width: 54rem; }
.cftr-table th, .cftr-table td { white-space: normal; vertical-align: top; }
.cftr-table :is(th, td):nth-child(-n+3), .cftr-table th[scope="row"] { white-space: nowrap; }
.cftr-mode-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.cftr-mode-bar a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 0.9rem; border: 1px solid var(--line-2); border-radius: var(--radius-chip); background: var(--surface-raised); color: var(--text-1); font-family: var(--font-display); font-size: var(--step--1); font-weight: 600; text-decoration: none; }
.cftr-mode-bar a:hover, .cftr-mode-bar a:focus-visible { border-color: var(--accent); color: var(--accent); }
.cftr-mode-bar a[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: var(--text-on-accent); }
.cftr-companion { margin-top: var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.cftr-companion-thumb { display: block; border-radius: var(--radius-chip); overflow: hidden; background: var(--cftr-stage-bg); line-height: 0; border: 1px solid var(--line-1); }
.cftr-companion-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.cftr-companion-body { display: grid; gap: var(--space-1); min-width: 0; }
.cftr-companion-kicker { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.cftr-companion-title { margin: 0; font-family: var(--font-display); font-size: var(--step-1); line-height: var(--leading-tight); }
.cftr-companion-title a { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.cftr-companion-title a:hover, .cftr-companion-title a:focus-visible { color: var(--accent); }
.cftr-companion-dek { margin: 0; font-size: var(--step--1); color: var(--text-2); line-height: 1.5; }
@media (min-width: 40rem) { .cftr-companion { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); } }
@media (min-width: 56rem) { .stills-hero { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--space-6); align-items: center; } .stills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .still-plate * { transition: none; animation: none; } }
}
