/* ============================================================================
   RentalCloud.ai — DESIGN TOKENS: "IRONCLAD"  (THE one token set, owner 2026-11-02)
   ----------------------------------------------------------------------------
   Charcoal + construction orange, industrial glass, condensed uppercase type.
   This file is the ONLY place a colour, radius, type size, spacing step or shadow
   is defined. Everything else reads var(--rc-*). It is loaded:
     · desk        — first entry of app_include_css (rental_theme/hooks.py)
     · public web  — first entry of web_include_css (portal.css aliases onto it)
     · consoles    — @import at the top of rental_core/public/css/rc_console_tokens.css
   Axes (set by desk_shell.js / rc_console_theme.js / web_theme_mode.js):
     · html[data-rc-theme]  = iron (DEFAULT, also the bare :root) | navy (Steel Blue option)
     · html[data-theme-mode]= light | dark   (desk + consoles)
     · html[data-web-mode]  = day | night    (public pages; always set together with the above)
     Unset mode = dark (night). Only an explicit "auto" preference follows the OS.
   Rules:
     · --rc-hv (safety yellow) is for HIGH-VALUE actions only (Buy, Pay, Reserve, Sign).
       Warnings use --rc-warn, never --rc-hv.
     · --rc-a is a FILL; text in the accent colour uses --rc-a-text; ink on a fill is --rc-aink.
     · Radii never exceed --rc-r-lg (8px) except --rc-r-pill. Text never below --rc-fs-xs (12px).
   The check rental_core.desk.design_tokens_check counts literals outside this file.
   ============================================================================ */
@font-face{font-family:"Bebas Neue";src:url("/assets/rental_theme/fonts/bebasneue.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Oswald";src:url("/assets/rental_theme/fonts/oswald.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Barlow";src:url("/assets/rental_theme/fonts/barlow-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Barlow";src:url("/assets/rental_theme/fonts/barlow-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Barlow";src:url("/assets/rental_theme/fonts/barlow-600.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Barlow";src:url("/assets/rental_theme/fonts/barlow-700.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("/assets/rental_theme/fonts/barlowcondensed-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("/assets/rental_theme/fonts/barlowcondensed-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("/assets/rental_theme/fonts/barlowcondensed-600.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("/assets/rental_theme/fonts/barlowcondensed-700.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/assets/rental_theme/fonts/jetbrainsmono.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Archivo";src:url("/assets/rental_theme/fonts/archivo.woff2") format("woff2");font-weight:400 900;font-display:swap}
@font-face{font-family:"Anton";src:url("/assets/rental_theme/fonts/anton.woff2") format("woff2");font-weight:400;font-display:swap}

/* ---- 1. CONSTANTS + IRONCLAD NIGHT (the default; no attribute needed) ----
   html[data-rc-theme] is listed as well so these (0,1,1) declarations beat any legacy
   :root / [data-theme] token declaration that loads later (desk_shell.css, Frappe). ---- */
:root, html[data-rc-theme]{
  /* brand */
  --rc-orange:#e87722; --rc-orange-hi:#f0a06a; --rc-orange-edge:#a8500f;
  --rc-charcoal:#0d0e11; --rc-concrete:#6b6b6b; --rc-steel:#2c3e50;
  --rc-swatch-iron:#e87722; --rc-swatch-navy:#4d8dff;   /* theme-picker swatches (fixed: they name a theme) */
  /* accent (fill / text / ink-on-fill / slab edge) */
  --rc-a:#e87722; --rc-ahi:#f0a06a; --rc-a-rgb:232,119,34; --rc-aink:#0d0e11; --rc-a-edge:#a8500f;
  --rc-a-text:#f08a3c;
  --rc-a-soft:#f0a06a;               /* light accent for FILL highlights (gradient tops); --rc-ahi is accent INK in day */
  /* HIGH-VALUE action only (safety yellow) — identical in every theme and mode */
  --rc-hv:#f5b700; --rc-hv-hi:#ffd54a; --rc-hv-edge:#b9860a; --rc-hv-ink:#1a1305; --rc-hv-rgb:245,183,0;
  /* surfaces */
  --rc-bg0:#0d0e11; --rc-bg1:#181a1f; --rc-text:#cbd1d9; --rc-dim:#a6adb8; --rc-strong:#f1f3f6;
  --rc-fg-rgb:255,255,255;           /* hairlines / hover tints / overlays drawn in the ink colour */
  --rc-shade-rgb:0,0,0;              /* shadows / modal scrims (warm umber in day) */
  --rc-border:#787e88; --rc-line:rgba(var(--rc-fg-rgb),.12);
  --rc-glass:rgba(54,58,66,.45); --rc-panel-bg:rgba(24,26,30,.55);
  --rc-card-bg:rgba(32,35,40,.5); --rc-card-border:rgba(180,186,196,.16);
  --rc-input-bg:rgba(0,0,0,.34); --rc-chip-rgb:8,14,28;
  --rc-pop-bg:#1a1c21; --rc-pop-border:rgba(var(--rc-fg-rgb),.14);   /* opaque menus, popovers, dialogs */
  --rc-overlay:rgba(0,0,0,.6);                                        /* modal backdrop */
  --rc-scrim:linear-gradient(160deg,rgba(24,20,15,.55),rgba(13,14,17,.76));
  --rc-hero-scrim:linear-gradient(180deg,rgba(13,14,17,.84),rgba(13,14,17,.92));
  --rc-backdrop-img:url("/assets/rental_theme/images/hero.jpg");
  /* always-dark chrome (public header bar, login cover) — dark in BOTH modes by design */
  --rc-chrome-bg:#111214; --rc-chrome-ink:#eceef1; --rc-chrome-dim:#b4bac3; --rc-chrome-accent:#e87722;
  /* status (ink + rgb for tints + solid fill/ink for buttons) */
  --rc-ok:#4ade80;   --rc-ok-rgb:34,197,94;   --rc-ok-fill:#22b366;  --rc-ok-ink:#04160c;
  --rc-warn:#fbbf24; --rc-warn-rgb:245,158,11;
  --rc-err:#f87171;  --rc-err-rgb:229,72,77;  --rc-err-fill:#d92f45; --rc-err-ink:#ffffff;
  --rc-info:#7ab5fb; --rc-info-rgb:59,130,246;
  --rc-violet:#a78bfa;
  --rc-on-dark:#ffffff; --rc-on-light:#0d0e11;   /* fixed ink for fixed (non-theme) fills */
  /* typography */
  --rc-font-display:"Bebas Neue","Oswald",Impact,sans-serif;
  --rc-font-head:"Oswald","Barlow Condensed",sans-serif;
  --rc-font-body:"Barlow",system-ui,-apple-system,"Segoe UI",sans-serif;
  --rc-font-cond:"Barlow Condensed","Barlow",system-ui,sans-serif;
  --rc-font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --rc-head-case:uppercase; --rc-head-track:.04em; --rc-label-track:.08em;
  --rc-fs-xs:12px; --rc-fs-sm:13px; --rc-fs-md:14px; --rc-fs-base:15px; --rc-fs-lg:17px;
  --rc-fs-xl:20px; --rc-fs-2xl:24px; --rc-fs-3xl:30px; --rc-fs-4xl:38px; --rc-fs-5xl:48px;
  --rc-fs-display:clamp(40px,6vw,76px);
  /* shape — IronClad: hard, low radius */
  --rc-r-xs:2px; --rc-r-sm:4px; --rc-r-md:6px; --rc-r-lg:8px; --rc-r-pill:999px;
  /* spacing */
  --rc-sp-1:4px; --rc-sp-2:8px; --rc-sp-3:12px; --rc-sp-4:16px; --rc-sp-5:20px; --rc-sp-6:24px; --rc-sp-7:32px; --rc-sp-8:48px;
  --rc-touch:44px;
  /* ONE stacking order for page overlays (low -> high). Consent is a legal surface: nothing may
     cover it. While the consent banner is open rc_consent sets --rc-consent-h on <html> to its
     height; every other bottom-anchored overlay sits at calc(var(--rc-consent-h,0px) + gap). */
  --rc-z-float:1200; --rc-z-chat:1300; --rc-z-toast:1400; --rc-z-modal:2000; --rc-z-consent:2147483000;
  /* elevation + glass */
  --rc-elev-1:0 1px 2px rgba(0,0,0,.28),0 2px 8px rgba(0,0,0,.2);
  --rc-elev-2:0 8px 24px rgba(0,0,0,.34);
  --rc-elev-3:0 18px 48px rgba(0,0,0,.5);
  --rc-shadow:0 12px 34px rgba(0,0,0,.34);
  --rc-blur:blur(20px) saturate(145%);
  --rc-edge:3px solid var(--rc-a);                       /* the signature orange accent edge */
  --rc-focus:0 0 0 3px rgba(var(--rc-a-rgb),.45);
  color-scheme:dark;
}

/* ---- 2. IRONCLAD DAY (concrete paper, same orange, frosted glass) ---- */
html[data-theme-mode="light"], html[data-web-mode="day"]{
  --rc-a-text:#7f3c07; --rc-ahi:#8a4208;
  --rc-bg0:#f2efec; --rc-bg1:#e6e1db; --rc-text:#1a1712; --rc-dim:#454039; --rc-strong:#0d0b08;
  --rc-fg-rgb:26,23,18;
  --rc-shade-rgb:60,50,40;
  --rc-border:#8f8579; --rc-glass:rgba(255,255,255,.55); --rc-panel-bg:rgba(255,255,255,.6);
  --rc-card-bg:rgba(255,255,255,.66); --rc-card-border:#a8500f;
  --rc-input-bg:rgba(255,255,255,.78); --rc-chip-rgb:255,255,255;
  --rc-pop-bg:#fbfaf8; --rc-overlay:rgba(26,23,18,.38);
  --rc-scrim:linear-gradient(180deg,rgba(238,235,230,.72),rgba(220,214,206,.84));
  --rc-hero-scrim:linear-gradient(180deg,rgba(242,239,236,.84),rgba(230,225,219,.92));
  --rc-ok:#065f46; --rc-warn:#92400e; --rc-err:#b91c1c; --rc-info:#1e40af; --rc-violet:#6d28d9;
  --rc-elev-1:0 1px 2px rgba(60,50,40,.12),0 2px 8px rgba(60,50,40,.1);
  --rc-elev-2:0 8px 24px rgba(60,50,40,.16);
  --rc-elev-3:0 18px 48px rgba(60,50,40,.22);
  --rc-shadow:0 12px 30px rgba(90,80,60,.14);
  color-scheme:light;
}

/* ---- 3. STEEL BLUE ("navy") — picker option. Same IronClad shape/scale; palette + type differ ---- */
html[data-rc-theme="navy"]{
  --rc-a:#4d8dff; --rc-ahi:#8fb4ff; --rc-a-rgb:77,141,255; --rc-aink:#08111f; --rc-a-edge:#2e5fb0; --rc-a-text:#4d8dff; --rc-a-soft:#8fb4ff;
  --rc-bg0:#070c16; --rc-bg1:#0e1728; --rc-text:#eaf1ff; --rc-dim:#8ea3c4; --rc-strong:#ffffff;
  --rc-border:rgba(120,160,220,.2); --rc-glass:rgba(24,40,70,.45);
  --rc-panel-bg:rgba(14,23,40,.55); --rc-card-bg:rgba(20,32,56,.5); --rc-card-border:rgba(120,160,220,.2);
  --rc-input-bg:rgba(2,6,23,.42); --rc-pop-bg:#111b2e;
  --rc-scrim:linear-gradient(160deg,rgba(9,17,36,.55),rgba(6,11,24,.74));
  --rc-hero-scrim:linear-gradient(180deg,rgba(7,12,22,.84),rgba(7,12,22,.92));
  --rc-chrome-bg:#070c16; --rc-chrome-ink:#eaf1ff; --rc-chrome-dim:#a9bad6; --rc-chrome-accent:#4d8dff;
  --rc-shadow:0 12px 34px rgba(0,0,0,.3);
  --rc-font-display:"Anton","Archivo",Impact,sans-serif;
  --rc-font-head:"Archivo","Barlow",sans-serif;
  --rc-head-case:none; --rc-head-track:-.01em;
}
html[data-rc-theme="navy"][data-theme-mode="light"], html[data-rc-theme="navy"][data-web-mode="day"]{
  --rc-a-text:#1e40af; --rc-ahi:#1d4ed8;
  --rc-bg0:#eef2f8; --rc-bg1:#e2e9f4; --rc-text:#0f1826; --rc-dim:#3e485e; --rc-strong:#050a14;
  --rc-border:rgba(77,141,255,.22); --rc-glass:rgba(255,255,255,.55);
  --rc-panel-bg:rgba(255,255,255,.6); --rc-card-bg:rgba(255,255,255,.66); --rc-card-border:rgba(77,141,255,.2);
  --rc-input-bg:rgba(255,255,255,.78); --rc-pop-bg:#fbfcfe;
  --rc-scrim:linear-gradient(180deg,rgba(226,232,242,.72),rgba(205,216,232,.84));
  --rc-hero-scrim:linear-gradient(180deg,rgba(238,242,248,.84),rgba(226,233,244,.92));
  --rc-shadow:0 12px 30px rgba(30,45,80,.12);
}
