/* edge.css - "B · Edge", the light and sporty public look (founder chose it 6 Nov 2026).
 * Design: Vera, team/vera_light_sporty_mockup.html + vera_light_sporty_notes.md (direction B).
 * Built by Ada, facelift Edge phase 1: site-wide public menu + footer, and the tokens/base classes
 * the home page (css/home-edge.css) and the phase-2 pages build on.
 *
 * Loaded after css/site-chrome-v2.css on every page (includes/header.php). Scope rules:
 *   - the menu/footer overrides target .sc-* only; legacy-chrome pages (dashboard, viewers, admin,
 *     ml-workstation; see includes/site_chrome.php) render no .sc-* markup, so nothing changes there;
 *   - the base classes are .e-* (opt-in); nothing here styles body, h1-h6, p or a globally;
 *   - @font-face only downloads a file when a rule actually uses the family.
 * Fonts: Barlow + Barlow Condensed, SIL OFL 1.1 (fonts/Barlow-OFL.txt), self-hosted from /fonts/
 * (CSP font-src 'self'; no Google Fonts request, ever).
 * Tokens (Vera's notes, direction B): ink #0B0D10 · secondary #4A4F57 (8.3:1 on white, 7.5:1 on ground)
 * · page #FFFFFF · ground #F5F5F2 · line #E3E3DE · action yellow #FFD21F, a FILL only, with ink text
 * (13.4:1); never yellow text on white. Radii 4 px, 6 px on cards. Rules: 4 px under the menu,
 * 8 px above the footer. Chart: left #0E7490 (5.36:1), right #C2410C (5.17:1), grid #E2E8F0.
 * Focus: 3 px ink ring. Targets 44 px or more.
 * Edge r2 (7 Nov 2026, last section): sky accent for selected controls, links and glyphs; condensed caps only for
 * H1/H2 and the menu; buttons, labels and values in Barlow normal width; the --ed-* tokens live in :root here. */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --e-ink: #0B0D10;
  --e-ink2: #4A4F57;
  --e-page: #FFFFFF;
  --e-ground: #F5F5F2;
  --e-line: #E3E3DE;
  --e-act: #FFD21F;
  --e-act-press: #F2C200;
  --e-on-act: #0B0D10;
  --e-field: #767B83;          /* input borders: 4.5:1 on white */
  --e-danger: #B91C1C;         /* sign out: 6.5:1 on white */
  --e-r: 4px;
  --e-r-card: 6px;
  --e-head: 'Barlow Condensed', 'Bahnschrift Condensed', 'Arial Narrow', system-ui, sans-serif;
  --e-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --e-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  --chart-left: #0E7490;
  --chart-right: #C2410C;
  --chart-grid: #E2E8F0;
  --chart-best: #FFD21F;
  --chart-best-ink: #0B0D10;
  /* Edge r2 (founder 7 Nov 2026; plan 92 2a) - the ONE source of these names: edge-app.css, the page sheets and
   * edge-dash.css read them, none defines them.
   *   --ed-accent / --ed-accent-press   sky: the selected control (filled, white text), links, icon glyphs, toggles, focus
   *   --ed-accent-tint / -tint-hover    the tonal fill (sky text on it) and its hover
   *   --ed-action / --ed-action-press   yellow: the one primary action of a page (and best-climb), ink text on it
   *   --ed-ink / --ed-ink2              text, headlines and the thick 4 / 8 px rules only; no ink-filled control
   *   --ed-ok / --ed-attention / --ed-on-attention / --ed-not-recording   status points, as filled dots
   *   --ed-calm                         the calm neutral tint (absence, not known, quiet wells) */
  --ed-accent: #0A66C2;             /* 5.6:1 on white, 5.1:1 on ground; white on it 5.6:1 */
  --ed-accent-press: #0852A0;
  --ed-accent-tint: #E6F0FA;
  --ed-accent-tint-hover: #D3E4F6;
  --ed-action: #FFD21F;
  --ed-action-press: #F2C200;
  --ed-ink: #0B0D10;
  --ed-ink2: #4A4F57;
  --ed-ok: #166534;
  --ed-attention: #F5A300;
  --ed-on-attention: #1F1600;
  --ed-not-recording: #991B1B;
  --ed-calm: #EFEFEA;
  --ed-body-size: 17px;
}

/* ================= base classes (opt-in, .e-*) ================= */
.e-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .e-wrap { padding: 0 28px; } }
.e-head { font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1; text-wrap: balance; }
.e-kicker { font-family: var(--e-body); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--e-ink2); }
.e-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: var(--e-r); border: 2px solid transparent; text-decoration: none; text-align: center; cursor: pointer;
  font-family: var(--e-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1;
}
.e-btn-act { background: var(--e-act); color: var(--e-on-act); }
.e-btn-act:hover { background: var(--e-act-press); color: var(--e-on-act); }
.e-btn-line { background: transparent; color: var(--e-ink); border-color: var(--e-ink); }
.e-btn-line:hover { background: var(--e-ink); color: #fff; }
.e-btn-ink { background: var(--e-ink); color: #fff; }
.e-btn-ink:hover { background: #24282E; color: #fff; }

/* ================= MENU (overrides css/site-chrome-v2.css, same selectors, later in the cascade) ================= */
.sc-nav {
  --sc-tx: #0B0D10; --sc-mut: #4A4F57; --sc-line: #E3E3DE; --sc-signal: #FFD21F; --sc-signal-hi: #F2C200;
  --sc-sans: var(--e-body);
  background: #fff; color: var(--e-ink); border-bottom: 4px solid var(--e-ink);
}
.sc-nav :focus-visible,
.sc-foot :focus-visible { outline: 3px solid var(--e-ink); outline-offset: 2px; border-radius: var(--e-r); }
.sc-nav .sc-pill:focus-visible { outline-color: var(--e-ink); }

.sc-brand, .sc-brand:hover { color: var(--e-ink); }
.sc-brand-mark { filter: brightness(0); }   /* the white mark, drawn in ink on the white bar (no new asset) */
.sc-brand-name {
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  font-size: 1.45rem; color: var(--e-ink); line-height: 1;
}
.sc-brand-name b { color: var(--e-ink); font-weight: 700; }
.sc-brand-by { font-family: var(--e-body); font-weight: 600; color: var(--e-ink2); letter-spacing: .08em; }

.sc-link {
  font-family: var(--e-head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: 1.1rem; color: var(--e-ink); border-radius: var(--e-r);
}
.sc-link:hover { color: var(--e-ink); background: var(--e-ground); }
.sc-link[aria-current="page"] { color: var(--e-ink); font-weight: 700; box-shadow: inset 0 -4px 0 var(--e-act); border-radius: 0; background: none; }

.sc-pill {
  border-radius: var(--e-r); background: var(--e-act); border-color: var(--e-act); color: var(--e-on-act);
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem;
}
.sc-pill:hover { background: var(--e-act-press); border-color: var(--e-act-press); color: var(--e-on-act); }
.sc-pill[aria-current="page"] { border-color: var(--e-ink); }

.sc-util { color: var(--e-ink); font-family: var(--e-body); font-weight: 600; border-radius: var(--e-r); }
.sc-util:hover { color: var(--e-ink); background: var(--e-ground); }
.sc-lang-btn { font-family: var(--e-body); font-weight: 700; letter-spacing: .06em; }

.sc-dd {
  background: #fff; border: 2px solid var(--e-ink); border-radius: var(--e-r-card);
  box-shadow: 0 18px 36px -18px rgba(11, 13, 16, .45);
}
.sc-dd-item { color: var(--e-ink); border-radius: var(--e-r); font-family: var(--e-body); }
.sc-dd-item:hover { background: var(--e-ground); color: var(--e-ink); }
.sc-dd-item[aria-current] { color: var(--e-ink); font-weight: 700; box-shadow: inset 4px 0 0 var(--e-act); }
.sc-dd-divider { background: var(--e-line); }
.sc-dd-signout { color: var(--e-danger); }

.sc-user-btn { color: var(--e-ink); border: 2px solid var(--e-ink); font-family: var(--e-body); }
.sc-user-btn:hover { border-color: var(--e-ink); background: var(--e-ground); }
.sc-avatar { background: var(--e-act); color: var(--e-on-act); }

.sc-toggle { color: var(--e-ink); border: 2px solid var(--e-ink); border-radius: var(--e-r); }
.sc-toggle[aria-expanded="true"] { background: var(--e-act); border-color: var(--e-ink); }

/* phone sheet: hangs below the 4 px rule */
.sc-mobile {
  top: calc(100% + 4px); max-height: calc(100vh - var(--sc-bar-h) - 4px);
  background: #fff; border-bottom: 4px solid var(--e-ink); box-shadow: 0 24px 40px -24px rgba(11, 13, 16, .5);
}
.sc-mobile-group { border-bottom-color: var(--e-line); }
.sc-mlink {
  color: var(--e-ink); font-family: var(--e-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1.3rem; border-radius: var(--e-r);
}
.sc-mlink:hover { background: var(--e-ground); color: var(--e-ink); }
.sc-mlink[aria-current="page"] { color: var(--e-ink); font-weight: 700; box-shadow: inset 5px 0 0 var(--e-act); padding-left: 14px; }
.sc-mlink-strong { color: var(--e-ink); font-weight: 700; }
.sc-mlink-btn { color: var(--e-danger); }
.sc-mlang { border: 2px solid var(--e-ink); border-radius: var(--e-r); color: var(--e-ink); font-family: var(--e-body); font-weight: 600; }
.sc-mlang[aria-current] { background: var(--e-act); border-color: var(--e-ink); color: var(--e-on-act); }

@media (max-width: 419.98px) {
  .sc-brand-name { font-size: 1.3rem; }
  .sc-pill { font-size: .98rem; padding: 0 12px; }
}
@media (min-width: 1000px) {
  /* full-height items, so the active yellow bar sits right on the 4 px black rule */
  .sc-link { min-height: var(--sc-bar-h); padding: 0 12px; }
}

/* ================= FOOTER ================= */
.sc-foot {
  --sc-tx: #0B0D10; --sc-mut: #4A4F57; --sc-line: #E3E3DE; --sc-signal: #FFD21F; --sc-signal-hi: #F2C200;
  --sc-sans: var(--e-body);
  background: #fff; color: var(--e-ink2); border-top: 8px solid var(--e-ink); font-family: var(--e-body); font-size: 1rem;
}
.sc-brand-foot .sc-brand-mark { width: 64px; }
.sc-brand-foot .sc-brand-name { font-size: 2.6rem; letter-spacing: 0; }
.sc-fcompany { color: var(--e-ink2); }
.sc-fcompany strong { color: var(--e-ink); }
.sc-foot .sc-fhead {
  color: var(--e-ink); font-family: var(--e-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.sc-flinks a, .sc-flang a { color: var(--e-ink2); min-height: 44px; }
.sc-flinks a:hover, .sc-flang a:hover { color: var(--e-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.sc-flang { border-top-color: var(--e-line); }
.sc-flang a[aria-current] { color: var(--e-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--e-act); text-decoration-thickness: 4px; text-underline-offset: 5px; }

.sc-news-input { background: #fff; color: var(--e-ink); border: 2px solid var(--e-field); border-radius: var(--e-r); }
.sc-news-input::placeholder { color: #6B7078; }
.sc-news-input:focus-visible { outline: 3px solid var(--e-ink); outline-offset: 1px; border-color: var(--e-ink); }
.sc-news-btn {
  background: var(--e-ink); color: #fff; border-radius: var(--e-r);
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem;
}
.sc-news-btn:hover { background: #24282E; }
.sc-foot #newsletterMsg { color: var(--e-ink); }
.sc-foot #newsletterMsg.text-error { color: var(--e-danger); }
.sc-foot #newsletterMsg.text-success { color: #15803D; }

/* Silver badge + funder logos already sit on white tiles (inline styles); on the white footer the tiles get a hairline */
.sc-badge { border: 1px solid var(--e-line); border-radius: var(--e-r-card); color: var(--e-ink2); }
.sc-supp span[style] { border: 1px solid var(--e-line); border-radius: var(--e-r-card) !important; }

.sc-fbottom { color: var(--e-ink2); }
.sc-fbottom::before { background: var(--e-line); }
.sc-fcompany-line { opacity: 1; }
.sc-social a { color: var(--e-ink2); }

/* ================= Edge r2 (founder 7 Nov 2026; plan 92 2a) =================
 * "black everywhere is boring": sky (--ed-accent) for the selected control, links and icon glyphs; yellow stays the one
 * primary action; condensed capitals only for H1/H2 (page sheets) and the menu; buttons, labels, values in Barlow normal
 * width; no ink-filled control (ink = text, headlines, thick rules). Overrides the r1 rules above, same selectors. */
.sc-nav :focus-visible,
.sc-foot :focus-visible,
.sc-nav .sc-pill:focus-visible { outline-color: var(--ed-accent); }
.e-btn { font-family: var(--e-body); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.e-btn-line { color: var(--ed-accent); border-color: var(--ed-accent); }
.e-btn-line:hover { background: var(--ed-accent-tint); color: var(--ed-accent-press); border-color: var(--ed-accent-press); }
.e-btn-ink, .e-btn-ink:hover { background: var(--ed-accent); color: #fff; }
.e-btn-ink:hover { background: var(--ed-accent-press); }

/* menu: the current item's marker is sky; hover is the sky tint; the menu keeps its condensed capitals */
.sc-link:hover { color: var(--ed-accent-press); background: var(--ed-accent-tint); }
.sc-link[aria-current="page"] { color: var(--ed-ink); box-shadow: inset 0 -4px 0 var(--ed-accent); }
.sc-dd-item:hover { background: var(--ed-accent-tint); color: var(--ed-accent-press); }
.sc-dd-item[aria-current] { box-shadow: inset 4px 0 0 var(--ed-accent); }
.sc-dd-item svg { color: var(--ed-accent); }
.sc-util:hover { color: var(--ed-accent-press); background: var(--ed-accent-tint); }
.sc-user-btn:hover { background: var(--ed-accent-tint); }
.sc-avatar { background: var(--ed-accent); color: #fff; font-family: var(--e-body); font-weight: 700; }   /* sky disc, white initial (Vera 97 M4) */
.sc-toggle[aria-expanded="true"] { background: var(--ed-accent); border-color: var(--ed-accent); color: #fff; }
.sc-mlink:hover { background: var(--ed-accent-tint); color: var(--ed-accent-press); }
.sc-mlink[aria-current="page"] { box-shadow: inset 5px 0 0 var(--ed-accent); }
.sc-mlang[aria-current] { background: var(--ed-accent); border-color: var(--ed-accent); color: #fff; }

/* footer: headings are labels (Barlow letter-spaced caps); links ink 2, sky on hover; the send button is sky, not ink */
.sc-foot .sc-fhead { font-family: var(--e-body); font-weight: 700; font-size: .875rem; letter-spacing: .08em; }
.sc-flinks a:hover, .sc-flang a:hover, .sc-social a:hover { color: var(--ed-accent); }
.sc-flang a[aria-current] { text-decoration-color: var(--ed-accent); }
.sc-news-input:focus-visible { outline-color: var(--ed-accent); border-color: var(--ed-accent); }
.sc-news-btn { background: var(--ed-accent); font-family: var(--e-body); font-weight: 700; text-transform: none; letter-spacing: 0; }
.sc-news-btn:hover { background: var(--ed-accent-press); }
