/* Branding. Theme the kit by overriding its --tsw-* tokens here, in the :root
   block loaded after theme.css (and tokens.css). Component rules below use var(--tsw-...) and
   never hard-code a colour, font, or spacing value, so a new site rebrands by
   editing this block only.

   Accent pair contrast (WCAG AA, 4.5:1 for normal text):
     light: #1d4ed8 on #ffffff = 6.70 (--tsw-accent-ink on page background)
            #ffffff on #1d4ed8 = 6.70 (--tsw-accent-on on --tsw-accent-bg)
     dark:  #93c5fd on #0a0c10 = 10.85
            #ffffff on #1d4ed8 = 6.70 (accent background keeps its light value)
   The ink value differs by colour scheme because no single blue clears 4.5:1
   as small text on both a white and a near-black background. */
:root {
  color-scheme: light dark;

  /* Brand fonts. The kit defaults to the system UI stack; override to load a
     brand typeface (and update the @font-face / <link> in index.html). */
  /* --tsw-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
  /* --tsw-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; */

  --tsw-accent-bg: #1d4ed8;
  --tsw-accent-on: #ffffff;
  --tsw-accent-ink: #1d4ed8;
  --tsw-accent-soft: #dbeafe;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tsw-accent-ink: #93c5fd;
    --tsw-accent-soft: #172554;
  }
}

.tsw-grid {
  display: grid;
  gap: var(--tsw-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.tsw-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tsw-space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
}

.tsw-pill-list li {
  padding: var(--tsw-space-2xs) var(--tsw-space-md);
  border: var(--tsw-border-w) solid var(--tsw-border);
  border-radius: var(--tsw-radius-full);
  background: var(--tsw-surface);
  font-size: var(--tsw-text-sm);
  color: var(--tsw-text-muted);
}

tsw-hero dl {
  display: contents;
}

tsw-hero dl > div {
  display: grid;
  gap: var(--tsw-space-3xs);
}

tsw-hero dt {
  font-family: var(--tsw-font-mono);
  font-size: var(--tsw-text-2xs);
  letter-spacing: var(--tsw-tracking-wider);
  text-transform: uppercase;
}

tsw-hero dd {
  margin: 0;
  font-weight: 600;
}

/* Component and layout rules below use the tokens above; they carry no brand
   values of their own. */
