/* Someh v10.70 — dark-mode article/page readability guard.
   Fixes the case where Jannah switches text to the dark palette but a later
   site/custom style keeps the single-content surface light/grey. */

/* Main singular canvas: keep a real dark surface in night mode. */
html.dark-skin body:is(.single-post,.page):not(.single-product) #tie-wrapper,
html.dark-skin body:is(.single-post,.page):not(.single-product) #tie-container,
html.dark-skin body:is(.single-post,.page):not(.single-product) #content,
body.dark-skin:is(.single-post,.page):not(.single-product) #tie-wrapper,
body.dark-skin:is(.single-post,.page):not(.single-product) #tie-container,
body.dark-skin:is(.single-post,.page):not(.single-product) #content,
html.dark-mode body:is(.single-post,.page):not(.single-product) #tie-wrapper,
html.dark-mode body:is(.single-post,.page):not(.single-product) #tie-container,
html.dark-mode body:is(.single-post,.page):not(.single-product) #content,
html[data-theme="dark"] body:is(.single-post,.page):not(.single-product) #tie-wrapper,
html[data-theme="dark"] body:is(.single-post,.page):not(.single-product) #tie-container,
html[data-theme="dark"] body:is(.single-post,.page):not(.single-product) #content,
html.wp-dark-mode-active body:is(.single-post,.page):not(.single-product) #tie-wrapper,
html.wp-dark-mode-active body:is(.single-post,.page):not(.single-product) #tie-container,
html.wp-dark-mode-active body:is(.single-post,.page):not(.single-product) #content {
  background-color:var(--tie-dark-skin-bg,#27292d)!important;
  background-image:none!important;
}

/* The actual post/page card must not stay white/grey after the night toggle. */
html.dark-skin body:is(.single-post,.page):not(.single-product) #the-post.container-wrapper,
body.dark-skin:is(.single-post,.page):not(.single-product) #the-post.container-wrapper,
html.dark-mode body:is(.single-post,.page):not(.single-product) #the-post.container-wrapper,
html[data-theme="dark"] body:is(.single-post,.page):not(.single-product) #the-post.container-wrapper,
html.wp-dark-mode-active body:is(.single-post,.page):not(.single-product) #the-post.container-wrapper {
  background-color:var(--tie-dark-skin-bg-main,#1f2024)!important;
  background-image:none!important;
  color:#f1f5f9!important;
  border-color:rgba(255,255,255,.10)!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

/* Article body itself stays transparent over the dark card and receives an
   explicit readable foreground, so inline legacy colors cannot wash it out. */
html.dark-skin body:is(.single-post,.page):not(.single-product) #the-post .entry-content,
body.dark-skin:is(.single-post,.page):not(.single-product) #the-post .entry-content,
html.dark-mode body:is(.single-post,.page):not(.single-product) #the-post .entry-content,
html[data-theme="dark"] body:is(.single-post,.page):not(.single-product) #the-post .entry-content,
html.wp-dark-mode-active body:is(.single-post,.page):not(.single-product) #the-post .entry-content {
  background:transparent!important;
  color:#f1f5f9!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:none!important;
}

/* Ordinary prose only.  Components with their own palettes (tables, contact
   cards, galleries, TOC, buttons, forms) are intentionally left alone. */
html.dark-skin body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption),
body.dark-skin:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption),
html.dark-mode body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption),
html[data-theme="dark"] body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption),
html.wp-dark-mode-active body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) {
  color:#e5e7eb!important;
  -webkit-text-fill-color:#e5e7eb!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:none!important;
}

html.dark-skin body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) :is(span,strong,b,em,i,small,font,u,del,ins),
body.dark-skin:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) :is(span,strong,b,em,i,small,font,u,del,ins),
html.dark-mode body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) :is(span,strong,b,em,i,small,font,u,del,ins),
html[data-theme="dark"] body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) :is(span,strong,b,em,i,small,font,u,del,ins),
html.wp-dark-mode-active body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) :is(span,strong,b,em,i,small,font,u,del,ins) {
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:none!important;
}

html.dark-skin body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(h1,h2,h3,h4,h5,h6),
body.dark-skin:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(h1,h2,h3,h4,h5,h6),
html.dark-mode body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(h1,h2,h3,h4,h5,h6),
html[data-theme="dark"] body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(h1,h2,h3,h4,h5,h6),
html.wp-dark-mode-active body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(h1,h2,h3,h4,h5,h6) {
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Preserve readable article links while v10.57 still makes ordinary links inherit. */
html.dark-skin body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) a:not(.button):not([class*="button"]),
body.dark-skin:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) a:not(.button):not([class*="button"]),
html.dark-mode body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) a:not(.button):not([class*="button"]),
html[data-theme="dark"] body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) a:not(.button):not([class*="button"]),
html.wp-dark-mode-active body:is(.single-post,.page):not(.single-product) #the-post .entry-content :is(p,li,dd,dt,figcaption) a:not(.button):not([class*="button"]) {
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
}

/* Never recolor self-contained components from the prose rule. */
html.dark-skin body #the-post .entry-content :is(table,.someh-table-wrap,.pshtoc-box,.fic-card,.fic-injected,.wci-album-outer,.wci-lazy-album-shell,.wci-gallery,.tm-contact-box,.tmc-card,.tmc-panel,form,.wp-block-button),
body.dark-skin #the-post .entry-content :is(table,.someh-table-wrap,.pshtoc-box,.fic-card,.fic-injected,.wci-album-outer,.wci-lazy-album-shell,.wci-gallery,.tm-contact-box,.tmc-card,.tmc-panel,form,.wp-block-button) {
  -webkit-text-fill-color:initial;
}


/* ========================================================================
   Someh v10.71 — WooCommerce single-product dark readability
   The product page had the same failure mode as ordinary posts: Jannah's
   foreground switched to the night palette while one or more product surfaces
   could remain light. Keep the main product canvas and textual panels dark.
   ======================================================================== */
html.dark-skin body.single-product #tie-wrapper,
html.dark-skin body.single-product #tie-container,
html.dark-skin body.single-product #content,
body.dark-skin.single-product #tie-wrapper,
body.dark-skin.single-product #tie-container,
body.dark-skin.single-product #content,
html.dark-mode body.single-product #tie-wrapper,
html.dark-mode body.single-product #tie-container,
html.dark-mode body.single-product #content,
html[data-theme="dark"] body.single-product #tie-wrapper,
html[data-theme="dark"] body.single-product #tie-container,
html[data-theme="dark"] body.single-product #content,
html.wp-dark-mode-active body.single-product #tie-wrapper,
html.wp-dark-mode-active body.single-product #tie-container,
html.wp-dark-mode-active body.single-product #content {
  background-color:var(--tie-dark-skin-bg,#27292d)!important;
  background-image:none!important;
  color:#f1f5f9!important;
}

html.dark-skin body.single-product :is(#the-post.container-wrapper,div.product,.product.type-product),
body.dark-skin.single-product :is(#the-post.container-wrapper,div.product,.product.type-product),
html.dark-mode body.single-product :is(#the-post.container-wrapper,div.product,.product.type-product),
html[data-theme="dark"] body.single-product :is(#the-post.container-wrapper,div.product,.product.type-product),
html.wp-dark-mode-active body.single-product :is(#the-post.container-wrapper,div.product,.product.type-product) {
  background-color:var(--tie-dark-skin-bg-main,#1f2024)!important;
  background-image:none!important;
  color:#f1f5f9!important;
  border-color:rgba(255,255,255,.10)!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

html.dark-skin body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-tabs,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.comment-respond,.related.products),
body.dark-skin.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-tabs,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.comment-respond,.related.products),
html.dark-mode body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-tabs,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.comment-respond,.related.products),
html[data-theme="dark"] body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-tabs,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.comment-respond,.related.products),
html.wp-dark-mode-active body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-tabs,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.comment-respond,.related.products) {
  color:#f1f5f9!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:none!important;
}

/* Textual panels may be white in Woo/Jannah or custom product templates. */
html.dark-skin body.single-product :is(.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.comment-respond),
body.dark-skin.single-product :is(.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.comment-respond),
html.dark-mode body.single-product :is(.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.comment-respond),
html[data-theme="dark"] body.single-product :is(.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.comment-respond),
html.wp-dark-mode-active body.single-product :is(.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.comment-respond) {
  background-color:var(--tie-dark-skin-bg-main,#1f2024)!important;
  background-image:none!important;
  border-color:rgba(255,255,255,.10)!important;
}

html.dark-skin body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(p,li,dd,dt,blockquote,figcaption),
body.dark-skin.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(p,li,dd,dt,blockquote,figcaption),
html.dark-mode body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(p,li,dd,dt,blockquote,figcaption),
html[data-theme="dark"] body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(p,li,dd,dt,blockquote,figcaption),
html.wp-dark-mode-active body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(p,li,dd,dt,blockquote,figcaption) {
  color:#e5e7eb!important;
  -webkit-text-fill-color:#e5e7eb!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:none!important;
}

html.dark-skin body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(h1,h2,h3,h4,h5,h6),
body.dark-skin.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(h1,h2,h3,h4,h5,h6),
html.dark-mode body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(h1,h2,h3,h4,h5,h6),
html[data-theme="dark"] body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(h1,h2,h3,h4,h5,h6),
html.wp-dark-mode-active body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(h1,h2,h3,h4,h5,h6) {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
}

html.dark-skin body.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(p,li,dd,dt,blockquote,figcaption) :is(span,strong,b,em,i,small,font,u,del,ins),
body.dark-skin.single-product :is(.entry-summary,.summary,.woocommerce-product-details__short-description,.woocommerce-Tabs-panel,.wc-tab,#tab-description,#reviews,#comments,.related.products) :is(p,li,dd,dt,blockquote,figcaption) :is(span,strong,b,em,i,small,font,u,del,ins) {
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

/* Don't flatten self-contained components that deliberately own a palette. */
html.dark-skin body.single-product :is(.woocommerce-product-gallery,.images,.wci-album-outer,.wci-lazy-album-shell,.wci-gallery,.fic-card,.fic-injected,.tm-contact-box,.tmc-card,.tmc-panel,.someh-table-wrap,table,form.cart,.cart),
body.dark-skin.single-product :is(.woocommerce-product-gallery,.images,.wci-album-outer,.wci-lazy-album-shell,.wci-gallery,.fic-card,.fic-injected,.tm-contact-box,.tmc-card,.tmc-panel,.someh-table-wrap,table,form.cart,.cart) {
  -webkit-text-fill-color:initial;
}

/* The skin control must be easy to hit even before the main deferred JS arrives. */
.change-skin {
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
  cursor:pointer!important;
}


/* v10.74 — reliable, generous hit target for the day/night control. */
.skin-icon,
.mobile-header-components .change-skin,
#theme-header .change-skin{
  position:relative!important;
  z-index:80!important;
}
.change-skin{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:42px!important;
  min-height:42px!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  -webkit-tap-highlight-color:transparent!important;
  cursor:pointer!important;
  isolation:isolate!important;
}
.change-skin .change-skin-icon{
  pointer-events:none!important;
}
@media (pointer:coarse){
  .change-skin{min-width:46px!important;min-height:46px!important;}
}


/* v10.75 — keep the visible desktop/sticky skin control above transient header layers. */
#theme-header .skin-icon,
#theme-header .skin-icon .change-skin,
#main-nav.fixed-nav .skin-icon,
#main-nav.fixed-nav .skin-icon .change-skin,
#main-nav.fixed-pinned .skin-icon,
#main-nav.fixed-pinned .skin-icon .change-skin,
.fixed-nav .skin-icon,
.fixed-pinned .skin-icon{
  position:relative!important;
  z-index:2147483000!important;
  pointer-events:auto!important;
  isolation:isolate!important;
}
#theme-header .skin-icon .change-skin,
.fixed-nav .skin-icon .change-skin,
.fixed-pinned .skin-icon .change-skin{
  pointer-events:auto!important;
  min-width:44px!important;
  min-height:44px!important;
}
#main-nav.fixed-nav .components,
#main-nav.fixed-pinned .components,
#theme-header .components{
  pointer-events:auto!important;
}

/* v10.75 — high-specificity fallback for the inline contact box at the end of product text.
   The plugin prints its own light palette later in the body, so this selector deliberately
   outranks that inline stylesheet while leaving day mode untouched. */
html.dark-skin body.single-product .tm-contact-box,
html.dark-mode body.single-product .tm-contact-box,
html.someh-dark-mode body.single-product .tm-contact-box,
html.wp-dark-mode-active body.single-product .tm-contact-box{
  background:#111827!important;
  color:#f8fafc!important;
  border-color:#334155!important;
  box-shadow:0 12px 34px rgba(0,0,0,.28)!important;
}
html.dark-skin body.single-product .tm-contact-box .tm-contact-title,
html.dark-mode body.single-product .tm-contact-box .tm-contact-title,
html.someh-dark-mode body.single-product .tm-contact-box .tm-contact-title,
html.wp-dark-mode-active body.single-product .tm-contact-box .tm-contact-title{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  opacity:1!important;
}
html.dark-skin body.single-product .tm-contact-box .tm-contact-item,
html.dark-mode body.single-product .tm-contact-box .tm-contact-item,
html.someh-dark-mode body.single-product .tm-contact-box .tm-contact-item,
html.wp-dark-mode-active body.single-product .tm-contact-box .tm-contact-item{
  background:#18212f!important;
  border-color:#334155!important;
  color:#f8fafc!important;
  opacity:1!important;
}
html.dark-skin body.single-product .tm-contact-box :is(.tm-contact-item span,.tm-contact-item small,.tm-contact-item bdi,.tm-contact-item a,.tm-sales-caption,.tm-sales-phone,.tm-sales-phone .tmc-num,.tmc-landline-num),
html.dark-mode body.single-product .tm-contact-box :is(.tm-contact-item span,.tm-contact-item small,.tm-contact-item bdi,.tm-contact-item a,.tm-sales-caption,.tm-sales-phone,.tm-sales-phone .tmc-num,.tmc-landline-num),
html.someh-dark-mode body.single-product .tm-contact-box :is(.tm-contact-item span,.tm-contact-item small,.tm-contact-item bdi,.tm-contact-item a,.tm-sales-caption,.tm-sales-phone,.tm-sales-phone .tmc-num,.tmc-landline-num),
html.wp-dark-mode-active body.single-product .tm-contact-box :is(.tm-contact-item span,.tm-contact-item small,.tm-contact-item bdi,.tm-contact-item a,.tm-sales-caption,.tm-sales-phone,.tm-sales-phone .tmc-num,.tmc-landline-num){
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  opacity:1!important;
  filter:none!important;
  text-shadow:none!important;
}
html.dark-skin body.single-product .tm-contact-box .tm-sales-phone,
html.dark-mode body.single-product .tm-contact-box .tm-sales-phone,
html.someh-dark-mode body.single-product .tm-contact-box .tm-sales-phone,
html.wp-dark-mode-active body.single-product .tm-contact-box .tm-sales-phone{
  background:#0f172a!important;
  border-color:#475569!important;
}
html.dark-skin body.single-product .tm-contact-box .tm-contact-item svg,
html.dark-mode body.single-product .tm-contact-box .tm-contact-item svg,
html.someh-dark-mode body.single-product .tm-contact-box .tm-contact-item svg,
html.wp-dark-mode-active body.single-product .tm-contact-box .tm-contact-item svg{
  opacity:1!important;
  filter:none!important;
}
