/*
 * Firebird design tokens, loaded by base.html after firebird.css.
 *
 * Values follow the Firebird Theme Reference, docs/prds/master/
 * 200-part-f-site-ui-tabler.md section F.0.1, which implements
 * docs/ui-theme.md. The shared Firebird stylesheet (firebird.css) supplies the
 * layout and components; color, type, radius, motion and status colors come
 * from this file. Tabler is not part of the theme (D-20261101-22).
 *
 * Brand colors are read from SiteAppearance via base.html. Never hard-code
 * --firebird-burgundy here.
 *
 * Mapping of current hard-coded colors (firebird.css,
 * admin.css; baseline 51 occurrences, DS-10). Counts are occurrences.
 *
 *   #fff     x11  --fb-body-bg     (page backgrounds)
 *   #fff     x10  --fb-on-brand    (text on burgundy, header and buttons:
 *                                   firebird.css 153, 187, 226, 340, 412,
 *                                   546, 552, 3174)
 *   #ccc     x4   --fb-border
 *   #256536  x3   --fb-success-fg
 *   #333     x1   --fb-body-fg
 *   #444     x1   --fb-ink-medium
 *   #666     x1   --fb-ink-quiet
 *   #000     x1   --fb-ink-loud
 *   #f8f8f8  x1   --fb-surface-muted
 *   #e4e4e4  x1   --fb-surface-selected
 *   #e8e8e8  x1   --fb-hairline
 *   #ba2121  x1   --fb-error
 *   #e7f4ea  x1   --fb-success-bg
 *   #754f32  x1   --fb-interested-fg
 *   #f4ece5  x1   --fb-interested-bg
 *   #6b4b16  x1   --fb-warning-fg
 *   #f4e9d8  x1   --fb-warning-bg
 *
 *   Not in F.0.1, mapped to the nearest existing token (no new color, so
 *   no owner approval needed under Part F rule 3). 10 occurrences:
 *   #d9dee7 x2  --fb-border      (nearest: #ccc)
 *   #999    x2  --fb-ink-quiet   (nearest: #666)
 *   #f6f7f9 x1  --fb-surface-muted (nearest: #f8f8f8)
 *   #e6e6e6 x1  --fb-hairline    (nearest: #e8e8e8)
 *   #d9d9d9 x1  --fb-border      (nearest: #ccc)
 *   #c8c8c8 x1  --fb-border      (nearest: #ccc)
 *   #777    x1  --fb-ink-quiet   (nearest: #666)
 *   #222    x1  --fb-body-fg     (nearest: #333)
 *
 * The reference page (/festivals/2026/feed-the-builders/) renders
 * volunteers/public/project_detail.html. Those Firebird values are what that
 * reference page shows. Not yet verified on the sandbox: the job_detail routes.
 * The sandbox's burgundy values match the defaults (#7a1d1d, #651818).
 */

:root {
  /* Brand (set per site by SiteAppearance; defaults shown in the PRD) */
  /* --firebird-burgundy, --firebird-burgundy-dark come from base.html */

  /* Text and surfaces */
  --fb-body-fg: #333;
  --fb-body-bg: #fff;
  --fb-on-brand: #fff;
  --fb-ink-quiet: #666;
  --fb-ink-medium: #444;
  --fb-ink-loud: #000;
  --fb-border: #ccc;
  /* Form control borders: 4.5:1 on white (WCAG 1.4.11 needs 3:1). */
  --fb-control-border: #767676;
  --fb-hairline: #e8e8e8;
  --fb-surface-muted: #f8f8f8;
  --fb-surface-selected: #e4e4e4;

  /* Status */
  --fb-error: #ba2121;
  --fb-success-fg: #256536;
  --fb-success-bg: #e7f4ea;
  --fb-interested-fg: #754f32;
  --fb-interested-bg: #f4ece5;
  --fb-warning-fg: #6b4b16;
  --fb-warning-bg: #f4e9d8;

  /* Typography */
  --fb-font: "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fb-text-base: .875rem;
  --fb-text-h1: 1.25rem;
  --fb-text-h2: 1rem;
  --fb-text-h3: .875rem;
  --fb-text-h4: .75rem;
  --fb-text-kicker: .75rem;
  --fb-weight-h1: 300;

  /* Shape */
  --fb-radius: 0.25rem;
  --fb-radius-location: 0.375rem;
  --fb-radius-portal: .65rem;
  --fb-radius-pill: 62.4375rem;

  /* Focus: burgundy at 25 percent, per the reference */
  --fb-focus-ring: 0 0 0 .2rem rgba(122, 29, 29, .25);
  --fb-shadow-bar: 0 -2px 6px rgb(0 0 0 / .06);

  /* Spacing scale (centralized; values are the ones the waiver pages already used) */
  --fb-space-xs: 0.25rem;
  --fb-space-sm: 0.5rem;
  --fb-space-md: 0.75rem;
  --fb-space-lg: 1rem;
  --fb-space-xl: 1.25rem;
  --fb-space-2xl: 1.5rem;

  /* Type scale */
  --fb-text-field: 1rem;
  --fb-text-lg: 1.125rem;
  --fb-text-xl: 1.25rem;
  --fb-text-2xl: 1.5rem;

  /* Widths and controls */
  --fb-width-narrow: 35rem;
  --fb-width-compact: 22.5rem;
  --fb-touch-comfort: 3rem;
  --fb-control-checkbox: 1.375rem;

  /* Radius and border for boxed content */
  --fb-radius-card: 0.75rem;
  --fb-radius-box: 0.5rem;
  --fb-border-soft: #ddd;


  /* Phone touch target minimum (PRD addition) */
  --fb-touch-min: 2.75rem;
  /* Motion for HTMX swaps. firebird.css turns these off under prefers-reduced-motion. */
  --fb-motion-fast: .12s;
  --fb-motion-settle: .18s;
  --fb-motion-row: .3s;
}
