/* Youth Careers Canada — brand design system over KDS tokens. LIGHT theme only. Mobile first.
   Client-approved brand tokens (2026-09-25): deep navy + a warm orange-to-yellow rising accent + red +
   an ivory foundation. Warm energy, calm structure — navy stays the dominant strong colour, ivory is the
   primary page surface, orange/yellow/red are accents used sparingly. Inter is the sole typeface, used at
   every size (display down to labels). See docs on the journey component family (.jline / .jnode / .jstage)
   and the map token set below. */
:root, [data-kds-theme="light"] {
  --cc-navy: #1C3350; --cc-navy-700: #16283F; --cc-navy-900: #101E30; --cc-navy-100: #E4E7EB; --cc-navy-50: #F4F5F7; /* softened from the initial #16283B pass — same family, less near-black */
  --cc-red: #DC4A3D;  --cc-red-700: #A5382E; --cc-red-900: #732720; --cc-red-100: #FBEDEC; /* softened to a warmer, less neon red; red-700 is the AA-contrast shade used behind white button text */
  --cc-spark: #FFC01D; --cc-spark-700: #8A6200; --cc-spark-100: #FFF4D9;  /* the logo's rising mark — opportunity accent, used sparingly; spark-700 is the AA-contrast shade for text on light surfaces */
  --cc-green: #2E9E5B; --cc-green-100: #E4F5EA;
  --cc-orange: #FF9317; --cc-orange-700: #A65700; --cc-orange-100: #FFE8D2; /* orange-700 is the AA-contrast shade used behind white text */
  --cc-teal: #1E8A9A;  --cc-teal-100: #E1F2F4;
  --cc-ink: #1C3350;   --cc-ink-muted: #57616F; --cc-ink-faint: #7D8794;
  --cc-line: #E7E1D6;  --cc-line-strong: #D6CBB8;
  --cc-bg: #FAF7F2;    --cc-surface: #F2ECE0; --cc-surface-alt: #ECE0CC;
  --cc-grey-100: #F5F3EE; --cc-grey-200: #E7E1D6; --cc-grey-300: #D6CBB8; --cc-grey-400: #B7AA92;
  --cc-grey-500: #8B7F68; --cc-grey-600: #5E5544; --cc-grey-700: #3B352A;

  /* audience colours (logo icon strip) */
  --cc-aud-professionals: var(--cc-navy);
  --cc-aud-new_immigrants: var(--cc-teal);
  --cc-aud-indigenous: var(--cc-orange);
  --cc-aud-refugees: var(--cc-teal);
  --cc-aud-youth: var(--cc-spark);

  /* KDS token overrides — every component inherits the brand from here */
  --kds-bg: var(--cc-bg);
  --kds-surface: #ffffff;
  --kds-surface-2: var(--cc-surface);
  --kds-border: var(--cc-line);
  --kds-border-strong: var(--cc-line-strong);
  --kds-fg: var(--cc-ink);
  --kds-fg-muted: var(--cc-ink-muted);
  --kds-fg-faint: var(--cc-ink-faint);
  --kds-brand: var(--cc-navy);
  --kds-brand-fg: #ffffff;
  --kds-accent: var(--cc-red);
  --kds-accent-fg: #ffffff;
  --kds-positive: #2E9E5B;
  --kds-warning: #B3760A;
  --kds-danger: var(--cc-red);
  --kds-info: var(--cc-teal);
  --kds-focus-ring: color-mix(in srgb, var(--cc-teal) 60%, transparent);
  --kds-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --cc-font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --kds-radius-md: 8px;
  --kds-radius-lg: 12px;
  --cc-btn-radius: 10px;
  --cc-header-h: 84px;
  --cc-container: 1200px;
  --cc-container-xl: 1440px;
  --cc-page-padding: clamp(20px, 4vw, 64px);

  /* responsive grid: 12 columns / 24px gutters desktop, 4 columns / 16px gutters mobile */
  --cc-grid-cols: 12; --cc-grid-cols-mobile: 4;
  --cc-grid-gutter: 24px; --cc-grid-gutter-mobile: 16px;

  /* display type scale (hero statements, journey numbers, major headings) */
  --yf-display-hero: clamp(48px, 7vw, 104px);
  --yf-display-xl: clamp(42px, 5vw, 80px);
  --yf-display-lg: clamp(36px, 4vw, 64px);
  --yf-display-md: clamp(30px, 3vw, 48px);

  /* spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --sp-7: 40px; --sp-8: 48px; --sp-9: 64px; --sp-10: 80px; --sp-11: 96px; --sp-12: 120px; --sp-13: 160px;
  --section-pad: clamp(72px, 9vw, 160px);

  /* journey system: the route/node/stage language used across every page */
  --route-width: 2px; --route-color: var(--cc-navy); --route-active: var(--cc-red);
  --node-size: 14px; --node-active-size: 18px;
  --stage-number-size: clamp(64px, 8vw, 120px);

  /* map presentation tokens */
  --map-bg: var(--cc-surface); --map-land: var(--cc-line); --map-border: var(--cc-line-strong);
  --map-marker: var(--cc-red); --map-marker-active: var(--cc-navy);
  --map-route: var(--cc-navy); --map-route-active: var(--cc-red); --map-label: var(--cc-navy);
}

@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: cc-fade-up .6s var(--kds-ease-enter, ease) both; }
  .fade-up--1 { animation-delay: .05s; } .fade-up--2 { animation-delay: .14s; } .fade-up--3 { animation-delay: .22s; } .fade-up--4 { animation-delay: .3s; }
  @keyframes cc-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--cc-header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--kds-bg); color: var(--kds-fg); font: 400 16px/1.55 var(--kds-font-sans); min-height: 100dvh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--cc-font-display); color: var(--cc-navy); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 2.8vw + 1rem, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.6vw + .9rem, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--cc-navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--cc-red-700); }
.lead { font-size: 1.125rem; color: var(--kds-fg-muted); text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .75rem/1 var(--cc-font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--cc-navy); margin-bottom: .85rem; }
.eyebrow::before { content: ""; display: block; width: 20px; height: 3px; background: var(--cc-orange); flex: none; }
.muted { color: var(--kds-fg-muted); }
.small { font-size: .875rem; }
.container { width: 100%; max-width: var(--cc-container); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.section-pad { padding-top: 40px; padding-bottom: 40px; }
.inline-form { display: inline; margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cc-navy); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 2000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--kds-focus-ring); outline-offset: 2px; }
@media (min-width: 768px) { .container { padding-left: 24px; padding-right: 24px; } .section-pad { padding-top: 56px; padding-bottom: 56px; } }
@media (min-width: 1024px) { .section-pad { padding-top: 72px; padding-bottom: 72px; } }

/* ---------- header / nav (mobile first) — two-tier masthead: a thin utility strip carries the
   secondary destinations + account actions, the main row is dominated by the wordmark and a single
   prominent Job Bank action. Structurally different from a one-row navbar with tabs beside a logo. */
.site-header { position: sticky; top: 0; z-index: var(--kds-z-sticky, 500); background: #fff; }
.site-header__utility { display: none; background: var(--cc-navy-700); }
.site-header__utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.site-header__tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-header__tabs a { display: block; padding: 9px 12px; font-size: .8125rem; font-weight: 600; text-decoration: none; color: color-mix(in srgb, #fff 78%, transparent); }
.site-header__tabs a:hover, .site-header__tabs a.is-active { color: #fff; }
.site-header__tabs a.is-active { box-shadow: inset 0 -2px 0 var(--cc-orange); }
.site-header__auth { display: flex; align-items: center; gap: 14px; }
.site-header__auth a, .site-header__auth button { background: none; border: 0; padding: 9px 0; font: inherit; font-size: .8125rem; font-weight: 600; color: color-mix(in srgb, #fff 78%, transparent); text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.site-header__auth a:hover, .site-header__auth button:hover { color: #fff; }
.site-header__main { display: flex; align-items: center; justify-content: space-between; min-height: var(--cc-header-h); gap: 12px; border-bottom: 2px solid var(--cc-navy); }
.site-logo { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.site-logo img { display: block; height: 62px; width: auto; flex: none; }
.site-header__jobbank { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--kds-border); border-radius: 8px; background: #fff; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--cc-navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--kds-border); box-shadow: 0 16px 32px rgba(15,36,68,.12); padding: 8px 16px 16px; }
.site-nav.is-open { display: block; }
.site-nav__tabs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.site-nav__tabs a { display: block; padding: 12px 10px; border-radius: 8px; font-weight: 600; text-decoration: none; color: var(--cc-navy); }
.site-nav__tabs a:hover { background: var(--cc-navy-50); }
.site-nav__tabs a.is-active { background: var(--cc-navy-100); color: var(--cc-navy-700); box-shadow: inset 3px 0 0 var(--cc-orange); }
.site-nav__auth { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav__auth .kds-btn { flex: 1 1 auto; }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cc-teal); color: #fff; font-size: .75rem; font-weight: 700; }
@media (min-width: 1024px) {
  .site-header__utility { display: block; }
  .nav-toggle { display: none; }
  .site-header__jobbank { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--cc-orange); color: var(--cc-ink); font-weight: 700; font-size: .9375rem; text-decoration: none; }
  .site-header__jobbank:hover { background: var(--cc-orange-700); color: #fff; }
  .site-nav { display: none !important; }
}

/* ---------- flash ---------- */
.flash-region { padding-top: 12px; }
.flash { padding: 12px 16px; border-radius: 10px; border: 1px solid; margin-bottom: 8px; font-weight: 500; }
.flash--success { background: var(--cc-green-100); border-color: #b9dc93; color: #2f5d11; }
.flash--error { background: var(--cc-red-100); border-color: #f3b1b1; color: #8a1b1b; }
.flash--info { background: var(--cc-teal-100); border-color: #a7dfe2; color: #16606a; }

/* ---------- footer: a compact Youth Futures brand conclusion, not a tall generic corporate link grid.
   Brand statement and nav groups sit in ONE row at desktop (not two stacked full-width bands), followed by
   one thin legal/utility row — the whole footer stays well under half the height of the old stacked version. ---------- */
/* Ivory footer, not navy — the supplied logo's wordmark is set in dark navy, so any dark footer needs an
   opaque light plate behind it to stay legible, which reads as a sticker pasted on rather than a blended
   mark. An ivory footer lets the logo sit directly on it, exactly as it does in the header, with no plate. */
.site-footer { position: relative; background: var(--cc-bg); margin-top: 24px; padding: 36px 0 0; font-size: .9375rem; color: var(--kds-fg-muted); border-top: 1px solid var(--kds-border); overflow: hidden; }
.site-footer .container { padding-left: 24px; padding-right: 24px; }
.footer-top { display: flex; flex-direction: column; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--kds-border); }
.footer-brand { flex: 0 0 auto; max-width: 320px; }
.footer-brand__logo { display: inline-flex; align-items: center; text-decoration: none; margin-bottom: 10px; }
.footer-brand__logo img { display: block; height: 56px; width: auto; }
.footer-brand__tagline { margin: 0; font: 800 clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem)/1.25 var(--cc-font-display); color: var(--cc-navy); letter-spacing: -0.01em; }
.footer-nav { position: relative; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.footer-nav nav { flex: 1 1 160px; min-width: 160px; }
.site-footer h3 { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--kds-fg-faint); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--cc-navy); text-decoration: none; }
.site-footer a:hover { color: var(--cc-orange-700); }
.site-footer .muted { color: var(--kds-fg-muted); }
.footer-nav__meta { color: var(--kds-fg-muted); }
.footer-utility { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 14px 0; font-size: .8125rem; }
/* ul.footer-utility__links (not just .footer-utility__links) — needs to out-specificity ".site-footer ul"
   above, which was otherwise winning and forcing this into its display:grid single-column stack, exactly the
   "Privacy/Terms/Contact wasting vertical space" bug this row exists to avoid. */
ul.footer-utility__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.footer-utility__links a { font-weight: 700; color: var(--cc-navy); }
.footer-utility__links a:hover { color: var(--cc-orange-700); }
.footer-utility__meta { display: grid; gap: 2px; color: var(--kds-fg-muted); text-align: left; }
.footer-utility__meta p { margin: 0; }
@media (min-width: 640px) { .footer-utility__meta { text-align: right; } }
@media (min-width: 900px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 40px; }
  .footer-nav { flex: 1 1 auto; justify-content: flex-end; }
}

/* ---------- audience chips (logo strip) ---------- */
.audience-strip { display: flex !important; flex-wrap: wrap; gap: 6px !important; }
.aud { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #fff; border: 1px solid var(--kds-border); color: var(--cc-ink); }
.aud::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc-navy); }
.aud--professionals::before { background: var(--cc-aud-professionals); }
.aud--new_immigrants::before { background: var(--cc-aud-new_immigrants); }
.aud--indigenous::before { background: var(--cc-aud-indigenous); }
.aud--refugees::before { background: var(--cc-aud-refugees); }
.aud--youth::before { background: var(--cc-aud-youth); }

/* ---------- shared layout primitives ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; } .grid--3 { grid-template-columns: 1fr; } .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.stack { display: grid; gap: 12px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.grid-12 { display: grid; gap: var(--cc-grid-gutter-mobile); grid-template-columns: repeat(var(--cc-grid-cols-mobile), 1fr); }
@media (min-width: 1024px) { .grid-12 { gap: var(--cc-grid-gutter); grid-template-columns: repeat(var(--cc-grid-cols), 1fr); } }

/* cards */
.card { background: #fff; border: 1px solid var(--kds-border); border-radius: var(--kds-radius-lg); padding: 20px; }
.card--flat { background: var(--cc-surface); border-color: transparent; }
.card__title { margin-bottom: 4px; }

/* forms (KDS inputs + our labels) */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .kds-label { font-weight: 600; font-size: .9rem; color: var(--cc-ink); }
.field .hint { font-size: .8125rem; color: var(--kds-fg-muted); }
.field .error { font-size: .8125rem; color: var(--kds-danger); font-weight: 500; }
.input, .kds-input, .kds-select, textarea.input, select.input {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--kds-border-strong); border-radius: 10px; background: #fff; color: var(--kds-fg); min-height: 44px;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:focus, .kds-input:focus, .kds-select:focus { border-color: var(--cc-teal); outline: 2px solid var(--kds-focus-ring); outline-offset: 1px; }
.checks { display: grid; gap: 8px; grid-template-columns: 1fr; align-content: start; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .checks--3 { grid-template-columns: 1fr 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--kds-border); border-radius: 10px; background: #fff; cursor: pointer; font-size: .9375rem; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--cc-navy); flex: none; }
.check:has(input:checked) { border-color: var(--cc-navy); background: var(--cc-navy-50); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-actions .kds-btn { min-height: 44px; }

/* buttons: touch-friendly sizes + brand variants */
.kds-btn { min-height: 48px; padding-inline: 24px; border-radius: var(--cc-btn-radius); font-weight: 700; }
.kds-btn--lg { min-height: 56px; }
/* Primary CTA is navy, not red — red as the default button colour across the whole site (every "Explore jobs" /
   "Post a job" / "Apply now" moment) was one of the clearest remnants of the old visual system. Red stays
   reserved for .kds-btn--danger and a handful of deliberate "final stage" accents elsewhere. */
.kds-btn--accent { background: var(--cc-navy); color: #fff; }
.kds-btn--accent:hover { background: var(--cc-navy-700); opacity: 1; color: #fff; }
.kds-btn--ghost:hover { color: var(--kds-fg); }
.kds-btn--block { width: 100%; }
.kds-btn--sm { min-height: 36px; padding: .4rem .8rem; }
@media (max-width: 767px) { .kds-btn--sm { min-height: 44px; } }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--cc-navy-100); color: var(--cc-navy-700); white-space: nowrap; }
.badge--positive { background: var(--cc-green-100); color: #2f5d11; }
.badge--warning { background: var(--cc-orange-100); color: #8a5300; }
.badge--danger { background: var(--cc-red-100); color: #8a1b1b; }
.badge--teal { background: var(--cc-teal-100); color: #16606a; }

/* page header band — the editorial signature flips to a bold, full-bleed navy masthead with an oversized
   white headline; a thin red spine runs down the left edge. Same band on every inner page (the brand frame),
   while each page's body composition below it differs by purpose (see homepage / search / job-detail / etc). */
/* Ivory is the DEFAULT masthead surface now — a solid navy band on every inner page was one of the biggest
   remnants of the old visual system. .page-head--navy (below) opts specific pages back into navy deliberately,
   for variety, not as the default. */
.page-head { position: relative; background: linear-gradient(135deg, var(--cc-orange-100), var(--cc-bg) 65%); padding: 28px 0; overflow: hidden; border-left: 6px solid var(--cc-orange); border-bottom: 1px solid var(--kds-border); }
.page-head::before {
  content: ""; position: absolute; inset: -40% -8% auto auto; width: 30%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--cc-orange) 30%, transparent), transparent 70%);
  opacity: .5; pointer-events: none;
}
.page-head__inner { position: relative; }
.page-head h1 { margin-bottom: 8px; color: var(--cc-navy); }
.page-head a:not(.kds-btn) { color: var(--cc-navy); }
.page-head .breadcrumb { color: var(--kds-fg-faint); }
.page-head .breadcrumb a { color: var(--kds-fg-muted); }
.page-head .breadcrumb li + li::before { color: var(--kds-fg-faint); }
.page-head .eyebrow { color: var(--cc-orange-700); }
.page-head .eyebrow::before { background: var(--cc-orange); }
.page-head .lead { color: var(--kds-fg-muted); }
.page-head .kds-btn--ghost { color: var(--cc-navy); border-color: var(--kds-border-strong); }
.page-head .kds-btn--ghost:hover { background: var(--cc-navy-50); color: var(--cc-navy); }
.page-head .kds-btn--brand { background: var(--cc-navy); color: #fff; }
.page-head .kds-btn--brand:hover { background: var(--cc-navy-700); color: #fff; }
.page-head .muted { color: var(--kds-fg-muted); }

/* deliberately opted back into navy (job seeker landing) so the site doesn't trade "always navy" for
   "always ivory" — kept as one of several hero treatments, not the default. */
.page-head--navy { background: var(--cc-navy); border-left-color: var(--cc-red); border-bottom: 0; }
.page-head--navy::before { background: radial-gradient(circle, color-mix(in srgb, var(--cc-orange) 35%, transparent), transparent 70%); opacity: .45; }
.page-head--navy h1 { color: #fff; }
.page-head--navy a:not(.kds-btn) { color: #fff; }
.page-head--navy .breadcrumb { color: color-mix(in srgb, #fff 55%, transparent); }
.page-head--navy .breadcrumb a { color: color-mix(in srgb, #fff 70%, transparent); }
.page-head--navy .breadcrumb li + li::before { color: color-mix(in srgb, #fff 40%, transparent); }
.page-head--navy .eyebrow { color: var(--cc-spark); }
.page-head--navy .eyebrow::before { background: var(--cc-spark); }
.page-head--navy .lead { color: color-mix(in srgb, #fff 80%, transparent); }
.page-head--navy .kds-btn--ghost { color: #fff; border-color: color-mix(in srgb, #fff 40%, transparent); }
.page-head--navy .kds-btn--ghost:hover { background: color-mix(in srgb, #fff 12%, transparent); color: #fff; }
.page-head--navy .kds-btn--brand, .page-head--navy .kds-btn--accent { background: #fff; color: var(--cc-navy); }
.page-head--navy .kds-btn--brand:hover, .page-head--navy .kds-btn--accent:hover { background: color-mix(in srgb, #fff 85%, transparent); color: var(--cc-navy); }
.page-head--navy .muted { color: color-mix(in srgb, #fff 65%, transparent); }
.page-head--navy .career-track { color: color-mix(in srgb, #fff 55%, transparent); }
.page-head--navy .career-track li:not(:last-child)::after { color: color-mix(in srgb, #fff 30%, transparent); }
.page-head--navy .career-track .is-active { color: var(--cc-spark); }

/* ======================================================================
   JOURNEY SYSTEM — the Youth Futures Canada visual identity: a route of numbered
   stages connected by a line, used for career stages, "how it works" and any
   other progression. Reusable across every page (not scoped to one stylesheet).
   Set the CSS variable --jcount on .jstage-list to the number of stages when
   using the row layout (e.g. style="--jcount:5").
   ====================================================================== */
.jstage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-9); grid-template-columns: 1fr; counter-reset: jstage; }
.jstage { counter-increment: jstage; position: relative; padding-left: calc(var(--node-size) + var(--sp-6)); }
.jstage::before { content: ""; position: absolute; left: calc((var(--node-size) - var(--route-width)) / 2); top: var(--node-size); bottom: calc(-1 * var(--sp-9)); width: var(--route-width); background: var(--cc-line-strong); }
.jstage:last-child::before { display: none; }
.jstage__node { position: absolute; left: 0; top: 3px; width: var(--node-size); height: var(--node-size); border-radius: 50%; background: var(--route-color); }
.jstage:nth-child(1) .jstage__node { background: var(--cc-orange); }
.jstage:nth-child(2) .jstage__node { background: var(--cc-spark); }
.jstage:nth-child(4) .jstage__node { background: var(--cc-orange); }
.jstage:nth-child(5) .jstage__node { background: var(--cc-red); }
.jstage--active .jstage__node, .jstage:hover .jstage__node { background: var(--route-active); width: var(--node-active-size); height: var(--node-active-size); left: calc((var(--node-size) - var(--node-active-size)) / 2); }
.jstage__label { display: block; font: 700 .75rem/1 var(--kds-font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cc-red-700); margin: 0 0 var(--sp-2); }
.jstage__num { display: block; font: 800 var(--stage-number-size)/1 var(--cc-font-display); color: var(--cc-navy); opacity: .3; } /* solid colour at partial opacity reads clearly; the old pale -100 tints were nearly invisible on ivory/white */
.jstage:nth-child(1) .jstage__num { color: var(--cc-orange); opacity: .45; }
.jstage:nth-child(2) .jstage__num { color: var(--cc-spark-700); opacity: .55; }
.jstage:nth-child(4) .jstage__num { color: var(--cc-orange); opacity: .45; }
.jstage:nth-child(5) .jstage__num { color: var(--cc-red); opacity: .4; }
.jstage__name { font: 800 clamp(1.375rem, 1.6vw + 1rem, 2.125rem)/1.15 var(--cc-font-display); color: var(--cc-navy); margin: var(--sp-2) 0; }
.jstage__desc { color: var(--kds-fg-muted); max-width: 46ch; margin: 0; font-size: 1.0625rem; }
.jstage__link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-3); font-weight: 700; font-size: .9375rem; color: var(--cc-red-700); text-decoration: none; }
.jstage__link:hover { color: var(--cc-navy); }
@media (min-width: 1024px) {
  .jstage-list--row { grid-template-columns: repeat(var(--jcount, 3), 1fr); gap: var(--sp-6); }
  .jstage-list--row .jstage { padding-left: 0; padding-top: calc(var(--node-size) + var(--sp-5)); }
  .jstage-list--row .jstage::before { left: calc(var(--node-size) + 6px); right: 6px; top: calc((var(--node-size) - var(--route-width)) / 2); bottom: auto; height: var(--route-width); width: auto; }
  .jstage-list--row .jstage__node { left: 0; top: 0; }
  .jstage-list--row .jstage--active .jstage__node, .jstage-list--row .jstage:hover .jstage__node { left: calc((var(--node-size) - var(--node-active-size)) / 2); top: calc((var(--node-size) - var(--node-active-size)) / 2); }
}
@media (prefers-reduced-motion: no-preference) { .jstage__node { transition: width .15s, height .15s, left .15s, background .15s; } }

/* dashboard shell: an editorial rail on desktop (left accent bar marks the active item, no pill chrome),
   a horizontal tab strip on mobile. */
.dash { display: grid; gap: 20px; grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 40px; }
.dash__side { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
.dash__side::-webkit-scrollbar { display: none; }
.dash__side a { flex: none; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--kds-border); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--cc-navy); background: #fff; white-space: nowrap; }
.dash__side a.is-active { background: var(--cc-navy); color: #fff; border-color: var(--cc-navy); }
.dash__main { min-width: 0; display: grid; gap: 20px; align-content: start; }
@media (min-width: 1024px) {
  .dash { grid-template-columns: 220px 1fr; gap: 40px; }
  .dash__side { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--cc-header-h) + 20px); align-self: start; gap: 0; border-left: 2px solid var(--kds-border); }
  .dash__side a { border-radius: 0; border: 0; padding: 11px 16px; margin-left: -2px; border-left: 2px solid transparent; background: none; color: var(--kds-fg-muted); }
  .dash__side a:hover { color: var(--cc-navy); background: var(--cc-navy-50); }
  .dash__side a.is-active { background: none; color: var(--cc-navy); border-left-color: var(--cc-orange); font-weight: 800; }
}

/* stats: a flush, numbered-family stat block (accent rule, tinted surface) instead of bordered white KPI cards */
.stats { display: grid; gap: 2px; grid-template-columns: 1fr 1fr; background: var(--kds-border); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--cc-surface); border: 0; border-left: 3px solid var(--cc-navy); border-radius: 0; padding: 14px 16px; }
.stat__value { font: 800 1.75rem/1.1 var(--cc-font-display); color: var(--cc-navy); }
.stat__label { font-size: .8125rem; color: var(--kds-fg-muted); margin-top: 4px; }

/* responsive tables: stack to cards under 768px */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--kds-border); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--kds-fg-muted); }
@media (max-width: 767px) {
  .table--stack thead { display: none; }
  .table--stack tr { display: block; border: 1px solid var(--kds-border); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; background: #fff; }
  .table--stack td { display: flex; gap: 12px; justify-content: space-between; border: 0; padding: 6px 0; }
  .table--stack td::before { content: attr(data-label); font-weight: 600; color: var(--kds-fg-muted); font-size: .8125rem; flex: none; }
}

/* job cards (shared by home/list/dashboards) — an editorial directory entry, not a bordered box: a
   tinted block, a running index number, and a full colour inversion on hover. Kept in sync with
   public.css's fuller job-card rules (pages that don't load public.css — portal/seeker dashboards —
   still get the same visual language from this copy). */
.jobs-grid, .jobs-stack { counter-reset: joblist; }
.job-card { counter-increment: joblist; position: relative; display: grid; gap: 9px; background: var(--cc-surface); border: 0; border-radius: 2px; padding: 22px 44px 18px 20px; transition: background .15s, color .15s; }
.job-card::before { content: counter(joblist, decimal-leading-zero); position: absolute; top: 16px; right: 18px; font: 800 .8125rem/1 var(--cc-font-display); color: var(--cc-line-strong); letter-spacing: .06em; }
.job-card:hover { background: var(--cc-navy); }
.job-card:hover::before { color: color-mix(in srgb, #fff 32%, transparent); }
.job-card__title { font: 800 1.0625rem/1.3 var(--cc-font-display); margin: 0; letter-spacing: -0.01em; }
.job-card__title a { text-decoration: none; color: var(--cc-navy); }
.job-card:hover .job-card__title a { color: #fff; }
.job-card__company { color: var(--kds-fg-muted); font-size: .9375rem; }
.job-card:hover .job-card__company { color: color-mix(in srgb, #fff 78%, transparent); }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .875rem; color: var(--kds-fg-muted); }
.job-card:hover .job-card__meta { color: color-mix(in srgb, #fff 75%, transparent); }
.job-card__salary { font: 700 1.0625rem/1.2 var(--cc-font-display); color: var(--cc-navy); }
.job-card:hover .job-card__salary { color: #fff; }
.job-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8125rem; color: var(--kds-fg-faint); }
.job-card:hover .job-card__foot { color: color-mix(in srgb, #fff 55%, transparent); }
.job-card:hover .kds-btn--brand { background: #fff; color: var(--cc-navy); }
.job-card:hover .kds-btn--brand:hover { background: color-mix(in srgb, #fff 85%, transparent); color: var(--cc-navy); }
.job-card--ref { box-shadow: inset 4px 0 0 var(--cc-teal); }

/* empty states */
.empty { text-align: center; padding: 40px 16px; color: var(--kds-fg-muted); border: 1px dashed var(--kds-border-strong); border-radius: 14px; }

/* maple accent divider */
.divider-maple { display: flex; align-items: center; gap: 12px; color: var(--cc-red-700); margin: 24px 0; }
.divider-maple::before, .divider-maple::after { content: ""; flex: 1; height: 1px; background: var(--kds-border); }

/* print */
@media print { .site-header, .site-footer, .nav-toggle, .flash-region { display: none !important; } }

/* ======================================================================
   UX STANDARD (2026-09-10) — every page uses these primitives. See docs/UX-STANDARDS.md.
   ====================================================================== */
/* Containers: ONE width for the whole site. Prose pages narrow the text, never the gutters. */
.container--prose { max-width: 820px; }              /* long reading: about, privacy, terms, contact copy */
.container--narrow { max-width: 640px; }             /* auth cards, checkout, single forms */
.container--wide { max-width: 1360px; }              /* ONLY /jobs with the map open */
/* Page header band — identical on every page (eyebrow · h1 · lead · optional actions on the right at ≥768).
   Background/geometry/h1 spacing are set once, above, next to .page-head::before. */
.page-head__inner { display: grid; gap: 12px; align-items: end; }
.page-head .lead { margin: 0; max-width: 68ch; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; font-size: .8125rem; color: var(--kds-fg-faint); }
.breadcrumb a { color: var(--kds-fg-muted); text-decoration: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--kds-fg-faint); }
@media (min-width: 768px) { .page-head { padding: 44px 0; } .page-head__inner { grid-template-columns: 1fr auto; } }
@media (min-width: 1024px) { .page-head { padding: 56px 0; } }
/* Section rhythm — vertical spacing is the SAME on every page */
.section { padding: 40px 0; }
.section--alt { background: var(--cc-surface); border-top: 1px solid var(--kds-border); border-bottom: 1px solid var(--kds-border); }
/* a single, controlled "warm energy" beat in the section rhythm — used sparingly, once or twice per page,
   never back-to-back with itself */
.section--warm { background: linear-gradient(135deg, var(--cc-orange-100), var(--cc-spark-100)); border-top: 1px solid var(--kds-border); border-bottom: 1px solid var(--kds-border); }

/* named section-surface system: pick deliberately per page, not on every section — see the per-page comments
   at each usage site for why that surface was chosen there. */
.surface-ivory { background: var(--cc-bg); }
.surface-white { background: #fff; }
.surface-navy { position: relative; overflow: hidden; background: var(--cc-navy); background-image: radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--cc-red) 35%, transparent), transparent 55%); color: #fff; }
.surface-navy h1, .surface-navy h2, .surface-navy h3, .surface-navy h4 { color: #fff; }
.surface-navy .eyebrow { color: var(--cc-spark); }
.surface-navy .eyebrow::before { background: var(--cc-spark); }
.surface-navy .lead, .surface-navy .muted { color: color-mix(in srgb, #fff 78%, transparent); }
.surface-navy a:not(.kds-btn) { color: #fff; text-decoration-color: color-mix(in srgb, #fff 50%, transparent); }
.surface-navy .kds-btn--ghost { color: #fff; border-color: color-mix(in srgb, #fff 40%, transparent); }
.surface-navy .kds-btn--ghost:hover { background: color-mix(in srgb, #fff 12%, transparent); color: #fff; }
.surface-navy .kds-btn--brand, .surface-navy .kds-btn--accent { background: #fff; color: var(--cc-navy); }
.surface-navy .kds-btn--brand:hover, .surface-navy .kds-btn--accent:hover { background: color-mix(in srgb, #fff 85%, transparent); color: var(--cc-navy); }
.surface-warm-orange { background: linear-gradient(135deg, var(--cc-orange-100), var(--cc-bg) 65%); border-top: 1px solid var(--kds-border); border-bottom: 1px solid var(--kds-border); }
.surface-warm-yellow { background: linear-gradient(135deg, var(--cc-spark-100), var(--cc-bg) 65%); border-top: 1px solid var(--kds-border); border-bottom: 1px solid var(--kds-border); }
.section__head { margin-bottom: 20px; max-width: 68ch; }
.section__head .lead { margin: 0; }
@media (min-width: 768px) { .section { padding: 56px 0; } .section__head { margin-bottom: 28px; } }
@media (min-width: 1024px) { .section { padding: 72px 0; } }
/* Prose measure for long text inside any container */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.25em; } .prose li { margin-bottom: .35em; }
/* App shell (dashboards) — page-head + .dash grid; cards inside use .card */
.app-head { padding: 20px 0 0; }
.app-head h1 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.125rem); }
/* Card family: one radius, one border, one padding scale */
.card { padding: 20px; }
.card--pad-lg { padding: 28px; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--kds-border); }
.card__head h2, .card__head h3 { margin: 0; }
/* Buttons: exactly three visual weights — brand (navy), accent (red, the ONE primary action per page), ghost */
.kds-btn--brand:hover { background: var(--cc-navy-700); opacity: 1; color: #fff; }
/* Sticky mobile action bar — shared by apply, job form, checkout */
.sticky-bar { position: sticky; bottom: 0; z-index: 20; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-top: 1px solid var(--kds-border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
@media (min-width: 1024px) { .sticky-bar { position: static; background: none; border: 0; padding: 0; backdrop-filter: none; } }
/* shared: required marker + 5-column grid (were duplicated in portal/contact/auth/about/landing css) */
.req { color: var(--cc-red-700); font-weight: 700; margin-left: 2px; }
.grid--5 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
