/*
 * Easy Read is loaded by header.php after each page's legacy styles.
 * It intentionally affects only the light accessibility theme.
 */
html[data-app-theme=daylight] body.polished-app{
  --easy-link:#075b72;
  color:var(--app-text)!important;
}

html[data-app-theme=daylight] body.polished-app :is(h1,h2,h3,h4,h5,h6,p,label,legend,li,td,small){
  color:var(--app-text)!important;
}
html[data-app-theme=daylight] body.polished-app :is(
  .app-card,.results-section,.detail-section,.form-card,.table-container,
  .browse-card-unified,.favorites-section,.kamikaze-card,.share-card,.tip-card,.request-card,
  .songbook-container-title,.songbook-container-header,.songbook-container,.songbook-container-right,
  .browse-container-title,.browse-container,.browse-container-header,.main-container,.tip-container,
  .add-container-header,.show-container,.request-header,.tagline
){
  color:var(--app-text)!important;
}

/* Ordinary page copy must be dark on light surfaces, including legacy inline white. */
html[data-app-theme=daylight] body.polished-app :is(
  .songbook-stats,.app-show-status,.app-show-status span,.app-show-full,.app-show-compact,
  .app-mobile-schedule-title,.header-title,.header-title-text,.artist-header-text,
  .rules-title,.selection-label,.kamikaze-header,.artist-col,.kamikaze-footer,
  .share-instruction,.pwa-tip-box,.tip-message-box,.tip-headline,.tipjar-header,
  .rules-box,.selection-area,.count-summary,.calendar-table td,.calendar-table td strong,
  .chat-header-row,.chat-header-row>div,.chat-message,.chat-message div,.chat-row input,
  .notification-card,.notification-card div,.notification-card span,
  .browse-footer .rules,.offline-browse-notice,.offline-kamikaze-notice,.offline-browse-item button,
  .offline-browse-controls select,.offline-alpha button,.setlist-host-close,.setlist-toast,
  .app-portrait-notice,.no-results,.empty-songs
){color:var(--app-text)!important}

html[data-app-theme=daylight] body.polished-app [style*="color:#fff" i],
html[data-app-theme=daylight] body.polished-app [style*="color: #fff" i],
html[data-app-theme=daylight] body.polished-app [style*="color:white" i],
html[data-app-theme=daylight] body.polished-app [style*="color: white" i]{
  color:var(--app-text)!important;
}

html[data-app-theme=daylight] body.polished-app a{
  color:var(--easy-link)!important;
}
html[data-app-theme=daylight] body.polished-app :is(.app-show-status a,.location-col a){
  color:var(--easy-link)!important;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
}
html[data-app-theme=daylight] body.polished-app :is(input:not([type=button]):not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
  color:var(--app-text)!important;
  background:var(--app-panel-deep)!important;
}
html[data-app-theme=daylight] body.polished-app :is(.chat-user,.count-summary strong){color:#075f43!important}
html[data-app-theme=daylight] body.polished-app .artist-item:active{color:#fff!important}

/* The two home feature cards become one coherent colored surface, not nested buttons. */
html[data-app-theme=daylight] body.polished-app .app-card.browse-hero-card{
  padding:0!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,var(--theme-brand),#477d91)!important;
  border-color:#244e60!important;
}
html[data-app-theme=daylight] body.polished-app .app-card.browse-hero-card .btn-browse-hero{
  width:100%!important;
  max-width:none!important;
  min-height:82px!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  color:#fff!important;
}
html[data-app-theme=daylight] body.polished-app .app-card.browse-hero-card .btn-browse-hero :is(.browse-hero-title,.browse-hero-icon,.browse-hero-arrow){color:#fff!important}
html[data-app-theme=daylight] body.polished-app .app-card.browse-hero-card .btn-browse-hero .browse-hero-sub{color:#e8f2f5!important}

/* Controls that deliberately use a dark brand surface keep light lettering. */
html[data-app-theme=daylight] body.polished-app :is(
  .btn,.nav-btn,.request-btn,.home-icon-btn,.icon-btn,.btn-calendar-tile,
  .app-alpha-arrow,.offline-browse-back,.offline-browse-count,
  .offline-browse-tabs button.active,.setlist-add-btn.is-added
){color:#fff!important}
html[data-app-theme=daylight] body.polished-app :is(
  .app-nav a[aria-current=page],.browse-tab.active,.fav-tab-btn.active,
  .alpha-btn.active,.sort-chip.active
){color:#fff!important}
html[data-app-theme=daylight] body.polished-app :is(
  .app-menu-panel .app-nav a,.browse-tab,.alpha-btn
){color:#fff!important}
html[data-app-theme=daylight] body.polished-app .app-menu-panel .app-nav a:hover{
  background:#3d7186!important;
  color:#fff!important;
}
html[data-app-theme=daylight] body.polished-app :is(.calendar-table thead,.calendar-table th,.kamikaze-table th){color:#fff!important}
html[data-app-theme=daylight] body.polished-app .app-departure-alert{color:#ffd7d4!important}

/* Pale controls and transparent header icons need dark lettering. */
html[data-app-theme=daylight] body.polished-app :is(
  .app-menu-toggle,.app-header-home,.app-home-link,.app-more-menu>summary,
  .app-live-show-link,.app-up-next-alert,.fav-btn,.heart-btn,.toggle-fav-btn
){color:var(--app-text)!important}

/* The age key stays a dark inset so every colored swatch is readable. */
html[data-app-theme=daylight] body.polished-app .legend-box{
  background:#263f4b!important;
  color:#fff!important;
  border-color:#315f73!important;
}
html[data-app-theme=daylight] body.polished-app .legend-box strong{color:#fff!important}
html[data-app-theme=daylight] body.polished-app .legend-box span:nth-of-type(1){color:#ff7777!important}
html[data-app-theme=daylight] body.polished-app .legend-box span:nth-of-type(2){color:#ffb568!important}
html[data-app-theme=daylight] body.polished-app .legend-box span:nth-of-type(3){color:#ffe08a!important}
html[data-app-theme=daylight] body.polished-app .legend-box span:nth-of-type(4){color:#63e6be!important}
html[data-app-theme=daylight] body.polished-app .legend-box span:nth-of-type(5){color:#dce7eb!important}

/* Join Live Show: keep every state readable on the light accessibility theme. */
html[data-app-theme=daylight] body.polished-app .live-join :is(
  .live-show-card,.live-install,.live-phase-note,.live-up-next,
  .live-request-row,.live-result-row,.live-change-panel,.live-archive
){
  color:var(--app-text)!important;
}
html[data-app-theme=daylight] body.polished-app .live-join :is(
  .live-muted,.live-show-meta,.live-artist,.live-request-meta,
  .live-request-help,.live-up-next small
){
  color:var(--app-muted)!important;
}

html[data-app-theme=daylight] body.polished-app .live-success,
html[data-app-theme=daylight] body.polished-app .live-success :is(p,strong,span){
  background:#d9f3df!important;
  color:#163f24!important;
}
html[data-app-theme=daylight] body.polished-app .live-error,
html[data-app-theme=daylight] body.polished-app .live-error :is(p,strong,span){
  background:#f8dedd!important;
  color:#6f1f1f!important;
}
html[data-app-theme=daylight] body.polished-app .live-joined,
html[data-app-theme=daylight] body.polished-app .live-joined :is(p,strong){
  background:#e0f4e4!important;
  color:#173d22!important;
}
html[data-app-theme=daylight] body.polished-app .live-joined{
  border-color:#4f805c!important;
}
html[data-app-theme=daylight] body.polished-app .live-joined-mark{
  background:#2f7a45!important;
  color:#fff!important;
}

html[data-app-theme=daylight] body.polished-app .live-request-row:is(
  [data-status="added_to_karma"],[data-status="up_next"],[data-status="singing"]
){
  background:#e0f4e4!important;
  color:#173d22!important;
}
html[data-app-theme=daylight] body.polished-app .live-request-row:is(
  [data-status="added_to_karma"],[data-status="up_next"],[data-status="singing"]
) :is(.live-song,.live-artist,.live-request-meta){
  color:#173d22!important;
}
html[data-app-theme=daylight] body.polished-app .live-request-row:is(
  [data-status="added_to_karma"],[data-status="up_next"],[data-status="singing"]
) .live-status{
  background:#2f7a45!important;
  border-color:#2f7a45!important;
  color:#fff!important;
}

html[data-app-theme=daylight] body.polished-app :is(
  .live-reserved,.live-reason,.live-order-state
){
  color:#694600!important;
}
html[data-app-theme=daylight] body.polished-app .live-name-action{
  color:var(--easy-link)!important;
}
html[data-app-theme=daylight] body.polished-app .live-cancel{
  border-color:#9a4b4b!important;
  color:#7b2424!important;
}
