:root{--cm-controls-top:90px;--cm-controls-side:24px}
.member-access-nav.cm-global-controls{display:flex!important;align-items:center!important;gap:7px!important;width:auto!important;max-width:calc(100vw - 36px)!important;margin:0!important;padding:5px!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:999px!important;background:linear-gradient(145deg,rgba(25,14,52,.9),rgba(66,38,102,.84))!important;box-shadow:0 12px 32px rgba(20,8,46,.3),inset 0 1px 0 rgba(255,255,255,.2)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;overflow:visible!important;direction:ltr!important;pointer-events:auto!important}
.member-access-nav.cm-global-controls.cm-header-controls{position:absolute!important;top:var(--cm-controls-top)!important;left:var(--cm-controls-side)!important;right:auto!important;z-index:29!important}
.member-access-nav.cm-global-controls.cm-member-card-controls{position:static!important;justify-content:center!important;width:max-content!important;max-width:100%!important;margin:-5px auto 17px!important}
.member-access-nav.cm-global-controls.cm-profile-controls{position:static!important;justify-self:start!important;align-self:center!important;grid-column:1!important;width:max-content!important;max-width:100%!important;margin-top:4px!important}
.member-access-nav.cm-global-controls.cm-booking-controls{position:static!important;width:max-content!important;max-width:100%!important;margin-inline:auto!important}
.member-access-nav.cm-global-controls.cm-page-controls{position:absolute!important;top:14px!important;left:18px!important;right:auto!important;z-index:2147481400!important}
.member-access-nav.cm-global-controls.is-fa{direction:rtl!important}
.member-access-nav.cm-global-controls .member-access-link,.member-access-nav.cm-global-controls .cm-site-theme-toggle{position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:34px!important;max-width:220px!important;padding:0 13px!important;margin:0!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:999px!important;background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(172,128,235,.16))!important;color:#fff!important;text-decoration:none!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)!important;font:850 10px/1.2 Inter,Tahoma,Arial,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;cursor:pointer!important;transition:transform .18s ease,background .18s ease!important}
.member-access-nav.cm-global-controls .member-access-link:hover,.member-access-nav.cm-global-controls .cm-site-theme-toggle:hover{transform:translateY(-1px)!important;background:linear-gradient(145deg,rgba(255,255,255,.29),rgba(172,128,235,.24))!important}
.member-access-nav.cm-global-controls .member-access-link.profile{color:#fff2bf!important;max-width:230px!important}
.member-access-nav.cm-global-controls .cm-site-theme-toggle [data-theme-icon]{display:grid;place-items:center;width:21px;height:21px;flex:0 0 21px;border-radius:50%;background:rgba(255,255,255,.14);font-size:13px}
/* Home slide and every element inside it stay exactly on the original visual theme. */
html[data-site-theme="light"] body[data-page="home"]{background:#17112f}
html[data-site-theme="light"] body[data-page="home"] .site-shell,
html[data-site-theme="light"] body[data-page="home"] .slide-frame,
html[data-site-theme="light"] body[data-page="home"] .site-background,
html[data-site-theme="light"] body[data-page="home"] .motion-layer,
html[data-site-theme="light"] body[data-page="home"] .topbar,
html[data-site-theme="light"] body[data-page="home"] .menu-bar,
html[data-site-theme="light"] body[data-page="home"] .hero-copy,
html[data-site-theme="light"] body[data-page="home"] .social-card,
html[data-site-theme="light"] body[data-page="home"] .right-actions,
html[data-site-theme="light"] body[data-page="home"] .trust-block{filter:none!important;mix-blend-mode:normal!important}
/* Only content below the home slide changes theme. Other public/member pages may change normally. */
html[data-site-theme="light"] body:not([data-page="home"]){background:#f5f0fb;color:#2d2040}
html[data-site-theme="light"] .content-panels,html[data-site-theme="light"] .doctor-directory,html[data-site-theme="light"] .site-footer-section,html[data-site-theme="light"] .site-footer,html[data-site-theme="light"] footer:not(.cm-chat-footer){background:linear-gradient(180deg,#f6f1fb,#e9def4)!important;color:#302140}
html[data-site-theme="light"] .content-panels .glass-panel,html[data-site-theme="light"] .doctor-directory .doctor-card,html[data-site-theme="light"] .doctor-directory .specialist-card,html[data-site-theme="light"] .content-card,html[data-site-theme="light"] .article-card,html[data-site-theme="light"] .gallery-card,html[data-site-theme="light"] .program-card,html[data-site-theme="light"] .service-card,html[data-site-theme="light"] .footer-info-strip,html[data-site-theme="light"] .footer-glass-card,html[data-site-theme="light"] .page-review-card,html[data-site-theme="light"] .member-card,html[data-site-theme="light"] .booking-card{border-color:rgba(83,55,120,.14)!important;background:rgba(255,255,255,.78)!important;color:#2d2040!important;box-shadow:0 18px 45px rgba(68,42,99,.12)!important}
html[data-site-theme="light"] .content-panels h1,html[data-site-theme="light"] .content-panels h2,html[data-site-theme="light"] .content-panels h3,html[data-site-theme="light"] .doctor-directory h1,html[data-site-theme="light"] .doctor-directory h2,html[data-site-theme="light"] .doctor-directory h3,html[data-site-theme="light"] .site-footer-section h1,html[data-site-theme="light"] .site-footer-section h2,html[data-site-theme="light"] .site-footer-section h3,html[data-site-theme="light"] .member-page h1,html[data-site-theme="light"] .member-page h2,html[data-site-theme="light"] .booking-page h1,html[data-site-theme="light"] .booking-page h2{color:#2c1d42!important}
html[data-site-theme="light"] .content-panels p,html[data-site-theme="light"] .content-panels small,html[data-site-theme="light"] .doctor-directory p,html[data-site-theme="light"] .doctor-directory small,html[data-site-theme="light"] .site-footer-section p,html[data-site-theme="light"] .site-footer-section small,html[data-site-theme="light"] .member-page p,html[data-site-theme="light"] .booking-page p{color:#665675}
html[data-site-theme="light"] .member-page input,html[data-site-theme="light"] .member-page textarea,html[data-site-theme="light"] .member-page select,html[data-site-theme="light"] .booking-page input,html[data-site-theme="light"] .booking-page textarea,html[data-site-theme="light"] .booking-page select,html[data-site-theme="light"] .doctor-directory input{border-color:rgba(83,55,120,.17)!important;background:rgba(255,255,255,.9)!important;color:#2d2040!important}
html[data-site-theme="light"] .member-access-nav.cm-global-controls{background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(232,219,247,.91))!important;border-color:rgba(82,55,119,.18)!important;box-shadow:0 12px 30px rgba(68,42,99,.18),inset 0 1px 0 #fff!important}
html[data-site-theme="light"] .member-access-nav.cm-global-controls .member-access-link,html[data-site-theme="light"] .member-access-nav.cm-global-controls .cm-site-theme-toggle{background:rgba(255,255,255,.72)!important;color:#35204f!important;border-color:rgba(82,55,119,.17)!important}
html[data-site-theme="light"] .cm-chat-root{color:#fff}
.member-switch-link{display:block;text-align:center;margin-top:14px;color:#f8e9b2;text-decoration:none;font-size:12px;font-weight:900}.member-switch-link:hover{text-decoration:underline}.member-back-link{opacity:.78}
@media(max-width:1180px){
  :root{--cm-controls-top:84px;--cm-controls-side:14px}
  .topbar{height:166px!important}
  .menu-bar{top:124px!important}
  .member-access-nav.cm-global-controls.cm-header-controls{max-width:calc(100vw - 28px)!important}
}
@media(max-width:820px){
  :root{--cm-controls-top:72px;--cm-controls-side:12px}
  .topbar{height:154px!important}
  .menu-bar{top:114px!important}
  .member-access-nav.cm-global-controls{gap:4px!important;padding:4px!important}
  .member-access-nav.cm-global-controls.cm-header-controls{max-width:calc(100vw - 24px)!important}
  .member-access-nav.cm-global-controls .member-access-link,.member-access-nav.cm-global-controls .cm-site-theme-toggle{min-height:31px!important;padding:0 9px!important;font-size:8.5px!important;max-width:155px!important}
  .member-access-nav.cm-global-controls .cm-site-theme-toggle [data-theme-label]{display:none}
  .member-access-nav.cm-global-controls .cm-site-theme-toggle [data-theme-icon]{width:19px;height:19px;flex-basis:19px}
  .member-access-nav.cm-global-controls.cm-profile-controls{justify-self:center!important;grid-column:1/-1!important;margin:0 auto!important}
}
@media(max-width:590px){
  :root{--cm-controls-top:70px;--cm-controls-side:9px}
  .topbar{height:148px!important}
  .menu-bar{top:110px!important}
  .member-access-nav.cm-global-controls.cm-header-controls{max-width:calc(100vw - 18px)!important}
}
@media(max-width:420px){
  .member-access-nav.cm-global-controls .member-access-link{max-width:190px!important}
  .member-access-nav.cm-global-controls .cm-site-theme-toggle{width:34px!important;padding:0!important}
}

/* V102 — accessible day-mode palette and readable specialist cards. */
html[data-site-theme="light"] .doctor-directory{
  background:
    radial-gradient(circle at 13% 8%,rgba(127,86,201,.10),transparent 27%),
    radial-gradient(circle at 88% 72%,rgba(255,139,47,.07),transparent 30%),
    linear-gradient(180deg,#fbf9fe 0%,#f3eef9 100%)!important;
  color:#2a193c!important;
}
html[data-site-theme="light"] .doctor-directory::before{
  background-image:
    linear-gradient(rgba(91,60,129,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(91,60,129,.035) 1px,transparent 1px)!important;
  opacity:.72;
}
html[data-site-theme="light"] .doctor-directory .doctor-directory-header{
  border-color:rgba(89,55,126,.16)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,242,252,.96))!important;
  box-shadow:0 16px 38px rgba(65,37,94,.12),inset 0 1px 0 #fff!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-directory-kicker{
  color:#7545a8!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-directory-heading h2{
  color:#251536!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-results-status{
  color:#624b76!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-search{
  border-color:rgba(90,57,128,.20)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 10px 24px rgba(65,37,94,.09),inset 0 1px 0 #fff!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-search:focus-within{
  border-color:rgba(115,70,170,.55)!important;
  box-shadow:0 12px 28px rgba(65,37,94,.13),0 0 0 3px rgba(127,86,201,.10),inset 0 1px 0 #fff!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-search-icon{
  stroke:#67428f!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-search input{
  color:#2b1a3e!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-search input::placeholder{
  color:#806d8f!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-search-clear,
html[data-site-theme="light"] .doctor-directory .doctor-directory-back{
  border-color:rgba(89,55,126,.18)!important;
  background:#f4edf9!important;
  color:#3b2454!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-search-clear:hover,
html[data-site-theme="light"] .doctor-directory .doctor-directory-back:hover{
  background:#e9def4!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card{
  border-color:rgba(86,57,119,.15)!important;
  background:linear-gradient(180deg,#ffffff 0%,#fcfafe 100%)!important;
  color:#28193a!important;
  box-shadow:0 16px 38px rgba(62,37,88,.13),inset 0 1px 0 #fff!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card:hover{
  border-color:rgba(119,75,176,.32)!important;
  box-shadow:0 24px 48px rgba(62,37,88,.18),0 0 0 1px rgba(128,87,190,.06),inset 0 1px 0 #fff!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card::after{
  opacity:.045!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-photo-wrap{
  background:#eee9f4!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-photo-wrap::after{
  background:linear-gradient(to top,rgba(27,16,45,.14),transparent 55%)!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-name{
  color:#22142f!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-specialty{
  border-color:color-mix(in srgb,var(--doctor-accent) 28%,#d9cce8)!important;
  background:color-mix(in srgb,var(--doctor-accent) 14%,#f7f2fb)!important;
  color:#563479!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-meta-row{
  border-color:rgba(86,57,119,.10)!important;
  background:#faf7fd!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92)!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-meta-icon{
  background:#fff1df!important;
  color:#d86608!important;
  box-shadow:inset 0 0 0 1px rgba(222,116,25,.10)!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-meta-label{
  color:#6e4c91!important;
  font-weight:850!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-meta-value{
  color:#2c2036!important;
  font-weight:750!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-feedback-icon{
  border-color:rgba(83,55,120,.16)!important;
  background:#fff!important;
  color:#39244f!important;
  box-shadow:0 3px 9px rgba(62,37,88,.06)!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-feedback-icon:hover:not(:disabled){
  border-color:rgba(156,104,205,.45)!important;
  background:#f3ebfa!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-feedback-icon.is-selected,
html[data-site-theme="light"] .doctor-directory .doctor-feedback-icon[aria-checked="true"]{
  border-color:rgba(210,142,29,.55)!important;
  background:#fff4d8!important;
  box-shadow:0 0 0 2px rgba(237,176,58,.09)!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-feedback-count{
  color:#513d62!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-feedback-icon.is-selected .doctor-feedback-count{
  color:#6a4200!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-review-button{
  border-color:rgba(83,55,120,.15)!important;
  background:#f5eefb!important;
  color:#3b2454!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-review-button:hover{
  border-color:rgba(122,77,173,.36)!important;
  background:#ece1f6!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-review-button span{
  color:#bd7200!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-review-button em{
  background:#e8dcf4!important;
  color:#42265f!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-empty-state{
  border-color:rgba(83,55,120,.22)!important;
  background:rgba(255,255,255,.75)!important;
  color:#5d496d!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-empty-state strong{
  color:#2c1b3e!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-empty-state p{
  color:#6c5a78!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-details{
  background:linear-gradient(145deg,#754bd0,#4f2caf)!important;
  color:#fff!important;
  border-color:rgba(78,43,161,.40)!important;
  box-shadow:0 10px 23px rgba(73,43,148,.22)!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-booking{
  background:linear-gradient(145deg,#ff8a2e,#ef6b08)!important;
  color:#fff!important;
  border-color:rgba(218,91,0,.34)!important;
  box-shadow:0 10px 23px rgba(228,98,10,.22)!important;
}
html[data-site-theme="light"] .doctor-directory .doctor-card-action:hover{
  border-color:rgba(255,255,255,.7)!important;
}

/* Shared public content remains legible in day mode without touching the home slider. */
html[data-site-theme="light"] body:not([data-page="home"]) .content-card,
html[data-site-theme="light"] body:not([data-page="home"]) .article-card,
html[data-site-theme="light"] body:not([data-page="home"]) .gallery-card,
html[data-site-theme="light"] body:not([data-page="home"]) .program-card,
html[data-site-theme="light"] body:not([data-page="home"]) .service-card,
html[data-site-theme="light"] body:not([data-page="home"]) .page-review-card{
  color:#2b1b3d!important;
}
html[data-site-theme="light"] body:not([data-page="home"]) .content-card :is(h1,h2,h3,h4,strong),
html[data-site-theme="light"] body:not([data-page="home"]) .article-card :is(h1,h2,h3,h4,strong),
html[data-site-theme="light"] body:not([data-page="home"]) .gallery-card :is(h1,h2,h3,h4,strong),
html[data-site-theme="light"] body:not([data-page="home"]) .program-card :is(h1,h2,h3,h4,strong),
html[data-site-theme="light"] body:not([data-page="home"]) .service-card :is(h1,h2,h3,h4,strong),
html[data-site-theme="light"] body:not([data-page="home"]) .page-review-card :is(h1,h2,h3,h4,strong){
  color:#261735!important;
}
html[data-site-theme="light"] body:not([data-page="home"]) .content-card :is(p,li,label,small),
html[data-site-theme="light"] body:not([data-page="home"]) .article-card :is(p,li,label,small),
html[data-site-theme="light"] body:not([data-page="home"]) .gallery-card :is(p,li,label,small),
html[data-site-theme="light"] body:not([data-page="home"]) .program-card :is(p,li,label,small),
html[data-site-theme="light"] body:not([data-page="home"]) .service-card :is(p,li,label,small),
html[data-site-theme="light"] body:not([data-page="home"]) .page-review-card :is(p,li,label,small){
  color:#5d4b6a!important;
}

@media(max-width:620px){
  html[data-site-theme="light"] .doctor-directory .doctor-card-meta-label{font-size:10.5px!important}
  html[data-site-theme="light"] .doctor-directory .doctor-card-meta-value{font-size:12.5px!important}
}

/* V103 — complete readable day-mode text palette across all public/member content.
   The original home hero/slider remains excluded from these selectors. */
html[data-site-theme="light"]{
  --cm-day-title:#21132f;
  --cm-day-text:#342342;
  --cm-day-muted:#65536f;
  --cm-day-soft:#786884;
  --cm-day-link:#55308e;
  --cm-day-border:rgba(77,49,108,.18);
  --cm-day-surface:#ffffff;
  --cm-day-surface-soft:#f8f4fb;
}
html[data-site-theme="light"] body:not([data-page="home"]),
html[data-site-theme="light"] body:not([data-page="home"]) main,
html[data-site-theme="light"] body:not([data-page="home"]) .page-main,
html[data-site-theme="light"] body:not([data-page="home"]) .page-shell{
  color:var(--cm-day-text)!important;
}
html[data-site-theme="light"] :where(
  .doctor-directory,.service-directory,.content-directory,.about-directory,
  .treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.page-review-card,.member-page,.booking-page,
  .member-shell,.booking-shell,.program-booking-page,.service-booking-page
) :where(h1,h2,h3,h4,h5,h6,.title,.heading,[class*="-title"],[class*="-heading"]){
  color:var(--cm-day-title)!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] :where(
  .doctor-directory,.service-directory,.content-directory,.about-directory,
  .treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.page-review-card,.member-page,.booking-page,
  .member-shell,.booking-shell,.program-booking-page,.service-booking-page
) :where(p,li,dt,dd,label,legend,blockquote,figcaption,td,th,address,time,.text,.copy,[class*="-text"],[class*="-copy"],[class*="-value"]){
  color:var(--cm-day-text)!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] :where(
  .doctor-directory,.service-directory,.content-directory,.about-directory,
  .treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.page-review-card,.member-page,.booking-page,
  .member-shell,.booking-shell,.program-booking-page,.service-booking-page
) :where(small,.muted,.subtitle,.description,.meta,.hint,.note,[class*="-small"],[class*="-muted"],[class*="-subtitle"],[class*="-description"],[class*="-meta"],[class*="-hint"],[class*="-note"],[class*="-label"]){
  color:var(--cm-day-muted)!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] :where(
  .doctor-directory,.service-directory,.content-directory,.about-directory,
  .treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.page-review-card,.member-page,.booking-page,
  .member-shell,.booking-shell,.program-booking-page,.service-booking-page
) :where(a:not([class*="button"]):not([class*="btn"]):not(.doctor-card-action),[role="link"]){
  color:var(--cm-day-link)!important;
  text-decoration-color:rgba(85,48,142,.35)!important;
}
html[data-site-theme="light"] :where(
  .doctor-directory,.service-directory,.content-directory,.about-directory,
  .treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.page-review-card,.member-page,.booking-page,
  .member-shell,.booking-shell,.program-booking-page,.service-booking-page
) :where(input,textarea,select){
  background:#fff!important;
  color:var(--cm-day-text)!important;
  border-color:var(--cm-day-border)!important;
  caret-color:#5f35a1!important;
}
html[data-site-theme="light"] :where(
  .doctor-directory,.service-directory,.content-directory,.about-directory,
  .treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.page-review-card,.member-page,.booking-page,
  .member-shell,.booking-shell,.program-booking-page,.service-booking-page
) :where(input,textarea)::placeholder{
  color:#786a81!important;
  opacity:1!important;
}
html[data-site-theme="light"] :where(
  .doctor-directory,.service-directory,.content-directory,.about-directory,
  .treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.page-review-card,.member-page,.booking-page,
  .member-shell,.booking-shell,.program-booking-page,.service-booking-page
) :where(.glass-inner,.panel-row,.content-card,.article-card,.gallery-card,.program-card,.service-card,
  .about-record,.treatment-program-card,.service-detail-card,.page-review-list article,
  .footer-glass-card,.footer-info-strip,.member-card,.booking-card){
  color:var(--cm-day-text)!important;
}
html[data-site-theme="light"] :where(
  .doctor-directory,.service-directory,.content-directory,.about-directory,
  .treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.page-review-card,.member-page,.booking-page,
  .member-shell,.booking-shell,.program-booking-page,.service-booking-page
) :where(.badge,.tag,.pill,[class*="-badge"],[class*="-tag"],[class*="-pill"]){
  color:#4d2b70!important;
  opacity:1!important;
}
/* Restore white text inside colored action controls after the broad readable-text rules. */
html[data-site-theme="light"] :where(
  .doctor-card-action,.doctor-card-details,.doctor-card-booking,.service-detail-book,
  .service-detail-all,.page-review-submit,.primary,.secondary,.btn-primary,.btn-secondary,
  [class*="button-primary"],[class*="button-secondary"],[class*="-book"],[class*="-reserve"]
),
html[data-site-theme="light"] :where(
  .doctor-card-action,.doctor-card-details,.doctor-card-booking,.service-detail-book,
  .service-detail-all,.page-review-submit,.primary,.secondary,.btn-primary,.btn-secondary,
  [class*="button-primary"],[class*="button-secondary"],[class*="-book"],[class*="-reserve"]
) *{
  color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
}
/* Footer contact/link text receives an explicit accessible palette. */
html[data-site-theme="light"] .site-footer-section :where(.footer-brand-name,.footer-card-heading,.footer-contact-phone,strong){color:#261735!important}
html[data-site-theme="light"] .site-footer-section :where(.footer-brand-note,.footer-contact-address,.footer-legal-line,.footer-info-contact,small,p,span:not(.footer-card-icon)){color:#574664!important}
html[data-site-theme="light"] .site-footer-section a{color:#4f2a82!important}
/* Review and status text should never remain low-opacity in day mode. */
html[data-site-theme="light"] :where(.page-review-card,.doctor-directory,.content-directory) [style*="opacity"]{opacity:1!important}
/* Chat keeps its purpose-built dark contrast. */
html[data-site-theme="light"] .cm-chat-root,
html[data-site-theme="light"] .cm-chat-root *{--cm-day-title:initial;--cm-day-text:initial;--cm-day-muted:initial}

/* ========================================================================
   V104 — complete day-mode contrast correction across the whole website.
   Scope intentionally excludes the top home slider (.site-shell/.slide-frame).
   ======================================================================== */
html[data-site-theme="light"]{
  --cm-v104-ink:#21142f;
  --cm-v104-text:#352441;
  --cm-v104-muted:#66566f;
  --cm-v104-purple:#542c88;
  --cm-v104-orange:#c95d00;
  --cm-v104-line:rgba(72,46,101,.19);
  --cm-v104-card:#ffffff;
  --cm-v104-card-soft:#f8f4fb;
  --cm-v104-page:#f1eaf7;
}

/* Home content below the original slider. */
html[data-site-theme="light"] body[data-page="home"] > .content-panels{
  background:
    radial-gradient(circle at 16% 14%,rgba(120,76,184,.10),transparent 30%),
    radial-gradient(circle at 86% 72%,rgba(255,137,43,.08),transparent 30%),
    linear-gradient(180deg,#f7f3fb 0%,#ede5f4 100%)!important;
  color:var(--cm-v104-text)!important;
}
html[data-site-theme="light"] body[data-page="home"] > .content-panels .glass-panel{
  border-color:rgba(78,48,112,.17)!important;
  background:linear-gradient(150deg,rgba(255,255,255,.98),rgba(248,243,252,.97))!important;
  color:var(--cm-v104-text)!important;
  box-shadow:0 22px 55px rgba(65,39,91,.14),inset 0 1px 0 #fff!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html[data-site-theme="light"] body[data-page="home"] > .content-panels .glass-panel::before,
html[data-site-theme="light"] body[data-page="home"] > .content-panels .glass-panel::after{opacity:.05!important}

/* Home article detail and rows. */
html[data-site-theme="light"] body[data-page="home"] #articlePanel .home-article-detail{
  border:1px solid var(--cm-v104-line)!important;
  background:linear-gradient(145deg,#fff,#f7f1fa)!important;
  color:var(--cm-v104-text)!important;
  box-shadow:0 15px 35px rgba(67,40,94,.11),inset 0 1px 0 #fff!important;
}
html[data-site-theme="light"] body[data-page="home"] #articlePanel .home-article-detail-label{
  color:#684000!important;
  background:#fff3d5!important;
  border-color:rgba(193,116,0,.35)!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #articlePanel .home-article-detail-title{
  color:var(--cm-v104-ink)!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #articlePanel .home-article-detail-excerpt{
  color:#584761!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #articlePanel .home-article-detail-date{
  color:#a84d00!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #articlePanel .home-article-list-shell{
  background:rgba(81,52,111,.035)!important;
}
html[data-site-theme="light"] body[data-page="home"] #articlePanel .article-row{
  border-color:var(--cm-v104-line)!important;
  background:linear-gradient(145deg,#fff,#f8f4fb)!important;
  box-shadow:0 8px 20px rgba(65,39,91,.08),inset 0 1px 0 #fff!important;
  opacity:1!important;
  filter:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #articlePanel .article-row-title{
  color:var(--cm-v104-ink)!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #articlePanel .article-row-snippet{
  color:#5c4c65!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #articlePanel .article-row-date{
  color:#a94e00!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Home doctor detail and rows. */
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .home-doctor-detail{
  border:1px solid var(--cm-v104-line)!important;
  background:linear-gradient(145deg,#fff,#f8f2fb)!important;
  color:var(--cm-v104-text)!important;
  box-shadow:0 15px 35px rgba(67,40,94,.11),inset 0 1px 0 #fff!important;
}
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .doctor-detail-name{
  color:var(--cm-v104-ink)!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .doctor-detail-specialty{
  color:#6a328f!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .doctor-detail-meta div{
  border-color:rgba(77,48,108,.14)!important;
  background:#faf7fc!important;
  box-shadow:inset 0 1px 0 #fff!important;
}
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .doctor-detail-meta dt{
  color:#624978!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .doctor-detail-meta dd{
  color:#2e1f39!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .home-doctor-list-shell{
  background:rgba(81,52,111,.035)!important;
}
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .doctor-row{
  border-color:var(--cm-v104-line)!important;
  background:linear-gradient(145deg,#fff,#f8f4fb)!important;
  box-shadow:0 8px 20px rgba(65,39,91,.08),inset 0 1px 0 #fff!important;
  opacity:1!important;
  filter:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .doctor-row-name{
  color:var(--cm-v104-ink)!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .doctor-row-specialty{
  color:#6c338f!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #doctorPanel .doctor-row-separator{
  color:#7a657f!important;
  opacity:1!important;
}

/* Home gallery rows. Text on the image itself remains white over its dark overlay. */
html[data-site-theme="light"] body[data-page="home"] #homeGalleryPanel .home-gallery-list-shell{
  background:rgba(81,52,111,.035)!important;
}
html[data-site-theme="light"] body[data-page="home"] #homeGalleryPanel .home-gallery-row{
  border-color:var(--cm-v104-line)!important;
  background:linear-gradient(145deg,#fff,#f8f4fb)!important;
  box-shadow:0 8px 20px rgba(65,39,91,.08),inset 0 1px 0 #fff!important;
  opacity:1!important;
  filter:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #homeGalleryPanel .home-gallery-row-title{
  color:var(--cm-v104-ink)!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #homeGalleryPanel .home-gallery-row-text{
  color:#5c4c65!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-site-theme="light"] body[data-page="home"] #homeGalleryPanel .home-gallery-circle-copy,
html[data-site-theme="light"] body[data-page="home"] #homeGalleryPanel .home-gallery-circle-title{
  color:#fff!important;
  opacity:1!important;
  text-shadow:0 3px 14px rgba(0,0,0,.75)!important;
}
html[data-site-theme="light"] body[data-page="home"] #homeGalleryPanel .home-gallery-circle-description{
  color:#fff!important;
  opacity:1!important;
  text-shadow:0 2px 10px rgba(0,0,0,.82)!important;
}

/* Scroll controls were nearly invisible against light panels. */
html[data-site-theme="light"] body[data-page="home"] .content-panels :is(
  .home-gallery-scroll-control,.home-article-scroll-control,.home-doctor-scroll-control,
  .gallery-scroll-control,.article-scroll-control,.doctor-scroll-control
){
  color:#4b2879!important;
  opacity:1!important;
}
html[data-site-theme="light"] body[data-page="home"] .content-panels :is(
  .home-gallery-wheel-track,.home-article-mouse,.home-doctor-mouse,.gallery-mouse,.article-mouse,.doctor-mouse
){
  border-color:rgba(76,43,119,.62)!important;
  background:linear-gradient(180deg,#fff,#eee4f7)!important;
  box-shadow:inset 0 1px 0 #fff,0 7px 18px rgba(63,38,90,.12)!important;
}
html[data-site-theme="light"] body[data-page="home"] .content-panels :is(
  .home-gallery-wheel-thumb,.home-article-wheel,.home-doctor-wheel,.gallery-wheel,.article-wheel,.doctor-wheel
){background:linear-gradient(180deg,#7141b8,#4f247f)!important;box-shadow:0 0 10px rgba(91,47,143,.26)!important}
html[data-site-theme="light"] body[data-page="home"] .content-panels :is(
  .home-gallery-wheel-arrow,.home-article-scroll-arrow,.home-doctor-scroll-arrow,
  .gallery-scroll-arrow,.article-scroll-arrow,.doctor-scroll-arrow
)::before{
  border-right-color:#542c88!important;
  border-bottom-color:#542c88!important;
  filter:none!important;
}

/* All public directories, detail pages and footer cards. */
html[data-site-theme="light"] body :is(
  .doctor-directory,.content-directory,.service-directory,.gallery-directory,.article-directory,
  .about-directory,.treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.member-page,.profile-page,.booking-page
){
  color:var(--cm-v104-text)!important;
}
html[data-site-theme="light"] body :is(
  .doctor-directory,.content-directory,.service-directory,.gallery-directory,.article-directory,
  .about-directory,.treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.member-page,.profile-page,.booking-page
) :is(h1,h2,h3,h4,h5,h6,strong,b,.title,.heading,[class$="-title"],[class$="-heading"],[class*="-title-"]){
  color:var(--cm-v104-ink)!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-site-theme="light"] body :is(
  .doctor-directory,.content-directory,.service-directory,.gallery-directory,.article-directory,
  .about-directory,.treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.member-page,.profile-page,.booking-page
) :is(p,li,dt,dd,label,legend,blockquote,figcaption,td,th,address,time,span,em,.text,.copy,[class$="-text"],[class$="-copy"],[class$="-value"]){
  color:var(--cm-v104-text)!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-site-theme="light"] body :is(
  .doctor-directory,.content-directory,.service-directory,.gallery-directory,.article-directory,
  .about-directory,.treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.member-page,.profile-page,.booking-page
) :is(small,.muted,.subtitle,.description,.meta,.hint,.note,[class$="-small"],[class$="-muted"],[class$="-subtitle"],[class$="-description"],[class$="-meta"],[class$="-hint"],[class$="-note"],[class$="-label"]){
  color:var(--cm-v104-muted)!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-site-theme="light"] body :is(
  .doctor-directory,.content-directory,.service-directory,.gallery-directory,.article-directory,
  .about-directory,.treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.member-page,.profile-page,.booking-page
) :is(a:not([class*="button"]):not([class*="btn"]):not([class*="action"]):not([class*="booking"]):not([class*="details"]):not([class*="reserve"]),[role="link"]:not([class*="action"]):not([class*="booking"]):not([class*="details"]):not([class*="reserve"])){
  color:var(--cm-v104-purple)!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Restore readable text on colored action controls after the broad rules. */
html[data-site-theme="light"] body :is(
  .doctor-card-action,.doctor-detail-button,.home-article-detail-button,.service-detail-book,
  .service-detail-all,.page-review-submit,.panel-view-all,.back-to-top-btn,
  button.primary,button.secondary,a.primary,a.secondary,.btn-primary,.btn-secondary,
  [class*="button-primary"],[class*="button-secondary"],a[class*="-booking"],button[class*="-booking"],a[class*="-reserve"],button[class*="-reserve"]
),
html[data-site-theme="light"] body :is(
  .doctor-card-action,.doctor-detail-button,.home-article-detail-button,.service-detail-book,
  .service-detail-all,.page-review-submit,.panel-view-all,.back-to-top-btn,
  button.primary,button.secondary,a.primary,a.secondary,.btn-primary,.btn-secondary,
  [class*="button-primary"],[class*="button-secondary"],a[class*="-booking"],button[class*="-booking"],a[class*="-reserve"],button[class*="-reserve"]
) *{
  color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-text-fill-color:#fff!important;
}

/* Form controls and tables in public/member pages. */
html[data-site-theme="light"] body :is(.member-page,.profile-page,.booking-page,.content-directory,.service-detail-section,.site-footer-section) :is(input,textarea,select,option){
  color:#2f203a!important;
  background:#fff!important;
  border-color:var(--cm-v104-line)!important;
  opacity:1!important;
  -webkit-text-fill-color:#2f203a!important;
}
html[data-site-theme="light"] body :is(.member-page,.profile-page,.booking-page,.content-directory,.service-detail-section,.site-footer-section) :is(input,textarea)::placeholder{
  color:#75667d!important;
  opacity:1!important;
  -webkit-text-fill-color:#75667d!important;
}
html[data-site-theme="light"] body :is(.member-page,.profile-page,.booking-page,.content-directory,.service-detail-section) table{
  color:var(--cm-v104-text)!important;
  background:#fff!important;
}
html[data-site-theme="light"] body :is(.member-page,.profile-page,.booking-page,.content-directory,.service-detail-section) :is(th,td){
  color:var(--cm-v104-text)!important;
  border-color:var(--cm-v104-line)!important;
}

/* Feedback/review content and footer text. */
html[data-site-theme="light"] body .site-footer-section :is(.page-review-card,.footer-glass-card,.footer-info-strip){
  background:rgba(255,255,255,.9)!important;
  border-color:var(--cm-v104-line)!important;
  color:var(--cm-v104-text)!important;
}
html[data-site-theme="light"] body .site-footer-section :is(.page-review-kicker,.page-review-count-label,.footer-brand-note,.footer-contact-address,.footer-legal-line){
  color:var(--cm-v104-muted)!important;
  opacity:1!important;
}

/* Keep image-overlay captions and purpose-built dark modals/chat readable. */
html[data-site-theme="light"] body :is(.gallery-modal-dialog,.article-modal-dialog,.cm-chat-root),
html[data-site-theme="light"] body :is(.gallery-modal-dialog,.article-modal-dialog,.cm-chat-root) *{
  -webkit-text-fill-color:initial!important;
}
html[data-site-theme="light"] body :is(.gallery-modal-dialog,.article-modal-dialog){color:#fff!important}
html[data-site-theme="light"] body :is(.gallery-modal-dialog,.article-modal-dialog) :is(h1,h2,h3,h4,p,span,div,a,button){color:#fff!important;opacity:1!important;text-shadow:none!important}

/* Prevent legacy inline opacity/color rules from making day-mode content disappear. */
html[data-site-theme="light"] body :is(
  .doctor-directory,.content-directory,.service-directory,.gallery-directory,.article-directory,
  .about-directory,.treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.member-page,.profile-page,.booking-page
) [style*="opacity"]{opacity:1!important}

@media(max-width:900px){
  html[data-site-theme="light"] body[data-page="home"] > .content-panels .glass-panel{background:#fff!important}
}
/* V104 action-control contrast specificity fix. */
html[data-site-theme="light"] body :is(
  .doctor-directory,.content-directory,.service-directory,.gallery-directory,.article-directory,
  .about-directory,.treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.member-page,.profile-page,.booking-page
) :is(
  .doctor-card-action,.doctor-detail-button,.home-article-detail-button,.service-detail-book,
  .service-detail-all,.page-review-submit,.panel-view-all,.back-to-top-btn,
  button.primary,button.secondary,a.primary,a.secondary,.btn-primary,.btn-secondary,
  [class*="button-primary"],[class*="button-secondary"],a[class*="-booking"],button[class*="-booking"],a[class*="-reserve"],button[class*="-reserve"]
),
html[data-site-theme="light"] body :is(
  .doctor-directory,.content-directory,.service-directory,.gallery-directory,.article-directory,
  .about-directory,.treatment-program-directory,.service-detail-section,.content-panels,
  .site-footer-section,.site-footer,.member-page,.profile-page,.booking-page
) :is(
  .doctor-card-action,.doctor-detail-button,.home-article-detail-button,.service-detail-book,
  .service-detail-all,.page-review-submit,.panel-view-all,.back-to-top-btn,
  button.primary,button.secondary,a.primary,a.secondary,.btn-primary,.btn-secondary,
  [class*="button-primary"],[class*="button-secondary"],a[class*="-booking"],button[class*="-booking"],a[class*="-reserve"],button[class*="-reserve"]
) *{
  color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-site-theme="light"] body .doctor-directory .doctor-card-actions .doctor-card-action,
html[data-site-theme="light"] body .doctor-directory .doctor-card-actions .doctor-card-action:link,
html[data-site-theme="light"] body .doctor-directory .doctor-card-actions .doctor-card-action:visited{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}
/* Accessible orange actions in day mode: all gradient endpoints keep white text readable. */
html[data-site-theme="light"] body :is(
  .doctor-card-booking,.doctor-detail-button.booking,.home-article-detail-button.primary,
  .service-detail-book,a[class*="reserve"],button[class*="reserve"],a[class*="booking"],button[class*="booking"]
){
  background:linear-gradient(135deg,#c84e00,#a83a00)!important;
  border-color:rgba(132,43,0,.48)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-site-theme="light"] body[data-page="home"] #articlePanel .home-article-detail-button.primary,
html[data-site-theme="light"] body .doctor-directory .doctor-card-actions .doctor-card-booking{
  background:linear-gradient(135deg,#c84e00,#a83a00)!important;
  border-color:rgba(132,43,0,.48)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
