/* wealth-tax — design tokens (BDO Basic Elements 2023).
   The palette and the semantic layer are COPIED from the BDO SSOT,
   ../vera/cmd/server/ui/static/css/tokens.css (rule ../bdo-knowledge/.claude/rules/ui_brand.md);
   TS16 fails when a --palette-* value differs. The page is LIGHT, like bdo.hu (owner 2026-11-16,
   TB15); the dark values are vera's themes.css [data-theme="dark"] block, kept as the second theme
   and applied only by an explicit data-theme="dark" (no theme script — the app ships no JavaScript,
   U10). This is the only file with colour literals (TS17).
   The mail card (foundation-ui/mail, the mailcard step) reads its own token names; they are
   aliases at the end, pointing at the same BDO values. */

:root {
    /* ── Palette (BDO — copied from the SSOT) ── */
    --palette-red:       #e81a3b;
    --palette-charcoal:  #333333;
    --palette-pale:      #e7e7e7;
    --palette-burgundy:  #98002e;
    --palette-slate:     #5b6e7f;
    --palette-mid:       #666666;
    --palette-gold:      #d67900;
    --palette-jade:      #009966;
    --palette-ocean:     #008fd2;
    --palette-cobalt:    #0062b8;
    --palette-white:     #ffffff;

    --palette-white-rgb:  255, 255, 255;
    --palette-cobalt-rgb: 0, 98, 184;

    /* Logo only — never chrome, text or accent. */
    --color-logo-blue:   #22409a;
    /* Vendor mark only: the whitebell accent dot takes the customer's red (whitebell_brand.md). */
    --wb-accent:         var(--palette-red);

    /* ── Semantic tokens — component CSS uses these, never --palette-* directly ──
       70 / 30 / 10: white and pale base, charcoal and slate structure, red accent. */
    --primary-bg:    #ffffff;
    --secondary-bg:  #f4f7f9;
    --surface-card:  #ffffff;
    --bg-header:     var(--palette-white);
    --header-text:   var(--palette-charcoal);
    --bg-canvas:     #f2f2f2;
    /* bdo.hu calculator: grey-filled inputs underlined, slate hints, a charcoal total card. */
    --input-bg:      #f2f2f2;
    --hint-color:    var(--palette-slate);
    --bg-inverse:    var(--palette-charcoal);
    /* Red as small text on the charcoal card: the brand red is 2.9:1 there, this is 4.9:1 (AA). */
    --accent-on-inverse: #ff6b81;

    --text-color:    var(--palette-charcoal);
    --text-muted:    var(--palette-mid);
    --text-inverse:  var(--palette-white);

    --accent-color:  var(--palette-red);
    --accent-rgb:    232, 26, 59;
    --accent-hover:  var(--palette-burgundy);
    /* Red used as TEXT (the net tax, a field error): the brand red itself in light mode; a lighter
       red in dark mode, where the brand red on the card is 2.9:1 (UI review 2026-11-16, WCAG AA). */
    --accent-text:   var(--palette-red);

    --border-color:        var(--palette-pale);
    --border-color-strong: #bdbdbd;

    --warning-color: var(--palette-gold);
    --danger-color:  var(--palette-red);
    --success-color: var(--palette-jade);

    --color-focus:   var(--palette-cobalt);
    --link-color:       var(--palette-cobalt);
    --link-color-hover: var(--palette-burgundy);

    /* ── Typography ── */
    /* bdo.hu sets proxima-nova (a licensed web font, not shipped here) with this fallback. */
    --font-sans:
        'Proxima Nova', proxima-nova, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono:
        ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono',
        Menlo, Consolas, monospace;

    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-md:   1.125rem;
    --fs-lg:   1.25rem;
    --fs-xl:   1.5rem;
    --fs-2xl:  1.875rem;
    --fs-3xl:  2.5rem;
    --fs-hint: 0.84rem;

    --fw-light:    300;
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;

    --lh-tight: 1.2;
    --lh-base:  1.55;

    /* ── Spacing, radii, shadows ── */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;

    /* bdo.hu draws every box, field and button with square corners (owner 2026-11-16: same as BDO). */
    --radius-sm: 0;
    --radius-md: 0;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);

    --header-h:  64px;
    --content-w: 52rem;
    --frame-w:   73.75rem;  /* bdo.hu content column, 1180px */
    --aside-w:   22.5rem;   /* bdo.hu side card, 360px */
    --utility-h: 3rem;      /* bdo.hu utility bar, 48px */

    /* ── Mail card aliases (foundation-ui/mail ShellTokens) — same BDO values ── */
    --bg:          var(--primary-bg);
    --bg-alt:      var(--secondary-bg);
    --surface0:    var(--palette-pale);
    --surface1:    var(--border-color-strong);
    --fg:          var(--palette-charcoal);
    --subtext0:    var(--palette-mid);
    --subtext1:    var(--palette-slate);
    --overlay0:    var(--palette-mid);
    --accent:      var(--palette-red);
    --accent-fg:   var(--palette-white);
    --success:     var(--palette-jade);
    --warning:     var(--palette-gold);
    --danger:      var(--palette-red);
    --success-rgb: 0, 153, 102;
    --warning-rgb: 214, 121, 0;
    --danger-rgb:  232, 26, 59;

    color-scheme: light;
}

/* Dark — vera themes.css [data-theme="dark"]: neutral charcoal surfaces, the red accent kept. */
[data-theme="dark"] {
    color-scheme: dark;
    --primary-bg:    #1b1d22;
    --secondary-bg:  #24272e;
    --surface-card:  #2e3039;
    --bg-header:     #24272e;
    --bg-canvas:     #16181d;
    --input-bg:      #24272e;
    --hint-color:    #9aa1a9;
    --bg-inverse:    #0f1013;
    --text-color:    #e9ecef;
    --text-muted:    #9aa1a9;
    --header-text:   #e9ecef;
    --accent-hover:  #ff4e6b;
    --accent-text:   #ff6b81; /* 4.8:1 on the dark card, 6.2:1 on the dark page */
    --border-color:        #343841;
    --border-color-strong: #4a4f5a;
    --color-focus:   #5ea8ff;
    --link-color:       #5ea8ff;
    --link-color-hover: #ff8aa0;
    --success-color: #3bbf86;
    --warning-color: #f0a84e;
}
