/* =====================================================================
   Light interface — for members who choose Light, or Follow system on a
   device set to light. Same DLX palette: Rapid Red stays the accent and
   fills; neutral greys so photos are judged on their own colour.
   Kept dark on purpose, in both modes:
     · the top bar and the home masthead — the white globe may only sit
       on black or Gallant Gray (Brand Bible), so its band stays black;
     · the photo/video/PDF viewer — photo tools view images on dark.
   theme.js sets <html data-mode="light"> (from data-theme) before paint.
   ===================================================================== */
html[data-mode="light"] body, html[data-mode="light"] body.home-page {
  --bg: #f3f3f2; --panel: #ffffff; --raised: #e8e8e7; --line: #d5d5d3; --well: #e2e2e0;
  --field: #ffffff;
  --text: #1a1a1a; --muted: #5c5c5c;
  --focus: #8A191B;                      /* Rapid Red itself reads on white (9:1) */
  --red-text: #8A191B; --red: #B3262A;
  --yellow: #967C51;                     /* Desert Tan: stars that still show on white */
  color-scheme: light;
}
/* the black bands keep the dark tokens, so everything inside them stays as it is today */
html[data-mode="light"] .topbar, html[data-mode="light"] .masthead {
  --bg: #161616; --panel: #1c1c1c; --raised: #2a2a2a; --line: #353535; --well: #121212; --field: #121212;
  --text: #f2f2f2; --muted: #a8a8a8; --focus: #C8393C; --red-text: #E0605B; --red: #C8393C; --yellow: #BFA06A;
  color: var(--text); color-scheme: dark;
}
html[data-mode="light"] body.home-page .topbar { --line: #2a2a2a; }
html[data-mode="light"] .loupe { color-scheme: dark; }

/* surfaces that were drawn with fixed dark greys */
html[data-mode="light"] .card { background: #fff; border-color: var(--line); }
html[data-mode="light"] .card:hover { border-color: #a9a9a7; }
html[data-mode="light"] .text-btn:not(.primary):hover { border-color: #a9a9a7; }
html[data-mode="light"] .s-tabs button[aria-pressed="true"] { color: #fff; }
html[data-mode="light"] .s-tabs button[aria-pressed="true"] .n { color: #d0d0d0; }
html[data-mode="light"] .s-seg button { color: var(--muted); }
html[data-mode="light"] .s-seg button[aria-checked="true"] { background: var(--text); color: #fff; }
html[data-mode="light"] .s-card .cap .s-stars, html[data-mode="light"] .s-rate-stars button.on,
html[data-mode="light"] .s-rate-stars:hover button, html[data-mode="light"] .s-team { color: var(--yellow); }
html[data-mode="light"] .team-dist i::after { background: var(--yellow); }
html[data-mode="light"] .fav-toggle.on { color: var(--red-text); }
html[data-mode="light"] .logo-thumb:not([data-bg="light"]) { background: #1c1c1c; }
html[data-mode="light"] .email-cell a { text-decoration-color: #b0b0b0; }
html[data-mode="light"] .ctx-menu, html[data-mode="light"] .bell-pop { box-shadow: 0 8px 24px rgba(0,0,0,.16); }
html[data-mode="light"] .access-dialog::backdrop { background: rgba(0,0,0,.35); }
html[data-mode="light"] .section-tile, html[data-mode="light"] .tile-img { background: var(--well); }
/* text fields and menus: white on the light page (the dark bands keep their own --field) */
html[data-mode="light"] :is(select, .sidebar input[type=search], .kw-add input, .dl select,
  .settings input:not([type=checkbox]):not([type=radio]):not(.switch), .settings select, .auth-card input) { background: var(--field); }
