/**
 * agentsclub - legacy-page V2 palette bridge
 *
 * Loaded LAST (after tokens.css/kit.css/style.css) on every legacy page,
 * including /mgmt - see views/layout/head.php.
 *
 * This is a pure token remap: it redefines the OLD variable names (from
 * css/tokens.css) to the NEW V2 values (css/v2/tokens.css) and swaps in
 * self-hosted Funnel Sans, so login/register/settings/opinie/regulamin/
 * verify-email/404/mgmt stop clashing with the V2 cockpit - WITHOUT
 * touching a single line of markup. Layout, radii, shadows and spacing
 * are untouched (the old system is famously "zero border-radius on
 * blocks"; changing that is a shape/layout redesign, not a palette fix,
 * and out of scope here per the decision to only re-token these pages).
 */

@font-face{
  font-family:"Funnel Sans";
  font-style:normal;
  font-weight:300 800;
  font-display:swap;
  src:url("/fonts/funnel-sans/FunnelSans-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Funnel Sans";
  font-style:normal;
  font-weight:300 800;
  font-display:swap;
  src:url("/fonts/funnel-sans/FunnelSans-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{
  --font-ui:   "Funnel Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-read: "Funnel Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --canvas:    #FEFEFE;
  --surface:   #F7F6F3;
  --surface-2: #F0EFEA;
  --surface-3: #F0EFEA;

  --fg-1: #1A1A1A;
  --fg-2: #696760;
  --fg-3: #696760;

  --border-1: rgba(26,26,23,.09);
  --border-2: rgba(26,26,23,.09);

  --primary:       #DB511D;
  --primary-hover: color-mix(in srgb, #DB511D 86%, black);
  --primary-press: color-mix(in srgb, #DB511D 72%, black);
  --primary-soft:  color-mix(in srgb, #DB511D 9%, var(--canvas));
  --primary-ring:  color-mix(in srgb, #DB511D 35%, transparent);

  /* zasady-redesignu.html §01: "zero drugiego koloru akcentu" - the old
     yellow secondary accent routes through the single V2 accent instead
     of introducing a second hue. */
  --accent-2:      var(--primary);
  --accent-2-soft: var(--primary-soft);
  --accent-2-ink:  var(--fg-1);
}

html.dark{
  --canvas:    #141413;
  --surface:   #1E1E1C;
  --surface-2: #262624;
  --surface-3: #262624;

  --fg-1: #EDECE8;
  --fg-2: #9A988F;
  --fg-3: #9A988F;

  --border-1: rgba(237,236,232,.10);
  --border-2: rgba(237,236,232,.10);

  --primary:       #F26430;
  --primary-hover: color-mix(in srgb, #F26430 86%, white);
  --primary-press: color-mix(in srgb, #F26430 72%, white);
  --primary-soft:  color-mix(in srgb, #F26430 14%, var(--canvas));
  --primary-ring:  color-mix(in srgb, #F26430 40%, transparent);
}
