/* RMB Inter Auto - design tokens for the Showroom skin.
   Pattern of the reference: black header, hero and footer over a white page with black teaser cards,
   grey tiles, hairline product cards and one primary colour for pill buttons. Navy is the brand's own
   blue, sampled from the logo raster, and plays the role the reference gives its blue. */
:root {
  --navy: #1c3472;                         /* primary pill, links, tags */
  --navy-hover: #26459a;
  --navy-deep: #1c3472;                    /* navy as a surface */
  --navy-soft: oklch(0.93 0.025 268);      /* navy-tinted light surface: pressed chips, Certified tag */
  --navy-ink: #1c3472;                     /* navy as text; also the focus ring */
  --ink: oklch(0.14 0.006 268);
  --ink-2: oklch(0.36 0.01 268);
  --ink-3: oklch(0.52 0.012 268);
  --paper: #fff;
  --paper-2: oklch(0.965 0.002 268);       /* grey tiles and banners */
  --card: #fff;
  --line: oklch(0 0 0 / 0.1);
  --line-strong: oklch(0 0 0 / 0.22);
  --bad: oklch(0.4 0.14 25);               /* a refused form or field: text and border */
  --bad-soft: oklch(0.96 0.03 25);         /* its ground */
  --promo: #c72f0f;                        /* a car or campaign in promotion, and nothing else: the promotion flag and
                                              .badge-promo. Step 700 of the admin's `shout` scale; white text on it is 5.5:1 */
  --ok: oklch(0.62 0.15 150);              /* available: the dot of the stock chip, never text */
  --ok-soft: oklch(0.62 0.15 150 / 0.2);
  --black: #000;           /* header, hero, footer, teaser cards */
  --black-2: oklch(0.14 0 0);
  --on-black: oklch(0.97 0.004 268);
  --on-black-2: oklch(0.78 0.01 268);
  --on-navy: oklch(0.97 0.006 268);
  --on-navy-2: oklch(0.8 0.03 268);
  --display-weight: 600;
  --display-stretch: 118%;                 /* headlines and prices run expanded, the automotive register */

  --wa: #25d366; --wa-deep: #128c7e; --wa-ink: #075e54;
  --wa-paper: #e9f9ef; --wa-bubble: #dcf8c6; --wa-wall: #ece5dd;

  /* One family, Archivo, with its width axis doing the work two fonts would: expanded semibold for display,
     normal width for reading. Grotesk with flat terminals and full Romanian comma-below diacritics. */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.84rem, 0.8rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 4.4rem);
  --step-5: clamp(3rem, 2rem + 5vw, 5.6rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --gutter: clamp(1.25rem, 7vw, 90px);
  --wrap: 1280px;
  --top-h: 76px;
  --page-hero-h: clamp(500px, 380px + 13vw, 560px); /* every sub-section header (page-hero.css): 500 to 923px wide, 560 from 1385px; HERO_SIZES in utils/pageHero.ts follows it */
  --radius: 8px; --radius-lg: 16px; --radius-pill: 999px;
  --bar-w: 760px; --bar-gap: 20px; --bar-space: calc(var(--bar-gap) * 2 + 112px);
  --shadow-card: 0 1px 2px oklch(0 0 0 / 0.06), 0 12px 32px -20px oklch(0 0 0 / 0.25);
  --shadow-float: 0 2px 4px oklch(0 0 0 / 0.08), 0 18px 50px -18px oklch(0 0 0 / 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-lift: cubic-bezier(0.32, 0.72, 0, 1); --t-fast: 180ms; --t-slow: 520ms;
  --shadow-lift: 0 2px 4px oklch(0 0 0 / 0.04), 0 22px 44px -24px oklch(0.25 0.02 268 / 0.35);
}

/* Dark surfaces (header, hero, teaser cards, footer) flip the neutral tokens, so buttons, links and
   text rules below stay the same on both grounds. */
/* Never matches <html>: the admin colour mode puts class="dark" on it. */
.dark:not(html) {
  --paper: var(--black);
  --paper-2: var(--black-2);
  --card: var(--black-2);
  --ink: var(--on-black);
  --ink-2: var(--on-black-2);
  --ink-3: oklch(0.64 0.012 268);
  --line: oklch(1 0 0 / 0.14);
  --line-strong: oklch(1 0 0 / 0.3);
  --navy-ink: oklch(0.84 0.06 268);
  background: var(--paper);
  color: var(--ink);
}

/* The assistant stays a dark object on the white page (the reference's AI pill is black too).
   Everything ../af-shared/thread.css reads is redefined here, so the open thread stays dark. */
.assistant {
  --navy: oklch(0.44 0.13 268);
  --navy-soft: oklch(0.26 0.06 268);
  --navy-ink: oklch(0.82 0.07 268);
  --ink: oklch(0.96 0.005 268);
  --ink-2: oklch(0.78 0.012 268);
  --ink-3: oklch(0.62 0.015 268);
  --paper: oklch(0.12 0.006 268);
  --paper-2: oklch(0.16 0.008 268);
  --card: oklch(0.2 0.01 268);
  --line: oklch(1 0 0 / 0.1);
  --line-strong: oklch(1 0 0 / 0.22);
  --on-navy: oklch(0.97 0.006 268);
  color: var(--ink);
}
