[data-theme="dark"] {
  --color-bg:           #111111;
  --color-bg-alt:       #1a1a1a;
  --color-surface:      #1e1e1e;
  --color-border:       #2e2e2e;
  --color-text:         #f0ece6;
  --color-text-muted:   #9b9189;
  --color-text-faint:   #6b6459;
  --color-accent:       #7a9a5a;
  --color-accent-light: #8fb26a;
  --color-accent-dark:  #5e7a42;
  --color-chrome:       #1e2a18;
  --color-dark-card:    #0a0a0a;
}

[data-theme="dark"] .poa-header {
  background: #1e2a18;
}

[data-theme="dark"] .poa-footer {
  background: #1e2a18;
}

[data-theme="dark"] .poa-icon--sun  { display: none; }
[data-theme="dark"] .poa-icon--moon { display: block; }

/* ── The Events Calendar V2 dark mode ── */
/* Override root TEC variables — these cascade to all day numbers, borders, backgrounds */
[data-theme="dark"] {
  --tec-color-text-primary:                          #f0ece6;
  --tec-color-text-primary-hover:                    #ffffff;
  --tec-color-text-primary-active:                   #ffffff;
  --tec-color-text-primary-light:                    #9b9189;
  --tec-color-text-secondary:                        #9b9189;
  --tec-color-background:                            #1e1e1e;
  --tec-color-background-secondary:                  #2a2a2a;
  --tec-color-background-events:                     #1e1e1e;
  --tec-color-background-month-grid:                 #111111;
  --tec-color-border-default:                        #2e2e2e;
  --tec-color-border-secondary:                      #2e2e2e;
  --tec-color-border-active:                         #7a9a5a;
  --tec-color-accent-primary:                        #7a9a5a;
  --tec-color-accent-primary-hover:                  #8fb26a;
  --tec-color-accent-primary-active:                 #5e7a42;
  --tec-color-accent-secondary:                      #8fb26a;
  --tec-color-accent-secondary-hover:                #7a9a5a;
  --tec-color-accent-secondary-active:               #5e7a42;
  --tec-color-button-primary:                        #7a9a5a;
  --tec-color-button-primary-hover:                  #8fb26a;
  --tec-color-button-primary-active:                 #5e7a42;
  --tec-color-link-accent:                           #8fb26a;
  --tec-color-day-marker-month-current-hover:        #ffffff;
  --tec-color-day-marker-month-current-active:       #ffffff;
  --tec-background-color:                            #1e1e1e;
}

/* Cell backgrounds that use hardcoded values */
[data-theme="dark"] .tribe-events .tribe-events-calendar-month__body,
[data-theme="dark"] .tribe-events .tribe-events-calendar-month__day,
[data-theme="dark"] .tribe-events .tribe-events-calendar-month__grid-body {
  background-color: #111111;
}

[data-theme="dark"] .tribe-events .tribe-events-calendar-month__day--current {
  background-color: #1a2614;
}
