/* Light theme overrides. Load after rcrz.css. */

body[data-theme="light"] input[type="date"],
body[data-theme="light"] input[type="datetime-local"] {
  color-scheme: light;
}

body[data-theme="light"] {
  background: #E9EEF3;
  color: #111827;
  --rcrz-navy: #0F172A;
  --rcrz-cyan: #06B6D4;
  --rcrz-cyan-light: #22D3EE;
  --rcrz-lime: #84CC16;
  --rcrz-graphite: #D8E0E8;
  --rcrz-red: var(--rcrz-cyan);
  --rcrz-red-light: var(--rcrz-cyan-light);
  --rcrz-black: var(--rcrz-navy);
  --rcrz-blue: var(--rcrz-cyan);
  --rcrz-yellow: var(--rcrz-lime);
  --rcrz-white: #0F172A;
  --rcrz-grey-dark: var(--rcrz-graphite);
  --rcrz-grey: #64748B;
  --rcrz-hero-gradient-start: #E3F1F4;
  --rcrz-hero-gradient-end: #E2EAF2;
  --rcrz-border-subtle: #C7D1DC;
  --rcrz-surface: #F2F6F9;
  --rcrz-surface-muted: #E7EDF2;
  --rcrz-surface-accent: #DCEBF0;
  --calendar-event-race: #06B6D4;
  --calendar-event-multi: #84CC16;
  --calendar-event-mine: #22D3EE;
  --calendar-event-pending: #84CC16;
  --calendar-session: #22D3EE;
  --rcrz-shadow-soft: 0 4px 12px rgba(22, 34, 48, 0.1);
  --rcrz-shadow-hard: 0 8px 24px rgba(22, 34, 48, 0.16);
}

body[data-theme="light"] a:not([class]) {
  color: #0E7490;
}

body[data-theme="light"] .rcrz-navbar,
body[data-theme="light"] .rcrz-dropdown-menu,
body[data-theme="light"] .rcrz-card,
body[data-theme="light"] .community-activity-card,
body[data-theme="light"] .community-group-card,
body[data-theme="light"] .community-group-request,
body[data-theme="light"] .community-group-moderation-card,
body[data-theme="light"] .community-create-group,
body[data-theme="light"] .public-profile-section,
body[data-theme="light"] .user-profile-section,
body[data-theme="light"] .user-profile-form,
body[data-theme="light"] .memorabilia-form,
body[data-theme="light"] .memorabilia-detail-content,
body[data-theme="light"] .memorabilia-card,
body[data-theme="light"] .memorabilia-search,
body[data-theme="light"] .memorabilia-editor,
body[data-theme="light"] .memorabilia-form-main,
body[data-theme="light"] .memorabilia-form-side,
body[data-theme="light"] .review-card,
body[data-theme="light"] .review-form-panel,
body[data-theme="light"] .review-detail,
body[data-theme="light"] .review-option-form,
body[data-theme="light"] .review-rich-editor,
body[data-theme="light"] .race-result,
body[data-theme="light"] .calendar-modal-dialog,
body[data-theme="light"] .calendar-mobile-event,
body[data-theme="light"] .calendar-race-details,
body[data-theme="light"] .calendar-event-series-item,
body[data-theme="light"] .race-session-card,
body[data-theme="light"] .race-session-create,
body[data-theme="light"] .contribution-bundle-section,
body[data-theme="light"] .contribution-wizard-summary,
body[data-theme="light"] .overview-panel,
body[data-theme="light"] .admin-module,
body[data-theme="light"] .admin-metric,
body[data-theme="light"] .admin-dashboard-panel,
body[data-theme="light"] .merge-wizard-steps li,
body[data-theme="light"] .admin-security-list article,
body[data-theme="light"] .admin-user-list,
body[data-theme="light"] .moderator-nav,
body[data-theme="light"] .moderator-action-card,
body[data-theme="light"] .moderator-data-tools,
body[data-theme="light"] .moderator-management-panel,
body[data-theme="light"] .moderator-empty,
body[data-theme="light"] .rcrz-ad-slot,
body[data-theme="light"] .rcrz-ad-consent,
body[data-theme="light"] .rcrz-related-content,
body[data-theme="light"] .home-faq dl > div,
body[data-theme="light"] .home-feed-panel {
  background: var(--rcrz-surface);
  border-color: #d6dde5;
  color: #202833;
  box-shadow: var(--rcrz-shadow-soft);
}

body[data-theme="light"] .community-activity-card {
  background: linear-gradient(120deg, rgba(132,204,22,.12), var(--rcrz-surface) 70%);
}

body[data-theme="light"] .merge-wizard-steps li.is-current { color: #202833; }

body[data-theme="light"] .merge-conflict { background: #fff8eb; border-color: #d8ae70; }

body[data-theme="light"] .merge-result small { color: #596675; }

body[data-theme="light"] .rcrz-navbar {
  background: rgba(248, 251, 254, 0.96);
  border-bottom-color: #d6dde5;
}

body[data-theme="light"] .rcrz-nav-link,
body[data-theme="light"] .rcrz-dropdown-menu a,
body[data-theme="light"] .home-feed-header h1,
body[data-theme="light"] .home-feed-link-list a,
body[data-theme="light"] .home-feed-section-heading h2,
body[data-theme="light"] .calendar-title,
body[data-theme="light"] .rcrz-heading-xl,
body[data-theme="light"] .rcrz-heading-lg,
body[data-theme="light"] .rcrz-heading-md,
body[data-theme="light"] .rcrz-card-title,
body[data-theme="light"] .contribution-wizard-summary p,
body[data-theme="light"] .contribution-wizard-summary ul,
body[data-theme="light"] .contribution-wizard-steps li[aria-current="step"],
body[data-theme="light"] .home-faq dd,
body[data-theme="light"] .community-group-card h2,
body[data-theme="light"] .community-activity-copy p,
body[data-theme="light"] .public-profile-section h2,
body[data-theme="light"] .user-profile-section h2 {
  color: #202833;
}

body[data-theme="light"] .contribution-wizard-summary p,
body[data-theme="light"] .contribution-wizard-summary ul {
  color: #0F172A;
}

body[data-theme="light"] .rcrz-text-muted,
body[data-theme="light"] .calendar-kicker,
body[data-theme="light"] .home-feed-privacy-note,
body[data-theme="light"] .home-feed-link-group h3,
body[data-theme="light"] .home-feed-stats h3,
body[data-theme="light"] .home-feed-stats dt,
body[data-theme="light"] .community-activity-meta,
body[data-theme="light"] .user-profile-handle,
body[data-theme="light"] .memorabilia-catalog-picker,
body[data-theme="light"] .memorabilia-intro,
body[data-theme="light"] .public-profile-handle {
  color: #4B5968;
}

body[data-theme="light"] .memorabilia-detail-description,
body[data-theme="light"] .calendar-event-series-item > label,
body[data-theme="light"] .calendar-race-details dd,
body[data-theme="light"] .admin-metric strong,
body[data-theme="light"] .admin-module-action,
body[data-theme="light"] .admin-inline-link,
body[data-theme="light"] .admin-security-list a,
body[data-theme="light"] .audit-severity-notice,
body[data-theme="light"] .linked-item,
body[data-theme="light"] .session-chip {
  color: #0F172A;
}

body[data-theme="light"] .public-word-cloud-team,
body[data-theme="light"] .memorabilia-signature,
body[data-theme="light"] .audit-severity-warning {
  color: #4D7C0F;
}

body[data-theme="light"] .race-action-attended,
body[data-theme="light"] .rcrz-badge-attended {
  color: #C2410C;
}

body[data-theme="light"] .rcrz-badge-attended {
  border-color: #C2410C;
  background: #FFF7ED;
}

body[data-theme="light"] .overview-data-table th,
body[data-theme="light"] .overview-data-table td,
body[data-theme="light"] .race-entry-table th,
body[data-theme="light"] .race-entry-table td,
body[data-theme="light"] .overview-data-table tr,
body[data-theme="light"] .race-entry-table tr {
  border-color: #D6DDE5;
}

body[data-theme="light"] .overview-data-table th,
body[data-theme="light"] .race-entry-table th,
body[data-theme="light"] .race-entry-table-details,
body[data-theme="light"] .race-entry-driver-list span,
body[data-theme="light"] .overview-data-table td::before {
  color: #596675;
}

body[data-theme="light"] .rcrz-badge-press,
body[data-theme="light"] .rcrz-badge-sponsor,
body[data-theme="light"] .public-role-badge {
  color: #0E7490;
}

body[data-theme="light"] .rcrz-badge-volunteer {
  color: #4D7C0F;
}

body[data-theme="light"] .form-error {
  border-left-color: #B91C1C;
  background: #FEF2F2;
  color: #B91C1C;
}

body[data-theme="light"] .rcrz-input,
body[data-theme="light"] .rcrz-select,
body[data-theme="light"] .rcrz-textarea,
body[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body[data-theme="light"] select,
body[data-theme="light"] textarea {
  background-color: #FBFDFF;
  border-color: #aab5c1;
  color: #202833;
}

body[data-theme="light"] .rcrz-input::placeholder,
body[data-theme="light"] .rcrz-textarea::placeholder {
  color: #687686;
}

body[data-theme="light"] .entity-autocomplete-input {
  background: #FBFDFF;
  border-color: #aab5c1;
  color: #202833;
}

body[data-theme="light"] .entity-autocomplete-list {
  background: var(--rcrz-surface);
  border-color: #aab5c1;
}

body[data-theme="light"] .entity-autocomplete-option {
  border-bottom-color: #d6dde5;
  color: #202833;
}

body[data-theme="light"] .entity-autocomplete-option:hover,
body[data-theme="light"] .entity-autocomplete-option[aria-selected="true"] {
  background: #e7edf3;
  color: #202833;
}

body[data-theme="light"] .entity-autocomplete-empty {
  color: #596675;
}

body[data-theme="light"] .entity-autocomplete-chip {
  background: #e7edf3;
  color: #202833;
}

body[data-theme="light"] .entity-autocomplete-chip button {
  color: #0F172A;
}

body[data-theme="light"] .community-activity-avatar,
body[data-theme="light"] .public-profile-avatar {
  background: #e7edf3;
  color: #26313d;
}

body[data-theme="light"] .achievement-badge,
body[data-theme="light"] .achievement-admin-panel,
body[data-theme="light"] .home-faq,
body[data-theme="light"] .home-welcome {
  background: var(--rcrz-surface);
  border-color: #d6dde5;
  color: #202833;
}

body[data-theme="light"] .home-welcome-grid article {
  background: #eef2f6;
  border-color: #d6dde5;
}

body[data-theme="light"] .home-welcome-grid p {
  color: #596675;
}

body[data-theme="light"] .calendar-mobile-event,
body[data-theme="light"] .moderator-action-card,
body[data-theme="light"] .review-rich-editor,
body[data-theme="light"] .review-detail-facts > div,
body[data-theme="light"] .review-detail-ratings > div {
  color: #202833;
}

body[data-theme="light"] .review-editor-toolbar,
body[data-theme="light"] .review-detail-facts > div,
body[data-theme="light"] .review-detail-ratings > div,
body[data-theme="light"] .rcrz-ad-consent {
  background: #F1F5F9;
}

body[data-theme="light"] .rcrz-footer {
  border-top-color: #d6dde5;
  background: var(--rcrz-surface-muted);
  color: #596675;
}

body[data-theme="light"] .rcrz-footer-brand {
  color: #202833;
}

body[data-theme="light"] .calendar-frame,
body[data-theme="light"] .calendar-mini,
body[data-theme="light"] .calendar-multiday-overview,
body[data-theme="light"] .annual-calendar-month,
body[data-theme="light"] .calendar-event-series-item {
  border-color: #d6dde5;
  background: var(--rcrz-surface);
  color: #202833;
}

body[data-theme="light"] .calendar-frame {
  border-top-color: var(--rcrz-red);
}

body[data-theme="light"] .calendar th,
body[data-theme="light"] .calendar-week-heading,
body[data-theme="light"] .calendar-week-number,
body[data-theme="light"] .calendar-summary,
body[data-theme="light"] .calendar-legend {
  border-color: #d6dde5;
  color: #596675;
}

body[data-theme="light"] .calendar-weekend {
  color: #9f1239 !important;
}

body[data-theme="light"] .calendar-cell {
  border-color: #e2e8f0;
  background: var(--rcrz-surface);
}

body[data-theme="light"] .calendar-cell:empty {
  background: var(--rcrz-surface-muted);
}

body[data-theme="light"] .calendar-cell-today {
  background: var(--rcrz-surface-accent);
}

body[data-theme="light"] .day-number {
  color: #596675;
}

body[data-theme="light"] .race-item {
  background: #e0f2fe;
  color: #202833;
}

body[data-theme="light"] .calendar-event--multi {
  background: #ecfccb;
}

body[data-theme="light"] .calendar-event--mine {
  background: #cffafe;
}

body[data-theme="light"] .race-trigger:hover,
body[data-theme="light"] .calendar-event:hover,
body[data-theme="light"] .calendar-event:focus-visible,
body[data-theme="light"] .calendar-mobile-event:hover,
body[data-theme="light"] .calendar-mobile-event:focus-visible {
  background: var(--rcrz-surface-muted);
  box-shadow: 0 0 0 1px rgba(51, 65, 85, .2), 0 3px 8px rgba(22, 34, 48, .12);
}

body[data-theme="light"] .race-title {
  color: #202833;
}

body[data-theme="light"] .race-series {
  color: #155e75;
}

body[data-theme="light"] .race-pending {
  color: #3f6212;
}

body[data-theme="light"] .calendar-navigation-status {
  color: #3f6212;
}

body[data-theme="light"] .calendar-mobile-event-date {
  color: #596675;
}

body[data-theme="light"] .race-series,
body[data-theme="light"] .race-action-going {
  color: #0e7490;
}

body[data-theme="light"] .race-pending {
  color: #3f6212;
}

body[data-theme="light"] .calendar-mobile-event {
  border-color: #d6dde5;
  background: var(--rcrz-surface-muted);
  color: #202833;
}

body[data-theme="light"] .calendar-mini-grid > span,
body[data-theme="light"] .calendar-mini-grid > button {
  color: #0F172A;
}

body[data-theme="light"] .calendar-mini-weekday {
  color: #596675 !important;
}

body[data-theme="light"] .calendar-mini-week-number,
body[data-theme="light"] .calendar-multiday-link small,
body[data-theme="light"] .calendar-session-seen-list small,
body[data-theme="light"] .calendar-race-details dt {
  color: #596675;
}

body[data-theme="light"] .calendar-multiday-overview > strong,
body[data-theme="light"] .calendar-multiday-link {
  color: #202833;
}

body[data-theme="light"] .calendar-navigation .calendar-jump,
body[data-theme="light"] .calendar-date-jump form {
  border-color: #d6dde5;
  background: var(--rcrz-surface);
  color: #202833;
}

body[data-theme="light"] .entity-story,
body[data-theme="light"] .community-group-invite {
  border-color: #d6dde5;
  background: var(--rcrz-surface-muted);
  color: #202833;
}

body[data-theme="light"] .team-relationship-list dt,
body[data-theme="light"] .sponsor-detail-teams span {
  color: #596675;
}

body[data-theme="light"] .calendar-session-seen-list small {
  color: #596675;
}

body[data-theme="light"] .calendar-multiday-link {
  border-color: #d6dde5;
  background: var(--rcrz-surface-muted);
}

body[data-theme="light"] .calendar-event,
body[data-theme="light"] .calendar-event--multi,
body[data-theme="light"] .calendar-event--mine {
  color: #202833;
}

body[data-theme="light"] .public-race-card {
  border-color: #D6DDE5;
  border-left-color: var(--rcrz-lime);
  background: var(--rcrz-surface);
  color: #202833;
}

body[data-theme="light"] .public-race-card:hover {
  background: var(--rcrz-graphite);
}

body[data-theme="light"] .public-race-date {
  border-right-color: #D6DDE5;
}

body[data-theme="light"] .public-race-date strong {
  color: #202833;
}

body[data-theme="light"] .public-race-date span,
body[data-theme="light"] .public-race-info p {
  color: #596675;
}

body[data-theme="light"] .public-word-cloud-panel {
  border-color: #D6DDE5;
  border-top-color: var(--rcrz-lime);
  background: var(--rcrz-surface);
  color: #202833;
}

body[data-theme="light"] .public-word-cloud-legend,
body[data-theme="light"] .public-word-cloud-item,
body[data-theme="light"] .public-word-cloud-driver {
  color: #202833;
}

body[data-theme="light"] .privacy-profile-options {
  border-color: #D6DDE5;
}

body[data-theme="light"] .privacy-profile-options legend,
body[data-theme="light"] .privacy-profile-options label {
  color: #202833;
}

body[data-theme="light"] .calendar-modal-close {
  color: #596675;
}

body[data-theme="light"] .calendar-event-series-item > label,
body[data-theme="light"] .calendar-session-seen-list label {
  color: #0F172A;
}

body[data-theme="light"] .calendar-session-loading {
  background: #ecfeff;
  color: #155e75;
}

body[data-theme="light"] .calendar-sessions-collapsible summary {
  color: #0e7490;
}

body[data-theme="light"] .race-dna-card,
body[data-theme="light"] .attendance-insight-stats > div,
body[data-theme="light"] .circuit-bingo-grid article,
body[data-theme="light"] .packing-list-panel,
body[data-theme="light"] .packing-list li,
body[data-theme="light"] .feature-settings-card,
body[data-theme="light"] .community-activity-comment,
body[data-theme="light"] .community-group-request {
  border-color: #d6dde5;
  background: var(--rcrz-surface);
  color: #202833;
}

body[data-theme="light"] .race-dna-card h3,
body[data-theme="light"] .race-dna-card li,
body[data-theme="light"] .attendance-insight-stats dd,
body[data-theme="light"] .circuit-bingo-countries li,
body[data-theme="light"] .feature-settings-card legend,
body[data-theme="light"] .community-activity-comment a,
body[data-theme="light"] .community-activity-comment p,
body[data-theme="light"] .community-group-request p {
  color: #202833;
}

body[data-theme="light"] .attendance-insight-stats dt,
body[data-theme="light"] .circuit-bingo-grid p,
body[data-theme="light"] .packing-list small,
body[data-theme="light"] .packing-list-login,
body[data-theme="light"] .feature-settings-card p {
  color: #596675;
}

body[data-theme="light"] .attendance-map {
  border-color: #d6dde5;
  background: linear-gradient(180deg, rgba(6,182,212,.08), #f8fbfe);
}

body[data-theme="light"] .attendance-map svg {
  background-image: linear-gradient(rgba(15,23,42,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.08) 1px, transparent 1px);
}

body[data-theme="light"] .attendance-map circle {
  stroke: #fff;
}

body[data-theme="light"] .reviewer-award {
  border-color: #c7d2df;
  background: linear-gradient(135deg, rgba(203,213,225,.18), var(--rcrz-surface));
}

body[data-theme="light"] .reviewer-award small {
  color: #596675;
}

body[data-theme="light"] .calendar-session-conflict:not([hidden]) {
  background: #f7fee7;
  color: #3f6212;
}

body[data-theme="light"] .calendar-conflict-alternative {
  border-color: #a3b18a;
  background: #ecfccb;
  color: #365314;
}

body[data-theme="light"] .calendar-modal-message {
  color: #3f6212;
}

body[data-theme="light"] .annual-calendar-month h3 {
  color: #202833;
}

body[data-theme="light"] .annual-calendar-month th,
body[data-theme="light"] .annual-calendar-day {
  color: #596675;
}

body[data-theme="light"] .annual-calendar-month td {
  border-color: #d6dde5;
}

body[data-theme="light"] .annual-calendar-month td.annual-calendar-empty {
  background: var(--rcrz-surface-muted);
}

body[data-theme="light"] .annual-calendar-event {
  background: var(--rcrz-surface-muted);
}

body[data-theme="light"] .annual-calendar-event a {
  color: #0e7490;
}

body[data-theme="light"] .annual-calendar-event small a {
  color: #596675;
}

body[data-theme="light"] .calendar-skeleton {
  background: rgba(248, 250, 252, .88);
}

body[data-theme="light"] .calendar-skeleton-block {
  background: linear-gradient(100deg, #e2e8f0 20%, #cbd5e1 38%, #e2e8f0 56%);
  background-size: 200% 100%;
}

body[data-theme="light"] .admin-module-index,
body[data-theme="light"] .public-profile-handle span,
body[data-theme="light"] .race-session-card > summary::after,
body[data-theme="light"] .race-car-number,
body[data-theme="light"] .public-memorabilia-type {
  color: #4D7C0F;
}

body[data-theme="light"] .achievement-toast {
  border-color: #C7D1DC;
  background: linear-gradient(115deg, #F2F6F9, #E7EDF2);
  color: #202833;
  box-shadow: var(--rcrz-shadow-soft);
}

body[data-theme="light"] .entity-overview-stats article {
  border-color: #C7D1DC;
  background: #E7EDF2;
  color: #202833;
}

body[data-theme="light"] .entity-overview-stats span,
body[data-theme="light"] .overview-rating small {
  color: #596675;
}

body[data-theme="light"] .rcrz-btn-secondary {
  color: #0F172A;
}

body[data-theme="light"] .entity-overview-hero {
  border-color: #C7D1DC;
  background: linear-gradient(115deg, #DDECF0, #E2EAF2);
  color: #17212B;
}

body[data-theme="light"] .entity-directory-card,
body[data-theme="light"] .circuits-index-card,
body[data-theme="light"] .races-filters,
body[data-theme="light"] .races-count,
body[data-theme="light"] .planner-event-results li {
  border-color: #C7D1DC;
  background: var(--rcrz-surface-muted);
  color: #17212B;
}

body[data-theme="light"] .entity-directory-card > img,
body[data-theme="light"] .entity-directory-mark {
  border-color: #C7D1DC;
  background: #DCE4EB;
  color: #263746;
}

body[data-theme="light"] .entity-directory-card p,
body[data-theme="light"] .races-count span,
body[data-theme="light"] .races-unregistered {
  color: #4B5968;
}

body[data-theme="light"] .circuits-index-card h3 a {
  color: #17212B;
}

body[data-theme="light"] .races-filters label,
body[data-theme="light"] .races-bulkbar label {
  color: #344252;
}

body[data-theme="light"] .races-filters input,
body[data-theme="light"] .races-filters select {
  border-color: #AAB6C4;
  background: #fff;
  color: #17212B;
}

body[data-theme="light"] .races-notice {
  border-left-color: #15803D;
  background: #DCFCE7;
  color: #14532D;
}

body[data-theme="light"] .races-empty,
body[data-theme="light"] .races-login-note {
  border-color: #C7D1DC;
  background: var(--rcrz-surface-muted);
  color: #344252;
}

body[data-theme="light"] .public-word-cloud-panel--classes .public-word-cloud-item {
  color: #4338CA;
}

body[data-theme="light"] .public-word-cloud-panel--series .public-word-cloud-item {
  color: #0F766E;
}

body[data-theme="light"] .public-word-cloud-panel--circuits .public-word-cloud-item {
  color: #C2410C;
}

body[data-theme="light"] .public-word-cloud-team {
  color: #A21CAF;
}

body[data-theme="light"] .public-word-cloud-driver {
  color: #0F766E;
}

body[data-theme="light"] .public-word-cloud-driver::before {
  background: #0F766E;
}

body[data-theme="light"] .public-word-cloud-team::before {
  background: #A21CAF;
}
