/* Someh v10.76 — authoritative day text + Services dark-mode support */

/* When the user's stored SoMeh skin is light, never leave article copy in the pale night color. */
/* v10.79: day-mode recovery must never repaint text that lives on a self-contained
   colored surface. The old broad selector also caught default blockquotes, so their
   white text became #2c2f34 on the same #2c2f34 background. Keep normalization only
   for ordinary copy, while preserving quote/cover/background/inline-color palettes. */
html.someh-authoritative-light body:not(.home) :is(.entry-content,.post-content,.page-content,.tie-content,.wp-block-post-content,[itemprop="articleBody"],.woocommerce-Tabs-panel,#tab-description,.woocommerce-product-details__short-description)
:is(p,li,dd,dt):not(:is(
  blockquote *,q *,.wp-block-quote *,.wp-block-pullquote *,
  .has-background,.has-background *,.wp-block-cover *,.wp-block-cover__inner-container *,
  .wp-block-media-text.has-background *,.has-text-color,.has-text-color *,[style*="background" i],[style*="background" i] *,[style*="color" i],[style*="color" i] *,
  .tm-contact-box *,.tmc-card *,.tmc-panel *,.wci-album-outer *,.wci-lazy-album-shell *,.wci-gallery *,.fic-card *,.fic-injected *,
  table *,form *,.cart *,.button,.button *
)){
  color:var(--base-color,#2c2f34)!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:none!important;
}
html.someh-authoritative-light body:not(.home) :is(.entry-content,.post-content,.page-content,.tie-content,.wp-block-post-content,[itemprop="articleBody"],.woocommerce-Tabs-panel,#tab-description,.woocommerce-product-details__short-description)
:is(p,li,dd,dt):not(:is(blockquote *,q *,.wp-block-quote *,.wp-block-pullquote *,.has-background,.has-background *,.wp-block-cover *,.wp-block-media-text.has-background *,.has-text-color,.has-text-color *,[style*="background" i],[style*="background" i] *,[style*="color" i],[style*="color" i] *,.tm-contact-box *,.tmc-card *,.tmc-panel *,.wci-album-outer *,.wci-lazy-album-shell *,.wci-gallery *,.fic-card *,.fic-injected *,table *,form *,.cart *,.button,.button *))
a:not(.button){color:inherit!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;}

/* Default SoMeh quote is intentionally a dark card even in day mode. Keep its own
   foreground palette, including direct text nodes and nested formatting. */
html.someh-authoritative-light body:not(.home) :is(.entry-content,.post-content,.page-content,.tie-content,.wp-block-post-content,[itemprop="articleBody"])
:is(blockquote,q,.wp-block-quote):not(.quote-light):not(.quote-simple):not(.has-background):not([style*="background" i]){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:none!important;
}
html.someh-authoritative-light body:not(.home) :is(.entry-content,.post-content,.page-content,.tie-content,.wp-block-post-content,[itemprop="articleBody"])
:is(blockquote,q,.wp-block-quote):not(.quote-light):not(.quote-simple):not(.has-background):not([style*="background" i])
:is(p,span,strong,b,em,i,small,font,u,del,ins){
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
}

/* Homepage: never let the light-state guard override intentional H1/hero colors. */
html.someh-authoritative-light body.home :is(h1,.entry-title,.page-title,.section-title,.entry-content h1,.page-content h1,.tie-content h1){
  -webkit-text-fill-color:initial!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:revert!important;
}

/* The site uses SoMeh's html.dark-skin class. Legacy Services rules only covered plugin dark classes. */
html.dark-skin body .services,
html.someh-authoritative-dark body .services{
  color:#f8fafc!important;
}
html.dark-skin body .services .service,
html.someh-authoritative-dark body .services .service{
  background:#111827!important;
  color:#f8fafc!important;
  border:1px solid #334155!important;
  box-shadow:0 10px 28px rgba(0,0,0,.16)!important;
}
html.dark-skin body .services .service :is(h1,h2,h3,h4,h5,h6),
html.someh-authoritative-dark body .services .service :is(h1,h2,h3,h4,h5,h6){
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  text-shadow:none!important;
  opacity:1!important;
}
html.dark-skin body .services .service :is(p,li),
html.someh-authoritative-dark body .services .service :is(p,li){
  color:#d7dee8!important;
  -webkit-text-fill-color:#d7dee8!important;
  text-shadow:none!important;
  opacity:1!important;
  filter:none!important;
}
html.dark-skin body .services .service a,
html.someh-authoritative-dark body .services .service a{
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}
html.dark-skin body .services .service .wciwif-wrap,
html.someh-authoritative-dark body .services .service .wciwif-wrap{
  background:transparent!important;
  color:#f8fafc!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}
html.dark-skin body .services .service .wif-frame,
html.someh-authoritative-dark body .services .service .wif-frame{
  background:#0f172a!important;
  border-color:#334155!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}
html.dark-skin body .services .service .wif-caption,
html.someh-authoritative-dark body .services .service .wif-caption{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  background:rgba(15,23,42,.92)!important;
  border:1px solid rgba(148,163,184,.28)!important;
  text-shadow:none!important;
  opacity:1!important;
}
html.dark-skin body .services .service .wciwif-img,
html.someh-authoritative-dark body .services .service .wciwif-img{
  filter:none!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
}
