/*
  Emirates ITS design tokens
  Brand: #163C4D (deep teal) · Light default · Dark optional
  Source of truth for marketing pages.
*/

:root,
[data-theme="light"] {
  color-scheme: light;

  /* —— Brand —— */
  --brand: #163C4D;
  --brand-hover: #123442;
  --brand-interactive: #163C4D;
  --brand-interactive-hover: #123442;
  --brand-soft: rgba(22, 60, 77, 0.06);
  --brand-medium: rgba(22, 60, 77, 0.10);
  --brand-border: rgba(22, 60, 77, 0.25);
  --brand-border-hover: rgba(22, 60, 77, 0.30);
  --brand-focus-ring: rgba(22, 60, 77, 0.14);

  /* Logo mark red (secondary accent — sparse use only) */
  --brand-mark: #D2011A;
  --brand-mark-hover: #B50116;
  --brand-mark-soft: rgba(210, 1, 26, 0.08);
  --brand-mark-medium: rgba(210, 1, 26, 0.14);
  --selection-bg: rgba(210, 1, 26, 0.18);
  --selection-text: #101820;

  /* —— Surfaces —— */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAF9;
  --bg-tertiary: #F3F7F6;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-muted: #F8FAF9;

  /* —— Text —— */
  --text-primary: #101820;
  --text-secondary: #46565E;
  --text-muted: #6B7C84;
  --text-nav: #33434A;
  --text-on-brand: #FFFFFF;
  --text-on-dark: #F7FAFA;
  --text-on-dark-muted: rgba(247, 250, 250, 0.78);

  /* —— Borders —— */
  --border: #E4E9E8;
  --border-strong: #DCE4E3;
  --divider: #EDF1F0;

  /* —— Header —— */
  --header-bg: #FFFFFF;
  --header-bg-scrolled: rgba(255, 255, 255, 0.92);
  --header-border: rgba(16, 24, 32, 0.06);
  --header-nav: #33434A;

  /* —— Forms —— */
  --input-bg: #FFFFFF;
  --input-border: #DCE4E3;
  --input-text: #101820;
  --input-focus-border: #163C4D;
  --input-focus-ring: rgba(22, 60, 77, 0.14);

  /* —— CTA band —— */
  --cta-band-bg: #163C4D;
  --cta-band-title: #FFFFFF;
  --cta-band-text: rgba(255, 255, 255, 0.78);
  --cta-band-btn-bg: #FFFFFF;
  --cta-band-btn-text: #163C4D;

  /* —— Legacy aliases (keep existing CSS working) —— */
  --color-accent: var(--brand-interactive);
  --color-accent-hover: var(--brand-interactive-hover);
  --color-accent-supporting: var(--brand-mark);
  --color-focus-ring: var(--brand-focus-ring);
  --color-on-accent: var(--text-on-brand);
  --color-ink: var(--text-primary);
  --color-ink-muted: var(--text-secondary);
  --color-ink-subtle: var(--text-muted);
  --color-border: var(--border);
  --color-border-strong: var(--border-strong);
  --color-surface: var(--surface);
  --color-surface-subtle: var(--bg-secondary);
  --color-base-dark: #0B171D;
  --color-base-light: var(--bg-primary);
  --color-on-dark: var(--text-on-dark);
  --color-on-dark-muted: var(--text-on-dark-muted);
  --color-band-white: #FFFFFF;
  --color-band-ink: #101820;
  --color-band-ink-muted: #46565E;
  --color-band-border: var(--border);

  /* —— Typography ——
     Fluid scale: readable at 320px, restrained on large desktops.
     Preferred values use rem + vw so type scales smoothly without breakpoint jumps. */
  --font-heading: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Display / cinematic hero — ~26px → ~50px */
  --text-display-size: clamp(1.625rem, 1.05rem + 2.5vw, 3.125rem);
  --text-display-line: 1.12;
  --text-display-tracking: -0.028em;

  /* Page H1 — ~24px → ~44px */
  --text-h1-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.75rem);
  --text-h1-line: 1.14;
  --text-h1-tracking: -0.022em;
  --text-h1-size-mobile: 1.5rem;

  /* Section H2 — ~22px → ~36px */
  --text-h2-size: clamp(1.375rem, 1.08rem + 1.25vw, 2.25rem);
  --text-h2-line: 1.18;
  --text-h2-tracking: -0.018em;
  --text-h2-size-mobile: 1.375rem;

  /* Card / H3 — ~19px → ~26px */
  --text-h3-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.625rem);
  --text-h3-line: 1.28;
  --text-h3-tracking: -0.012em;

  /* H4 / compact titles — ~17px → ~21px */
  --text-h4-size: clamp(1.0625rem, 1rem + 0.28vw, 1.3125rem);
  --text-h4-line: 1.32;
  --text-h4-tracking: -0.008em;

  /* Lead body — ~17px → ~19px */
  --text-body-lg-size: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  --text-body-lg-line: 1.65;

  /* Body — floor 16px for a11y */
  --text-body-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --text-body-line: 1.65;

  --text-body-sm-size: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-body-sm-line: 1.6;

  --text-small-size: clamp(0.8125rem, 0.8rem + 0.08vw, 0.875rem);
  --text-small-line: 1.5;

  --text-eyebrow-size: clamp(0.6875rem, 0.66rem + 0.1vw, 0.8125rem);
  --text-eyebrow-line: 1.35;
  --text-eyebrow-tracking: 0.08em;

  --text-label-size: clamp(0.8125rem, 0.8rem + 0.08vw, 0.875rem);
  --text-label-line: 1.4;
  --text-label-tracking: 0.04em;

  --text-nav-size: clamp(0.8125rem, 0.78rem + 0.12vw, 0.90625rem);
  --text-nav-line: 1.3;
  --text-nav-weight: 500;

  --text-btn-size: clamp(0.9375rem, 0.9rem + 0.12vw, 1rem);
  --text-btn-line: 1.25;
  --text-btn-weight: 600;

  --text-caption-size: clamp(0.75rem, 0.73rem + 0.08vw, 0.8125rem);
  --text-caption-line: 1.45;

  --text-form-size: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
  --text-form-line: 1.45;

  --text-breadcrumb-size: clamp(0.75rem, 0.73rem + 0.08vw, 0.8125rem);
  --text-breadcrumb-line: 1.4;

  --text-measure: 38rem;
  --text-measure-narrow: 32rem;
  --text-measure-hero: 36rem;
  --text-measure-title: 18ch;

  /* —— Spacing (8px base) —— */
  --space-unit: 8px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-15: 120px;

  --section-padding-y: 96px;
  --section-padding-y-mobile: 64px;

  /* —— Layout —— */
  --grid-columns: 12;
  --grid-gutter: 24px;
  --content-max-width: 1200px;
  --content-pad-x: 24px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --brand: #163C4D;
  --brand-hover: #123442;
  --brand-interactive: #4D91A9;
  --brand-interactive-hover: #6BA8BC;
  --brand-soft: rgba(77, 145, 169, 0.15);
  --brand-medium: rgba(36, 86, 106, 0.28);
  --brand-border: rgba(255, 255, 255, 0.12);
  --brand-border-hover: rgba(255, 255, 255, 0.18);
  --brand-focus-ring: rgba(77, 145, 169, 0.4);

  --brand-mark: #E11D33;
  --brand-mark-hover: #F03A4E;
  --brand-mark-soft: rgba(225, 29, 51, 0.16);
  --brand-mark-medium: rgba(225, 29, 51, 0.24);
  --selection-bg: rgba(225, 29, 51, 0.32);
  --selection-text: #FFFFFF;

  --bg-primary: #0B171D;
  --bg-secondary: #0F2028;
  --bg-tertiary: #122A34;
  --surface: #132D38;
  --surface-elevated: #173642;
  --surface-muted: #0F2028;

  --text-primary: #F7FAFA;
  --text-secondary: #CEDADD;
  --text-muted: #9EAFB6;
  --text-nav: #D9E3E6;
  --text-on-brand: #FFFFFF;
  --text-on-dark: #F7FAFA;
  --text-on-dark-muted: rgba(247, 250, 250, 0.78);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);
  --divider: rgba(255, 255, 255, 0.06);

  --header-bg: rgba(9, 22, 28, 0.94);
  --header-bg-scrolled: rgba(9, 22, 28, 0.94);
  --header-border: rgba(255, 255, 255, 0.07);
  --header-nav: #D9E3E6;

  --input-bg: #122A34;
  --input-border: rgba(255, 255, 255, 0.10);
  --input-text: #FFFFFF;
  --input-focus-border: #24566A;
  --input-focus-ring: rgba(36, 86, 106, 0.35);

  --cta-band-bg: #163C4D;
  --cta-band-title: #FFFFFF;
  --cta-band-text: rgba(255, 255, 255, 0.78);
  --cta-band-btn-bg: #FFFFFF;
  --cta-band-btn-text: #163C4D;

  --color-accent: var(--brand-interactive);
  --color-accent-hover: var(--brand-interactive-hover);
  --color-accent-supporting: var(--brand-mark);
  --color-focus-ring: var(--brand-focus-ring);

  --color-band-white: var(--bg-primary);
  --color-band-ink: var(--text-primary);
  --color-band-ink-muted: var(--text-secondary);
  --color-band-border: var(--border);

  /* Keep legacy aliases in sync so light fallbacks never win in dark */
  --color-ink: var(--text-primary);
  --color-ink-muted: var(--text-secondary);
  --color-ink-subtle: var(--text-muted);
  --color-border: var(--border);
  --color-border-strong: var(--border-strong);
  --color-surface: var(--surface);
  --color-surface-subtle: var(--bg-secondary);
  --color-base-light: var(--bg-primary);
  --color-on-dark: var(--text-on-dark);
  --color-on-dark-muted: var(--text-on-dark-muted);
}

@media (max-width: 767px) {
  :root,
  [data-theme="light"],
  [data-theme="dark"] {
    --section-padding-y: var(--section-padding-y-mobile);
    --grid-gutter: 16px;
    --content-pad-x: 16px;
    /* Keep display hierarchy on phones without dominating the viewport */
    --text-display-size: clamp(1.5rem, 1rem + 3.4vw, 2rem);
    --text-display-line: 1.16;
    --text-measure-title: 20ch;
    --text-measure-hero: 34rem;
  }
}

/* Longer European / Turkish strings need wider title tracks */
:is(html[lang="de"], html[lang="fr"], html[lang="es"], html[lang="it"], html[lang="nl"], html[lang="pt"], html[lang="tr"]) {
  --text-measure-title: 22ch;
  --text-measure-hero: 40rem;
}

html[lang="ar"] {
  --font-body: "Noto Sans Arabic", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Noto Sans Arabic", "Source Serif 4", "Georgia", serif;
  --text-display-line: 1.22;
  --text-h1-line: 1.28;
  --text-h2-line: 1.3;
  --text-body-line: 1.75;
  --text-body-lg-line: 1.75;
  --text-measure-title: 14ch;
  --text-display-tracking: 0;
  --text-h1-tracking: 0;
  --text-h2-tracking: 0;
}

html[lang="ja"] {
  --font-body: "Noto Sans JP", "Source Sans 3", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-heading: "Noto Sans JP", "Source Serif 4", "Georgia", serif;
  --text-body-line: 1.8;
  --text-body-lg-line: 1.8;
  --text-display-tracking: 0.01em;
  --text-h1-tracking: 0.01em;
  --text-measure-title: 12ch;
}

html[lang="zh"] {
  --font-body: "Noto Sans SC", "Source Sans 3", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-heading: "Noto Sans SC", "Source Serif 4", "Georgia", serif;
  --text-body-line: 1.8;
  --text-body-lg-line: 1.8;
  --text-display-tracking: 0.02em;
  --text-h1-tracking: 0.02em;
  --text-measure-title: 12ch;
}

/* —— Document base —— */
html {
  background: var(--bg-primary);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
.eits-body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--text-body-line);
  overflow-wrap: break-word;
}

/* Text selection — logo mark red */
::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

::-moz-selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

/* Sparse logo-red accents (do not replace teal CTAs/links) */
.brand-mark,
.text-brand-mark {
  color: var(--brand-mark);
}

.bg-brand-mark {
  background-color: var(--brand-mark);
}

.required-mark,
.eits-req,
label .text-brand-cyan:only-child,
label .required,
.form-required {
  color: var(--brand-mark) !important;
}

.ds-eyebrow::before,
.home-section__eyebrow::before,
.home-work__eyebrow::before,
.home-svc-rail__eyebrow::before,
.work-stack__eyebrow::before,
.page-section-header__eyebrow::before,
.page-hero-editorial__eyebrow::before,
.home-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.14rem;
  margin-right: 0.55rem;
  margin-bottom: 0.12em;
  vertical-align: middle;
  background: var(--brand-mark);
  border-radius: 1px;
}

.page-hero-editorial--media .page-hero-editorial__eyebrow::before,
.home-hero__eyebrow::before {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* —— Type scale utilities —— */
.ds-display {
  font-family: var(--font-heading);
  font-size: var(--text-display-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--text-display-line);
  letter-spacing: var(--text-display-tracking);
  color: var(--color-ink);
  text-align: left;
  margin: 0;
  max-width: var(--text-measure-title);
}

.ds-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--text-h1-line);
  letter-spacing: var(--text-h1-tracking);
  color: var(--color-ink);
  text-align: left;
  margin: 0;
}

.ds-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--text-h2-line);
  letter-spacing: var(--text-h2-tracking);
  color: var(--color-ink);
  text-align: left;
  margin: 0;
}

.ds-h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--text-h3-line);
  letter-spacing: var(--text-h3-tracking);
  color: var(--color-ink);
  text-align: left;
  margin: 0;
}

.ds-h4 {
  font-family: var(--font-heading);
  font-size: var(--text-h4-size);
  font-weight: var(--font-weight-medium);
  line-height: var(--text-h4-line);
  letter-spacing: var(--text-h4-tracking);
  color: var(--color-ink);
  text-align: left;
  margin: 0;
}

.ds-body-lg {
  font-family: var(--font-body);
  font-size: var(--text-body-lg-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--text-body-lg-line);
  color: var(--color-ink-muted);
  text-align: left;
  margin: 0;
  max-width: var(--text-measure);
}

.ds-body {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--text-body-line);
  color: var(--color-ink-muted);
  text-align: left;
  margin: 0;
  max-width: var(--text-measure);
}

.ds-body-sm {
  font-family: var(--font-body);
  font-size: var(--text-body-sm-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--text-body-sm-line);
  color: var(--color-ink-muted);
  text-align: left;
  margin: 0;
}

.ds-small {
  font-family: var(--font-body);
  font-size: var(--text-small-size);
  font-weight: var(--font-weight-medium);
  line-height: var(--text-small-line);
  color: var(--color-ink-muted);
  text-align: left;
  margin: 0;
}

.ds-label {
  font-family: var(--font-body);
  font-size: var(--text-label-size);
  font-weight: var(--font-weight-medium);
  line-height: var(--text-label-line);
  letter-spacing: var(--text-label-tracking);
  color: var(--color-ink-muted);
  text-align: left;
  margin: 0;
}

.ds-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--text-eyebrow-line);
  letter-spacing: var(--text-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

.ds-nav {
  font-family: var(--font-body);
  font-size: var(--text-nav-size);
  font-weight: var(--text-nav-weight);
  line-height: var(--text-nav-line);
  letter-spacing: 0.01em;
}

/* —— Layout utilities —— */
.ds-container,
.eits-container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--content-pad-x);
}

.ds-container--full-bleed {
  max-width: none;
  width: 100%;
  padding-inline: 0;
}

.ds-section {
  padding-block: var(--section-padding-y);
}

.ds-section--subtle {
  background: var(--color-surface-subtle);
}

.ds-section--dark {
  background: var(--color-base-dark);
  color: var(--color-on-dark);
}

/* —— Section bands (theme-aware) —— */
.eits-band--white,
.section-white,
.home-section--white,
.ds-section--white {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.section-lighter,
.home-section--surface {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.section-light {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.section-dark {
  background: var(--color-base-dark);
  color: var(--color-on-dark);
}

.eits-band--white .ds-h1,
.eits-band--white .ds-h2,
.eits-band--white .ds-h3,
.eits-band--white .ds-h4,
.eits-band--white .ds-display,
.section-white .ds-h1,
.section-white .ds-h2,
.section-white .ds-h3,
.section-white .ds-h4,
.section-white .ds-display,
.home-section--white .home-section__title,
.home-section--white .home-services-list__name,
.home-section--white .home-insights-list__title,
.home-section--white .home-approach-list,
.ds-section--white .ds-h1,
.ds-section--white .ds-h2,
.ds-section--white .ds-h3,
.ds-section--white .ds-h4,
.ds-section--white .ds-display {
  color: var(--text-primary);
}

.eits-band--white .ds-body,
.eits-band--white .ds-body-lg,
.eits-band--white .ds-body-sm,
.eits-band--white .ds-small,
.eits-band--white .ds-label,
.section-white .ds-body,
.section-white .ds-body-lg,
.section-white .ds-body-sm,
.section-white .text-brand-muted,
.home-section--white .home-section__lede,
.home-section--white .home-services-list__desc,
.home-section--white .home-insights-list__meta,
.ds-section--white .ds-body,
.ds-section--white .ds-body-lg {
  color: var(--text-secondary);
}

.eits-band--white .ds-eyebrow,
.section-white .ds-eyebrow,
.home-section--white .home-section__eyebrow {
  color: var(--color-accent);
}

.home-section--white .home-btn--outline-dark {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.home-section--white .home-btn--outline-dark:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.home-section--white .home-services-list__item,
.home-section--white .home-insights-list__link,
.home-section--white .home-approach-list li {
  border-color: var(--border);
}

.home-section--white .home-services-list__arrow,
.home-section--white .home-insights-list__arrow {
  color: var(--color-accent);
}

.home-section--white .text-brand-dark,
.section-white .text-brand-dark,
.eits-band--white .text-brand-dark {
  color: var(--text-primary) !important;
}

.home-section--white .text-brand-muted,
.section-white .text-brand-muted,
.eits-band--white .text-brand-muted {
  color: var(--text-secondary) !important;
}

/* —— Buttons —— */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: var(--text-btn-size);
  font-weight: var(--text-btn-weight);
  line-height: var(--text-btn-line);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.ds-btn--primary {
  background: var(--brand-interactive);
  color: var(--text-on-brand);
}

.ds-btn--primary:hover {
  background: var(--brand-interactive-hover);
  color: var(--text-on-brand);
}

.ds-btn--outline,
.ds-btn--secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand-border);
}

.ds-btn--outline:hover,
.ds-btn--secondary:hover {
  background: var(--brand-soft);
  border-color: var(--brand-border-hover);
  color: var(--brand-hover);
}

[data-theme="dark"] .ds-btn--outline,
[data-theme="dark"] .ds-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .ds-btn--outline:hover,
[data-theme="dark"] .ds-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.ds-btn--ghost,
.ds-btn--ghost-light {
  background: transparent;
  color: var(--brand);
  border-color: transparent;
}

.ds-btn--ghost:hover {
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.ds-btn--ghost-light {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.ds-btn--ghost-light:hover {
  border-color: var(--brand-border-hover);
  background: var(--brand-soft);
  color: var(--brand);
}

.page-hero-editorial--media .ds-btn--ghost-light,
.home-hero .ds-btn--ghost-light,
.svc-hero--media .ds-btn--ghost-light,
.svc-hero--video .ds-btn--ghost-light,
.eits-cta-band .ds-btn--ghost-light,
.home-cta .ds-btn--ghost-light {
  color: var(--color-on-dark);
  border-color: rgba(247, 250, 250, 0.35);
}

.page-hero-editorial--media .ds-btn--ghost-light:hover,
.home-hero .ds-btn--ghost-light:hover,
.svc-hero--media .ds-btn--ghost-light:hover,
.svc-hero--video .ds-btn--ghost-light:hover,
.eits-cta-band .ds-btn--ghost-light:hover,
.home-cta .ds-btn--ghost-light:hover {
  border-color: var(--color-on-dark);
  background: rgba(247, 250, 250, 0.06);
  color: var(--color-on-dark);
}

.ds-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--color-focus-ring);
}

/* —— CTA band —— */
.eits-cta-band {
  background: var(--cta-band-bg);
  color: var(--cta-band-title);
}

.eits-cta-band__title {
  color: var(--cta-band-title);
}

.eits-cta-band__subtitle {
  color: var(--cta-band-text);
}

.eits-cta-band .ds-btn--primary {
  background: var(--cta-band-btn-bg);
  color: var(--cta-band-btn-text);
}

.eits-cta-band .ds-btn--primary:hover {
  background: #F3F7F6;
  color: var(--cta-band-btn-text);
}

/* —— Theme toggle —— */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid #E3E9E8;
  background: #FFFFFF;
  color: #163C4D;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(22, 60, 77, 0.05);
  border-color: rgba(22, 60, 77, 0.22);
  color: #163C4D;
}

.theme-toggle:focus-visible {
  outline: 2px solid #163C4D;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(22, 60, 77, 0.14);
}

.theme-toggle__icon {
  width: 17px;
  height: 17px;
  display: block;
}

.theme-toggle__icon--moon { display: none; }
.theme-toggle__icon--sun { display: block; }

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #D9E3E6;
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
[data-theme="dark"] .theme-toggle__icon--moon { display: block; }

/* —— Media helper —— */
.ds-media {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
}

.ds-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
