/* The light theme (beige, the owner's pick): <html data-scheme="light">, set by lib/theme.js (the sun/moon button, else
   the device's setting). It only changes the theme settings defined in base.css (dark values there); the green hero,
   covers, pictures, the mini player and the video stage stay dark in both. Warm beige pages, a lighter beige for windows. */
:root[data-scheme="light"] {
  --accent-ink: #855a0e; --accent-ink-soft: #855a0e; --error-ink: #b3261e;
  --card-dim: rgb(var(--fg) / .04); --on: var(--green-700); --on-ink: #fff; --cta-bg: var(--green-700); --cta-ink: #fff;
  --page: #f2eadf; --raised: #fbf7f1; --bill: #e8ddcd; --bill-rgb: 232 221 205; --bar-bg: rgba(242, 234, 223, .92);
  --fg: 52 38 24; --text: #2b2219; --text-rgb: 43 34 25; --text-strong: #1d160f;
  color-scheme: light;
}

/* What the settings alone cannot change */
/* The logo is near-white: dark green on the page, as it is on the green hero */
:root[data-scheme="light"] .brand img, :root[data-scheme="light"] .dk-logo img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(40%) saturate(1100%) hue-rotate(118deg) brightness(90%); }
:root[data-scheme="light"] .hero .brand img { filter: none; }
/* The bottom bar's light glass (as on the light pages) */
:root[data-scheme="light"] body[data-theme="dark"] .tabs {
  --glass-veil: linear-gradient(180deg, rgba(250, 250, 252, .74), rgba(238, 238, 242, .66));
  --glass-rim: rgba(255, 255, 255, .8); --glass-solid: rgba(246, 246, 248, .97);
  --tab-ink: #141816; --tab-on: #a8781f; --tab-halo: none;
  --lens-fill: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .12)); --lens-rim: rgba(255, 255, 255, .95);
}
/* Telegram's sign-in button: white vanishes on a white window, so green */
:root[data-scheme="light"] .login-dlg .tg-btn { background: var(--green-700); color: #fff; }
:root[data-scheme="light"] .login-dlg .tg-btn .ic { color: #fff; }
/* Softer shadows on a light page */
:root[data-scheme="light"] .nf-bill { box-shadow: 0 12px 30px rgb(var(--fg) / .14); }
:root[data-scheme="light"] .sheet-panel { box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); }
:root[data-scheme="light"] .bc-card, :root[data-scheme="light"] .ab-features li, :root[data-scheme="light"] .ab-stats li,
:root[data-scheme="light"] .ab-more { box-shadow: 0 1px 2px rgb(var(--fg) / .06); }
/* The small text on «عن المنصة»'s cards: a touch darker on beige, to read at 4.5:1 */
:root[data-scheme="light"] .ab-features p { color: rgb(var(--fg) / .74); }

/* The sun/moon button: a sun on the dark theme (to go light), a moon on the light one (to go dark) */
.scheme-btn .ic + .ic, :root[data-scheme="light"] .scheme-btn .ic:first-child { display: none; }
:root[data-scheme="light"] .scheme-btn .ic + .ic { display: block; }
