/* ============================================================================
   GovTheme by Doghouse — tokens.css
   Static `--gt-*` token scales and base reset. `:root` holds the Modern-look
   defaults; a consuming site's override stylesheet redeclares them at the same
   specificity (source order wins).
   ========================================================================== */

:root {
  /* — Type families — */
  --gt-font-head: 'Hanken Grotesk', system-ui, sans-serif;
  --gt-font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --gt-font-mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* — Type scale (rem, fluid-ish, fixed steps) — */
  --gt-text-2xs: 0.6875rem;  /* 11 */
  --gt-text-xs:  0.75rem;    /* 12 */
  --gt-text-sm:  0.875rem;   /* 14 */
  --gt-text-md:  1rem;       /* 16 */
  --gt-text-lg:  1.125rem;   /* 18 */
  --gt-text-xl:  1.375rem;   /* 22 */
  --gt-text-2xl: 1.75rem;    /* 28 */
  --gt-text-3xl: 2.25rem;    /* 36 */
  --gt-text-4xl: 3rem;       /* 48 */
  --gt-text-5xl: 3.75rem;    /* 60 */

  --gt-leading-tight: 1.1;
  --gt-leading-snug: 1.28;
  --gt-leading-normal: 1.55;
  --gt-leading-relaxed: 1.7;
  --gt-tracking-tight: -0.02em;
  --gt-tracking-normal: 0;
  --gt-tracking-wide: 0.04em;
  --gt-tracking-caps: 0.14em;

  --gt-w-regular: 400;
  --gt-w-medium: 500;
  --gt-w-semibold: 600;
  --gt-w-bold: 700;
  --gt-w-extrabold: 800;
  --gt-head-weight: 800;
  --gt-head-tracking: -0.02em;

  /* — Spacing scale (4px base) — */
  --gt-space-1: 4px;
  --gt-space-2: 8px;
  --gt-space-3: 12px;
  --gt-space-4: 16px;
  --gt-space-5: 20px;
  --gt-space-6: 24px;
  --gt-space-8: 32px;
  --gt-space-10: 40px;
  --gt-space-12: 48px;
  --gt-space-16: 64px;
  --gt-space-20: 80px;

  /* — Density (1 = comfortable, ~.86 = compact) — */
  --gt-density: 1;
  --gt-control-h: calc(44px * var(--gt-density));
  --gt-control-px: calc(18px * var(--gt-density));
  --gt-control-h-sm: calc(36px * var(--gt-density));
  --gt-section-py: calc(var(--gt-space-16) * var(--gt-density));

  /* — Radius — */
  --gt-radius-xs: 4px;
  --gt-radius-sm: 6px;
  --gt-radius-md: 10px;
  --gt-radius-lg: 14px;
  --gt-radius-xl: 20px;
  --gt-radius-pill: 999px;
  --gt-radius-btn: 999px;
  --gt-radius-card: 14px;
  --gt-radius-input: 12px;
  --gt-radius-chip: var(--gt-radius-pill);

  /* — Border — */
  --gt-border-width: 1px;
  --gt-border-width-strong: 1.5px;

  /* — Colour: Modern light — */
  --gt-bg: #F4F6FB;
  /* A page band: 5 points of oklch L off bg, darker in light mode and lighter
     in dark. The engine derives it from bg. */
  --gt-bg-subtle: #e3e5ea;
  /* The dark band's ground and its brand colour (.gt-band--dark builds the
     rest from these). The engine derives both. */
  --gt-bg-dark: #0C0F16;
  --gt-primary-inverse: #a2a4ac;
  --gt-surface: #FFFFFF;
  --gt-surface-2: #F5F7FB;
  --gt-surface-sunken: #ECEFF7;
  --gt-ink: #1B1F2A;
  --gt-ink-2: #4B5468;
  /* ink-3 holds >= 4.5:1 on bg/bg-subtle/surface/surface-2 (it is small text:
     hints, metas, captions); border-2 is the control border and holds >= 3:1
     on surface, bg and bg-subtle (WCAG 1.4.11). The engine's NEUTRALS carry
     the same guarantee per look. */
  --gt-ink-3: #5E677B;
  --gt-border: #E2E6EF;
  --gt-border-2: #7E838F;

  --gt-primary: #17191F;
  --gt-primary-hover: #0c0e14;
  --gt-primary-active: #040509;
  --gt-primary-soft: color-mix(in srgb, #17191F 12%, var(--gt-surface));
  --gt-on-primary: #FFFFFF;
  /* The brand colour used AS TEXT on its own soft tint (badge, chip):
     guaranteed >= 4.5:1 on *-soft and on the surface. The engine derives it
     from whatever primary/accent the visitor picked; these are the values
     for the Modern (ink) palette. */
  --gt-primary-text: #17191f;
  --gt-switch-knob: #FFFFFF;

  --gt-accent: #2A6FDB;
  --gt-accent-soft: color-mix(in srgb, #2A6FDB 14%, var(--gt-surface));
  --gt-on-accent: #FFFFFF;
  --gt-accent-text: #1f65d0;

  --gt-link: #17191F;
  --gt-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23687185' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --gt-check-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");

  --gt-info: #2456C9;        --gt-info-soft: color-mix(in srgb, #2456C9 14%, var(--gt-surface));
  --gt-success: #157753;     --gt-success-soft: color-mix(in srgb, #157753 14%, var(--gt-surface));
  --gt-warning: #8A5A00;     --gt-warning-soft: color-mix(in srgb, #8A5A00 14%, var(--gt-surface));
  --gt-error: #C02A2A;       --gt-error-soft: color-mix(in srgb, #C02A2A 14%, var(--gt-surface));
  /* Destructive-action button color (distinct from the --gt-error validation accent); hover darkens via filter. */
  --gt-danger: #C02A2A;
  --gt-on-danger: #FFFFFF;

  /* — Image scrim (white text over photos; look-independent) — */
  --gt-scrim: rgba(5, 7, 13, .82);
  --gt-scrim-solid: #05070D;
  --gt-scrim-hover: rgba(5, 7, 13, .9);
  --gt-scrim-top: rgba(5, 7, 13, .05);
  --gt-scrim-top-hover: rgba(5, 7, 13, .15);
  --gt-on-scrim: #FFFFFF;
  --gt-on-scrim-soft: rgba(255, 255, 255, .82);

  --gt-focus: #17191F;
  --gt-focus-ring: 0 0 0 3px var(--gt-surface), 0 0 0 5.5px var(--gt-focus);

  /* — Elevation — */
  --gt-shadow-sm: 0 1px 2px rgba(20,28,48,.06);
  --gt-shadow-md: 0 2px 4px rgba(20,28,48,.05), 0 8px 20px rgba(20,28,48,.07);
  --gt-shadow-lg: 0 8px 16px rgba(20,28,48,.06), 0 24px 48px rgba(20,28,48,.10);

  --gt-maxw: 1280px;

  /* — Banner (page header band) —
     banner-bg is the article band's ground: the page ground, per the article
     design — the white article body opening below it marks the band edge. */
  --gt-banner-py: calc(var(--gt-space-12) * var(--gt-density));
  --gt-banner-bg: var(--gt-bg);
  --gt-banner-image-ratio: 16 / 6;
  --gt-banner-image-radius: var(--gt-radius-card);

  /* — Site footer —
     Light defaults invert the footer to a dark bar via the global neutrals; a
     dark-mode export overrides these four names with its own resolved values
     (see computeTokens()).

     The `acknowledgement` component reads these four, and the customiser's
     engine (govtheme-middleware, public/js/engine.iife.js) emits them, so a
     rename here is a change to both. */
  --gt-footer-bg: var(--gt-ink);
  --gt-footer-fg: color-mix(in srgb, var(--gt-bg) 72%, var(--gt-ink));
  --gt-footer-heading: var(--gt-surface);
  --gt-footer-border: color-mix(in srgb, var(--gt-surface) 14%, transparent);
}

/* ── Reset (global primitives only; the bare-element base lives in base.css so it
   stays out of the iframe-less CKEditor editing area) ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* ── Utility layout ── */
.gt-lead { font-size: var(--gt-text-lg); line-height: var(--gt-leading-normal); color: var(--gt-ink-2); }
.gt-small { font-size: var(--gt-text-sm); color: var(--gt-ink-2); }
.gt-eyebrow {
  font-family: var(--gt-font-head);
  font-size: var(--gt-text-xs);
  font-weight: var(--gt-w-semibold);
  color: var(--gt-ink-3);
}
