/* ============================================================
   GLV THEME PICKER — added 2026-11-19 (JJ order: visitors pick
   Night / Day / Automatic). Presentation only; no copy changes.
   Night = the site's original dark design, untouched.
   Day   = a true light edition of the same design.
   Auto  = JJ's car rule: DARK by day (06:00–18:59 local),
           LIGHT by night (19:00–05:59 local).
   ============================================================ */

/* ---------- The picker control ---------- */
.theme-picker {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line, rgba(205,164,95,.34)); border-radius: 999px;
  background: rgba(10,9,7,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0; vertical-align: middle;
}
.theme-opt {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--muted, #b9aa93); font-family: Georgia, 'Times New Roman', serif;
  font-size: .66rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  line-height: 1; transition: background .25s ease, color .25s ease;
}
.theme-opt svg { width: 13px; height: 13px; flex-shrink: 0; }
.theme-opt:hover, .theme-opt:focus-visible { color: var(--gold-pale, #efd5a0); outline: none; }
.theme-opt[aria-pressed="true"] { background: var(--gold, #cda45f); color: #171106; }
.theme-opt[aria-pressed="true"]:hover, .theme-opt[aria-pressed="true"]:focus-visible { color: #171106; }

/* Main site header: seat the picker at the right of the brand row */
.site-head .theme-picker { position: absolute; top: 20px; right: 0; z-index: 130; }
@media (max-width: 900px) {
  /* Below the fixed header bar, clear of the brand row and the menu button */
  .site-head .theme-picker { top: calc(100% + 8px); bottom: auto; right: 12px; }
  .site-head .theme-opt { padding: 6px 8px; }
  .site-head .theme-opt span { display: none; }
}
/* Pages without a header picker slot: a quiet fixed pill, top right */
.theme-picker--fixed { position: fixed; top: 14px; right: 14px; z-index: 1400; }

/* ---------- DAY (light) theme ---------- */
html[data-theme="light"] {
  color-scheme: light;
  --black: #f5efe1;
  --black-soft: #eee5d0;
  --panel: #fffdf6;
  --gold: #a37f36;
  --gold-pale: #7d5c2b;
  --gold-deep: #5f451f;
  --ink: #2b2115;
  --body: #43382a;
  --muted: #6f6152;
  --faint: #8a7a63;
  --line: rgba(125,92,43,.38);
  --line-strong: rgba(125,92,43,.62);
  --shadow: 0 28px 90px rgba(93,72,35,.20);
  --fmt-bg: #fffdf6;
  --fmt-ink: #2b2115;
  --fmt-accent: #a37f36;
}
html[data-theme="light"] body { background: #f5efe1; }
html[data-theme="light"] ::selection { background: rgba(163,127,54,.35); color: #2b2115; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #e7ddc8; }

/* Picker in light mode */
html[data-theme="light"] .theme-picker { background: rgba(255,253,247,.78); border-color: rgba(125,92,43,.42); }
html[data-theme="light"] .theme-opt { color: #6f6152; }
html[data-theme="light"] .theme-opt:hover, html[data-theme="light"] .theme-opt:focus-visible { color: #5f451f; }
html[data-theme="light"] .theme-opt[aria-pressed="true"] { background: #a37f36; color: #fffaf0; }
html[data-theme="light"] .theme-opt[aria-pressed="true"]:hover { color: #fffaf0; }

/* Header / navigation surfaces */
html[data-theme="light"] .site-head { background: #f5efe1; }
html[data-theme="light"] .nav-toggle { background: rgba(255,253,247,.9); }
html[data-theme="light"] .mobile-nav { background: rgba(250,246,236,.98); }
html[data-theme="light"] .mobile-nav a.active,
html[data-theme="light"] .mobile-nav a:hover,
html[data-theme="light"] .mobile-nav a:focus-visible { background: #e9dec3; }
html[data-theme="light"] .lang-menu { background: #fffdf6; box-shadow: 0 30px 60px rgba(93,72,35,.28); }
html[data-theme="light"] .lang-search { background: #f1ead9; color: #43382a; }
html[data-theme="light"] .pen-lang-menu { background: #fffdf6; }

/* Sections & panels with hardcoded dark grounds */
html[data-theme="light"] .how-section { background: #eee5d0; }
html[data-theme="light"] .standard { background: #fffdf6; }
html[data-theme="light"] footer { background: #ece2c9; }
html[data-theme="light"] .contact-form-shell { background: #fbf7ec; }
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea { background: #fffef9; color: #43382a; }
html[data-theme="light"] .retainer-note,
html[data-theme="light"] .form-confirmation { background: #f1e9d4; }
html[data-theme="light"] .retainer-note { color: #43382a; }
html[data-theme="light"] .form-status.error { color: #b3542e; }
html[data-theme="light"] .footer-statement { color: #6f6152; }
html[data-theme="light"] .footer-links a { color: #5f4a26; }
html[data-theme="light"] .region-group .region-sig,
html[data-theme="light"] .region-group.hl p { color: #8a6a2a; }
html[data-theme="light"] .drv-items li { background: #fbf7ec; }
html[data-theme="light"] .mark-panel { background: #fffdf6; }
html[data-theme="light"] .shop-search { background: #fffef9; color: #43382a; }

/* Regions globe stage */
html[data-theme="light"] .regions-map-wrap { background: #efe8d6; }
html[data-theme="light"] .regions-map { background: #f8f3e6; }
html[data-theme="light"] .map-legend .sw.plain { background: #fffdf6; }

/* Media wells keep a deep ground so footage sits as designed */
html[data-theme="light"] .fleet-item .item-video,
html[data-theme="light"] .addon .item-video { background: #14120e; }

/* Penelope */
html[data-theme="light"] .pen-panel { background: rgba(255,253,247,.97); }
html[data-theme="light"] .pen-chat-head { background: rgba(247,242,229,.9); }
html[data-theme="light"] .msg.pen { background: #f1e9d4; }
html[data-theme="light"] .pen-input input,
html[data-theme="light"] .pen-input button.pen-mic { background: #f7f2e5; color: #43382a; }
html[data-theme="light"] .pen-toggle { background: #fffdf6; }
html[data-theme="light"] .pen-avatar { background: #fffdf6; }

/* Opening intro — light edition; the film itself stays a cinema panel */
html[data-theme="light"] .intro { background: #f5efe1; }
html[data-theme="light"] .intro-frame { mix-blend-mode: normal; }

/* Ambient sound pill */
html[data-theme="light"] .glv-sound { background: rgba(255,253,247,.82); border-color: rgba(125,92,43,.5); color: #7d5c2b; }
html[data-theme="light"] .glv-sound:hover,
html[data-theme="light"] .glv-sound:focus-visible { border-color: #7d5c2b; color: #5f451f; }

/* Format welcome gate */
html[data-theme="light"] #fmt-gate { background: rgba(74,60,32,.42); }
html[data-theme="light"] #fmt-switch { background: rgba(255,253,247,.88); color: #43382a; border-color: rgba(125,92,43,.45); }

/* Over-media contexts keep the original night palette —
   footage is unchanged, and its captions were designed for it */
html[data-theme="light"] .hero {
  --black: #050505; --black-soft: #090907; --panel: #0e0d0a;
  --gold: #cda45f; --gold-pale: #efd5a0; --gold-deep: #7d5c2b;
  --ink: #efd5a0; --body: #d9cebb; --muted: #b9aa93; --faint: #9d907e;
  --line: rgba(205,164,95,.34); --line-strong: rgba(230,190,116,.62);
}
html[data-theme="light"] .hero { background: #101010; color: #e9dfc9; }
html[data-theme="light"] .desktop-nav a { color: #5f4a26; }
html[data-theme="light"] .glv-menu a { color: #5f4a26; }
html[data-theme="light"] .glv-menu a.glv-cta { color: #7d5c2b; border-color: rgba(125,92,43,.62); }
html[data-theme="light"] .reel-cap,
html[data-theme="light"] .social-film {
  --gold: #cda45f; --gold-pale: #efd5a0; --ink: #efd5a0;
  --body: #d9cebb; --muted: #b9aa93; --faint: #9d907e;
  --line: rgba(205,164,95,.34); --line-strong: rgba(230,190,116,.62);
}
