/* /color — the palette moodboard on the shared "dark recruiter" document theme.
   Chrome (card, titles, text) uses the --doc-* tokens; the SWATCHES stay
   true-colour (the whole point of the page) and the wrap stays lifted above the
   CRT scanline blend so swatch colour renders un-tinted. */
body { overflow-y: auto !important; background: var(--doc-bg); }

/* nav over the palette + scanlines (matches tarot/mtg) */
.exec-nav { z-index: 9995; }

/* the doc card at the wider board width, above the scanlines (z 9991) so the
   swatches read true — overrides .doc-card's narrower width + z-raised */
.clr-wrap { width: min(980px, 94vw); z-index: 9991; }

/* one little table per color (hue-ordered, wrapping): title on top, then a
   table whose columns are the color's variations and rows are swatch / opacity
   / count / effects, then the description beneath. */
.clr-board { display: flex; flex-direction: column; gap: var(--space-10); }
.clr-group { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }

/* color name rendered as a doc section header */
.clr-title {
  font-size: var(--fs-sm); font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: var(--tracking-caps); color: var(--doc-green);
  padding-bottom: var(--space-1-5); border-bottom: 1px solid var(--doc-rule);
}

.clr-tbl { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--fs-2xs); }
.clr-tbl th { font-weight: var(--fw-normal); color: var(--doc-ink-soft); padding: var(--space-0-5) var(--space-2); text-align: center; }
.clr-tbl td { padding: var(--space-0-5) var(--space-2); text-align: center; vertical-align: middle; color: var(--doc-ink); }

/* swatches — TRUE COLOUR, untouched: a faint dark field so translucent fills
   read against it, then the real palette colour painted inline by color.js */
.clr-sw { width: 100%; height: 16px; border-radius: var(--radius-1); overflow: hidden; background: hsl(0deg 0% 0% / 0.3); }
.clr-fill { width: 100%; height: 100%; }

.clr-cnt { color: var(--doc-ink-soft); }

/* effects/usage cells */
.clr-tbl td.clr-usecell { vertical-align: top; text-align: left; padding-top: var(--space-2); }
.clr-uselist { margin: 0; padding-left: var(--space-5); font-size: var(--fs-2xs); color: var(--doc-ink-soft); list-style: disc; }
.clr-uselist li { line-height: var(--lh-snug); overflow-wrap: anywhere; }
.clr-guse { font-size: var(--fs-2xs); color: var(--doc-ink-soft); line-height: var(--lh-snug); overflow-wrap: anywhere; white-space: normal; }
.clr-empty { font-size: var(--fs-sm); color: var(--doc-ink-soft); padding: var(--space-2-5) 0; }

/* ── Scale section — the non-colour design tokens, one family per block, each a
   wrapping grid of token cards (visual on top, --name / value / ×count below).
   The visual renders the token at its real value: bars sized to spacing, text
   at the type token, a fill that animates at the duration. ──────────── */
.sc-section { display: flex; flex-direction: column; gap: var(--space-8); margin-top: var(--space-10); }
.sc-h1 { font-size: var(--fs-sm); }
.sc-note { font-size: var(--fs-2xs); color: var(--doc-ink-soft); line-height: var(--lh-snug); margin-top: calc(-1 * var(--space-4)); }
.sc-note code { color: var(--doc-cyan); font-family: var(--font-mono); }
.sc-board { display: flex; flex-direction: column; gap: var(--space-7); }
.sc-group { display: flex; flex-direction: column; gap: var(--space-3); }
.sc-headn { color: var(--doc-ink-soft); font-weight: var(--fw-normal); text-transform: none; letter-spacing: var(--tracking-wide); }
.sc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }

@media (width <= 640px) { .sc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sc-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border: 1px solid var(--doc-rule);
  border-radius: var(--radius-2); background: var(--doc-chip);
}
.sc-card.sc-dim { opacity: 0.55; }
.sc-vis { min-height: 38px; display: flex; align-items: center; overflow: hidden; }
.sc-meta { display: flex; flex-direction: column; gap: var(--space-0-5); }
.sc-name { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--doc-ink); overflow-wrap: anywhere; }
.sc-sub { display: flex; align-items: baseline; gap: var(--space-2); font-size: var(--fs-2xs); }
.sc-val { color: var(--doc-green-dim); font-family: var(--font-mono); }
.sc-cnt { color: var(--doc-ink-soft); }
.sc-flag { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.sc-dead { color: var(--doc-pink); }
.sc-rare { color: var(--doc-green-dim); }

/* per-family visuals */
.sc-bar { display: block; height: 8px; background: var(--doc-green); border-radius: var(--radius-1); }
.sc-rad { display: block; width: 30px; height: 30px; background: var(--doc-chip); border: 1px solid var(--doc-green); }
.sc-txt { color: var(--doc-ink); line-height: var(--lh-tight); white-space: nowrap; }
.sc-caps { text-transform: uppercase; }
.sc-blur { color: var(--doc-green); font-weight: var(--fw-bold); }
.sc-para { display: block; font-size: var(--fs-2xs); color: var(--doc-ink-soft); }
.sc-sw { display: block; width: 100%; height: 26px; border-radius: var(--radius-1); overflow: hidden; background: hsl(0deg 0% 0% / 0.3); }
.sc-fill { display: block; width: 100%; height: 100%; }
