/* NANA 6.0.6 — contrast stabilization and three-language aftercare CTA.
   Fixes conflicting 5.8 dark-section rules on the 6.0.5 light article surfaces.
   Preserve genuine dark sections and the 6.0.4.3 language picker unchanged. */

/* Reading surfaces: older CSS forced article text white for Obsidian pages;
   6.0.5 intentionally moved reading pages to ivory, so override together. */
body.nana-editorial-system-v605 #main-content section.nana-article-dark-section.nana-editorial-reading {
  background:#F6F3EE!important;color:#111!important;
}
body.nana-editorial-system-v605 #main-content section.nana-article-dark-section.nana-editorial-reading .article-post
  :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,strong,small,dt,dd) {
  color:#292529!important;opacity:1!important;text-shadow:none!important;
}
body.nana-editorial-system-v605 #main-content section.nana-article-dark-section.nana-editorial-reading .article-post
  :is(h1,h2,h3,h4,h5,h6){color:#111!important}
body.nana-editorial-system-v605 #main-content section.nana-article-dark-section.nana-editorial-reading .article-post
  a:not(.button):not(.knowledge-more) {color:#503A4D!important;text-decoration:underline;text-underline-offset:3px}
body.nana-editorial-system-v605 #main-content section.nana-article-dark-section.nana-editorial-reading .article-post
  :is(.nana-editorial-figure figcaption,.wp-element-caption){color:#504850!important}
body.nana-editorial-system-v605 #main-content section.nana-article-dark-section.nana-editorial-reading
  :is(.content-disclaimer,.nana-medical-review){background:#fff!important;color:#292529!important}
/* In the article body, dark callouts continue dark with a genuinely light foreground. */
body.nana-editorial-system-v605 #main-content .nana-editorial-reading .service-link-box {
  background:#111!important;color:#fff!important;
}
body.nana-editorial-system-v605 #main-content .nana-editorial-reading .service-link-box :is(h2,h3,p,li,strong){color:#fff!important}
body.nana-editorial-system-v605 #main-content .nana-editorial-reading .service-link-box a.button {
  background:#fff!important;color:#111!important;border-color:#fff!important;
}

/* EN/AR topic and service content: light page, dark reading copy. */
body:is(.nana-lang-en,.nana-lang-ar) #main-content .nana-local-topic-edition,
body:is(.nana-lang-en,.nana-lang-ar) #main-content .nana-editorial-local {
  background:#F6F3EE!important;color:#292529!important;
}
body:is(.nana-lang-en,.nana-lang-ar) #main-content .nana-local-topic-edition
  :is(.nana-topic-intro,.nana-topic-section-head,.nana-topic-section-body,.nana-topic-faq,.nana-topic-aside-content) :is(h2,h3,h4,p,li,summary,strong,small),
body:is(.nana-lang-en,.nana-lang-ar) #main-content .nana-editorial-local .nana-local-content > :is(h2,h3,p),
body:is(.nana-lang-en,.nana-lang-ar) #main-content .nana-editorial-local .nana-local-article-copy :is(h2,h3,p) {
  color:#292529!important;opacity:1!important;text-shadow:none!important;
}
body:is(.nana-lang-en,.nana-lang-ar) #main-content .nana-local-topic-edition
  :is(.nana-topic-intro,.nana-topic-section-head,.nana-topic-faq,.nana-topic-aside-content) :is(h2,h3){color:#111!important}
body:is(.nana-lang-en,.nana-lang-ar) #main-content .nana-editorial-local .nana-local-tile,
body:is(.nana-lang-en,.nana-lang-ar) #main-content .nana-local-topic-edition :is(details,.nana-topic-aside-content){
  background:#fff!important;color:#292529!important;
}
body:is(.nana-lang-en,.nana-lang-ar) #main-content :is(.nana-local-topic-edition,.nana-editorial-local)
  :is(.nana-local-tile,.nana-topic-faq details) :is(h3,p,li,summary){color:#292529!important}
body:is(.nana-lang-en,.nana-lang-ar) #main-content .nana-editorial-local .nana-local-booking-note{background:#fff!important;color:#292529!important}
body:is(.nana-lang-en,.nana-lang-ar) #main-content .nana-editorial-local .nana-booking-fields :is(input,select,textarea){background:#fff!important;color:#111!important}

/* Light inner cards on older dark Persian service/contact screens. Do NOT recolor
   the whole service directory: its filter/header was deliberately built dark. */
#main-content .nana-content-section :is(.service-teaser-card,.knowledge-card,.aftercare-card,.contact-card,.service-brief,.nana-medical-review,.notice-slim,.nana-contact-save-card,.booking-guidance)
 :is(h2,h3,h4,p,li,span,strong,small,em){color:#292529!important;opacity:1!important}
#main-content .nana-content-section .nana-services-catalog .nana-service-directory-card :is(strong,small){color:#292529!important}
#main-content .nana-content-section .nana-services-catalog .nana-service-directory-card small{color:#503A4D!important}
#main-content .nana-content-section .nana-service-directory-card .nana-action-primary :is(span,em),
#main-content .nana-content-section .nana-aftercare-card .nana-aftercare-download :is(span,em){color:#fff!important}
/* Form text on pale backgrounds; keep booking-contact (Obsidian) light. */
#main-content .nana-content-section :is(.nana-booking-request,.nana-aftercare-library,.nana-contact-save-card)
 :is(h2,h3,p,label,small){color:#292529!important}
#main-content .nana-content-section .booking-contact :is(h2,h3,p,span,strong){color:#fff!important}
#main-content .nana-content-section .booking-contact .button:not(.button-outline){color:#111!important;background:#fff!important}
#main-content .nana-content-section .booking-contact .button-outline{color:#fff!important;background:transparent!important}
/* Previously a low-contrast rose label was reused on an ivory surface. */
#main-content .nana-editorial-interior .nana-aftercare-library-head .eyebrow{color:#503A4D!important}

/* Aftercare has an ivory photo hero. Historic editorial-hero rules forced its
   headings WHITE; the light-specific rule must be at least as strong. */
body #main-content header.page-hero.nana-editorial-page-hero.hero-aftercare {
 background:#F6F3EE!important;color:#111!important;
}
body #main-content header.page-hero.nana-editorial-page-hero.hero-aftercare
 :is(h1,.lead,.eyebrow,.breadcrumb,.breadcrumb a,.breadcrumb span){color:#111!important;text-shadow:none!important;opacity:1!important}
body #main-content header.page-hero.nana-editorial-page-hero.hero-aftercare .page-hero-overlay {
  background:linear-gradient(270deg,rgba(246,243,238,.98) 8%,rgba(246,243,238,.92) 48%,rgba(246,243,238,.25) 86%)!important;
}

/* Only the explicitly light hero may use dark text. Dark photographic heroes
   retain their white text, dark overlay and visual hierarchy. */
#main-content .page-hero.nana-local-topic-hero .page-hero-content :is(h1,.lead,.eyebrow){color:#111!important;text-shadow:none!important}

/* 6.0.6 aftercare action appears after the last home section, just above the footer.
   Purple/white is a deliberate branded CTA, with an accessible focus indicator. */
body.home #main-content > .nana-home-aftercare-access {
  display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;
  clear:both;background:#F6F3EE!important;padding:clamp(30px,4.5vw,64px) 0!important;
  border-top:1px solid #D8D1C8;
}
body.home #main-content > .nana-home-aftercare-access .nana-home-aftercare-access-inner{
  display:flex!important;justify-content:center!important;align-items:center!important;
}
body.home #main-content > .nana-home-aftercare-access a.nana-home-aftercare-button {
  display:inline-flex!important;align-items:center;justify-content:center;
  gap:12px;min-height:62px;max-width:100%;
  padding:15px clamp(22px,3vw,42px)!important;
  background:#6E586B!important;border:1px solid #6E586B!important;color:#fff!important;
  font-size:clamp(1rem,1.3vw,1.22rem)!important;font-weight:750;line-height:1.7;
  text-align:center!important;text-decoration:none!important;border-radius:11px!important;
  box-shadow:0 6px 18px rgba(17,17,17,.12);
}
body.home #main-content > .nana-home-aftercare-access a.nana-home-aftercare-button :is(span,svg){color:#fff!important}
body.home #main-content > .nana-home-aftercare-access a.nana-home-aftercare-button:is(:hover,:focus-visible){
  background:#51404E!important;border-color:#51404E!important;color:#fff!important;
}
body.home #main-content > .nana-home-aftercare-access a.nana-home-aftercare-button:focus-visible{
  outline:3px solid #111!important;outline-offset:4px!important;
}
@media(max-width:600px){
 body.home #main-content > .nana-home-aftercare-access .nana-home-aftercare-button{width:min(100%,440px);min-height:58px}
}
