/* T-113 private preview only. No public default is activated. */
html[data-nashville-theme] {
 --nash-page:#f4f1eb; --nash-panel:#fff; --nash-heading:#101b2a;
 --nash-text:#343b48; --nash-muted:#58616e; --nash-border:#ddd9d2;
 --nash-link:#135483; --nash-gold:#ad5600;
}
html[data-nashville-theme="nightlife"] {
 --nash-page:#101318; --nash-panel:#1b2028; --nash-heading:#fff;
 --nash-text:#c8cfd9; --nash-muted:#aab5c4; --nash-border:#343d49;
 --nash-link:#53b5ff; --nash-gold:#ffba42;
}
.nash-theme-preview .nash-theme-toggle {
 box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
 flex:0 0 44px; width:44px; height:44px; min-width:44px; min-height:44px;
 padding:0; margin:0; border:1px solid #8b98aa; border-radius:50%;
 background:#101318; color:#ffba42; font:26px/1 Arial,sans-serif; cursor:pointer;
}
.nash-theme-preview .nash-theme-toggle:focus-visible { outline:3px solid #53b5ff; outline-offset:2px; }
html[data-nashville-theme="daylight"] .nash-theme-moon,
html[data-nashville-theme="nightlife"] .nash-theme-sun { display:none; }
/* Reserve the same header geometry in either palette. */
.nash34.nash-theme-preview .header-inner { gap:10px; }
@media(max-width:600px) {
 .nash34.nash-theme-preview .header-inner { gap:4px; }
 .nash34.nash-theme-preview .brand { flex-basis:151px; }
 .nash34.nash-theme-preview .menu-toggle>span { display:none; }
 .nash34.nash-theme-preview .menu-toggle { padding:0; width:44px; }
}
/* Standard Posts/Pages retain Sahifa markup, layout, media and native content. */
.nash-sahifa-theme-preview #theme-header .header-content { position:relative; }
.nash-sahifa-theme-preview #theme-header .nash-theme-toggle { position:absolute; right:12px; bottom:8px; z-index:5; }
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview { background-color:var(--nash-page); color:var(--nash-text); }
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(#wrapper,.inner-wrapper,#main-content,.content,.post-listing,.widget,.widget-container,.page-head,.post-inner,.post-title,.entry,.related-posts,.comments-area,#comments,#respond) {
 background-color:var(--nash-panel); color:var(--nash-text); border-color:var(--nash-border);
}
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(#theme-header,.header-content,#main-nav,.breaking-news,footer,#footer-widget-area,.footer-bottom) {
 background:var(--nash-page); color:var(--nash-text); border-color:var(--nash-border);
}
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(h1,h2,h3,h4,h5,h6,.post-title a,.widget-top h4,.page-title) { color:var(--nash-heading); }
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(a,.entry a) { color:var(--nash-link); }
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(.post-meta,.post-meta a,.post-caption,.wp-caption-text,#crumbs) { color:var(--nash-muted); }
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(input,textarea,select) { background-color:var(--nash-page); color:var(--nash-text); border-color:var(--nash-border); }

/* T-117: The Events Calendar 6.18.2 / Pro 7.8.3 Nightlife compatibility.
 * Only TEC tokens and TEC elements in the native Sahifa shell. No Daylight
 * declarations: changing the existing html attribute restores the native cascade.
 * Rebind derived tokens here because :root var() aliases resolve at :root.
 */
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview {
 --tec-color-text-primary:#E4E8EF;
 --tec-color-text-primary-light:#C9D2DF;
 --tec-color-text-secondary:#C9D2DF;
 --tec-color-text-disabled:#C9D2DF;
 --tec-color-text-events-title:#FFFFFF;
 --tec-color-text-event-title:#FFFFFF;
 --tec-color-text-event-title-list:#FFFFFF;
 --tec-color-text-events-title-day:#FFFFFF;
 --tec-color-text-events-title-latest-past:#FFFFFF;
 --tec-color-text-events-title-month-multiday:#FFFFFF;
 --tec-color-text-events-title-widget-list:#FFFFFF;
 --tec-color-text-event-date:#C9D2DF;
 --tec-color-text-secondary-event-date:#C9D2DF;
 --tec-color-text-secondary-event-date-month:#C9D2DF;
 --tec-color-text-secondary-event-date-month-mobile:#C9D2DF;
 --tec-color-text-day-of-week-month:#C9D2DF;
 --tec-color-text-day-of-week-week:#C9D2DF;
 --tec-color-day-marker-month:#C9D2DF;
 --tec-color-day-marker-month-hover:#FFFFFF;
 --tec-color-day-marker-month-active:#FFFFFF;
 --tec-color-day-marker-current-month:#C9D2DF;
 --tec-color-day-marker-current-month-hover:#FFFFFF;
 --tec-color-day-marker-current-month-active:#FFFFFF;
 --tec-color-day-marker-past-month:#C9D2DF;
 --tec-color-day-marker-past-month-hover:#FFFFFF;
 --tec-color-day-marker-past-month-active:#FFFFFF;
 --tec-color-link-primary:#69BFFF;
 --tec-color-link-accent:#69BFFF;
 --tec-color-link-accent-hover:#FFFFFF;
 --tec-color-accent-primary:#69BFFF;
 --tec-color-accent-primary-hover:#69BFFF;
 --tec-color-accent-primary-active:#69BFFF;
 --tec-color-accent-secondary:#C9D2DF;
 --tec-color-accent-secondary-hover:#FFFFFF;
 --tec-color-accent-secondary-active:#FFFFFF;
 --tec-color-border-default:#48515E;
 --tec-color-border-secondary:#48515E;
 --tec-color-border-tertiary:#48515E;
 --tec-color-border-secondary-month-grid:#48515E;
 --tec-color-border-events-bar:#48515E;
 --tec-color-border-hover:#69BFFF;
 --tec-color-border-active:#69BFFF;
 --tec-color-border-active-month-grid-hover:#69BFFF;
 --tec-color-background:var(--nash-panel);
 --tec-color-background-events:transparent;
 --tec-color-background-secondary:var(--nash-page);
 --tec-color-background-secondary-hover:#242c37;
 --tec-color-background-transparent:rgba(27,32,40,.85);
 --tec-color-background-events-bar:var(--nash-panel);
 --tec-color-background-search-container:var(--nash-panel);
 --tec-color-background-view-selector:var(--nash-panel);
 --tec-color-background-view-selector-tabs:var(--nash-panel);
 --tec-color-background-view-selector-list-item-hover:#242c37;
 --tec-color-background-subscribe-list-item-hover:#242c37;
 --tec-color-background-tooltip:var(--nash-panel);
 --tec-color-background-secondary-datepicker:var(--nash-page);
 --tec-color-background-messages:var(--nash-panel);
 --tec-color-background-primary-multiday:#24364a;
 --tec-color-background-primary-multiday-hover:#30445b;
 --tec-color-background-secondary-multiday:#242c37;
 --tec-color-background-secondary-multiday-hover:#30445b;
 --tec-color-text-view-selector-list-item:#C9D2DF;
 --tec-color-text-view-selector-list-item-hover:#FFFFFF;
 --tec-color-text-events-bar-input:#E4E8EF;
 --tec-color-text-events-bar-input-placeholder:#C9D2DF;
 --tec-color-text-events-bar-submit-button:#101318;
 --tec-color-text-events-bar-submit-button-hover:#101318;
 --tec-color-text-events-bar-submit-button-active:#101318;
 --tec-color-background-events-bar-submit-button:#69BFFF;
 --tec-color-background-events-bar-submit-button-hover:#69BFFF;
 --tec-color-background-events-bar-submit-button-active:#69BFFF;
 --tec-color-button-primary:#69BFFF;
 --tec-color-button-primary-hover:#69BFFF;
 --tec-color-button-primary-active:#69BFFF;
 --tec-color-icon-primary:#C9D2DF;
 --tec-color-icon-primary-alt:#C9D2DF;
 --tec-color-icon-secondary:#C9D2DF;
 --tec-color-icon-active:#69BFFF;
 --tec-color-icon-hover:#FFFFFF;
 --tec-color-icon-focus:#69BFFF;
 --tec-color-icon-events-bar:#C9D2DF;
 --tec-color-icon-events-bar-hover:#FFFFFF;
 --tec-color-icon-events-bar-active:#69BFFF;
 --tec-color-event-icon:#C9D2DF;
 --tec-color-event-icon-hover:#69BFFF;
 --tec-color-category-text:#E4E8EF;
 --tec-form-color-background:var(--nash-panel);
 --tec-form-color-border-default:#48515E;
 --tec-form-color-border-secondary:#48515E;
 --tec-form-color-border-active:#69BFFF;
 --tec-outline-color-default:#69BFFF;
}
/* Single-event content and the installed list-based metadata (not only old dl markup). */
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview #tribe-events-content .tribe-events-single-event-description,
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(.tribe-events-calendar-list__event-description,.tribe-events-calendar-day__event-description) {
 color:#E4E8EF;
}
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview #tribe-events-content :is(.tribe-events-schedule,.tribe-events-cost,.tribe-events-event-meta,.tribe-events-meta-label,.tribe-events-meta-value,.tribe-events-abbr,.tribe-event-date-start,.tribe-event-date-end,.tribe-event-time),
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(.tribe-events-calendar-list__event-datetime,.tribe-events-calendar-list__event-venue,.tribe-events-calendar-day__event-datetime,.tribe-events-calendar-month__calendar-event-datetime,.tribe-events-calendar-month-mobile-events__mobile-event-datetime,.tribe-events-widget-events-list__event-datetime) {
 color:#C9D2DF;
}
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(#tribe-events-content,.tribe-events,.tribe-events-widget,.tribe-mini-calendar-wrapper,.tribe-events-adv-list-widget,.tribe-events-list-widget) :is(h1,h2,h3,h4,h5,h6) {
 color:#FFFFFF;
}
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(#tribe-events-content,.tribe-events,.tribe-events-widget,.tribe-mini-calendar-wrapper,.tribe-events-adv-list-widget,.tribe-events-list-widget) a {
 color:#69BFFF;
}
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(#tribe-events-content,.tribe-events,.tribe-events-widget,.tribe-mini-calendar-wrapper,.tribe-events-adv-list-widget,.tribe-events-list-widget) a:is(:hover,:focus-visible) {
 color:#FFFFFF; text-decoration:underline; text-underline-offset:.15em;
}
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(#tribe-events-content,.tribe-events,.tribe-events-widget,.tribe-mini-calendar-wrapper,.tribe-events-adv-list-widget,.tribe-events-list-widget) :is(a,button,input,select,textarea):focus-visible {
 outline:2px solid #69BFFF; outline-offset:3px;
}
/* Keep filled controls legible; only colors change, never spacing or behavior. */
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(#tribe-events-content,.tribe-events,.tribe-events-widget,.tribe-mini-calendar-wrapper) :is(.tribe-common-c-btn,a.tribe-common-c-btn,.tribe-events-button) {
 background-color:#69BFFF; color:#101318;
}
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview .tribe-events .tribe-events-c-search__button {
 background-color:#69BFFF; color:#101318;
}
/* Existing SVG arrows are dark rasterized backgrounds; recolor their pixels only. */
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview #tribe-events-content .tribe-events-nav-previous a::before,
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview #tribe-events-content .tribe-events-nav-next a::after {
 filter:brightness(0) saturate(100%) invert(78%) sepia(36%) saturate(1820%) hue-rotate(177deg) brightness(104%) contrast(101%);
}
/* Pro's legacy widgets use literal colors instead of the supported TEC tokens. */
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview :is(.tribe-mini-calendar-wrapper,.tribe-events-adv-list-widget,.tribe-events-list-widget) :is(.tribe-mini-calendar-dayofweek,.tribe-mini-calendar-no-event,.list-dayname,.list-daymonth,.list-daynumber,.tribe-event-duration,.tribe-event-venue) {
 background-color:var(--nash-panel); color:#C9D2DF;
}
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview .tribe-mini-calendar :is(thead,td,.tribe-mini-calendar-nav,.tribe-events-present,.tribe-mini-calendar-today),
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview .tribe-mini-calendar-event .list-date {
 background-color:var(--nash-panel); border-color:#48515E;
}

/* Legacy mobile navigation and mini-calendar hover backgrounds are literal gray. */
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview #tribe-events-content .tribe-events-sub-nav li a {
 background-color:var(--nash-panel);
}
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview .tribe-mini-calendar .tribe-events-has-events:hover,
html[data-nashville-theme="nightlife"] .nash-sahifa-theme-preview .tribe-mini-calendar .tribe-events-has-events:hover a:hover {
 background-color:#242c37;
}
