/* Final dark-surface contrast guard.
 * Safari/iOS can keep an inherited -webkit-text-fill-color even after the
 * normal CSS color changes. On dark UI surfaces, make the paint color follow
 * each element's computed color without overriding nested light-card colors.
 */
body.sk-legacy-restore :is(
  .skv6-hero,
  .skv6-service-featured,
  .skv6-oma,
  .skv6-b2b,
  .skv6-final-panel,
  .skv6-booking-hero,
  .skv6-station-live-section,
  .skv6-live-card,
  .skv6-b2b-summary,
  .skv6-fleet-card,
  .skv6-guide-topic-dark,
  .skv6-dashboard-nav,
  .skv6-global-footer,
  .aj-callout,
  .aj-stat-grid > div,
  .aj-weekly-band,
  .sk-company-focus-strip,
  .skstaff__focus,
  .sk-smart-import
) :is(p,li,dd,address,h1,h2,h3,h4,span,strong,b,em,small,a){
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
}

/* SK Ajossa dark editorial surfaces: these are leaf cards, so copy can be
 * locked to an accessible light colour without affecting nested light cards. */
body.sk-legacy-restore .aj-article-body .aj-callout :is(p,li,dd,address,small){
  color:#eef4f8!important;
  -webkit-text-fill-color:#eef4f8!important;
}
body.sk-legacy-restore .aj-article-body .aj-callout :is(h1,h2,h3,h4){
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
body.sk-legacy-restore .aj-article-body .aj-callout a,
body.sk-legacy-restore .aj-article-body .aj-callout a:is(:link,:visited,:hover,:focus,:active){
  color:#ffe900!important;
  -webkit-text-fill-color:#ffe900!important;
}
body.sk-legacy-restore .aj-article-body .aj-stat-grid > div{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
body.sk-legacy-restore .aj-article-body .aj-stat-grid > div strong{
  color:#ffe900!important;
  -webkit-text-fill-color:#ffe900!important;
}
body.sk-legacy-restore .aj-article-body .aj-stat-grid > div span{
  color:#edf5fa!important;
  -webkit-text-fill-color:#edf5fa!important;
}

/* Table headers use navy backgrounds throughout service/guide pages. */
body.sk-legacy-restore :is(.sk-service-table,.sk-guide-table) thead,
body.sk-legacy-restore :is(.sk-service-table,.sk-guide-table) thead :is(th,td,span,strong,b,small,a){
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
}
