/* Public destinations share the homepage palette and navigation. */
.tv-shell { color-scheme: dark; }
.tv-shell .tv-sidebar nav [hidden] { display: none; }
.tv-shell .tv-sidebar nav a { text-decoration: none; }
.tv-shell[data-tv-page] > main { margin-top: 0; padding-top: 24px; }
.tv-shell[data-tv-page="hosts"] > main { max-width: 1000px; }
.tv-shell a:is(.inline-link,.replay-live-link,.text-button),
.tv-shell .eyebrow.muted,
.tv-shell[data-tv-page] :is(.eyebrow,.media-eyebrow,.text-button,.article-card h3 a) {
  color: var(--tv-blue);
}
.tv-shell :is(.schedule-heading,.searchbar,.replay-search-panel,.replay-search-form,
  .replay-filter-details,.archive-audit,.schedule-help,.schedule-explanation,
  .card,.episode-card,.upcoming-card,.next-slot,.calendar-grid,.guide-mode,
  .article-filters,.article-card,.article-manager,#featured-articles,
  .notice,.record,.media-card,.media-contact,.media-empty) {
  background: var(--tv-panel);
  border-color: var(--tv-line);
  color: var(--tv-text);
}
.tv-shell :is(#guide,#episode-library,#upcoming-shows,#home-program-guide) :is(input,select,textarea),
.tv-shell[data-tv-page] :is(input,select,textarea) {
  background: #172b44;
  border-color: #476786;
  color: var(--tv-text);
}
.tv-shell :is(input,textarea)::placeholder { color: var(--tv-muted); }
.tv-shell :is(#guide,#episode-library,#upcoming-shows,#home-program-guide) :is(.outline,.date-tab,.view-controls button,.guide-tools-toggle,.replay-quick-search button,.replay-close-results),
.tv-shell[data-tv-page] :is(.outline,.host-actions button,.host-actions a,.media-filters button,.featured-controls button,.mentions button) {
  background: #1a314b;
  border-color: #456684;
  color: var(--tv-text);
}
.tv-shell :is(#guide,#episode-library,#home-program-guide) :is(.active,[aria-pressed="true"]):is(button,.date-tab),
.tv-shell[data-tv-page] :is(.host-actions button,.media-filters button)[aria-pressed="true"] {
  background: #244d71;
  border-color: #608cb2;
  color: #fff;
}
.tv-shell :is(#guide,#episode-library,#upcoming-shows,#home-program-guide) :is(.guide-mode button,.archive-tab,.directory-group-heading,.schedule-heading h3,.episode-card h3,.next-slot h3,.upcoming-card h3,.archive-audit summary,.replay-filter-details summary) {
  color: var(--tv-text);
}
.tv-shell :is(#guide,#episode-library,#upcoming-shows,#home-program-guide) :is(.episode-card p,.episode-card small,.episode-card-top,.archive-note,.schedule-help p,.card .host,.card .description,.date-tab small,.results-meta,.schedule-explanation p,.schedule-explanation summary) {
  color: var(--tv-muted);
}
.tv-shell #guide .card .cover {
  background: #162b45 !important;
  border-color: var(--tv-line);
}
.tv-shell #guide .card .cover :is(strong,.cover-label,.cover-sub) { color: var(--tv-text); }
.tv-shell #guide .directory-schedule-timed { background: #18324d; border-color: #416688; }
.tv-shell #guide .directory-schedule-timed :is(span,p) { color: var(--tv-text); }
.tv-shell :is(#schedule,#home-program-guide) .guide-program-row { background: var(--tv-panel); border-color: var(--tv-line); }
.tv-shell :is(#schedule,#home-program-guide) .guide-program-info :is(h3 button,p) { color: var(--tv-text); }
.tv-shell :is(#schedule,#home-program-guide) .guide-program-info :is(.guide-access,.guide-end) { color: var(--tv-muted); }
.tv-shell :is(#schedule,#home-program-guide) .guide-row-actions .outline { background: #1a314b; border-color: #456684; color: var(--tv-text); }
.tv-shell :is(#guide,#episode-library) :is(.calendar-cell,.calendar-day,.table-scroll,.episode-publisher) { background: var(--tv-panel); border-color: var(--tv-line); }
.tv-shell :is(#guide,#episode-library) :is(th,td) { border-color: var(--tv-line); color: var(--tv-text); }
.tv-shell :is(#guide,#episode-library) th { background: #203c57; }
.tv-shell[data-tv-page] :is(.intro,.articles-hero p:not(.eyebrow),.media-hero p,.media-card-content p,.media-contact p,.article-summary,.directory-notes p,.article-directory-actions p,.source-note,.form-hint,.linkedin-note,.mentions p,.article-card-bottom small,[role="status"],small,.hint) {
  color: var(--tv-muted);
}
.tv-shell[data-tv-page] :is(.media-section-heading span,.directory-heading span,.article-card-top,.article-card-top span,.article-topic,.media-type) {
  color: var(--tv-blue);
}
.tv-shell[data-tv-page] :is(.articles-hero,.media-hero) {
  padding: 24px;
  border: 1px solid #35577b;
  border-radius: 16px;
  background: linear-gradient(115deg,#112841,#173c59);
}
.tv-shell[data-tv-page] :is(.article-submit,details,#host-form,.branding-preview,.branding-image,.media-image-button,#media-viewer) {
  background: var(--tv-panel);
  border-color: var(--tv-line);
  color: var(--tv-text);
}
.tv-shell[data-tv-page] :is(label,summary,.article-submit>div>p,main>section p,#media-status) { color: var(--tv-muted); }
.tv-shell[data-tv-page] a:not(.tv-brand,.tv-sponsor,.article-submit-link) { text-decoration-color: #6d9abe; }
.tv-shell[data-tv-page] :is(.directory-disclaimer,.media-footer,footer) { color: var(--tv-muted); border-color: var(--tv-line); }
.tv-shell[data-tv-page] .media-hero-mark span { background: #183e60; color: var(--tv-blue); }
.tv-shell[data-tv-page] #media-viewer-close { background: #1a314b; color: var(--tv-text); }
.tv-shell .tv-sidebar :is(#editor-link,#media-owner-link) { color: var(--tv-blue); }

.today-in-freight { margin: 16px 0 5px; padding: 12px; border: 1px solid var(--tv-line); border-radius: 12px; background: var(--tv-panel); }
.today-in-freight[hidden] { display: none; }
.today-in-freight-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.today-in-freight h2 { margin: 0; color: var(--tv-text); font-size: 1.12rem; }
.today-in-freight-heading a { color: var(--tv-blue); font-size: .8rem; white-space: nowrap; }
#today-in-freight-items { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: 6px; }
#today-in-freight-items button { min-width: 0; padding: 7px 9px; border: 1px solid #35526e; border-radius: 7px; background: #162b44; color: var(--tv-text); text-align: left; }
#today-in-freight-items button:hover { background: #224768; }
#today-in-freight-items :is(small,strong) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#today-in-freight-items small { color: var(--tv-blue); font-size: .72rem; }
#today-in-freight-items strong { font-size: .82rem; }
#today-in-freight-items p { margin: 3px 0; color: var(--tv-muted); font-size: .82rem; }
@media (max-width: 540px) {
 #today-in-freight-items { grid-template-columns: minmax(0,1fr); }
 #today-in-freight-items button { display: flex; align-items: baseline; gap: 8px; }
 #today-in-freight-items small { flex: none; }
}

.tv-shell :is(.event-filters,.guest-search-nudge,.editor-note,.episode-publisher-card,.calendar-summary,.article-cover) {
 background: var(--tv-panel);
 border-color: var(--tv-line);
 color: var(--tv-text);
}
.tv-shell :is(.event-filters,.guest-search-nudge,.editor-note,.guide-date-controls) :is(label,p,span) {
 color: var(--tv-muted);
}
.tv-shell #guide .chip { background: #1a314b; border-color: #456684; color: var(--tv-text); }
.tv-shell #guide .chip:is(.active,[aria-pressed="true"]) { background: #244d71; border-color: #608cb2; color: #fff; }
.tv-shell :is(.day-strip,.table-scroll) { scrollbar-color: #527396 #142238; }
.tv-shell #home-program-guide, .tv-shell #guide { border-color: var(--tv-line); }

.tv-shell :is(#detail,#add-calendar-dialog,#submission) {
 background: var(--tv-panel);
 border: 1px solid var(--tv-line);
 color: var(--tv-text);
}
.tv-shell :is(#detail,#add-calendar-dialog,#submission) :is(p,dt,small) { color: var(--tv-muted); }
.tv-shell :is(#detail,#add-calendar-dialog,#submission) :is(input,select,textarea,.outline,.close) {
 background: #1a314b;
 border-color: #456684;
 color: var(--tv-text);
}
.tv-shell #detail :is(.show-facts,.show-rating-card) { background: #162b45; border-color: var(--tv-line); }
.tv-shell #detail :is(.show-facts h3,.show-facts a,.show-facts summary,.show-fact>strong) { color: var(--tv-blue); }

.podcast-detail-banner {
 position: relative;
 isolation: isolate;
 display: grid;
 grid-template-columns: minmax(0,1fr) minmax(75px,26%);
 align-items: center;
 gap: 12px;
 min-height: 124px;
 margin: 0 0 16px;
 padding: 16px 20px;
 overflow: hidden;
 border: 1px solid #385675;
 border-radius: 10px;
}
.podcast-detail-title h2 { margin: 6px 0 0; overflow-wrap: anywhere; }
.podcast-detail-art { display: block; width: 100%; max-height: 132px; object-fit: contain; }
.podcast-detail-art--logo { padding: 8px; border-radius: 8px; background: #fff; }
.tv-shell #detail .close { z-index: 1; }

.tv-shell[data-tv-page="articles"] #featured-articles {
 position: relative;
 isolation: isolate;
 overflow: hidden;
 margin: 0 0 16px;
 padding: 20px 6px 14px 24px;
 border: 1px solid #35577b;
 border-radius: 16px;
 background: linear-gradient(90deg,#112841 12%,#112841e8 35%,#11284165 75%),
   url('/assets/spotlight/podcast-studio.webp') center 52% / cover;
}
.article-spotlight-heading { margin: 0 0 12px; color: var(--tv-blue); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.article-spotlight-slide { display: grid; grid-template-columns: minmax(0,44fr) minmax(0,56fr); align-items: center; gap: 16px; min-height: 220px; }
.article-spotlight-copy { min-width: 0; }
.article-spotlight-copy h3 { margin: 5px 0; font-size: clamp(1.35rem,3vw,2.55rem); line-height: 1.12; overflow-wrap: anywhere; }
.article-spotlight-copy p { margin: 6px 0; color: var(--tv-muted); }
.article-spotlight-label { font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.article-spotlight-byline { font-size: .87rem; }
.article-spotlight-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tv-shell[data-tv-page="articles"] .article-spotlight-link { display: inline-block; margin: 8px 0; padding: 8px 12px; border-radius: 7px; background: #b6e2ff; color: #0c263e; font-weight: 700; }
.article-spotlight-art { display: block; justify-self: end; width: 100%; height: clamp(240px, 32vw, 440px); object-fit: contain; object-position: right center; border-radius: 9px; }
#featured-articles .featured-controls { margin: 9px 8px 0 0; justify-content: flex-end; }
@media (max-width: 650px) {
 .tv-shell[data-tv-page="articles"] #featured-articles { padding: 14px 6px 14px 14px; }
 .article-spotlight-slide { grid-template-columns: 1fr; gap: 7px; min-height: auto; }
 .article-spotlight-art { height: clamp(168px, 68vw, 330px); }
 #featured-articles .featured-controls { justify-content: flex-start; }
}

/* A high-contrast state makes the selected weekly day easy to find. */
.tv-shell #home-program-guide .home-guide-tabs button[aria-pressed="true"] {
  background: var(--tv-blue);
  border-color: var(--tv-blue);
  color: #10283d;
  font-weight: 800;
}
.tv-shell #home-program-guide .home-guide-tabs button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
.tv-shell #home-program-guide .home-guide-tabs button[aria-pressed="true"]:focus-visible {
  outline-color: #10283d;
}

.tv-shell #discovery-search button[type="submit"],
.tv-shell #replay-search-form button[type="submit"] {
  background: #ffdf00;
  border-color: #ffdf00;
  color: #151b23;
  min-height: 44px;
  font-weight: 800;
}

.tv-shell #discovery-search button[type="submit"]:hover,
.tv-shell #replay-search-form button[type="submit"]:hover { background: #ffeb66; }

.tv-shell #discovery-search button[type="submit"]:focus-visible,
.tv-shell #replay-search-form button[type="submit"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.tv-shell #episode-library :is(.episode-match, #episode-publisher > div, .directory-search-preview) {
  background: #172e47;
  border-color: #476786;
  color: var(--tv-text);
}
.tv-shell #episode-library .episode-match { border-left-color: #62dab9; }
.tv-shell #episode-library .episode-match :is(p, small) { color: var(--tv-text); }
.tv-shell #episode-library .directory-search-preview button {
  background: #1d3854;
  border-color: #476786;
  color: var(--tv-text);
}
.tv-shell #episode-library :is(.episode-match .tag, .appearance-badge, .social-source-badges span) {
  background: #203d56;
  border-color: #476786;
  color: #d9edff;
}
.tv-shell #episode-library .directory-search-preview span,
.tv-shell #episode-library .episode-coverage { color: var(--tv-muted); }
.tv-shell #episode-library .guest-search-coverage { color: var(--tv-muted) !important; }
.tv-shell #episode-library button.inline-link { color: var(--tv-blue); }

.tv-shell #episode-library .episode-card-top { align-items: center; }
.tv-shell #episode-library .episode-show {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.tv-shell #episode-library .episode-show .inline-link { text-align: left; }
.tv-shell #episode-library .episode-show-art {
  flex: none;
  border: 1px solid var(--tv-line);
  border-radius: 7px;
  object-fit: contain;
  background: #101c2b;
}

.tv-shell #episode-library .episode-result-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tv-shell #episode-library .episode-result-actions:has(button:not([hidden])) { margin-bottom: 1rem; }
.tv-shell #episode-library #episode-count { font-size: 0.9rem; }
