/* ============================================================================
   TAP NETWORK — SHARED DESIGN SYSTEM
   ----------------------------------------------------------------------------
   Layer:      Client. Copied from UNIVERSAL-design-system-scaffold.css.
   Client:     TAP Network (tapnetwork.ca)
   Version:    Downstream copy of the TAP Network design system, issued 2026-11-04.
               Copy, do not edit. Corrections go to the design system first.
               Supersedes every earlier copy.
   Provenance: Reasons, sources and open questions live in CLIENT-context-tap.md
               section 5, NOT in this file.

   PRIMARY BRAND SOURCES  (two, and they agree)
   --------------------------------------------
   1. "2026 Sponsorship and Community Partnership Opportunities" (12pp, Canva)
   2. "ROI of Membership 2025" (Canva)

   Vector fills and text colours were extracted programmatically from both. The
   six core hexes MATCHED EXACTLY across two independent documents, which is why
   they are CONFIRMED rather than inferred. The 2026-27 overview and the partner
   intro deck are CONTENT inputs, not brand inputs.

   STATUS TAGS
   -----------
     [CONFIRMED]    Verified against a TAP brand source.
     [PLACEHOLDER]  Safe best-practice default or a derived value awaiting sign-off.
     [CONFLICTING]  Sources disagree. Surfaced to Kevin. Awaiting a decision.
     [TBD]          No answer yet. Default holds.

   ACCESSIBILITY NOTE THAT GOVERNS THIS PALETTE
   --------------------------------------------
   TAP's brand cyan #00b1cd measures 2.57:1 on white. It is used as heading
   text on white throughout the current collateral, which fails WCAG AA (4.5:1).
   The cyan family is therefore DECORATIVE or on-navy only. --color-link carries
   a derived, compliant member of the same family. Do not "fix" this by putting
   #00b1cd back on white.
   ========================================================================== */

:root {
  /* ==========================================================================
     1. COLOUR — BRAND
     ========================================================================== */
  --color-brand-primary:   #02195b;  /* [CONFIRMED] TAP navy. 16.25:1 on white. Headers, brand surfaces, CTA bands. */
  --color-brand-secondary: #00b1cd;  /* [CONFIRMED] TAP cyan, deep. 6.32:1 ON NAVY. Only 2.57:1 on white — never text on white. */
  --color-brand-accent:    #2fd6eb;  /* [CONFIRMED] TAP cyan, bright. DECORATIVE ONLY. 1.76:1 on white, 9.24:1 on navy. */
  --color-brand-peach:     #f8d8c3;  /* [CONFIRMED] Section-band fill. NOT a foreground colour (1.35:1 on white),
                                        but it DOES carry navy text as a background: 12.07:1. The live site uses a
                                        peach band this way. Earlier note saying "never carries text" was wrong. */
  --color-brand-purple:    #9b6bfa;  /* [CONFIRMED] In BOTH artifacts. Categorical/decorative ONLY. Marks the
                                        "shaped" tier group. 3.57:1 on white, 4.55:1 on navy. */
  --color-brand-green:     #00d7b8;  /* [CONFIRMED] In BOTH artifacts. Categorical/decorative ONLY.
                                        1.84:1 on white, 8.83:1 on navy. */
  --color-brand-tint:      #d2f6fa;  /* [CONFIRMED] Pale cyan panel fill (2026 package). Navy on it 14.16:1. */

  /* LIVE-SITE VALUES, sampled 2026-09-02 from a full-page screenshot of tapnetwork.ca.
     Recorded for provenance. NOT yet promoted into the system — the collateral and the
     site disagree, and the DS should not carry two of everything without a decision.
       #00a3bd  site CTA cyan. White on it = 3.01:1. FAILS AA. See --color-action.
       #bff3f9  site pale-cyan section band. Navy on it = 13.46:1.
       #fdf2ec  site peach section band.     Navy on it = 14.77:1.
       #11226d  navy variant, hero treatment.
     [open — reconcile site vs collateral with Sachi] */

  /* ==========================================================================
     2. COLOUR — ACTION (interactive, accessibility-guaranteed)
     ========================================================================== */
  --color-action:          #02195b;  /* [CONFIRMED — Kevin, 2026-09-02, Pass 3 #13] TAP navy as the action colour.
                                        Deliberate, against the live site's cyan CTA convention: prototypes lean
                                        where TAP is going, not where the site is. 16.25:1 with white. The cyan
                                        family stays on --color-link for links and secondary actions. Re-synced from
                                        the page mirror at handoff; the earlier #008196 note is retained in
                                        CLIENT-context-tap section 5. */
  --color-action-hover:    #010f38;  /* [CONFIRMED] Navy, darkened. */
  --color-on-action:       #ffffff;  /* [CONFIRMED] */

  --color-link:            #008196;  /* [PLACEHOLDER — brand-team confirm] DERIVED: brand cyan #00b1cd darkened
                                        27% in lightness to reach 4.58:1 on white. Passes AA as text and as a
                                        white-text button. Keeps the cyan family without the contrast failure. */
  --color-link-hover:      #006a7b;  /* [PLACEHOLDER] 6.27:1 with white. */
  --color-link-on-tint:    #006a7b;  /* [D-02] Links on tint, grey and peach. --color-link is for white only. */

  /* ==========================================================================
     3. COLOUR — NEUTRALS / SURFACES / TEXT
     ========================================================================== */
  --color-text:            #0b1b2a;  /* [CONFIRMED] TAP's own body near-black, 6,691 chars in the 2026 package.
                                        17.44:1 on white. Replaces the near-black previously invented here. */
  --color-text-muted:      #4a5568;  /* [PLACEHOLDER] 7.4:1 on white. */
  --color-surface:         #ffffff;  /* [CONFIRMED] Collateral is 64.6% white by painted area. White-dominant brand. */
  --color-surface-alt:     #f6f8fa;  /* [CONFIRMED] Matches the light panel fill used in TAP's 2026 decks. */
  --color-surface-brand:   #02195b;  /* [CONFIRMED] Full-bleed navy sections. */
  --color-border:          #d9dde3;  /* [PLACEHOLDER] */
  --color-on-brand:        #ffffff;  /* [CONFIRMED] */

  /* ==========================================================================
     4. COLOUR — SEMANTIC UI  (functional, NOT brand — flag for brand review)
     ========================================================================== */
  --color-info:            #0b69c7;  /* [PLACEHOLDER] off-palette functional */
  --color-success:         #1f7a44;  /* [PLACEHOLDER] off-palette functional */
  --color-warning:         #b7791f;  /* [PLACEHOLDER] off-palette functional */
  --color-danger:          #c1272d;  /* [PLACEHOLDER] off-palette functional */

  /* ==========================================================================
     5. TYPOGRAPHY — FAMILIES
     Body    = DM Sans. RESOLVED. The live site serves dmsans woff2 and the 2026
               package embeds DMSans at 14,700 chars. Two independent sources.
               SIL OFL, free. Codec Pro was the outlier (ROI PDF only) and is
               dropped. No licence to buy, no substitute needed.
     Display = DM Serif Display. RESOLVED from a full-page screenshot of the live
               site: every heading renders serif. The Montserrat Bold in both
               Canva PDFs is collateral practice, not the site. SIL OFL.
     ========================================================================== */
  --font-display: "DM Serif Display", Georgia,
                  "Times New Roman", serif;                              /* [CONFIRMED] live site headings, SIL OFL */
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Roboto, Helvetica, Arial, sans-serif;      /* [CONFIRMED] live site + 2026 package, SIL OFL */

  /* ==========================================================================
     6. TYPOGRAPHY — WEIGHT SCALE (locked)
     Source collateral sets display headings in Montserrat BOLD, not regular.
     This is the one place TAP's system departs from the scaffold default.
     ========================================================================== */
  --weight-regular:  400;  /* [CONFIRMED] body */
  --weight-medium:   400;  /* [D-03] 500 is retired. Token is unused on this page. */
  --weight-semibold: 700;  /* [D-03] 600 is retired. Only 400 and 700 are self-hosted, so 600 already rendered as 700. Token kept so page rules need no edit. */
  --weight-bold:     700;  /* [CONFIRMED] bold body text (DM Sans has a real 700). Display type does
                              NOT use this token; it uses --weight-display below. */
  --weight-display:  400;  /* [CONFIRMED] DM Serif Display ships a single 400 weight. Display type uses
                              its natural weight; asking for 700 produces synthetic bold. If the display
                              face ever reverts to Montserrat Bold, set this to 700 and nothing else
                              needs to change. */

  /* ==========================================================================
     7. TYPOGRAPHY — SIZE SCALE
     ========================================================================== */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1.125rem;
  --text-md:   1.25rem;
  --text-lg:   1.5rem;
  --text-xl:   2.25rem;
  --text-2xl:  3rem;
  --text-3xl:  3.5rem;
  --leading-tight: 1.15;
  --leading-snug:  1.3;
  --leading-body:  1.6;

  /* ==========================================================================
     8. SPACING — DEFAULT = REFERENCE / UTILITY ARCHETYPE
     ========================================================================== */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* ==========================================================================
     9. LAYOUT
     ========================================================================== */
  --max-width:       1200px;  /* [PLACEHOLDER] */
  --sidebar-width:   320px;   /* [PLACEHOLDER] */
  --gutter:          24px;    /* [PLACEHOLDER] */

  /* ==========================================================================
     10. RADIUS
     TAP's visual language is heavily circular: full-round logo mark, large
     circular decorative blobs, pill-shaped callouts. Radius runs generous.
     ========================================================================== */
  --radius-sm:   8px;      /* [PLACEHOLDER] buttons, inputs */
  --radius-md:   16px;     /* [D-07] */
  --radius-lg:   16px;     /* [PLACEHOLDER] conversion-archetype cards */
  --radius-pill: 999px;    /* [CONFIRMED] pill callouts appear throughout the collateral */

  /* ==========================================================================
     11. ELEVATION / SHADOW
     ========================================================================== */
  --shadow-subtle: 0 2px 8px rgba(2, 25, 91, 0.05);
  --shadow-raised: 0 6px 20px rgba(2, 25, 91, 0.10);

  /* ==========================================================================
     12. Z-INDEX SCALE
     ========================================================================== */
  --z-sidebar:    100;
  --z-mobile-nav: 900;
  --z-header:    1000;

  /* ==========================================================================
     13. MOTION
     ========================================================================== */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
}

/* ============================================================================
   FONT FACES — self-hosted woff2, no external CDN.
   Uncomment once files are placed in assets/fonts.

   FONT NOTE — BODY RESOLVED, DISPLAY CONTESTED
   --------------------------------------------
   Resolved 2026-09-02 from the live site's loaded woff2 files:
     .../elementor/google-fonts/fonts/dmsans-c420c9fc.woff2
     .../elementor/google-fonts/fonts/dmsans-d26d93f6.woff2
     .../elementor/google-fonts/fonts/dmserifdisplay-9464d2ef.woff2

   BODY = DM Sans. Live site and the 2026 package agree. Codec Pro appeared only
   in the ROI PDF and is dropped. Everything here is SIL OFL, so NO PROTOTYPE
   SUBSTITUTION IS NEEDED and the licensed-font teardown item is CLOSED.

   DISPLAY = contested. Live site says DM Serif Display; both TAP-designed PDFs
   say Montserrat Bold. DM Serif Display leads here. Caveat: a loaded font file
   proves something on the page uses it, not how prominently. Confirm against
   the site's actual headings before this hardens.

   ENABLED 2026-09-02 at handoff. Files are the Fontsource static builds
   (@fontsource/dm-sans 5.3.0, @fontsource/dm-serif-display 5.3.0, OFL-1.1),
   latin subset, placed in assets/fonts/. Zero external font requests.
   ========================================================================== */
@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/dm-serif-display-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ============================================================================
   BASE ELEMENT RULES
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

/* Headings and paragraphs carry no default margin. Pages set rhythm with the
   spacing tokens, so browser defaults would fight the archetype overrides. */
h1, h2, h3, h4, h5, h6, p { margin: 0; }

h1, h2 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  /* If a heading reads too heavy or too light, change SIZE, not weight. */
  font-weight: var(--weight-display);
  color: var(--color-brand-primary);
}

h3, h4, h5, h6 {
  font-family: var(--font-body);
  line-height: var(--leading-snug);
  font-weight: var(--weight-semibold);
  color: var(--color-brand-primary);
}

h1 { font-size: var(--text-2xl); }   /* conversion pages override to --text-3xl */
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

a { color: var(--color-link); }
a:hover { color: var(--color-link-hover); }

/* Interactive control — uses the action token, never brand-accent directly. */
.btn-primary {
  background: var(--color-action);
  color: var(--color-on-action);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.btn-primary:hover { background: var(--color-action-hover); }

/* Secondary action, cyan family, contrast-safe. */
.btn-secondary {
  background: var(--color-link);
  color: var(--color-on-action);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.btn-secondary:hover { background: var(--color-link-hover); }

/* ----------------------------------------------------------------------------
   ON-BRAND (navy) SURFACES
   The cyan family is legible here and nowhere else. 9.24:1 for the bright cyan,
   6.32:1 for the deep cyan, both against navy.
   -------------------------------------------------------------------------- */
.on-brand {
  background: var(--color-surface-brand);
  color: var(--color-on-brand);
}
.on-brand h1,
.on-brand h2,
.on-brand h3,
.on-brand h4 { color: var(--color-on-brand); }
.on-brand .accent { color: var(--color-brand-accent); }
.on-brand a { color: var(--color-brand-accent); }

/* ----------------------------------------------------------------------------
   CATEGORICAL ACCENTS
   Purple and green are CONFIRMED palette but neither passes 4.5:1 on white.
   Purple is heavily used on the live site (11.4% of the homepage by area: the
   masthead pill, the testimonials band, a news card). Note the site sets WHITE
   TEXT on purple at 3.57:1, which fails AA — use navy on purple, or purple as a
   surface behind navy. They may tint a surface or mark a category. Never text on
   white, and never the ONLY signal for a category — always pair with a label.
   -------------------------------------------------------------------------- */
.swatch-purple { background: var(--color-brand-purple); }
.swatch-green  { background: var(--color-brand-green); }
.panel-tint    { background: var(--color-brand-tint); color: var(--color-text); }

/* ============================================================================
   CONVERSION / MARKETING ARCHETYPE OVERRIDE
   Paste into the inline <style> of a conversion page, not into this file.
   ----------------------------------------------------------------------------
   :root {
     --space-xs: 8px;
     --space-sm: 16px;
     --space-md: 24px;
     --space-lg: 48px;
     --space-xl: 80px;
     --radius-md: 16px;
   }
   h1 { font-size: var(--text-3xl); }
   ========================================================================== */
