/* Shared base for preview cards */
@import url("../colors_and_type.css");
/* Tooltip visuals — shared with the full prototype (single source). */
@import url("_tooltip.css");

html, body {
  margin: 0;
  padding: 0;
  background: var(--gov-color-neutral-0);
  color: var(--color-fg-default);
  font-family: var(--font-sans);
  /* Allow the card to scroll when viewed standalone (or in a too-short
     iframe). The Design System overview gives each iframe enough height
     to fit the whole card, so no scrollbar shows there — but in a tab
     or detached window the user MUST be able to reach overflowing content
     with mouse / keyboard. Previously was `overflow: hidden` which locked
     scrolling entirely. */
  overflow: auto;
}
.card {
  padding: 20px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-height: 100%;
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
/* Per-card stylesheets sometimes set `.col { flex: 1 1 280px }` so cols
   split evenly inside a `.row`. When such a `.col` ends up as a direct
   child of `.card` (which is also a flex container, but column-direction)
   that same shorthand resolves on the *vertical* axis — basis 280px,
   grow 1 — and the col balloons to fill the card height, pushing every
   following sibling toward the bottom of the viewport. Pin direct
   children of `.card` to natural height so layout reads top-down. */
.card > .col { flex: 0 0 auto; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-fg-tertiary); font-weight: 500; }
.swatch {
  width: 96px; height: 64px;
  border-radius: 4px;
  border: 1px solid rgba(12,24,56,0.08);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}
.swatch--sm { width: 64px; height: 48px; font-size: 9px; padding: 4px 6px; }
.swatch__name { font-family: var(--font-sans); font-weight: 500; font-size: 11px; line-height: 1; }
.swatch__hex { font-family: var(--font-mono); font-size: 10px; opacity: 0.85; margin-top: 2px; }

/* Tooltip (.tip) visuals moved to _tooltip.css (shared with the prototype),
   @imported at the top of this file. Dark drop-shadow re-pin stays in _dark.css. */

/* Keycaps in prose — system-wide rule: shortcuts AND mouse actions mentioned in
   helper text / notes / section subs render as <kbd> caps (even "Click" /
   "Ctrl + Click"). Same cap vocabulary as the playground cheat sheet & the
   tooltip shortcut line. FP_OS (_tooltip.js) swaps Ctrl→⌘ / Alt→⌥ on macOS. */
kbd {
  font: 600 0.82em var(--font-mono);
  padding: 1px 4.5px; border-radius: 4px;
  color: var(--color-fg-secondary);
  background: var(--gov-color-neutral-50);
  border: 1px solid var(--color-border-default);
  border-bottom-width: 2px;
  white-space: nowrap;
}
