/* Shared light-mode palette and theme switch for every Josue M Tennis page. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel2: #edf2f8;
  --lime: #0066cc;
  --white: #1d1d1f;
  --muted: #6e6e73;
  --line: #1d1d1f1a;
  --ink: #1d1d1f;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--lime); color: var(--lime); }
.theme-toggle:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.theme-toggle span[aria-hidden="true"] { font-size: 17px; line-height: 1; }

html[data-theme="light"] .nav { background: var(--bg); }
html[data-theme="light"] .hero {
  background: radial-gradient(ellipse at 75% 48%, #dceafa 0%, #edf2f8 39%, var(--bg) 74%);
}
html[data-theme="light"] .lead,
html[data-theme="light"] .hero-note,
html[data-theme="light"] .section-head > p,
html[data-theme="light"] .service p,
html[data-theme="light"] .included p,
html[data-theme="light"] .booking-box p,
html[data-theme="light"] .contact p:not(.eyebrow),
html[data-theme="light"] .legal p,
html[data-theme="light"] .legal li,
html[data-theme="light"] .course-intro,
html[data-theme="light"] .course-details p { color: #42454a; }
html[data-theme="light"] .hero-foot { color: #626b76; }
html[data-theme="light"] .court,
html[data-theme="light"] .court-lines,
html[data-theme="light"] .court-lines span:first-child,
html[data-theme="light"] .court-lines span:nth-child(2),
html[data-theme="light"] .court-lines span:nth-child(3) { border-color: #0066cc; }
html[data-theme="light"] .court { box-shadow: 0 0 90px #0066cc20; }
html[data-theme="light"] .ball { box-shadow: 0 0 60px #0066cc35; }
html[data-theme="light"] .service { border-color: #1d1d1f12; box-shadow: 0 8px 30px #15243b0a; }
html[data-theme="light"] .service-image { background: #dceafa; }
html[data-theme="light"] .service:hover { border-color: #0066cc66; }
html[data-theme="light"] .btn.primary,
html[data-theme="light"] .navcta { background: #0066cc; color: #fff; }
html[data-theme="light"] .btn.primary:hover,
html[data-theme="light"] .navcta:hover { background: #004f9e; }
html[data-theme="light"] .btn.ghost { border-color: #7d8792; color: #1d1d1f; }
html[data-theme="light"] .btn.ghost-dark { color: #1d1d1f; border-color: #727b86; }
html[data-theme="light"] .btn.secondary { background: #e2e8f0; }
html[data-theme="light"] .trial-card {
  background: linear-gradient(110deg, #e4edf8, #f1f4f8);
  border-color: #0066cc35;
}
html[data-theme="light"] .trial-card > p { color: #42454a; }
html[data-theme="light"] .locations { background: #e5eef8; color: #1d1d1f; }
html[data-theme="light"] .locations .eyebrow { color: #345476; }
html[data-theme="light"] .locations .section-head h2 span { color: #0066cc; }
html[data-theme="light"] .locations .section-head > p { color: #42454a; }
html[data-theme="light"] .location-card { background: #fff; color: #1d1d1f; box-shadow: 0 8px 30px #15243b0a; }
html[data-theme="light"] .location-card .season { color: #0066cc; }
html[data-theme="light"] .location-card address { color: #42454a; }
html[data-theme="light"] .booking-box { background: #edf2f8; }
html[data-theme="light"] .booking-box p { color: #42454a; }
html[data-theme="light"] .booking-lines { color: #0066cc1c; }
html[data-theme="light"] .policy-grid div { background: #f0f3f7; }
html[data-theme="light"] .policy-grid strong { color: #0057ad; }
html[data-theme="light"] .policy-grid span { color: #42454a; }
html[data-theme="light"] .fine,
html[data-theme="light"] .footer-inner > span,
html[data-theme="light"] .footer-inner > div,
html[data-theme="light"] .text-button,
html[data-theme="light"] .course-back { color: #626b76; }
html[data-theme="light"] .contact { background: linear-gradient(135deg, #e5eef8, var(--bg)); }
html[data-theme="light"] .contact p:not(.eyebrow) { color: #42454a; }
html[data-theme="light"] .legal p,
html[data-theme="light"] .legal li { color: #34373b; }
html[data-theme="light"] .legal .notice { background: #e8f0f8; color: #1d1d1f; }
html[data-theme="light"] .course-details,
html[data-theme="light"] .course-form { background: #fff; border-color: #0066cc40; }
html[data-theme="light"] .course-details { border-left-color: #0066cc; }
html[data-theme="light"] .course-details p { color: #34373b; }
html[data-theme="light"] .consent-dialog { color: #1d1d1f; }
html[data-theme="light"] .consent-panel { background: #fff; box-shadow: 0 16px 50px #10243b30; }
html[data-theme="light"] .consent-panel > p:not(.eyebrow),
html[data-theme="light"] .consent-toggle small { color: #51555a; }
html[data-theme="light"] .dialog-close { color: #1d1d1f; }
html[data-theme="light"] .consent-toggle input { accent-color: #0066cc; }

@media (max-width: 760px) {
  .theme-toggle { min-height: 40px; padding: 7px 10px; }
}
@media (max-width: 500px) {
  .nav { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 20px; }
  .theme-toggle { width: 38px; min-width: 38px; height: 38px; padding: 0; }
  .theme-label { display: none; }
  .navcta { padding: 10px 10px; font-size: 11px; }
}
