/*
 * JOMALIQ appearance system — Light / Dark / Auto
 * Loaded last so every public, authentication, client and staff shell shares
 * one explicit surface contract without changing product-specific data-theme.
 */

/* Brand reference: docs/DESIGN_SYSTEM.md (#082589). Gold/night/paper are
 * local preview proposals from the blue-white-gold brief, not new logo colors. */
:root {
  --jomaliq-brand-blue: #082589;
  --jomaliq-brand-white: #ffffff;
  --jomaliq-brand-gold: #d4af37;
  --jomaliq-gold-ink: #8a6a16;
  --jomaliq-gold-paper: #fbf4dd;
  --jomaliq-night: #081a33;
  --jomaliq-night-raised: #102a4c;
  --jomaliq-night-muted: #17375a;
  --jomaliq-paper: #f7faff;
  --jomaliq-blue-paper: #e8f0ff;
  --jomaliq-blue-bright: #174ee7;
  --jomaliq-blue-light: #b9d2ff;
  --jomaliq-ink-secondary: #405575;
  --jomaliq-ink-muted: #526682;
}

/* The menu icon must share the header's surface in both appearance modes. */
/* Original artwork is selected by surface; it is never recolored with a filter. */
.brand-mark .brand-mark--light {
  display: none;
}
html[data-color-theme="dark"] .site-header .brand-mark .brand-mark--blue {
  display: none;
}
html[data-color-theme="dark"] .site-header .brand-mark .brand-mark--light {
  display: block;
}
.platform-footer-signature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-on-dark-secondary);
  font-size: 0.875rem;
}
.platform-footer-signature a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.platform-footer-signature img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

html[data-color-theme] .site-header .menu-toggle {
  color: var(--jomaliq-header-text);
  background: var(--jomaliq-surface);
  border-color: var(--jomaliq-header-border);
}
html[data-color-theme] .site-header .menu-toggle span,
html[data-color-theme] .site-header .menu-toggle::before,
html[data-color-theme] .site-header .menu-toggle::after {
  background: var(--jomaliq-header-text);
}

:root,
html[data-color-theme="light"] {
  color-scheme: light;
  --jomaliq-bg: var(--jomaliq-paper);
  --jomaliq-bg-accent: var(--jomaliq-blue-paper);
  --jomaliq-surface: var(--jomaliq-brand-white);
  --jomaliq-surface-raised: var(--jomaliq-paper);
  --jomaliq-surface-muted: var(--jomaliq-blue-paper);
  --jomaliq-glass: var(--jomaliq-surface);
  --jomaliq-glass-strong: var(--jomaliq-surface);
  --jomaliq-glass-border: #c4d1e3;
  --jomaliq-text-primary: var(--jomaliq-night);
  --jomaliq-text-secondary: var(--jomaliq-ink-secondary);
  --jomaliq-text-muted: var(--jomaliq-ink-muted);
  --jomaliq-accent: var(--jomaliq-blue-bright);
  --jomaliq-accent-strong: var(--jomaliq-brand-blue);
  --jomaliq-accent-soft: var(--jomaliq-blue-paper);
  --jomaliq-action-bg: var(--jomaliq-brand-blue);
  --jomaliq-action-bg-hover: var(--jomaliq-blue-bright);
  --jomaliq-action-text: var(--jomaliq-brand-white);
  --jomaliq-danger-action-bg: #a32832;
  --jomaliq-danger-action-bg-hover: #84212a;
  --jomaliq-on-success: #ffffff;
  --jomaliq-link: var(--jomaliq-brand-blue);
  --jomaliq-link-hover: var(--jomaliq-blue-bright);
  --jomaliq-success: #126b4f;
  --jomaliq-warning: #895d0d;
  --jomaliq-danger: #a32832;
  --jomaliq-focus: var(--jomaliq-brand-blue);
  --jomaliq-theme-selected-focus: var(--jomaliq-brand-white);
  --jomaliq-shadow: 0 20px 60px rgba(7, 25, 68, 0.12);
  --jomaliq-shadow-soft: 0 10px 34px rgba(7, 25, 68, 0.08);
  --jomaliq-shadow-hover: 0 26px 72px rgba(7, 25, 68, 0.16);
  --jomaliq-radius: 22px;
  --jomaliq-radius-sm: 13px;
  --jomaliq-blur: 18px;
  --jomaliq-header: var(--jomaliq-surface);
  --jomaliq-header-text: var(--jomaliq-night);
  --jomaliq-header-muted: var(--jomaliq-ink-secondary);
  --jomaliq-header-border: #c4d1e3;
  --jomaliq-overlay: rgba(8, 17, 40, 0.55);
  --jomaliq-input: var(--jomaliq-surface);
  --jomaliq-input-border: #667d9b;
  --jomaliq-highlight: var(--jomaliq-brand-gold);
  --jomaliq-highlight-text: var(--jomaliq-gold-ink);
  --jomaliq-highlight-soft: var(--jomaliq-gold-paper);
  --jomaliq-highlight-contrast: var(--jomaliq-night);
  --jomaliq-selected-bg: var(--jomaliq-brand-blue);
  --jomaliq-selected-text: var(--jomaliq-brand-white);
}

html[data-color-theme="dark"] {
  color-scheme: dark;
  --jomaliq-bg: var(--jomaliq-night);
  --jomaliq-bg-accent: var(--jomaliq-night-raised);
  --jomaliq-surface: var(--jomaliq-night-raised);
  --jomaliq-surface-raised: var(--jomaliq-night-muted);
  --jomaliq-surface-muted: #21466e;
  --jomaliq-glass: var(--jomaliq-surface);
  --jomaliq-glass-strong: var(--jomaliq-surface);
  --jomaliq-glass-border: #587495;
  --jomaliq-text-primary: var(--jomaliq-brand-white);
  --jomaliq-text-secondary: #d4e2f3;
  --jomaliq-text-muted: #bdcce0;
  --jomaliq-accent: #8fb5ff;
  --jomaliq-accent-strong: var(--jomaliq-blue-light);
  --jomaliq-accent-soft: #25476f;
  --jomaliq-action-bg: var(--jomaliq-blue-bright);
  --jomaliq-action-bg-hover: var(--jomaliq-brand-blue);
  --jomaliq-action-text: var(--jomaliq-brand-white);
  --jomaliq-danger-action-bg: #a32832;
  --jomaliq-danger-action-bg-hover: #84212a;
  --jomaliq-on-success: #061b13;
  --jomaliq-link: var(--jomaliq-blue-light);
  --jomaliq-link-hover: var(--jomaliq-brand-white);
  --jomaliq-success: #61d6ac;
  --jomaliq-warning: #f2c86d;
  --jomaliq-danger: #ff9aa6;
  --jomaliq-focus: var(--jomaliq-brand-gold);
  --jomaliq-theme-selected-focus: var(--jomaliq-night);
  --jomaliq-shadow: 0 24px 74px rgba(0, 0, 0, 0.4);
  --jomaliq-shadow-soft: 0 12px 38px rgba(0, 0, 0, 0.28);
  --jomaliq-shadow-hover: 0 30px 86px rgba(0, 0, 0, 0.5);
  --jomaliq-radius: 22px;
  --jomaliq-radius-sm: 13px;
  --jomaliq-blur: 20px;
  --jomaliq-header: var(--jomaliq-surface);
  --jomaliq-header-text: var(--jomaliq-brand-white);
  --jomaliq-header-muted: #d4e2f3;
  --jomaliq-header-border: #587495;
  --jomaliq-overlay: rgba(0, 0, 0, 0.72);
  --jomaliq-input: var(--jomaliq-surface);
  --jomaliq-input-border: #8aa6ca;
  --jomaliq-highlight: var(--jomaliq-brand-gold);
  --jomaliq-highlight-text: var(--jomaliq-brand-gold);
  --jomaliq-highlight-soft: #303c4c;
  --jomaliq-highlight-contrast: var(--jomaliq-night);
  --jomaliq-selected-bg: var(--jomaliq-brand-gold);
  --jomaliq-selected-text: var(--jomaliq-night);
}

:root {
  --gold: var(--jomaliq-highlight-text);
  --brand-blue: var(--jomaliq-brand-blue);
  --surface-dark: var(--jomaliq-night);
  --surface-dark-soft: var(--jomaliq-night-raised);
  --premium-ink: var(--jomaliq-night);
  --premium-ink-soft: var(--jomaliq-night-raised);
  --text-on-dark-primary: var(--jomaliq-brand-white);
  --text-on-dark-secondary: #d4e2f3;
  --text-on-dark-muted: #bdcce0;
  --link-on-dark: var(--jomaliq-blue-light);
  --link-on-dark-hover: var(--jomaliq-brand-white);
  --focus-on-dark: var(--jomaliq-brand-gold);
  --text-primary: var(--jomaliq-text-primary);
  --text-secondary: var(--jomaliq-text-secondary);
  --text-muted: var(--jomaliq-text-muted);
  --text-disabled: var(--jomaliq-text-muted);
  --surface-primary: var(--jomaliq-surface);
  --surface-secondary: var(--jomaliq-surface-muted);
  --surface-glass: var(--jomaliq-glass);
  --surface-elevated: var(--jomaliq-surface-raised);
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --type-display: clamp(3.4rem, 8.2vw, 8.4rem);
  --type-h1: clamp(2.35rem, 7vw, 5.35rem);
  --type-h2: clamp(2rem, 4.6vw, 3.35rem);
  --type-h3: clamp(1.2rem, 2vw, 1.55rem);
  --type-h4: 1.125rem;
  --type-body-large: clamp(1.02rem, 1.5vw, 1.2rem);
  --type-body: 1rem;
  --type-small: 0.9rem;
  --type-caption: 0.82rem;
  --catalog-dark-surface: var(--jomaliq-night);
  --surface-light: var(--jomaliq-surface);
  --surface-light-soft: var(--jomaliq-surface-raised);
  --surface-light-hover: var(--jomaliq-surface-muted);
  --surface-light-active: var(--jomaliq-accent-soft);
  --text-on-light-primary: var(--jomaliq-text-primary);
  --text-on-light-secondary: var(--jomaliq-text-secondary);
  --text-on-light-muted: var(--jomaliq-text-muted);
  --border-on-light: var(--jomaliq-glass-border);
  --link-on-light: var(--jomaliq-link);
  --link-on-light-hover: var(--jomaliq-link-hover);
  --focus-on-light: var(--jomaliq-focus);
  --premium-paper: var(--jomaliq-surface);
  --premium-paper-soft: var(--jomaliq-surface-raised);
  --premium-text: var(--jomaliq-text-primary);
  --premium-muted: var(--jomaliq-text-secondary);
  --premium-line: var(--jomaliq-glass-border);
  --premium-blue: var(--jomaliq-action-bg);
  --premium-blue-bright: var(--jomaliq-accent);
  --focus-ring: var(--jomaliq-focus);
  --ink: var(--jomaliq-text-primary);
  --muted: var(--jomaliq-text-secondary);
  --line: var(--jomaliq-glass-border);
  --soft: var(--jomaliq-surface-raised);
  --soft-blue: var(--jomaliq-bg-accent);
  --glass: var(--jomaliq-glass);
  --hairline: var(--jomaliq-glass-border);
  --shadow: var(--jomaliq-shadow-soft);
  --shadow-soft: var(--jomaliq-shadow-soft);
  --shadow-xl: var(--jomaliq-shadow);
}

html {
  min-width: 0;
  background: var(--jomaliq-bg);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body {
  background: var(--jomaliq-bg);
  color: var(--jomaliq-text-primary);
}

body,
.site-header,
.theme-switcher,
.auth-header,
.auth-footer,
.client-header,
.support-panel {
  /* Cross-fading foreground and background can pass through illegible pairs. */
  transition: box-shadow 220ms ease;
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline-color: var(--jomaliq-focus);
}

/* Appearance selector */
.theme-switcher {
  z-index: 25;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--jomaliq-header-text);
}

.theme-switcher__group {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(44px, auto));
  align-items: center;
  gap: 3px;
  min-height: 52px;
  padding: 4px;
  border: 1px solid var(--jomaliq-header-border);
  border-radius: 999px;
  background: var(--jomaliq-glass);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), var(--jomaliq-shadow-soft);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.theme-switcher__button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--jomaliq-header-muted);
  background: transparent;
  font: 750 0.75rem/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.theme-switcher__button:hover {
  color: var(--jomaliq-header-text);
  background: color-mix(in srgb, var(--jomaliq-accent) 12%, transparent);
}

.theme-switcher__button:active {
  transform: none;
}

.theme-switcher__button:active svg { transform: scale(0.94); }

.theme-switcher__button[data-selected="true"] {
  color: var(--jomaliq-selected-text);
  background: var(--jomaliq-selected-bg);
  box-shadow: inset 0 0 0 2px currentColor;
}

.theme-switcher__button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-switcher__label {
  display: none;
}

.theme-switcher--floating {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
}

.theme-switcher--surface {
  width: max-content;
  margin: 0 0 24px auto;
  --jomaliq-header-text: var(--jomaliq-text-primary);
  --jomaliq-header-muted: var(--jomaliq-text-secondary);
  --jomaliq-header-border: var(--jomaliq-glass-border);
}

/* Public shell and Liquid Glass surfaces */
.site-header {
  color: var(--jomaliq-header-text);
  background: var(--jomaliq-header);
  border-color: var(--jomaliq-header-border);
  box-shadow: 0 10px 34px rgba(4, 15, 40, 0.08);
  backdrop-filter: blur(var(--jomaliq-blur)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--jomaliq-blur)) saturate(145%);
}

.site-header .navbar {
  grid-template-columns: minmax(126px, auto) minmax(0, 1fr) auto auto;
  gap: clamp(10px, 1.5vw, 26px);
}

.site-header .brand,
body:not(.premium-site) .site-header .brand,
.site-header .nav-menu > a,
.site-header .platform-mega > summary,
body:not(.premium-site) .site-header .nav-menu > a,
body:not(.premium-site) .site-header .platform-mega > summary {
  color: var(--jomaliq-header-muted);
}

.site-header .brand,
.site-header .nav-menu > a:hover,
.site-header .nav-menu > a:focus-visible,
.site-header .nav-menu > a[aria-current="page"],
.site-header .platform-mega > summary:hover,
.site-header .platform-mega > summary:focus-visible,
.site-header .platform-mega > summary[aria-current="page"] {
  color: var(--jomaliq-header-text);
}

.site-header.is-scrolled {
  background: var(--jomaliq-glass-strong);
  box-shadow: var(--jomaliq-shadow-soft);
}

.platform-mega__panel,
.card,
.feature-card,
.info-panel,
.form-card,
.method-card,
.course-card,
.article-card,
.service-block,
.calendar-placeholder,
.payment-panel,
.certificate-preview,
.catalog-category-card,
.catalog-service-card,
.catalog-detail-section,
.catalog-detail-sidebar,
.service-catalog-card,
.service-catalog__feedback {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-glass);
  border-color: var(--jomaliq-glass-border);
  box-shadow: var(--jomaliq-shadow-soft);
}

.platform-mega__panel {
  backdrop-filter: blur(var(--jomaliq-blur)) saturate(125%);
  -webkit-backdrop-filter: blur(var(--jomaliq-blur)) saturate(125%);
}

.info-panel.info-panel--blue {
  color: var(--jomaliq-action-text);
  background: var(--jomaliq-action-bg);
}

.info-panel.info-panel--blue h2,
.info-panel.info-panel--blue h3,
.info-panel.info-panel--blue p {
  color: var(--jomaliq-action-text);
}

.platform-mega__panel p,
.card p,
.feature-card p,
.info-panel p,
.form-card p,
.method-card p,
.course-card p,
.article-card p,
.service-block p,
.catalog-category-card p,
.catalog-service-card p,
.catalog-detail-section p,
.catalog-detail-sidebar p,
.service-catalog-card p {
  color: var(--jomaliq-text-secondary);
}

.offering-paths,
.home-manifesto,
.home-trust,
.client-solutions-section,
.premium-final-cta,
.catalog-page,
.catalog-shell {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-surface);
}

.offering-paths__grid article {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-glass);
  border-color: var(--jomaliq-glass-border);
  border-radius: var(--jomaliq-radius-sm);
  box-shadow: var(--jomaliq-shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.offering-paths__grid article:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--jomaliq-accent) 38%, var(--jomaliq-glass-border));
  box-shadow: var(--jomaliq-shadow-hover);
}

.home-category-rail,
.home-method {
  background: var(--jomaliq-surface-raised);
}

.category-list a { color: var(--jomaliq-link); }
.category-list a:is(:hover, :focus-visible, :active) {
  color: var(--jomaliq-link-hover);
  background: var(--jomaliq-surface-muted);
}
.article-card time { color: var(--jomaliq-link); }

.home-manifesto,
.home-trust,
.home-partnership,
.premium-final-cta {
  background-image: radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--jomaliq-accent) 8%, transparent), transparent 36%);
}

.premium-home-hero,
.home-platforms,
.home-fati,
.section--dark,
.footer--premium {
  --jomaliq-header-text: #ffffff;
  color: var(--text-on-dark-primary);
  background-color: var(--jomaliq-night);
  background-image:
    radial-gradient(circle at 82% 14%, rgba(40, 89, 210, 0.18), transparent 34%),
    linear-gradient(145deg, var(--jomaliq-night), var(--jomaliq-night-raised));
}

html[data-color-theme="light"] .premium-home-hero {
  background-image:
    linear-gradient(90deg, var(--jomaliq-night), var(--jomaliq-night-raised));
}

html[data-color-theme="dark"] .premium-home-hero {
  background-image:
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--jomaliq-brand-gold) 5%, transparent), transparent 34%),
    linear-gradient(145deg, var(--jomaliq-night), var(--jomaliq-night-raised));
}

.premium-home-hero::before,
.home-services-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.08), transparent 24%, transparent 72%, rgba(96, 139, 255, 0.08));
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.premium-home-hero > *,
.home-services-carousel > * {
  position: relative;
  z-index: 1;
}

.btn,
.button,
.auth-button,
.primary {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.button:hover,
.auth-button:hover,
.primary:hover {
  transform: translateY(-2px);
}

.btn--primary,
.button--primary,
.auth-button,
.primary {
  box-shadow: 0 10px 25px color-mix(in srgb, var(--jomaliq-accent) 24%, transparent);
}

.btn--primary,
.button--primary,
.auth-button:not(.auth-button--secondary, .auth-button--danger),
.primary,
.project-controls .primary,
.project-discussion .primary,
.billing-record button.primary,
.community-actions .primary,
.community-reply .primary,
.community-profile-form .primary,
.community-search .primary,
.billing-tabs button[aria-current="true"],
.community-actions button[aria-pressed="true"],
.platform-mega__group a[aria-current="page"],
.platform-mega__group a[aria-current="page"]:visited {
  color: var(--jomaliq-action-text);
  background: var(--jomaliq-action-bg);
  border-color: var(--jomaliq-action-bg);
}

.btn--primary:hover,
.btn--primary:focus-visible,
.button--primary:hover,
.button--primary:focus-visible,
.auth-button:not(.auth-button--secondary, .auth-button--danger):hover,
.auth-button:not(.auth-button--secondary, .auth-button--danger):focus-visible,
.primary:hover,
.primary:focus-visible,
.billing-tabs button[aria-current="true"]:hover,
.billing-tabs button[aria-current="true"]:focus-visible,
.community-actions button[aria-pressed="true"]:hover,
.community-actions button[aria-pressed="true"]:focus-visible,
.platform-mega__group a[aria-current="page"]:hover,
.platform-mega__group a[aria-current="page"]:focus-visible,
.home-services-carousel__control:hover,
.home-services-carousel__control:focus-visible {
  color: var(--jomaliq-action-text);
  background: var(--jomaliq-action-bg-hover);
  border-color: var(--jomaliq-action-bg-hover);
}

.btn--light:hover,
.btn--light:focus-visible {
  color: var(--jomaliq-action-text);
  background: var(--jomaliq-action-bg-hover);
  border-color: var(--jomaliq-action-bg-hover);
}

/* One editorial CTA may carry gold; routine actions keep their blue role. */
.premium-final-cta .btn--primary {
  color: var(--jomaliq-highlight-contrast);
  background: var(--jomaliq-highlight);
  border-color: var(--jomaliq-gold-ink);
}
.premium-final-cta .btn--primary:is(:hover, :focus-visible, :active) {
  color: var(--jomaliq-night);
  background: var(--jomaliq-gold-paper);
  border-color: var(--jomaliq-gold-ink);
}

.auth-button--danger {
  color: var(--jomaliq-action-text);
  background: var(--jomaliq-danger-action-bg);
  border-color: var(--jomaliq-danger-action-bg);
}

.auth-button--danger:hover,
.auth-button--danger:focus-visible {
  background: var(--jomaliq-danger-action-bg-hover);
  border-color: var(--jomaliq-danger-action-bg-hover);
}

.auth-skip {
  color: var(--jomaliq-action-text);
  background: var(--jomaliq-action-bg);
}

input,
select,
textarea {
  color: var(--jomaliq-text-primary);
  background-color: var(--jomaliq-input);
  border-color: var(--jomaliq-input-border);
}

/* Keep autofill readable without suppressing native state or password tools. */
:is(input, textarea):autofill {
  color: var(--jomaliq-text-primary);
  caret-color: var(--jomaliq-text-primary);
}
:is(input, textarea):-webkit-autofill {
  -webkit-text-fill-color: var(--jomaliq-text-primary);
  caret-color: var(--jomaliq-text-primary);
  box-shadow: inset 0 0 0 1000px var(--jomaliq-input);
}
:is(input, select, textarea):disabled {
  color: var(--text-disabled);
  background: var(--surface-secondary);
  border-style: dashed;
  opacity: 1;
  cursor: not-allowed;
}

input::placeholder,
textarea::placeholder {
  color: var(--jomaliq-text-muted);
  opacity: 1;
}

dialog,
.modal,
.dropdown,
[role="dialog"] {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-glass-strong);
  border-color: var(--jomaliq-glass-border);
  box-shadow: var(--jomaliq-shadow);
  backdrop-filter: blur(var(--jomaliq-blur));
  -webkit-backdrop-filter: blur(var(--jomaliq-blur));
}

/* Authentication shell */
body.auth-page {
  --auth-gold: var(--jomaliq-highlight-text);
  --auth-blue: var(--jomaliq-accent-strong);
  --auth-blue-bright: var(--jomaliq-accent);
  --auth-navy: var(--jomaliq-text-primary);
  --auth-muted: var(--jomaliq-text-secondary);
  --auth-line: var(--jomaliq-glass-border);
  --auth-soft: var(--jomaliq-surface-raised);
  --auth-success: var(--jomaliq-success);
  --auth-danger: var(--jomaliq-danger);
  background:
    radial-gradient(circle at 78% 14%, color-mix(in srgb, var(--jomaliq-accent) 13%, transparent), transparent 35%),
    var(--jomaliq-bg);
  color: var(--jomaliq-text-primary);
}

.auth-header,
.auth-footer {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-glass);
  border-color: var(--jomaliq-glass-border);
  backdrop-filter: blur(var(--jomaliq-blur));
  -webkit-backdrop-filter: blur(var(--jomaliq-blur));
}

.auth-header__inner {
  justify-content: flex-start;
}

.auth-header__note {
  margin-left: auto;
  color: var(--jomaliq-text-primary);
}

.auth-layout {
  margin-block: clamp(24px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--jomaliq-glass-border);
  border-radius: var(--jomaliq-radius);
  background: var(--jomaliq-glass);
  box-shadow: var(--jomaliq-shadow);
  backdrop-filter: blur(var(--jomaliq-blur));
  -webkit-backdrop-filter: blur(var(--jomaliq-blur));
}

.auth-form-region,
.auth-assurance,
.auth-form-wrap h1,
.account-main h1,
.auth-field label,
.auth-help strong {
  color: var(--jomaliq-text-primary);
}

.auth-form-region {
  border-color: var(--jomaliq-glass-border);
}

.auth-intro,
.auth-help,
.auth-footer,
.account-panel p,
.account-row p {
  color: var(--jomaliq-text-secondary);
}

.auth-field input,
.auth-field select,
.auth-button--secondary,
.account-panel,
.account-row,
.account-form input,
.account-form select,
.account-form textarea {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-input);
  border-color: var(--jomaliq-input-border);
}

.auth-assurance {
  background: color-mix(in srgb, var(--jomaliq-accent-soft) 42%, transparent);
}

.auth-status[data-state="error"] {
  color: var(--jomaliq-danger);
  background: color-mix(in srgb, var(--jomaliq-danger) 12%, var(--jomaliq-surface));
}

.auth-status[data-state="success"] {
  color: var(--jomaliq-success);
  background: color-mix(in srgb, var(--jomaliq-success) 12%, var(--jomaliq-surface));
}

html[data-color-theme="dark"] .auth-logo img {
  content: url("/assets/img/jomaliq-logo-wordmark-dark.png");
}

/* Client, project, request, billing, community and staff shells */
html[data-color-theme] {
  --client-ink: var(--jomaliq-text-primary);
  --client-muted: var(--jomaliq-text-secondary);
  --client-blue: var(--jomaliq-accent-strong);
  --client-line: var(--jomaliq-glass-border);
  --client-surface: var(--jomaliq-bg);
}

html[data-color-theme="dark"] {
  --client-navy: var(--jomaliq-night);
}

.client-area,
.client-area main,
.staff-shell {
  color: var(--jomaliq-text-primary);
  background:
    radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--jomaliq-accent) 10%, transparent), transparent 28%),
    var(--jomaliq-bg);
}

.client-header {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-glass-strong);
  border-color: var(--jomaliq-glass-border);
  backdrop-filter: blur(var(--jomaliq-blur));
  -webkit-backdrop-filter: blur(var(--jomaliq-blur));
}

.client-tools {
  flex-wrap: wrap;
}

.client-tools .theme-switcher {
  --jomaliq-header-text: var(--jomaliq-text-primary);
  --jomaliq-header-muted: var(--jomaliq-text-secondary);
  --jomaliq-header-border: var(--jomaliq-glass-border);
}

#client-status:not(:empty) {
  color: var(--jomaliq-text-primary);
  background: color-mix(in srgb, var(--jomaliq-accent) 12%, var(--jomaliq-surface));
  border-color: var(--jomaliq-accent);
}

#client-status[data-error="true"] {
  color: var(--jomaliq-danger);
  background: color-mix(in srgb, var(--jomaliq-danger) 12%, var(--jomaliq-surface));
  border-color: var(--jomaliq-danger);
}

.project-save-state {
  color: var(--jomaliq-success);
}

.project-save-state[data-error="true"],
.notification-unread {
  color: var(--jomaliq-danger);
}

.project-row,
.start-row,
.start-section,
.settings-section,
.client-stats > div,
.project-side,
.project-form,
.project-fati,
.project-files,
.project-discussion,
.project-proposal,
.project-drop,
.billing-summary > div,
.billing-line,
.billing-record,
.account-summary div,
.community-composer,
.community-profile-form,
.community-post,
.community-comment,
.community-rail,
.community-dialog,
.notification-list > article {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-glass);
  border-color: var(--jomaliq-glass-border);
  box-shadow: var(--jomaliq-shadow-soft);
}

.project-row p,
.start-row p,
.start-section p,
.settings-section p,
.project-side p,
.project-form .note,
.billing-summary dt,
.community-post p,
.community-comment p,
.note {
  color: var(--jomaliq-text-secondary);
}

.project-service-context {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--jomaliq-accent) 28%, var(--jomaliq-glass-border));
  border-radius: 10px;
  color: var(--jomaliq-text-primary);
  background: color-mix(in srgb, var(--jomaliq-accent-soft) 48%, transparent);
  font-weight: 650;
}

.client-form input,
.client-form select,
.client-form textarea,
.project-form input,
.project-form select,
.project-form textarea,
.billing-field input,
.billing-field select,
.billing-field textarea,
.community-field input,
.community-field textarea,
.community-field select,
.community-reply input,
.project-filters input,
.project-filters select,
.project-files select,
.client-tools select,
.client-tools button:not([data-theme-mode]),
.billing-tabs button:not([aria-current="true"]),
.billing-list button:not(.primary),
.billing-record button:not(.primary),
.project-file-remove,
.notification-list button,
.community-tabs button,
.community-actions button:not(.primary):not([aria-pressed="true"]),
.community-post-head button,
.community-more,
.community-comment button,
.project-controls button:not(.primary),
.project-discussion button:not(.primary) {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-input);
  border-color: var(--jomaliq-input-border);
}

.staff-shell {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px);
}

/* Service catalogue and Academy */
html[data-color-theme] {
  --catalog-navy: var(--jomaliq-text-primary);
  --catalog-blue: var(--jomaliq-link);
  --catalog-green: var(--jomaliq-success);
  --catalog-gold: var(--jomaliq-highlight-text);
  --catalog-ink: var(--jomaliq-text-primary);
  --catalog-muted: var(--jomaliq-text-secondary);
  --catalog-line: var(--jomaliq-glass-border);
  --catalog-surface: var(--jomaliq-surface);
  --catalog-soft: var(--jomaliq-surface-raised);
  --catalog-focus: var(--jomaliq-focus);
  --catalog-dark-surface: var(--jomaliq-night);
  --academy-ink: var(--jomaliq-text-primary);
  --academy-muted: var(--jomaliq-text-secondary);
  --academy-line: var(--jomaliq-glass-border);
  --academy-soft: var(--jomaliq-surface-raised);
  --academy-gold: var(--jomaliq-highlight-text);
}

.catalog-page,
.academy-v2-page,
.academy-app,
.academy-verify-main {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-bg);
}

.catalog-category-card,
.catalog-service-card,
.catalog-detail-section,
.catalog-detail-sidebar,
.service-catalog-card,
.academy-course-row,
.academy-app-section,
.academy-objectives,
.academy-assessment,
.academy-empty,
.academy-error,
.academy-learning-shell,
.academy-lesson__body,
.academy-result,
.academy-certificate-intake,
.academy-congratulations,
.academy-verify-form,
.academy-verify-result {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-glass);
  border-color: var(--jomaliq-glass-border);
  box-shadow: var(--jomaliq-shadow-soft);
}

.service-catalog-tray,
.catalog-detail-hero,
.catalog-detail-sidebar > div,
.catalog-related,
.catalog-meta,
.catalog-check-list li,
.academy-assessment fieldset,
.academy-congratulations dl div,
.academy-verify-result dl div {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-surface-raised);
  border-color: var(--jomaliq-glass-border);
}

.catalog-cta,
.catalog-final-cta,
.catalog-process__number,
.catalog-process > li > span {
  background: var(--catalog-dark-surface);
  color: #ffffff;
}

.catalog-final-cta .catalog-shell,
.catalog-site-footer .catalog-shell {
  background: transparent;
}

.catalog-final-cta h2 {
  color: #ffffff;
}

.catalog-final-cta p,
.catalog-final-cta .catalog-shell > div > span {
  color: #d9e2fb;
}

.catalog-site-footer {
  color: var(--jomaliq-blue-light);
  background-color: var(--jomaliq-night);
}

.catalog-site-footer strong {
  color: #ffffff;
}

.catalog-site-footer p {
  color: var(--text-on-dark-secondary);
}

.catalog-site-footer a {
  color: #dce6ff;
}

.catalog-site-footer a:hover,
.catalog-site-footer a:focus-visible {
  color: #ffffff;
}

/* Footers are dark editorial surfaces in every appearance mode. Keep their
 * interaction pairs local; menu and page-surface colors must not leak here. */
:is(.footer, .catalog-site-footer) {
  --footer-heading: var(--jomaliq-brand-gold);
  --footer-link: var(--jomaliq-blue-light);
  --footer-link-hover-bg: var(--jomaliq-night-muted);
  --footer-link-hover-text: var(--jomaliq-brand-white);
  --footer-link-active-bg: var(--jomaliq-night-muted);
  --footer-link-selected-bg: var(--jomaliq-brand-gold);
  --footer-link-selected-text: var(--jomaliq-night);
  --footer-link-disabled-bg: #132037;
  --footer-link-disabled-text: #aabbd7;
  --footer-focus: var(--jomaliq-brand-gold);
}
html body :is(.footer, .catalog-site-footer) a:not(.btn, .social-icon) {
  color: var(--footer-link);
  background: transparent;
  border-radius: 8px;
  opacity: 1;
}
html body :is(.footer, .catalog-site-footer) a:not(.btn, .social-icon):is(:hover, :focus-visible) {
  color: var(--footer-link-hover-text);
  background: var(--footer-link-hover-bg);
}
html body :is(.footer, .catalog-site-footer) a:not(.btn, .social-icon):active {
  color: var(--footer-link-hover-text);
  background: var(--footer-link-active-bg);
}
html body :is(.footer, .catalog-site-footer) a:not(.btn, .social-icon):is([aria-current="page"], [aria-selected="true"], [aria-pressed="true"]) {
  color: var(--footer-link-selected-text);
  background: var(--footer-link-selected-bg);
}
html body :is(.footer, .catalog-site-footer) a:not(.btn, .social-icon)[aria-disabled="true"] {
  color: var(--footer-link-disabled-text);
  background: var(--footer-link-disabled-bg);
  cursor: not-allowed;
}
html body :is(.footer, .catalog-site-footer) a:not(.btn, .social-icon) :is(span, strong, small, b, em) {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}
html body :is(.footer, .catalog-site-footer) a:focus-visible {
  outline-color: var(--footer-focus);
  outline-offset: 3px;
}

.catalog-site-footer__bottom {
  color: var(--text-on-dark-muted);
  border-color: color-mix(in srgb, var(--jomaliq-brand-gold) 30%, transparent);
}

.catalog-process > li > span {
  box-shadow: 0 0 0 6px var(--jomaliq-surface);
}

.catalog-check-list li::before {
  color: var(--jomaliq-on-success);
}

.academy-v2-page .academy-course-row__family,
.academy-catalog__count,
.academy-back,
.academy-congratulations > p:first-of-type,
.academy-certificate-intake > div > p:first-child,
.academy-verify-result__status {
  color: var(--jomaliq-link);
}

.academy-assessment fieldset label {
  color: var(--jomaliq-text-primary);
  border-color: var(--jomaliq-glass-border);
}

.academy-assessment fieldset label:has(input:checked) {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-accent-soft);
  border-color: var(--jomaliq-accent);
}

.academy-principles {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-surface-raised);
}

.academy-certificate {
  --academy-gold: var(--jomaliq-gold-ink);
  --academy-muted: var(--jomaliq-ink-muted);
  --academy-line: #d9e1ee;
}

.academy-course-row__meta {
  color: var(--jomaliq-text-secondary);
}

.academy-module-list li > span {
  color: var(--jomaliq-link);
}

.academy-form-error,
.academy-verify-result[data-status="revoked"] .academy-verify-result__status {
  color: var(--jomaliq-danger);
}

.academy-verify-result[data-status="valid"] .academy-verify-result__status {
  color: var(--jomaliq-success);
}

.academy-verify-result[data-status="error"] .academy-verify-result__status {
  color: var(--jomaliq-warning);
}

.academy-verify-result[data-status="not-found"] .academy-verify-result__status {
  color: var(--jomaliq-text-secondary);
}

.catalog-category-card p,
.catalog-service-card p,
.catalog-detail-section p,
.catalog-detail-sidebar p,
.service-catalog-card p,
.academy-course-row p,
.academy-app-section p,
.academy-objectives p,
.academy-assessment p,
.academy-lesson__body p,
.academy-result p {
  color: var(--jomaliq-text-secondary);
}

/* Fati widget and support workspace */
html[data-color-theme] {
  --support-navy: var(--jomaliq-night);
  --support-blue: var(--jomaliq-action-bg);
  --support-cyan: var(--jomaliq-blue-light);
  --support-mint: var(--jomaliq-brand-gold);
  --support-ink: var(--jomaliq-text-primary);
  --support-muted: var(--jomaliq-text-secondary);
  --support-line: var(--jomaliq-glass-border);
  --support-surface: var(--jomaliq-surface);
  --support-soft: var(--jomaliq-surface-raised);
}

.support-panel {
  border-color: var(--jomaliq-glass-border);
  background: var(--jomaliq-glass-strong);
  box-shadow: var(--jomaliq-shadow);
  backdrop-filter: blur(var(--jomaliq-blur));
  -webkit-backdrop-filter: blur(var(--jomaliq-blur));
}

.support-toolbar,
.support-status,
.support-messages,
.support-composer,
.support-empty,
.support-message-bubble,
.support-upload {
  color: var(--jomaliq-text-primary);
  background-color: var(--jomaliq-surface);
  border-color: var(--jomaliq-glass-border);
}

.support-composer textarea,
.support-button:not([data-variant="primary"]),
.support-file-label {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-input);
  border-color: var(--jomaliq-input-border);
}

.support-empty span,
.support-message-meta,
.support-status {
  color: var(--jomaliq-text-secondary);
}

html[data-color-theme] {
  --agent-navy: var(--jomaliq-night);
  --agent-blue: var(--jomaliq-action-bg);
  --agent-cyan: var(--jomaliq-blue-light);
  --agent-gold: var(--jomaliq-highlight-text);
  --agent-ink: var(--jomaliq-text-primary);
  --agent-muted: var(--jomaliq-text-secondary);
  --agent-line: var(--jomaliq-glass-border);
  --agent-surface: var(--jomaliq-surface);
  --agent-canvas: var(--jomaliq-bg);
  --agent-shadow: var(--jomaliq-shadow-soft);
}

.support-shell,
.workspace-layout,
.queue-panel,
.conversation-panel,
.agent-login__content {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-bg);
}

.queue-item,
.conversation-detail__header,
.message-stream,
.agent-composer,
.detail-section,
.note-item,
.call-item,
.attachment-item,
.agent-login__form {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-glass);
  border-color: var(--jomaliq-glass-border);
}

/* Social modules and common utility surfaces */
.social-showcase,
.social-showcase__panel,
.trust-band,
.notification,
.toast,
table,
thead,
tbody,
tr,
th,
td {
  border-color: var(--jomaliq-glass-border);
}

html[data-color-theme="dark"] .social-showcase__panel,
html[data-color-theme="dark"] .social-showcase__metric,
html[data-color-theme="dark"] .social-showcase__rating {
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-glass);
}

html[data-color-theme="dark"] .social-showcase__panel p,
html[data-color-theme="dark"] .social-showcase__metric span,
html[data-color-theme="dark"] .social-showcase__metric small,
html[data-color-theme="dark"] .social-showcase__rating small {
  color: var(--jomaliq-text-secondary);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .theme-switcher__group,
  .platform-mega__panel,
  .auth-header,
  .auth-footer,
  .auth-layout,
  .client-header,
  .support-panel,
  .home-services-carousel__frame,
  dialog,
  .modal,
  [role="dialog"] {
    background: var(--jomaliq-surface);
  }
}

@media (max-width: 1320px) {
  .site-header .navbar {
    grid-template-columns: 1fr auto auto;
  }

  .site-header .theme-switcher {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .menu-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .site-header .nav-menu {
    color: var(--jomaliq-header-text);
    background: var(--jomaliq-glass-strong);
    border-color: var(--jomaliq-header-border);
    backdrop-filter: blur(var(--jomaliq-blur));
    -webkit-backdrop-filter: blur(var(--jomaliq-blur));
  }

  .site-header .nav-menu > a,
  .site-header .platform-mega > summary {
    color: var(--jomaliq-header-text);
    border-color: var(--jomaliq-header-border);
  }

  .site-header .platform-mega__panel {
    --surface-background: #071126;
    --surface-text-primary: #ffffff;
    --surface-text-secondary: #c2cce0;
    --surface-link: #ffffff;
    --surface-link-hover: #ffffff;
    color: var(--surface-text-primary);
    background: var(--surface-background);
    border-color: rgba(171, 198, 255, 0.2);
  }

  .site-header .platform-mega__group h3 {
    color: var(--surface-text-secondary);
  }

  .site-header .platform-mega__group a,
  .site-header .platform-mega__group a:visited {
    color: var(--surface-text-primary);
  }

  .site-header .platform-mega__group a:hover,
  .site-header .platform-mega__group a:focus-visible {
    color: var(--surface-link-hover);
    background: rgba(255, 255, 255, 0.12);
  }

  .site-header .platform-mega__group a[aria-current="page"],
  .site-header .platform-mega__group a[aria-current="page"]:visited,
  .site-header .platform-mega__group a[aria-current="page"]:hover,
  .site-header .platform-mega__group a[aria-current="page"]:focus-visible {
    color: #07112b;
    background: #a9c4ff;
    border-color: #a9c4ff;
  }
}

@media (max-width: 720px) {
  .theme-switcher__button {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }

  .theme-switcher__group {
    min-height: 52px;
  }

  .auth-header__note {
    display: none;
  }

  .auth-header__inner {
    gap: 12px;
  }

  .auth-header__inner .auth-logo {
    min-width: 0;
    min-height: 44px;
    flex: 0 1 142px;
  }

  .auth-header__inner .auth-logo img {
    max-width: 100%;
    height: auto;
  }

  .auth-header__inner .theme-switcher {
    margin-left: auto;
  }

  .auth-layout {
    margin-block: 18px 32px;
    border-radius: 16px;
  }

  .client-header {
    align-items: flex-start;
  }

  .client-tools {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  html[data-color-theme] .site-header .brand--premium .brand-wordmark {
    display: none;
  }

  .site-header .navbar {
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Final WCAG 2.2 AA overrides for legacy component declarations. */

html[data-color-theme] .academy-catalog__count {
  color: var(--jomaliq-link) !important;
}

html[data-color-theme] .academy-filters select {
  color: var(--jomaliq-text-primary);
  background-color: var(--jomaliq-input);
  border-color: var(--jomaliq-input-border);
}

html[data-color-theme="dark"] .social-showcase__metric[data-social-count-state="unavailable"] strong,
html[data-color-theme="dark"] .social-showcase__rating > div > span {
  color: var(--jomaliq-text-secondary);
}

html[data-color-theme] .site-header #primary-menu > a[href$="/contact/"] {
  color: var(--jomaliq-header-text);
}

html .site-header .brand,
html .site-header .account-nav-link {
  min-width: 44px;
  min-height: 44px;
}

html[data-color-theme] a[href$="/connexion/"] {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

html .site-header .account-nav-inline {
  gap: 12px;
}

html .site-header .account-nav-link {
  color: var(--jomaliq-header-text);
}

html .site-header .account-nav-link--primary {
  color: var(--jomaliq-action-text);
  background: var(--jomaliq-action-bg);
}

html .site-header .account-nav-link--primary:hover,
html .site-header .account-nav-link--primary:focus-visible {
  color: var(--jomaliq-action-text);
  background: var(--jomaliq-action-bg-hover);
}

@media (max-width: 1500px) {
  .site-header .navbar {
    grid-template-columns: 1fr auto auto;
  }

  .site-header .theme-switcher {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .menu-toggle {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .site-header .nav-primary-cta {
    display: none;
  }

  .site-header .nav-menu,
  .site-header .nav-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    justify-content: start;
  }

  .site-header .nav-menu {
    position: fixed;
    inset: 72px 0 auto;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    align-items: stretch;
    gap: 0;
    padding: 20px clamp(20px, 5vw, 54px) 50px;
    color: var(--jomaliq-header-text);
    background: var(--jomaliq-glass-strong);
    border-top: 1px solid var(--jomaliq-header-border);
    box-shadow: var(--jomaliq-shadow-soft);
    backdrop-filter: blur(var(--jomaliq-blur));
    -webkit-backdrop-filter: blur(var(--jomaliq-blur));
  }

  .site-header.is-open .nav-menu {
    display: flex;
    flex-direction: column;
  }

  .site-header.is-open .nav-actions {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 18px;
  }

  .site-header .nav-menu > a,
  .site-header .platform-mega > summary {
    width: 100%;
    min-height: 56px;
    justify-content: space-between;
    color: var(--jomaliq-header-text);
    border-bottom: 1px solid var(--jomaliq-header-border);
    font-size: 1rem;
  }
}

@media (max-width: 620px) {
  html[data-color-theme] .back-to-top {
    right: max(18px, env(safe-area-inset-right));
  }
}



/* Editorial links have a persistent non-color cue in every theme. */
:is(.premium-site main, .catalog-page, .auth-main, .support-panel, .client-layout main, .workspace-layout) p a:not(.btn, .button, .auth-button, .social-icon) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

/* Legacy surfaces must change with their text, including when Auto resolves dark. */
.page-hero:not(.page-hero--premium) {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--surface-primary) 0 52%, var(--surface-secondary) 52% 100%);
}
.section--soft {
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface-primary));
}
.page-hero h1 { font-size: var(--type-h1); }
.page-hero p, .section__header p { max-width: 70ch; }
.page-hero .lead { font-size: var(--type-body-large); }
.form-card, .info-panel { padding: var(--space-xl); }
.form-card h2 { margin-bottom: var(--space-md); }
.form-grid { gap: var(--space-md); }
.field { gap: var(--space-xs); }
.field label { color: var(--text-primary); }

html :is(.field, .form-card, .web-search-card, .project-analyzer__form) :is(input, select, textarea) {
  color: var(--text-primary);
  background: var(--jomaliq-input);
  border-color: var(--jomaliq-input-border);
}
html :is(input, textarea)::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
html :is(input, select, textarea):disabled {
  opacity: 1;
  color: var(--text-disabled);
  background: var(--surface-secondary);
  cursor: not-allowed;
}
html :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--jomaliq-danger);
}
html .form-status { color: var(--jomaliq-success); }
html .form-status[data-state="error"] { color: var(--jomaliq-danger); }

html :is(.contact-fati-entry .eyebrow, .donation-hero .eyebrow, .section--soft .eyebrow) {
  color: var(--jomaliq-link);
}
.contact-method-list li {
  position: relative;
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--jomaliq-glass-border);
}
.contact-method-list a, .contact-method-list span:not(.contact-method-icon) {
  color: var(--text-primary);
}
.contact-method-list a { display: flex; align-items: center; min-height: 44px; }
.contact-method-list a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.contact-method-list li:has(a):hover { background: var(--surface-secondary); }
.contact-method-list li:focus-within { outline: 3px solid var(--jomaliq-focus); outline-offset: 3px; }
.contact-method-list a:hover { color: var(--jomaliq-link); }

.faq-highlight, .faq-item, .faq-metrics div {
  color: var(--text-primary);
  background: var(--surface-glass);
  border-color: var(--jomaliq-glass-border);
}
.faq-item summary, .faq-metrics strong { color: var(--text-primary); }
.faq-item p, .faq-highlight p, .faq-metrics span { color: var(--text-secondary); }
.faq-item summary:hover { background: var(--surface-secondary); }
.faq-item summary::after, .faq-item[open] summary::after {
  color: var(--jomaliq-link);
  background: var(--surface-secondary);
  border-color: var(--jomaliq-input-border);
}

.platform-pillars, .platform-fati-assist {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--platform-c) 8%, var(--surface-primary));
}
html[data-color-theme="dark"] .platform-page {
  --platform-content-accent: var(--jomaliq-link);
}
.platform-pillars .section__header p, .platform-fati-assist p { color: var(--text-secondary); }
.service-clarity-note, .project-analyzer__free-note {
  color: var(--text-primary);
  background: var(--surface-glass);
  border-color: var(--jomaliq-glass-border);
}
.service-clarity-note strong { color: var(--jomaliq-link); }

.donation-official { color: var(--text-primary); background: var(--surface-primary); }
.donation-official-copy, .donation-official-copy h2 { color: var(--text-primary); }
.donation-provider-note, .donation-official-copy > p { color: var(--text-secondary); }
.donation-qr-card, .donation-trust-card {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--jomaliq-glass-border);
}
.donation-qr-card figcaption strong, .donation-trust-card h3 { color: var(--text-primary); }
.donation-qr-card figcaption span, .donation-trust-card p { color: var(--text-secondary); }
.donation-trust-card > span { color: var(--jomaliq-link); }

html :is(.web-search-card, .fati-search-card, .fati-context-card, .fati-result, .fati-result-block, .fati-sources-panel, .fati-internal a) {
  color: var(--text-primary);
  background: var(--surface-glass);
  border-color: var(--jomaliq-glass-border);
}
html :is(.fati-search-tagline, .fati-context-card > span, .fati-internal h3, .fati-sources-panel summary) { color: var(--jomaliq-link); }
.fati-mode-card { color: var(--text-primary); background: var(--surface-elevated); }
.fati-capability-strip .fati-mode-card.is-active { background: var(--jomaliq-action-bg); }

/* Every keyboard control has a solid ring; dark editorial sections retain a light ring. */
:is(.section--dark, .footer, .footer--premium, .platform-hero, .premium-home-hero, .home-fati, .home-platforms) {
  --jomaliq-focus: var(--jomaliq-brand-gold);
}
html body :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--jomaliq-focus);
  outline-offset: 3px;
}
/* Keep focus inside segmented controls and below the FAQ's decorative stripe. */
html body .theme-switcher__button:focus-visible { outline-offset: -4px; }
html body .theme-switcher__button[data-selected="true"]:focus-visible {
  outline-color: var(--jomaliq-theme-selected-focus);
}
html body .faq-item summary:focus-visible { outline-offset: -7px; }
html body :is(.btn, .auth-button, .button, button):disabled {
  opacity: 1;
  color: var(--text-disabled);
  background: var(--surface-secondary);
  border-color: var(--jomaliq-input-border);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
html :is(.btn, .auth-button, .button):not(:disabled):active { transform: translateY(1px); }
.auth-link, .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }

/* Basic navigation remains available if the enhancement script never loads. */
html:not([data-navigation-ready]) .site-header .menu-toggle { display: none; }
@media (max-width: 1500px) {
  html:not([data-navigation-ready]) .site-header { position: relative; }
  html:not([data-navigation-ready]) .site-header .nav-menu {
    position: static;
    display: flex;
    flex-wrap: wrap;
    max-height: none;
  }
  html:not([data-navigation-ready]) .site-header .nav-menu > a { width: auto; padding: 12px; }
}

/* Reveal is progressive motion, never a precondition for reading the text. */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal--entered { animation: readable-reveal 320ms var(--ease-out) both; }
}
@keyframes readable-reveal {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

.platform-page, .platform-status { color: var(--text-primary); background: var(--surface-primary); }
.fati-core-status { color: var(--text-primary); background: var(--surface-elevated); }
.platform-related { color: var(--text-primary); background: var(--surface-secondary); }

.facebook-official__copy, .facebook-official__copy h2 { color: var(--text-primary); }
.facebook-official__copy > p { color: var(--text-secondary); }
.facebook-page-plugin-card {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--jomaliq-glass-border);
}
.facebook-page-plugin-card__prompt p, .facebook-page-plugin-card__status { color: var(--text-secondary); }
.fati-compare-option { color: var(--text-primary); }
.footer .btn--light, .cta-final .btn--light { color: #020b3a; }
.footer .btn--light:hover, .footer .btn--light:focus-visible,
.cta-final .btn--light:hover, .cta-final .btn--light:focus-visible {
  color: #ffffff;
  background: #174ee7;
}
.fati-mode-card:focus-within { outline: 3px solid var(--jomaliq-focus); outline-offset: 3px; }
body.auth-page { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
form[data-form-enhancement][inert] { display: none; }
.form-enhancement-notice {
  --jomaliq-focus: var(--jomaliq-link);
  color: var(--jomaliq-text-primary);
  background: var(--jomaliq-surface-muted);
  border: 1px solid var(--jomaliq-input-border);
  border-radius: var(--jomaliq-radius-sm);
  padding: 16px;
}
.form-enhancement-notice p { color: var(--jomaliq-text-primary); margin-top: 0; }
.form-enhancement-notice .auth-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-enhancement-notice .auth-link { color: var(--jomaliq-link); }
@media (max-width: 600px) {
  .auth-form-region, .auth-assurance { padding-inline: var(--space-md); }
}
.check-list li, .plain-list li { color: var(--text-primary); }
.check-list li::before { border-color: var(--jomaliq-link); }
.plain-list li::before { background: var(--jomaliq-link); }
.site-header .brand { min-height: 44px; }

/* Nested brand cards own their surface instead of inheriting the dark section. */
.home-brand-group {
  background: radial-gradient(ellipse at 0 0, var(--brand-glow), transparent 60%), var(--surface-elevated);
}
.home-brand-group .home-platform,
.home-brand-group .home-platform strong { color: var(--text-primary); }
.home-brand-group .home-platform small { color: var(--text-secondary); }
.home-brand-group .home-platform:hover,
.home-brand-group .home-platform:focus-visible { background: var(--surface-secondary); }
:root { --premium-success: var(--jomaliq-success); }
.donation-official .eyebrow { color: var(--jomaliq-link); }
.service-catalog-toolbar__field input,
.service-catalog-toolbar__field select {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--jomaliq-input-border);
}
.service-catalog-toolbar__field input::placeholder { color: var(--text-muted); opacity: 1; }
.service-catalog__feedback,
.service-catalog__payment-notice { color: var(--text-primary); background: var(--surface-secondary); }

/* Expand interactive targets without changing their order or visual content. */
footer .brand-footer-directory {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 24px;
}
.footer nav a,
.auth-footer nav a,
.catalog-site-footer nav a,
.footer-premium__platforms a,
.footer-premium__utility a,
.auth-footer a,
.platform-mega__group a,
.platform-mega__intro a,
.service-catalog-card__category {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}
.site-header .nav-menu > a,
.breadcrumbs a { min-width: 44px; }
.brand-slider__footer [data-brand-index] { width: 44px; min-width: 44px; }
.catalog-info-grid > div,
.catalog-info-grid > div:nth-child(even) { color: var(--text-primary); background: var(--surface-secondary); }
.catalog-breadcrumbs a,
.catalog-faq summary,
.catalog-service-card h3 a,
.catalog-site-footer a,
.fati-compare-option { min-height: 44px; display: inline-flex; align-items: center; }
.catalog-breadcrumbs a { min-width: 44px; }
.page-hero--premium { --jomaliq-focus: var(--jomaliq-brand-gold); }
.catalog-service-card a { display: inline-flex; min-height: 44px; align-items: center; }
.catalog-payment-banner .button { display: inline-flex; min-height: 44px; align-items: center; }
.home-services-carousel__fallback a { display: inline-flex; min-height: 44px; align-items: center; }
.brand-detail-back { min-height: 44px; align-items: center; }
.trust-platform-label--tiktok { background: linear-gradient(135deg, #111827, #006b68 52%, #b8003a); }
.trust-step:first-child > span {
  color: var(--jomaliq-action-text);
  background: linear-gradient(135deg, var(--jomaliq-brand-blue), var(--jomaliq-night));
}
.trust-step:nth-child(2) span { background: var(--jomaliq-action-bg); }
.client-tools .theme-switcher__button:not([data-selected="true"]) {
  color: var(--jomaliq-header-muted);
  background: transparent;
  border-color: transparent;
  border-radius: 999px;
}
.client-tools .theme-switcher__button:not([data-selected="true"]):hover {
  color: var(--jomaliq-header-text);
  background: var(--jomaliq-accent-soft);
}
.skip-link { color: var(--text-primary); background: var(--surface-elevated); }
html.support-modal-open, body.support-modal-open { overflow: hidden; }
.page-hero:not(.page-hero--premium) .eyebrow { color: var(--jomaliq-highlight-text); }
.facebook-widget-intro .eyebrow { color: var(--jomaliq-link); }
.page-hero .legal-updated {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--jomaliq-glass-border);
}
.legal-summary > div,
.legal-table > div,
.trust-brand-card,
.trust-public-card:not(.trust-public-card--profile),
.trust-step,
.facebook-page-card,
.booking-options .option-card {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--jomaliq-glass-border);
}
.legal-summary strong,
.legal-summary strong a,
.legal-note,
.legal-note strong,
.trust-brand-card h4,
.trust-brand-card h3,
.trust-public-card:not(.trust-public-card--profile) h3,
.trust-step h3,
.facebook-page-card h3,
.booking-options .option-card strong { color: var(--text-primary); }
.legal-summary span,
.trust-brand-card p,
.trust-step p,
.facebook-page-card__count,
.booking-options .option-card span { color: var(--text-secondary); }
.legal-note { background: var(--surface-secondary); }
.legal-table strong { color: var(--jomaliq-link); }
.survey-form__header .eyebrow,
.survey-insights .eyebrow,
.survey-metrics strong { color: var(--jomaliq-link); }
#trust-brands .eyebrow,
[aria-labelledby="trust-process-title"] .eyebrow { color: var(--jomaliq-link); }
.cta-final .btn--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, .1);
  border-color: #91b7ff;
  --jomaliq-focus: #91b7ff;
}
.section__header .trust-note { color: var(--text-secondary); background: var(--surface-secondary); }
.support-shell .eyebrow { color: var(--jomaliq-link); }
.support-shell .form-message.is-error { color: var(--jomaliq-danger); }
.survey-choice-group label > span {
  color: var(--text-primary);
  background: var(--jomaliq-input);
  border-color: var(--jomaliq-input-border);
}
.survey-choice-group label:has(input:checked) > span {
  color: var(--jomaliq-action-text);
  background: var(--jomaliq-action-bg);
}
.trust-logo { background: var(--surface-secondary); }
.trust-logo .brand-wordmark { color: var(--text-primary); }
.staff-shell form { display: grid; gap: var(--space-sm); }
.staff-shell form label { color: var(--text-primary); font-weight: 600; }
.staff-shell form :is(input:not([type="checkbox"], [type="radio"]), select, textarea),
#client-content > select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text-primary);
  background: var(--jomaliq-input);
  border: 1px solid var(--jomaliq-input-border);
  border-radius: 6px;
}
.staff-shell button { min-height: 44px; padding: 10px 16px; }
.staff-shell nav a,
.staff-shell > a,
#staff-content > a,
#client-content > a,
#client-content .start-section > a,
.project-row > a { display: inline-flex; align-items: center; min-height: 44px; }

/* The local outline stays on a dark surface even when the page theme is light. */
html body .home-fati [data-project-result] {
  color: var(--text-on-dark-primary);
}
html body .home-fati [data-project-result] :is(h3, p, li) {
  color: var(--text-on-dark-primary);
}
html body .home-fati [data-project-result] a {
  color: var(--link-on-dark);
}
html body .home-fati [data-project-result] a:hover {
  color: var(--link-on-dark-hover);
}
html body .home-fati [data-project-result] a:focus-visible {
  outline-color: var(--focus-on-dark);
}
@media (min-width: 1501px) {
  .site-header .nav-menu { gap: 4px 12px; flex-wrap: wrap; justify-content: flex-start; }
  .site-header .nav-menu > :is(a, .platform-mega) { flex: 0 0 auto; }
  /* Legacy shells have larger link padding; keep their menu inside its grid column. */
  .site-header:has(.brand:not(.brand--premium)) .nav-menu {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .site-header:has(.brand:not(.brand--premium)) .nav-menu > .platform-mega {
    flex: 0 0 auto;
  }
}
@media (max-width: 380px) {
  .site-header .brand--premium { width: auto; }
  .site-header .brand > span:not(.brand-mark) { display: none; }
  .site-header .brand-mark { flex-shrink: 0; }
}

/* Account access overrides follow the shared header layout rules. */
.site-header .account-nav--desktop { display: flex; grid-column: 3; grid-row: 1; justify-self: end; padding: 0; border: 0; width: auto; }
.site-header .account-nav--mobile { display: none; }
.site-header .account-menu { position: relative; }
.site-header .account-menu summary { list-style: none; cursor: pointer; }
.site-header .account-menu summary::-webkit-details-marker { display: none; }
.site-header .account-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 220px; padding: 12px; border: 1px solid var(--jomaliq-header-border); border-radius: 16px; background: var(--jomaliq-surface); color: var(--jomaliq-text-primary); box-shadow: var(--jomaliq-shadow-soft); }
.site-header .account-menu__panel .account-nav-link { color: var(--jomaliq-text-primary); justify-content: start; }
.site-header .account-menu__panel p:empty { display: none; }
.site-header .account-menu__panel p { color: var(--jomaliq-text-primary); margin: 8px 0; }
@media (min-width: 1501px) {
  .site-header .navbar { grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto auto auto; }
  .site-header .theme-switcher { grid-column: 3; grid-row: 1; }
  .site-header .account-nav--desktop { grid-column: 4; }
}
@media (min-width: 601px) and (max-width: 1500px) {
  .site-header .navbar { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .site-header .theme-switcher { grid-column: 2; }
  .site-header .menu-toggle { grid-column: 4; }
}
@media (max-width: 1500px) {
  /* An open menu must not mix its labels with the content behind it. */
  .site-header .nav-menu { background: var(--jomaliq-surface); }
}
@media (max-width: 600px) {
  .site-header .account-nav--desktop { display: none; }
  .site-header .account-nav--mobile { display: flex; flex-wrap: wrap; width: 100%; padding: 12px 0; border: 0; gap: 12px; }
  .site-header .account-nav--mobile .account-menu { width: 100%; }
  .site-header .account-nav--mobile .account-menu__panel { position: static; margin-top: 8px; min-width: 0; }
}

/* Liquid material roles: opt-in presentation only. Dense surfaces stay opaque.
 * Alpha bounds are tested against arbitrary black/white backdrops, without
 * treating backdrop blur as a contrast guarantee. */
:root, html[data-color-theme="light"] {
  --jomaliq-material-tint: 247, 250, 255;
  --jomaliq-material-alpha: 0.82;
  --jomaliq-material-solid: var(--jomaliq-paper);
  --jomaliq-material-text: var(--jomaliq-night);
  --jomaliq-material-line: #566e8c;
  --jomaliq-material-reflection: rgba(255, 255, 255, 0.85);
  --jomaliq-material-shadow: 0 12px 38px rgba(8, 26, 51, 0.14);
  --jomaliq-material-radius: 24px;
  --jomaliq-material-blur: 20px;
}
html[data-color-theme="dark"] {
  --jomaliq-material-tint: 16, 42, 76;
  --jomaliq-material-alpha: 0.82;
  --jomaliq-material-solid: var(--jomaliq-night-raised);
  --jomaliq-material-text: var(--jomaliq-brand-white);
  --jomaliq-material-line: #8aa4c5;
  --jomaliq-material-reflection: rgba(255, 255, 255, 0.24);
  --jomaliq-material-shadow: 0 12px 38px rgba(0, 0, 0, 0.25);
}

/* System colors have final precedence when the browser requests forced colors. */
@media (forced-colors: active) {
  html[data-color-theme] {
    --jomaliq-material-solid: Canvas;
    --jomaliq-material-text: CanvasText;
    --jomaliq-material-line: ButtonText;
    --jomaliq-bg: Canvas;
    --jomaliq-surface: Canvas;
    --jomaliq-surface-raised: Canvas;
    --jomaliq-surface-muted: Canvas;
    --jomaliq-glass: Canvas;
    --jomaliq-glass-strong: Canvas;
    --jomaliq-text-primary: CanvasText;
    --jomaliq-text-secondary: CanvasText;
    --jomaliq-text-muted: GrayText;
    --jomaliq-header: Canvas;
    --jomaliq-header-text: CanvasText;
    --jomaliq-header-muted: CanvasText;
    --jomaliq-link: LinkText;
    --jomaliq-link-hover: LinkText;
    --jomaliq-action-bg: Highlight;
    --jomaliq-action-bg-hover: Highlight;
    --jomaliq-action-text: HighlightText;
    --jomaliq-selected-bg: Highlight;
    --jomaliq-selected-text: HighlightText;
    --jomaliq-theme-selected-focus: HighlightText;
    --jomaliq-focus: Highlight;
    --jomaliq-input: Field;
    --jomaliq-input-border: CanvasText;
  }
  html body :is(a, button, summary, input, select, textarea) {
    forced-color-adjust: auto;
  }
  .theme-switcher__group, .theme-switcher__button, .platform-mega__panel,
  .auth-layout, .support-panel, .premium-home-hero, .footer, .catalog-site-footer {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
  html body :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid Highlight;
  }
  html body .theme-switcher__button[data-selected="true"] {
    color: HighlightText;
    background: Highlight;
    outline: 2px solid CanvasText;
    outline-offset: -2px;
  }
  :is(input, textarea):-webkit-autofill {
    -webkit-text-fill-color: FieldText;
    box-shadow: none;
  }
}

/* BEGIN JOMALIQ LOGO SURFACE CONTRACT
 * Remove only the artwork's own decoration. Navbar, form, modal, footer and
 * certificate surfaces keep their normal backgrounds and keyboard outlines.
 * The current opaque source images remain blocked pending official masters;
 * CSS does not remove a background baked into their pixels.
 */
html body img[src*="/jomaliq-logo-"] {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  mix-blend-mode: normal;
  clip-path: none;
  object-fit: contain;
}
html body :is(.brand-mark, .auth-logo, .hero__media--logo, .project-logo, .trust-logo, .platform-lockup, .academy-certificate__seal):has(> img[src*="/jomaliq-logo-"]) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mix-blend-mode: normal;
  clip-path: none;
  overflow: visible;
}
html body :is(.brand-mark, .hero__media--logo, .academy-certificate__seal):has(> img[src*="/jomaliq-logo-"])::before,
html body :is(.brand-mark, .hero__media--logo, .academy-certificate__seal):has(> img[src*="/jomaliq-logo-"])::after {
  content: none;
  display: none;
}
/* END JOMALIQ LOGO SURFACE CONTRACT */

/* Approved technical cutouts, 2026-11-13. Original artwork files and the
 * surface contract above remain intact. Exclude historical certificates. */
html body img[src="/assets/img/jomaliq-logo-mark-light.png"]:not(.academy-certificate img),
html body img[src="/assets/img/jomaliq-logo-mark-light.webp"]:not(.academy-certificate img) {content:url("/assets/img/jomaliq-logo-mark-blue-transparent.png");}
html body img[src="/assets/img/jomaliq-logo-mark.png"]:not(.academy-certificate img),
html body img[src="/assets/img/jomaliq-logo-mark.webp"]:not(.academy-certificate img) {content:url("/assets/img/jomaliq-logo-mark-transparent.png");}
html body img[src="/assets/img/jomaliq-logo-wordmark.png"]:not(.academy-certificate img) {content:url("/assets/img/jomaliq-logo-wordmark-blue-transparent.png");}
html body img[src="/assets/img/jomaliq-logo-wordmark-dark.png"]:not(.academy-certificate img),
html[data-color-theme="dark"] body .auth-header .auth-logo img {content:url("/assets/img/jomaliq-logo-certificate-transparent.png");}
html body img[src="/assets/img/jomaliq-logo-stack.png"]:not(.academy-certificate img),
html body img[src="/assets/img/jomaliq-logo-stack.webp"]:not(.academy-certificate img) {content:url("/assets/img/jomaliq-logo-stack-transparent.png");}

/* Next Generation accents. Use the solid action color underneath gradients. */
:root {
  --next-action: #0755ce;
  --next-action-hover: #0044b3;
  --next-navy: #061225;
  --next-control-line-night: #7495bf;
  --next-public-violet: #332360;
  --next-public-glow: #143d74;
  --next-fati-glow: #1d4576;
  --next-navy-glow: #1a3e6a;
  --next-cyan: #7aeaff;
  --next-focus-night: #7ce9ff;
  --next-text-night: #f4f8ff;
  --next-muted-night: #c1d4eb;
  --next-line-night: #3c5a83;
  --next-panel-radius: 20px;
  --next-control-radius: 12px;
  --next-spacing: clamp(16px, 2.4vw, 32px);
}
