/*
 * Design tokens — the only place colours, type, spacing, radii and shadows are defined
 * (global rule 25). Values sampled from John's designs (2026-12-02), teal/navy palette
 * per decision D3. DESIGN.md explains usage and points here.
 */
:root {
  /* Brand */
  --c-primary: #0a6680;        /* teal: primary buttons, active items */
  --c-primary-hover: #075468;
  --c-primary-soft: #e3f3f8;   /* teal tint: chips, outline-button hover */
  --c-navy: #002868;           /* headings; the logo wordmark navy */
  --c-navy-deep: #0e2442;      /* footer, owner sidebar */
  --c-accent: #1a9bd7;         /* decorative accents (not body text) */
  --c-brand-pink: #e90170;     /* logo map pin; decorative only */
  --c-link: #08678a;           /* text links: 5.9:1 on white */
  --c-panel: #e4f2fb;          /* light-blue bands */
  --c-panel-strong: #d3eaf8;

  /* Status */
  --c-success: #167a4f;
  --c-success-soft: #e3f6ec;
  --c-warning: #a55a00;
  --c-warning-soft: #fff1dc;
  --c-danger: #c0262d;
  --c-danger-soft: #fdebe8;
  --c-star: #f5a800;
  --c-star-empty: #d7dde5;

  /* Neutrals */
  --c-text: #14213d;
  --c-text-muted: #4f5d73;     /* 6.2:1 on white */
  --c-border: #dbe4ee;
  --c-border-strong: #b8c6d6;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f9fd;
  --c-white: #ffffff;
  --c-overlay: rgb(6 22 44 / 0.55);

  /* Tints and on-dark text (moved from components, 2026-12-02) */
  --c-gold: #8a5a00;
  --c-gold-soft: #fff4d6;
  --c-notice-text: #6b4500;    /* demo notice bar */
  --c-blue: #1d5fbf;
  --c-blue-soft: #e3eefc;
  --c-on-dark: #d9e4f2;        /* footer text */
  --c-on-dark-nav: #dbe6f3;    /* owner/account sidebar links */
  --c-on-dark-strong: #eef4fb; /* hero paragraphs on dark images */
  --c-on-dark-muted: #e6eef8;
  --c-on-dark-faint: #c9d6e6;  /* struck-through price on dark */
  --c-danger-on-dark: #ffb4b4;
  --c-teal-mid: #134a6b;       /* middle stop of navy-to-teal hero gradients */
  --c-hero-sky-1: #eef6fd;     /* home hero gradient */
  --c-hero-sky-2: #e2effb;
  --c-hero-sky-3: #cfe3f6;
  --c-bar-track: #e7edf3;
  --c-chart-grid: #e3e9f0;
  --c-placeholder: #5f6b7d;    /* 5.4:1 on white */
  --c-badge-muted: #eef1f5;
  --c-switch-off: #c5cfdb;

  /* Channel triplets for translucent colours: rgb(var(--c-ink-rgb) / .5) */
  --c-ink-rgb: 6 22 44;
  --c-white-rgb: 255 255 255;
  --c-black-rgb: 0 0 0;
  --c-primary-rgb: 10 102 128;
  --mask-opaque: #000;         /* alpha masks only, not a visible colour */

  /* Third-party brand colours (social buttons) */
  --brand-facebook: #1877f2;
  --brand-youtube: #e1261c;
  --brand-linkedin: #0a66c2;
  --brand-google: #4285f4;
  --brand-x: #111111;
  --brand-instagram-1: #fdbb4b;
  --brand-instagram-2: #f5643b;
  --brand-instagram-3: #d6247b;
  --brand-instagram-4: #7a3bd1;

  /* Type */
  --font-sans: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: clamp(2.25rem, 4.5vw, 3.25rem);
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;
  --lh-tight: 1.15;
  --lh-body: 1.55;

  /* Spacing (4px scale) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* Shape */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(16 42 79 / 0.06), 0 1px 3px rgb(16 42 79 / 0.08);
  --shadow: 0 4px 14px rgb(16 42 79 / 0.08);
  --shadow-lg: 0 12px 32px rgb(16 42 79 / 0.14);
  --focus-ring: 0 0 0 3px #ffffff, 0 0 0 5px #0a6680;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --sidebar-w: 248px;
}
