
/* Surgical V9.6.38: light-only surface and readable-ink completion; no layout or behavior changes. */
html[data-theme="light"]{--ux-surface:#fff;--ux-surface-2:#f5f2fa;--ux-ink:#252039;--ux-secondary:#56516a;--ux-stroke:#dcd6e8}
html[data-theme="light"] :is(.toolbar,.filterline,.quick-filters,.months,.calendar-controls,.calendar-switch,.calendar-legend,.pagination,.filterbar){color:var(--ux-ink)}
html[data-theme="light"] :is(.search input,.filterline input,.filterline select,.filterbar input,.filterbar select,.calendar-controls select,.calendar-controls button,.calendar-switch button,.months button,.quick-filter,.pagination button,.view-tab:not(.active),.button:not(.primary)){background:#fff;color:#302940;border-color:#d7d0e2;box-shadow:none}
html[data-theme="light"] :is(input,textarea,select)::placeholder{color:#6c657e;opacity:1}
html[data-theme="light"] :is(.search span,.filtercount,.quick-label,.sectionhead p,.sectionhead small,.muted,.meta:not(.hero .meta)){color:#59536d}
html[data-theme="light"] :is(.quick-filter.active,.calendar-switch .active,.months .active,.pagination .active){background:#e9ddfb;color:#38205c;border-color:#c6ace9}
html[data-theme="light"] :is(.program,.program:nth-child(n),.card,.mini-highlight,.list-card,.list-row,.list-scroll,.tba-panel,.calendar-day-list,.agenda.calendar-day-list){background:#fff;color:#272239;border-color:#ded8e8;box-shadow:0 8px 25px rgba(53,38,81,.07)}
html[data-theme="light"] .program{--ink:#29223b;--secondary:#514861;--accent:#6c479c}
html[data-theme="light"] :is(.program .cardcopy,.program .cardfoot,.program .cardchannel,.program .card-channel-identity,.program .carddate,.mini-highlight-copy){color:#2c263e}
html[data-theme="light"] :is(.program .cardcopy h3,.program .cardcopy p,.program .cardcopy small,.program .cardfoot,.mini-highlight-copy strong,.mini-highlight-time,.mini-highlight-channel){color:#342d46}
html[data-theme="light"] .program .carddate{background:linear-gradient(115deg,#eee6fa,#f8f4fc);border-color:#d9c8ef}
html[data-theme="light"] :is(.date-number,.air-time,.date-month,.carddate .number,.carddate .weekday){color:#35234f}
html[data-theme="light"] .mini-highlight{background:#fff!important;color:#272239!important}
html[data-theme="light"] .mini-highlight-copy{background:#fff;color:#302940}
/* Calendar grid and event-category pastel palette */
html[data-theme="light"] #schedule .calendar,html[data-theme="light"] .calendar{background:linear-gradient(180deg,#fff,#faf8fd);border-color:#dcd5e7;box-shadow:0 14px 35px rgba(56,39,82,.08)}
html[data-theme="light"] #schedule .calendar .weekday{background:#eee9f5;color:#453957;border-color:#dcd5e7}
html[data-theme="light"] #schedule .calendar .day{background:#fff;color:#332b45;border-color:#e5deed}
html[data-theme="light"] #schedule .calendar .day.blank{background:#f6f3f9}
html[data-theme="light"] #schedule .calendar .day:not(.blank):not(.is-today):hover{background:#f1ebfa}
html[data-theme="light"] #schedule .calendar .day.is-today{background:linear-gradient(145deg,#f1e4ff,#fff7fd);box-shadow:inset 0 0 0 2px #aa80db,0 0 17px #aa80db30}
html[data-theme="light"] #schedule .calendar .day :is(.daytop,.daytop button,.calendar-count,.more){color:#3c3151}
html[data-theme="light"] :is(.calendar .event,.agenda .event,.calendar-day-list .event){color:var(--vivid-ink,#302a45);background:var(--vivid-bg,#ebe6f4);border-color:var(--vivid-accent,#a28bbd)}
html[data-theme="light"] :is(.calendar .event,.agenda .event,.calendar-day-list .event) :is(strong,small,.event-kind,.channel-capsule){color:inherit}
html[data-theme="light"] :is(.calendar-day-list,.agenda,.agenda-day,.daylist){color:#302940;border-color:#ded8e8}
html[data-theme="light"] :is(.calendar-day-list h3,.agenda h3,.calendar-day-list .daytop){color:#332844}
/* List View: cover table, scroll shell and dynamically inserted rows */
html[data-theme="light"] #listView,html[data-theme="light"] #listView :is(.list-scroll,.list-row,.list-card,table,thead,tbody,tr,td,th){color:#2c263d;border-color:#e1dbe9}
html[data-theme="light"] #listView :is(.list-scroll,table,tbody,tr,td){background-color:#fff}
html[data-theme="light"] #listView :is(thead,th){background-color:#eee9f6;color:#382e4a}
html[data-theme="light"] #listView tbody tr:hover{background-color:#f3edfa}
html[data-theme="light"] #listView :is(a,small,span,p,strong){color:inherit}
/* Program popover (Tailwind utility backgrounds otherwise remain dark) */
html[data-theme="light"] #programPopover,html[data-theme="light"] #programPopover>div{color:#29243a}
html[data-theme="light"] #programPopover>div,html[data-theme="light"] #programPopover>div>div:first-child,html[data-theme="light"] #programPopover :is(.bg-gray-900,.bg-slate-900,.bg-gray-800,.bg-slate-800,.bg-\[\#111a2b\]){background:#fff!important;color:#29243a;border-color:#ded8e8}
html[data-theme="light"] #programPopover :is(h1,h2,h3,h4,p,span,div,small,strong,button){color:#302940}
html[data-theme="light"] #programPopover :is(.text-white,.text-gray-100,.text-gray-200,.text-gray-300,.text-slate-200,.text-slate-300,.text-slate-400,.text-gray-400){color:#4d455e!important}
html[data-theme="light"] #programPopover :is(.bg-white\/5,.bg-white\/10,.bg-slate-800\/50){background:#f2eef8!important}
html[data-theme="light"] #programPopover :is(.border-white\/10,.border-white\/20){border-color:#ddd5e8!important}
html[data-theme="light"] #programPopover :is(.primary,.bg-purple-600,.bg-violet-600){color:#fff!important}
/* Dialogs and other detail panels */
html[data-theme="light"] :is(.sheet,.modal,.modal-details,.modal-overview,.modal-content,.tba-panel){background-color:#fff;color:#302940;border-color:#ddd6e7}
html[data-theme="light"] :is(.sheet,.modal-details,.modal-overview) :is(h2,h3,p,small,strong){color:#302940}
html[data-theme="light"] :is(.footer,.footer-wordmark){color:#3c3251}
/* CMDU package page: retain semantic status chips but change surfaces and readable labels */
html[data-theme="light"] #cmduPackagesPage{color:#302940}
html[data-theme="light"] #cmduPackagesPage :is(.section-head,.section-head p,.matrix,.matrix-top,.filterbar,.tablewrap,.package-card,.cmd-card){color:#302940}
html[data-theme="light"] #cmduPackagesPage :is(.matrix,.tablewrap,.package-card,.cmd-card){background:#fff;border-color:#ddd6e7}
html[data-theme="light"] #cmduPackagesPage :is(.matrix-top,.filterbar){background:#f4eff9;color:#302940}
html[data-theme="light"] #cmduPackagesPage :is(input,select){background:#fff;color:#302940;border-color:#d7d0e2}
/* Do not alter cinematic hero, posters, thumbnail imagery, print/PDF canvas or category-specific accent colors. */
