/* Site-wide color theme. Components may refine these semantic surfaces locally. */
:root {
  color-scheme: light;
  /* Solid button fill and label (B1): the dark teal that --lb-teal-dark is in light mode would be a pale fill in dark mode. */
  --lb-btn-bg: #05635a;
  --lb-btn-bg-hover: #04463f;
  --lb-btn-fg: #fff;
  --lbayk-theme-canvas: #fff;
  --lbayk-theme-surface: #fff;
  --lbayk-theme-raised: #f5f8f8;
  --lbayk-theme-ink: #162b3a;
  --lbayk-theme-muted: #52636d;
  --lbayk-theme-line: #dce5e8;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --lb-btn-bg: #80d9ca;
  --lb-btn-bg-hover: #a4e6db;
  --lb-btn-fg: #06302b;
  --so-body-bg: #0b151c;
  --so-body-text: #e6f0f2;
  --so-cloud: #162633;
  --so-ash: #263b48;
  --so-stone: #9aadb8;
  --so-charcoal: #c5d1d6;
  --so-near-black: #e6f0f2;
  --so-white: #12202a;
  --so-gray-50: #12202a;
  --so-gray-100: #162633;
  --so-gray-200: #263b48;
  --so-gray-300: #344b59;
  --so-gray-500: #9aadb8;
  --so-gray-700: #d1dce1;
  --so-gray-900: #f2f6f7;
  --so-header-bg: #101d26;
  --so-footer-bg: #101d26;
  --so-footer-text: #a8bac3;
  --lbayk-theme-canvas: #0b151c;
  --lbayk-theme-surface: #12202a;
  --lbayk-theme-raised: #162633;
  --lbayk-theme-ink: #e6f0f2;
  --lbayk-theme-muted: #a3b5bf;
  --lbayk-theme-line: #2a414f;
  --lbayk-canvas: #0b151c;
  --lbayk-white: #12202a;
  --lbayk-ink: #e6f0f2;
  --lbayk-muted: #a3b5bf;
  --lb-base-ink: #e6f0f2;
  --lb-ink: #e6f0f2;
  --lb-teal: #40b6a7;
  --lb-teal-dark: #80d9ca;
  --lb-muted: #a3b5bf;
  --lb-line: #2a414f;
  --lb-mint: #183a3a;
  --lb-pale: #14252e;
}
/* Lbayk shared UI layer: dark values for the --lb-ui-* tokens (light values: lbayk-ui-tokens.css).
   Contrast checked on the dark surface: status -fg on -bg >= 5.7:1, muted text 7.8:1. */
html[data-theme="dark"] {
  --lb-ui-surface: #12202a;
  --lb-ui-surface-raised: #162633;
  --lb-ui-line: #2a414f;
  --lb-ui-line-strong: #6c8797;
  --lb-ui-accent: #40b6a7;
  --lb-ui-accent-hover: #5fd0c0;
  --lb-ui-accent-contrast: #0b151c;
  --lb-ui-accent-soft: #183a3a;
  --lb-ui-accent-text: #7fd6c8;
  --lb-ui-danger-solid: #f97066;
  --lb-ui-danger-solid-fg: #0b151c;
  --lb-ui-danger-solid-hover: #fda29b;
  --lb-ui-focus: #7fb0ff;
  --lb-ui-focus-halo: rgb(127 176 255 / 0.3);
  --lb-ui-edge-shadow: rgb(0 0 0 / 0.55);
  --lb-ui-shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --lb-ui-shadow-2: 0 4px 12px rgb(0 0 0 / 0.45);
  --lb-ui-shadow-3: 0 12px 32px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.04);
  --lb-ui-success-fg: #7fd6a7;
  --lb-ui-success-bg: #233d3e;
  --lb-ui-success-line: #437262;
  --lb-ui-warning-fg: #f2b872;
  --lb-ui-warning-bg: #363836;
  --lb-ui-warning-line: #77644a;
  --lb-ui-error-fg: #ff9d92;
  --lb-ui-error-bg: #38343b;
  --lb-ui-error-line: #7d5859;
  --lb-ui-info-fg: #8fb8ff;
  --lb-ui-info-bg: #26384c;
  --lb-ui-info-line: #4a648a;
  --lb-ui-neutral-fg: #a3b5bf;
  --lb-ui-neutral-bg: #293842;
  --lb-ui-neutral-line: #53636d;
}
html[data-theme="dark"] body { background: var(--lbayk-theme-canvas); color: var(--lbayk-theme-ink); }
html[data-theme="dark"] a:not(.lb-eg-button):not(.so-login-social):not(.lb-ui-btn) { color: #85d8cb; }
html[data-theme="dark"] a:not(.lb-eg-button):not(.so-login-social):not(.lb-ui-btn):hover { color: #b6f0e5; }
html[data-theme="dark"] :is(.lb-eg-button--outline,.so-theme-toggle) { color: #9fe5d7 !important; }
html[data-theme="dark"] :is([class*="__card"],[class$="-card"],.card,.views-row,.view-content article,.lb-eg-category,.lb-market-filters,.lb-eg-request-card,.lb-eg-quote-card,.lb-eg-ticket-card,.lb-eg-section-card) { background-color: var(--lbayk-theme-surface); border-color: var(--lbayk-theme-line); color: var(--lbayk-theme-ink); }
html[data-theme="dark"] :is(.lb-eg-brand,.lb-eg-brand__name,.lb-wordmark-ar,.lb-storefront__title,.lb-storefront__product-link,.lb-eg-category__title,.lb-eg-category h2,.lb-eg-category h3) { color: var(--lb-teal-dark); }
html[data-theme="dark"] :is(.lb-storefront__meta,.lb-storefront__rating,.lb-storefront__product-price,.lb-storefront__more,.lb-eg-brand small,.lb-eg-category p,.so-subtitle,.so-muted,.text-muted) { color: var(--lbayk-theme-muted); }
html[data-theme="dark"] :is(.lb-eg-button--outline:hover) { background-color: #1b3537; color: #b6f0e5 !important; }
html[data-theme="dark"] :is(hr,.so-divider,.lb-eg-divider) { border-color: var(--lbayk-theme-line); }
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,legend,summary,small,figcaption,blockquote) { color: inherit; }
html[data-theme="dark"] :is(input,select,textarea,button) { color-scheme: dark; }
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { background-color: #0f1c25; border-color: #2a414f; color: #e6f0f2; }
html[data-theme="dark"] ::placeholder { color: #91a7b3; opacity: 1; }
html[data-theme="dark"] :is(.so-card,.so-service-card,.so-content-card,.so-login-card,.so-a11y-panel,.so-search-popup__content,.so-account__menu,.so-notification-bell__dropdown,.so-notification-bell__dropdown,.lb-portal-card,.lb-eg-header-popover__panel,.lb-storefront__store,.lb-storefront__price,.lb-eg-card,.lb-eg-panel,.lb-marketplace-card,.views-view-grid .views-row,.view-content .views-row,.view-content article,.region-sidebar-first) { background-color: var(--lbayk-theme-surface); border-color: var(--lbayk-theme-line); color: var(--lbayk-theme-ink); }
html[data-theme="dark"] :is(.so-a11y-header,.so-a11y-section,.so-a11y-tool,.so-a11y-select,.so-a11y-stepper__value,.so-login-card__form,.so-search-popup__form,.lb-eg-header-popover__panel,.lb-eg-menu-panel,.lb-eg-mobile-menu,.lb-portal-section,.lb-eg-section) { background-color: var(--lbayk-theme-raised); border-color: var(--lbayk-theme-line); color: var(--lbayk-theme-ink); }
html[data-theme="dark"] :is(.so-header,.so-topbar,.lb-eg-header,.lb-eg-header__inner,.lb-eg-nav,.lb-eg-footer,.so-footer,.so-footer__bottom,.so-login-footer) { background-color: #101d26; color: #e6f0f2; border-color: var(--lbayk-theme-line); }
html[data-theme="dark"] :is(.so-header a,.so-nav a,.lb-eg-header a,.lb-eg-nav a,.so-footer a,.lb-eg-footer a) { color: inherit; }
html[data-theme="dark"] :is(table,thead,tbody,tr,th,td) { border-color: var(--lbayk-theme-line); }
html[data-theme="dark"] :is(th,.views-table thead,.views-table tr:nth-child(even),.so-table th) { background-color: #162633; color: #e6f0f2; }
/* govsa-compliance.css stripes every table light grey (even rows) and tints hovered rows light green.
   Dark text on those fills was unreadable, so dark mode gets its own stripe and hover. Tables that opt in
   to .lb-ui-table keep their own transparent rows. */
html[data-theme="dark"] table:not(.lb-ui-table) tbody tr:nth-child(even) { background-color: var(--lb-ui-surface-raised); }
html[data-theme="dark"] table:not(.lb-ui-table) tbody tr:hover { background-color: var(--lb-ui-accent-soft); }
html[data-theme="dark"] .lb-owner__change-history tbody tr:nth-child(even) > td { background-color: var(--lb-ui-surface-raised); }
/* Dark mode, filled controls: the generic dark link colour above (light teal, 0,3,2) outranks the
   owner buttons' own label colour, which left light-teal text on a light-teal fill (1.13:1). A solid
   fill takes its own dark label back. */
html[data-theme="dark"] .lb-owner :is(a.lb-owner__button:not(.lb-owner__button--secondary), a.lb-owner-fintab.is-active, a.lb-owner-fintab[aria-current="page"], a.lb-owner__order-filter.is-active):is(:link, :visited, :hover, :focus-visible) { color: var(--lb-owner-solid-fg); }
@media (max-width: 48em) {
  html[data-theme="dark"] .lb-owner__nav a.lb-owner__nav-link[aria-current="page"]:is(:link, :visited, :hover, :focus-visible) { color: var(--lb-owner-solid-fg); }
}
/* Dark mode, selected tab of the customer pages: the generic dark link colour (0,4,2 / 0,5,2 on hover) outranked the tab's own
   label colour and left light teal on the mid-teal fill (1.50:1). The fill takes the dark ink back (7.4:1). */
html[data-theme="dark"] .lb-customer-tabs a.is-active.is-active:is(:link, :visited, :hover, :focus-visible) { color: var(--lb-ui-accent-contrast); }
html[data-theme="dark"] a.lb-customer-dashboard__button.lb-customer-dashboard__button:is(:link, :visited, :hover, :focus-visible) { color: var(--lb-btn-fg); }
/* Dark mode, coral buttons: the coral fill is the same in both themes, so its label stays dark ink (5.4:1); the hover fill is in style.css. */
html[data-theme="dark"] a.button.button--secondary.button--secondary:is(:link, :visited, :hover, :focus-visible) { color: var(--lb-on-coral, #162b3a); }
/* Dark mode, "explore services" button of the sign-in header (login.css keeps its dark teal fill): the generic dark link colour left light teal on it (4.3:1); the fill takes its white label back (7.2:1). */
html[data-theme="dark"] .lb-auth-header a.lb-auth-explore.lb-auth-explore:is(:link, :visited, :hover, :focus-visible) { color: #fff; }
/* Dark mode: the green "in stock" label (lbayk-product.css reads --lb-success, undefined elsewhere) uses the light green on the dark green tint. */
html[data-theme="dark"] { --lb-success: var(--lbayk-dk-text-green, #86efac); }
/* The red "external website" badge: the light-mode red is dark on a dark tint, so the label is lightened to 4.5:1 or more. */
html[data-theme="dark"] .lb-eg-badge { color: #ff9a86; }
/* The Trial badge keeps its yellow fill, so its label stays dark ink; the avatar's light-teal fill takes dark initials. */
html[data-theme="dark"] .lb-trial-badge { color: #162b3a; border-color: #162b3a; }
html[data-theme="dark"] .lb-portal-page .lb-eg-account-menu__avatar { background-color: var(--lb-teal-dark); color: #0b151c; }
html[data-theme="dark"] :is(.messages,.alert,.status-message,.so-alert,.lb-eg-alert) { background-color: #162633; border-color: var(--lbayk-theme-line); color: #e6f0f2; }
html[data-theme="dark"] :is(.so-theme-toggle,.so-floating-actions__btn--theme) { background: #12202a; border-color: #3b5665; color: #f5d889; }
html[data-theme="dark"] :is(.so-theme-toggle,.so-floating-actions__btn--theme):hover { background: #1b303d; }
.so-theme-toggle { color: #825f10; }
@media (prefers-reduced-motion: no-preference) { body, body :is(.so-header,.so-footer,.lb-eg-header,.lb-eg-footer,.so-card,.lb-storefront__store) { transition: background-color .18s ease, color .18s ease, border-color .18s ease; } }
html[data-theme="dark"] :is(.lb-eg-main,.lb-home-phone,.lb-home-store) { background-color: var(--lbayk-theme-canvas); border-color: var(--lbayk-theme-line); color: var(--lbayk-theme-ink); }
html[data-theme="dark"] .so-login-social { background-color: #162633; border-color: #2a414f; color: #e6f0f2; }
html[data-theme="dark"] .so-login-social:hover { background-color: #1b303d; color: #fff; }

/* The Egypt storefront has several locally-styled surfaces that do not use
   the shared card classes above. Keep its search, category and quick-action
   controls readable when the global theme preference is dark. */
html[data-theme="dark"] :is(.lb-portal-hero,.lb-portal-search,.lb-portal-hero-aside,.lb-ux-context,.lb-ux-guide,.lb-portal-business,.lb-portal-empty,.lb-request-chat,.lb-request-review) {
  background-color: var(--lbayk-theme-surface);
  border-color: var(--lbayk-theme-line);
  color: var(--lbayk-theme-ink);
}
html[data-theme="dark"] :is(.lb-portal-search,.lb-ux-context,.lb-request-chat,.lb-request-review) :is(input,select,textarea) {
  background-color: #0f1c25;
  border-color: #526977;
  color: #e6f0f2;
}
html[data-theme="dark"] :is(.lb-portal-search,.lb-ux-context) label,
html[data-theme="dark"] :is(.lb-portal-section-head p,.lb-portal-business p,.lb-portal-card p,.lb-portal-hero-top p,.lb-portal-hero-aside span,.lb-eg-note,.lb-eg-location,.lb-eg-location--mobile) {
  color: var(--lbayk-theme-muted);
}
html[data-theme="dark"] .lb-ux-filters :is(button,a):not([aria-pressed="true"]),
html[data-theme="dark"] .lb-eg-header__quick-actions .lb-eg-header-popover > summary,
html[data-theme="dark"] .lb-eg-header__actions .lb-eg-quick-icon,
html[data-theme="dark"] .lb-eg-header__actions .lb-eg-menu-toggle {
  background-color: #162633;
  border-color: #526977;
  color: #e6f0f2;
}
html[data-theme="dark"] .lb-eg-header__quick-actions .lb-eg-header-popover > summary:hover,
html[data-theme="dark"] .lb-eg-header__actions :is(.lb-eg-quick-icon,.lb-eg-menu-toggle):hover {
  background-color: #203541;
  color: #fff;
}
html[data-theme="dark"] .lb-ux-filters button[aria-pressed="true"] {
  background-color: #087f72;
  border-color: #40b6a7;
  color: #fff;
}

/* BUG-247: dark-mode values for the semantic tokens that the component
   stylesheets now read as var(--lbayk-dk-*, <original light value>). They are
   declared for dark only: in light mode the variable is undefined, so the
   fallback (the original colour) applies and light rendering is unchanged.
   White surfaces use the existing --lbayk-theme-surface token (white in light). */
html[data-theme="dark"] {
  --lbayk-dk-raised: #162633;
  --lbayk-dk-sunken: #1d3140;
  --lbayk-dk-line: #2a414f;
  --lbayk-dk-ink: #e6f0f2;
  --lbayk-dk-muted: #a3b5bf;
  --lbayk-dk-glass: rgba(18, 32, 42, 0.94);
  --lbayk-dk-tint-green: #12301f;
  --lbayk-dk-tint-teal: #16393a;
  --lbayk-dk-tint-blue: #14293f;
  --lbayk-dk-tint-red: #3a1a1d;
  --lbayk-dk-tint-amber: #3a2c12;
  --lbayk-dk-tint-purple: #2a1d40;
  --lbayk-dk-tintline-green: #1f5a37;
  --lbayk-dk-tintline-teal: #24605f;
  --lbayk-dk-tintline-blue: #25497a;
  --lbayk-dk-tintline-red: #6b2a2f;
  --lbayk-dk-tintline-amber: #6b5314;
  --lbayk-dk-tintline-purple: #4b3580;
  --lbayk-dk-text-green: #86efac;
  --lbayk-dk-text-teal: #85d8cb;
  --lbayk-dk-text-blue: #93c5fd;
  --lbayk-dk-text-red: #fca5a5;
  --lbayk-dk-text-amber: #fcd34d;
  --lbayk-dk-text-purple: #c4b5fd;
}
/* Decorative light gradients that cannot be expressed with a single token. */
html[data-theme="dark"] .lb-auth-page { background: var(--lbayk-theme-canvas); }
html[data-theme="dark"] .lb-pdp-art { background: radial-gradient(circle at 30% 20%, var(--lbayk-theme-raised) 0, var(--lb-mint) 55%, var(--lbayk-theme-surface) 100%); }
