/* =====================================================================
   TEC month calendar — light surfaces for readability (P0, 2026-09-13)

   Generated by tools/build_tec_month_light.py - do not hand-edit the
   variable block; rerun the script instead. Scope: The Events Calendar
   region only. The brand theme stays intentionally dark; the month view
   inherits dark paper via TEC's transparent --tec-color-background-events,
   so this file re-lights the calendar: kronshagen light-blue ambient,
   white day sheet, dark ink, blue interactive accent.

   TEC defines its master variables on :root (specificity 0); this block
   on .tribe-events-view (0,1,0) therefore overrides them regardless of
   stylesheet order. Evidence:
   platform-redesign/docs/evidence/tec-month-contrast-20260913.md
   ===================================================================== */

.tribe-events-view {
  --tec-color-background-events: var(--rn-soft-light, #d9e6f7);
  --tec-color-background: #ffffff;
  --tec-color-background-secondary: #f0f4fa;
  --tec-color-background-secondary-hover: #e4ecf7;
  --tec-color-background-secondary-datepicker: #e4ecf7;
  --tec-color-background-month-grid: #ffffff;
  --tec-color-background-events-bar: #ffffff;
  --tec-color-background-view-selector: #ffffff;
  --tec-color-background-search-container: #ffffff;
  --tec-color-background-messages: rgba(42, 93, 176, 0.08);
  --tec-color-background-error: rgba(179, 38, 30, 0.08);
  --tec-color-text-primary: #15202e;
  --tec-color-text-primary-light: #4a5a6e;
  --tec-color-text-secondary: #4a5a6e;
  --tec-color-text-primary-hover: #0c131c;
  --tec-color-text-primary-active: #0c131c;
  --tec-color-text-day-of-week-month: #15202e;
  --tec-color-text-day-of-week-week: #4a5a6e;
  --tec-color-text-event-date: #2a5db0;
  --tec-color-text-secondary-event-date: #2a5db0;
  --tec-color-text-events-title: #15202e;
  --tec-color-text-events-title-day: #15202e;
  --tec-color-text-events-title-month-multiday: #15202e;
  --tec-color-text-events-title-latest-past: #15202e;
  --tec-color-text-event-title-list: #15202e;
  --tec-color-text-view-selector-list-item: #15202e;
  --tec-color-text-view-selector-list-item-hover: #0c131c;
  --tec-color-text-events-bar-input: #15202e;
  --tec-color-text-events-bar-input-placeholder: #4a5a6e;
  --tec-color-text-events-bar-submit-button: #ffffff;
  --tec-color-text-disabled: #5b6675;
  --tec-color-accent-primary: #2a5db0;
  --tec-color-accent-primary-hover: #1e4686;
  --tec-color-accent-primary-active: #173a72;
  --tec-color-accent-secondary: #15202e;
  --tec-color-accent-secondary-hover: #0c131c;
  --tec-color-accent-secondary-active: #0c131c;
  --tec-color-link-accent: #2a5db0;
  --tec-color-icon-primary: #4a5a6e;
  --tec-color-icon-hover: #0c131c;
  --tec-color-icon-active: #15202e;
  --tec-color-icon-focus: #2a5db0;
  --tec-color-icon-disabled: #5b6675;
  --tec-color-icon-error: #b3261e;
  --tec-color-day-marker-month: #15202e;
  --tec-color-day-marker-month-hover: #0c131c;
  --tec-color-day-marker-month-active: #0c131c;
  --tec-color-day-marker-past-month: #15202e;
  --tec-color-day-marker-past-month-hover: #15202e;
  --tec-color-day-marker-past-month-active: #15202e;
  --tec-color-border-default: #8fa3bd;
  --tec-color-border-secondary: #c4d3e8;
  --tec-color-border-secondary-month-grid: #c4d3e8;
  --tec-color-border-active: #15202e;
  --tec-color-border-active-month-grid-hover: #2a5db0;
  --tec-color-border-events-bar: #c4d3e8;
  --tec-color-button-primary: #2a5db0;
  --tec-color-button-primary-hover: #1e4686;
  --tec-color-button-primary-active: #173a72;
  --tec-color-button-secondary: #15202e;
  --tec-color-button-secondary-hover: #0c131c;
  --tec-color-button-secondary-active: #0c131c;
  --tec-color-background-primary-multiday: rgba(42, 93, 176, 0.24);
  --tec-color-background-primary-multiday-hover: rgba(42, 93, 176, 0.34);
  --tec-color-background-secondary-multiday: rgba(21, 32, 46, 0.12);
  --tec-color-background-secondary-multiday-hover: rgba(21, 32, 46, 0.20);
  --tec-color-scroll-bar: rgba(21, 32, 46, 0.5);
  --tec-color-scroll-track: rgba(21, 32, 46, 0.25);
}

/* Re-light inherited brand links inside the calendar region.
   TEC's own component rules are more specific and still win. */
.tribe-events a { color: var(--tec-color-link-accent); }
.tribe-events a:visited,
.tribe-events a:hover,
.tribe-events a:focus-visible { color: var(--tec-color-accent-primary-hover); }

/* Focus ring: brand accent is tuned for dark paper and invisible on the
   light calendar. Keep the theme's ring geometry, switch to TEC accent. */
.tribe-events :focus-visible { outline-color: var(--tec-color-accent-primary); }

/* TEC renders past-day event times with opacity .75 on the accent color;
   on the light sheet that falls below 4.5:1. Restore full opacity and
   darkened accent. Doubled class keeps specificity above TEC's rule. */
.tribe-events .tribe-events-calendar-month__day--past.tribe-events-calendar-month__day--past
.tribe-events-calendar-month__calendar-event-datetime {
  color: var(--tec-color-accent-primary-hover);
  opacity: 1;
}
