/* @version screens-preview-2026.09.05 - bump on ANY edit */
/* ==========================================================================
   Triumph Design Systems: Screens - preview card chrome
   --------------------------------------------------------------------------
   The six preview pages under /screens/preview/ share this one sheet. It
   styles the page chrome around the demos and nothing else: every component
   on those pages comes from components.css.

   It exists because the six pages used to carry six near-identical inline
   <style> blocks that set their whole type scale in raw px, which is the one
   thing the system they document forbids. Every size here is a --text-*
   token and every uppercase tracking is a --track-* token.

   Link order on a preview page:
     ../tokens.css  ->  ../components.css  ->  preview.css
   ========================================================================== */

body {
  margin: 0;
  background: var(--fog);
  font-family: var(--font-body);
  color: var(--ink-body);
}
.doc { max-width: 1100px; margin: 0 auto; padding: 44px 32px 64px; }

/* The page title. One per preview, and it is Inter, not Fabiola: Fabiola is
   the hero of a real page, and a reference page has no hero. */
h1 {
  font: 800 var(--text-xl)/1.1 var(--font-body);
  letter-spacing: -.01em;
  margin: 0 0 6px;
  color: var(--navy);
}

.lede { font: 500 var(--text-body)/1.55 var(--font-body); margin: 0 0 30px; max-width: 74ch; }

/* A subheader is a HEADING. It was a 13px tracked mono-caps micro-label on
   every one of these pages, which is the single most-rejected type failure in
   the whole system. It reads at --text-lg, sentence case, tracking tightened
   the way a heading tightens it. */
h2 {
  font: 800 var(--text-lg)/1.15 var(--font-body);
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--navy);
  margin: 34px 0 12px;
}

/* Caption under a demo. --text-sm is the floor this page uses; nothing here
   drops to --text-xs. */
.cap { font: 600 var(--text-sm)/1.4 var(--font-body); margin-top: 9px; }
.cap b { color: var(--navy); font-weight: 800; }

/* The wrong example. Screens has no error colour and inventing one is what
   the seven-colour palette rule forbids, so the WORD carries the meaning and
   the ink stays navy. Every bad case on these pages opens with "Banned" or
   "Not this". */
.bad b { color: var(--navy); font-weight: 800; }

code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--mist);
  padding: 1px 5px;
  color: var(--navy);
}

/* The callout at the foot of a preview. A panel on fog is white: --mist is a
   chip and an avatar colour, and a band of it the width of the content column
   reads as a third ground, which is RULE 0 broken on the pages that teach it.
   Green stays in the rule, never in the type. */
.note {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  background: var(--panel-on-fog);
}
.note p { margin: 0 0 8px; font: 500 var(--text-sm)/1.55 var(--font-body); }
.note p:last-child { margin: 0; }

/* Demo frames and side-by-side comparisons. */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.frame { border: 1px solid var(--hairline); overflow: hidden; }
.frame .appbar { position: static; }

/* Tables of cases. Header cells are labels, so they take the one label size
   and the one label tracking. */
table { border-collapse: collapse; width: 100%; max-width: 760px; }
th {
  text-align: left;
  font: 700 var(--text-label)/1.2 var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-body);
  opacity: .7;
  padding: 0 14px 9px 0;
}
td {
  padding: 11px 14px 11px 0;
  border-top: 1px solid var(--hairline);
  font-size: var(--text-sm);
  vertical-align: middle;
}
td.n {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  font-weight: 800;
  width: 1%;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

@media (max-width: 720px) {
  .doc { padding: 32px 20px 48px; }
  .cmp { grid-template-columns: 1fr; }
}
