/*
 * Nafis Mezoon V4.45 — legible dark-theme text on intentionally light editorial panels.
 * Scope: About and Contact only. Does not change the approved light theme.
 * The soft cream panels remain light in night mode, so they must use dark ink
 * rather than the night theme's globally inherited white text.
 */
html[data-theme="dark"] body[data-page="about"] #content .nm40-story-benefits,
html[data-theme="dark"] body[data-page="contact"] #content .nm40-story-benefits {
  --nm-panel-ink: #342d29;
  --nm-panel-subtle: #655b55;
  --nm-panel-gold: #8a674a;
  background: linear-gradient(130deg, #f8f5f1, #e6e0da) !important;
  color: var(--nm-panel-ink) !important;
}

html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-benefit-copy h2,
html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-tile h3 {
  color: var(--nm-panel-ink) !important;
}

html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-benefit-copy > p,
html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-tile p {
  color: var(--nm-panel-subtle) !important;
}

html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-plain-link {
  color: var(--nm-panel-ink) !important;
  border-bottom-color: rgba(52,45,41,.24) !important;
}

html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-plain-link:is(:hover,:focus-visible) {
  color: #7d5940 !important;
  border-bottom-color: #ad8b6a !important;
}

html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-eyebrow,
html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-tile-num {
  color: var(--nm-panel-gold) !important;
}

html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-tile {
  background: #fffdfa !important;
  border-color: rgba(75,57,45,.08) !important;
  color: var(--nm-panel-ink) !important;
}

html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-tile--0 {
  background: linear-gradient(115deg,#fffdfa,#f5f0eb) !important;
}

html[data-theme="dark"] body:is([data-page="about"],[data-page="contact"]) #content .nm40-story-benefits .nm40-tile-icon {
  color: #82654e !important;
}

/* About / editorial statistics retain their warm, pale surfaces in the night theme. */
html[data-theme="dark"] body[data-page="about"] #content .nm41-story-stat {
  background: linear-gradient(180deg, #f5f1ec, #e7e1db) !important;
  border-color: rgba(75,57,45,.10) !important;
  color: #342d29 !important;
}
html[data-theme="dark"] body[data-page="about"] #content .nm41-story-stat strong {
  color: #98714e !important;
}
html[data-theme="dark"] body[data-page="about"] #content .nm41-story-stat span {
  color: #544a44 !important;
}

/* The light editorial caption overlay also needs dark text when the page is dark. */
html[data-theme="dark"] body[data-page="about"] #content .nm41-photo-note {
  color: #342d29 !important;
}
html[data-theme="dark"] body[data-page="about"] #content .nm41-photo-note strong {
  color: #342d29 !important;
}
html[data-theme="dark"] body[data-page="about"] #content .nm41-photo-note small {
  color: #5c5149 !important;
}
