/* ============================================================
   Golf Empire — design tokens
   /css/ge-tokens.css

   The single source of truth for colours, spacing, corner radius,
   type sizes and layout widths. Loaded first, before nav.css, by the
   headtag (and by the two club-input pages that don't use it).

   Change a value here and it changes everywhere that uses the token.
   Nothing else in the site should define these names again.
   ============================================================ */

:root {

  /* ---------- Colour: brand (deep blue) ---------- */
  --c-brand:          #254e71;
  --c-brand-hover:    #1d3e5b;
  --c-brand-tint:     #b0cde5;

  /* ---------- Colour: Premium accent (deep pink / wine) ---------- */
  --c-premium:        #a3003f;
  --c-premium-hover:  #8a0034;
  --c-premium-tint:   #f6e6ec;
  --c-premium-tint-2: #e8c5d2;

  /* ---------- Colour: status ---------- */
  --c-success:        #1f8b3b;
  --c-danger:         #b91c1c;
  --c-focus:          #fece20;
  --c-today:          #fff3cd;

  /* ---------- Colour: neutrals ---------- */
  --c-bg:             #c3c8d0;
  --c-page:           #e9edf0;   /* grey page behind the white cards (tool, member and hub pages) */
  --c-surface:        #ffffff;
  --c-surface-alt:    #f6f8fb;
  --c-text:           #1f2937;
  --c-text-strong:    #4b5563;
  --c-text-muted:     #6b7280;
  --c-text-subtle:    #9ca3af;
  --c-border:         #e9edf0;
  --c-border-strong:  #d6dce3;

  /* ---------- Colour: pedigree badges (deliberately off-palette) ---------- */
  --c-badge-top100:   #6f0f1a;
  --c-badge-links:    #084f33;
  --c-badge-ryder:    #173aa6;
  --c-badge-royal:    #a08019;

  /* ---------- Colour: email alerts (amber; kept apart from Premium wine) ---------- */
  --ge-alert-accent:  #B8860B;
  --ge-alert-bg:      #FBF4E2;
  --ge-alert-border:  #E7D9A6;
  --ge-alert-text:    #5A4708;

  /* ---------- Alpha scale and common overlays ---------- */
  --a-04: 0.04;
  --a-08: 0.08;
  --a-12: 0.12;
  --a-20: 0.20;
  --a-30: 0.30;
  --a-50: 0.50;
  --a-70: 0.70;

  --c-shadow-sm:      rgba(0, 0, 0, 0.06);
  --c-shadow-md:      rgba(0, 0, 0, 0.08);
  --c-shadow-lg:      rgba(0, 0, 0, 0.12);
  --c-brand-08:       rgba(37, 78, 113, 0.08);
  --c-brand-12:       rgba(37, 78, 113, 0.12);
  --c-brand-25:       rgba(37, 78, 113, 0.25);
  --c-brand-55:       rgba(37, 78, 113, 0.55);
  --c-premium-08:     rgba(163, 0, 63, 0.08);
  --c-premium-12:     rgba(163, 0, 63, 0.12);
  --c-premium-25:     rgba(163, 0, 63, 0.25);

  /* ---------- Older names used by ge-tools.css and the tool pages ----------
     Same colours as above, kept so nothing breaks. Prefer the --c- names
     in new CSS. */
  --ge-navy:          var(--c-brand);
  --ge-navy-deep:     var(--c-brand-hover);
  --ge-gold:          var(--c-focus);
  --ge-wine:          var(--c-premium);
  --ge-page-bg:       var(--c-page);
  --ge-card-border:   var(--c-border);
  --ge-card-radius:   var(--r-lg);

  /* ---------- Layout widths ---------- */
  --container-max:    1154px;    /* the whole site: header, sub-nav, page */
  --container-wide:   1320px;    /* the wider layout being trialled in priority 2 */
  --sidebar-w:        340px;     /* hub sidebar */
  --col-max:          900px;     /* single-column tool and member pages */
  --col-narrow:       760px;
  --measure:          70ch;      /* longest comfortable line of running text */

  /* ---------- Spacing scale (use these for margins, padding and gaps) ---------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-7:  32px;
  --s-8:  48px;

  /* ---------- Corner radius ---------- */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-pill: 999px;

  /* ---------- Type sizes ---------- */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 15px;    /* body text */
  --fs-md:   17px;    /* h3 */
  --fs-lg:   19px;    /* section headings */
  --fs-xl:   25px;    /* h1 */
  --lh-tight: 1.3;
  --lh-body:  1.6;

  /* ---------- Shadows ---------- */
  --shadow-card:  0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-raise: 0 6px 18px rgba(20, 30, 50, 0.08);
  --shadow-hero:  0 10px 22px rgba(0, 0, 0, 0.08);

  /* ---------- Navigation ---------- */
  --nav-header-h:    64px;
  --nav-primary-h:   48px;
  --nav-link-px:     18px;
  --nav-mega-shadow: 0 18px 40px rgba(20, 40, 65, 0.14);
  --nav-radius:      8px;
  --nav-pill-radius: 6px;

  /* ---------- Layering ---------- */
  --z-header:        100;
  --z-mega:          95;
  --z-subnav:        90;
  --z-drawer:        99997;
  --z-drawer-bg:     99996;

  /* ---------- Motion ---------- */
  --t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med:  220ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* (nav.css shortens --nav-header-h to 56px on small phones, next to the header rules) */
