/* =====================================================================
   ERALUX brand 2.0 (Digital Brand Guideline 2026, version 2.0, 2026-11-23)
   ---------------------------------------------------------------------
   Loaded AFTER the plugin's own stylesheets (copied unchanged in
   ../plugin/). It restyles by swapping the plugin's design tokens, so
   every module follows. Only COLOURS change: fonts, sizes, corners and spacing are exactly
   eralux.com's, so the two sites compare one to one.

   FONTS ARE NOT CHANGED (David, 2026-11-24): exactly the fonts eralux.com uses today
   (Montserrat for everything, weights 300-700), so the test site compares one to one.
   Brand 2.0's Calibri body text is deliberately not applied.

   Palette: Inky blue #142536 does the structure; Ivory #F4F2ED is the
   page, cards white on it; Stone #C9C4BA draws borders, never text;
   orange #FF671F only where a person must act (Inky text on it).
   Retired and absent here: #00AAE7, #00648A, #E4F5FD, black as structure.
   ===================================================================== */

/* Montserrat, variable (weights 300-700), self-hosted: the same font files eralux.com loads
   from Google Fonts today, so titles keep their light weight. Two subsets, as Google splits them. */
@font-face { font-family: "Montserrat"; src: url("/static/fonts/Montserrat-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  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: "Montserrat"; src: url("/static/fonts/Montserrat-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  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; }

:root {
  /* Brand 2.0 tokens (own names, for new rules) */
  --brand-inky: #142536;
  --brand-inky-rgb: 20, 37, 54;
  --brand-ink2: #4a5868;
  --brand-ink3: #5e6976;
  --brand-ivory: #f4f2ed;
  --brand-line: #e4e0d8;
  --brand-stone: #c9c4ba;
  --brand-stone-wash: #ece9e3;
  --brand-inky-wash: #e3e8ef;
  --brand-orange: #ff671f;
  --brand-orange-ink: #b8410c;
  --brand-orange-wash: #fff0e8;
  --brand-shadow: 0 1px 2px rgba(20, 37, 54, .05), 0 8px 24px rgba(20, 37, 54, .07);
  --brand-body-font: var(--ews-font); /* same font as eralux.com: Montserrat */

  /* The plugin's tokens, mapped role for role */
  /* --ews-font and --ews-control-height are NOT overridden: fonts and sizes stay as on eralux.com. */
  --ews-ink: #142536;
  --ews-ink-rgb: 20, 37, 54;
  --ews-contrast-ink: #ffffff;
  --ews-paper: #f4f2ed;
  --ews-paper-rgb: 244, 242, 237;
  --ews-paper-2: #ece9e3;
  --ews-card: #ffffff;
  --ews-card-rgb: 255, 255, 255;
  --ews-dark: #142536;
  --ews-dark-rgb: 20, 37, 54;
  --ews-muted: #5e6976;
  --ews-muted-ink: #4a5868;
  --ews-line: #c9c4ba;
  --ews-line-strong: #c9c4ba;
  /* The plugin's "accent" was bright ERALUX Blue: in 2.0 the structure colour takes its role. */
  --ews-accent: #142536;
  --ews-accent-rgb: 20, 37, 54;
  --ews-accent-dark: #0c1824;
  --ews-accent-soft: #e3e8ef;
  --ews-accent-light: #e3e8ef;
  --ews-coming: #142536;
  --ews-ink-lifted: #4a5868;
  --ews-glow: #142536;
  --ews-field-line: #c9c4ba;
  --ews-placeholder-tone: #5e6976;
  --ews-cool-line: #e4e0d8;
  --ews-cool-ink: #142536;
  --ews-cool-ink-rgb: 20, 37, 54;
  --ews-cool-muted: #5e6976;
  --ews-cool-panel: #ffffff;
  --ews-cool-media: #ece9e3;
  --ews-cool-tint: #e3e8ef;
  --ews-placeholder-grad: linear-gradient(140deg, #1d3247 0%, #142536 55%, #0c1824 100%);
  --ews-placeholder-grad-media: var(--ews-placeholder-grad);
  --ews-placeholder-grad-showcase: var(--ews-placeholder-grad);
  --ews-placeholder-grad-light: linear-gradient(140deg, #ece9e3 0%, #e4e0d8 46%, #c9c4ba 100%);
  --ews-placeholder-grad-1: var(--ews-placeholder-grad);
  --ews-placeholder-grad-2: var(--ews-placeholder-grad);
  --ews-placeholder-grad-3: var(--ews-placeholder-grad);
  --ews-error: #b8410c;
  --ews-error-soft: #fff0e8;
}

html, body { background: var(--brand-ivory); color: var(--brand-inky); }

/* Shapes are NOT changed (David, 2026-11-24): corners, sizes and spacing stay exactly as on
   eralux.com; brand 2.0 changes colours only. */

/* Badges: Coming Soon / New Release on an Inky blue wash with Inky text (status, not an action). */
.ews-new-badge, .ews-new-badge.ews-new-badge { background: var(--brand-inky); color: #fff; }
.ews-new-badge.ews-coming-badge, .ews-new-badge.ews-coming-badge.ews-coming-badge { background: var(--brand-inky-wash); color: var(--brand-inky); }

/* Primary actions: Inky blue fill, white text. */
.eralux-product .btn-downloads { background: var(--brand-inky); color: #fff; border-color: var(--brand-inky); }
.eralux-product .btn-downloads:hover { background: #0c1824; }

/* Calm motion: 150-200 ms, and none at all for people who turn motion off. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* ---- Test-site banner (only on the private test domain) ---------------------------- */
.test-site-bar { position: relative; z-index: 1; background: var(--brand-orange-wash); color: var(--brand-orange-ink);
  font: 600 12px/1.4 var(--ews-font); text-align: center; padding: 6px 12px; border-bottom: 1px solid var(--brand-stone); }

/* ---- Light on dark (David, 2026-11-26) --------------------------------------------------------
   The plugin's bright blue accent became Inky blue above, which disappears where the background is
   itself dark: a photo under a dark fade, or an Inky panel. There the accent and the grey helper text
   take Ivory (what is current, links) and Stone (quiet text, the track behind a bar) instead, as
   David asked ("use the ivory stone color here instead of inky blue"). This bends one addendum rule
   on purpose: Stone is normally never text; here it is light text on a dark photo or panel. */

/* Home page, the three path cards on photos: number, line under the title, "Explore". */
.path-num { color: var(--brand-ivory); }
.path-sub { color: var(--brand-stone) !important; }
.path-link { color: var(--brand-ivory); }
/* and a deeper fade under the caption (0 at 35% of the card's height, 75% Inky at the bottom; was 45% / 55%):
   measured 2026-11-26 on the three photos, every caption text is then at least 4.8:1 (the Industrial card's
   bright floor left its line at 3.1:1). The top half of each photo is unchanged. */
.path-media::before { background: linear-gradient(180deg, rgba(var(--brand-inky-rgb), 0) 35%, rgba(var(--brand-inky-rgb), 0.75) 100%); }

/* Home page, the showcase on a photo (desktop): the family name and the line under the open tab. */
.scene-family span { color: var(--brand-ivory); }
.scene-tab::after { background: var(--brand-ivory); }

/* Product page, Why Specify on its Inky panel: where you are (number and bar), the label and its line. */
.eralux-product .why-counter .current { color: var(--brand-ivory); }
.eralux-product .why-progress .bar { background: var(--brand-ivory); }
.eralux-product .why-kicker { color: var(--brand-stone); }
.eralux-product .why-kicker::before { background: var(--brand-stone); }
.eralux-product .why-scroll { border-left-color: var(--brand-stone); }
.eralux-product .why-slider :focus-visible { outline-color: var(--brand-ivory); }

/* Product page, the play button on a video (dark): stays light when pointed at. */
.eralux-product .resource-video__start:hover .resource-video__play,
.eralux-product .resource-video__start:focus-visible .resource-video__play { background: var(--brand-stone); }
