/* C121R11: B1 meaning-preserving subdued surfaces. DARK+SCREEN ONLY.
   Includes opened details, safety/youth and neuro cards; no meaning, scoring or charts changed. */
@media screen {
/* Relationele veiligheid: slate neutral, teal youth, amber caution, dusty red safety. */
html[data-reguspace-theme="dark"] .rv-module :is(.rv-framework-table-wrap,.rv-dialogue-note,.rv-dialogue-core,.rv-coreg,.rv-no-total,.rv-pattern-note,.rv-action,.rv-principle,.rv-core-line,.rv-next:not(:nth-child(2)):not(:nth-child(3)),.rv-regulation-boundary,details:not(.rv-depth):not(.rv-check-collapse):not(.rv-accountability-more)) {
  background:#384e5a!important;border-color:#7893a3!important;color:#f0f5fa!important;
}
html[data-reguspace-theme="dark"] .rv-module :is(.rv-card.rv-youth-card,.rv-youth-core,.rv-youth-q) {
  background:#344e51!important;border-color:#7c9f9f!important;color:#f3faf9!important;
}
html[data-reguspace-theme="dark"] .rv-module :is(.rv-card.rv-red-card,.rv-red-item,.rv-gaslight) {
  background:#593e46!important;border-color:#bb8187!important;color:#fff4f4!important;
}
html[data-reguspace-theme="dark"] .rv-module :is(.rv-youth-flags,.rv-next:nth-child(2)) {
  background:#5a4a3d!important;border-color:#bb9d75!important;color:#fff6e8!important;
}
html[data-reguspace-theme="dark"] .rv-module .rv-next:nth-child(3) {
  background:#594149!important;border-color:#c28a8f!important;color:#fff3f3!important;
}
html[data-reguspace-theme="dark"] .rv-module :is(.rv-framework-table-wrap,.rv-dialogue-note,.rv-dialogue-core,.rv-coreg,.rv-no-total,.rv-pattern-note,.rv-action,.rv-principle,.rv-core-line,.rv-card.rv-youth-card,.rv-youth-core,.rv-youth-q,.rv-card.rv-red-card,.rv-red-item,.rv-gaslight,.rv-regulation-boundary,.rv-youth-flags,.rv-next) :is(h1,h2,h3,h4,h5,p,li,span,strong,small,summary,td,th,label,b,em) {
  color:#f4f8fa!important;
}
html[data-reguspace-theme="dark"] .rv-module .rv-framework-table-wrap :is(td,th) {background:#384e5a!important;border-color:#7893a3!important;}
html[data-reguspace-theme="dark"] .rv-module :is(.rv-card.rv-red-card,.rv-red-item,.rv-gaslight) :is(h1,h2,h3,h4,strong,b) {color:#ffe3e3!important;}
html[data-reguspace-theme="dark"] .rv-module :is(.rv-youth-flags,.rv-next:nth-child(2)) :is(h2,h3,h4,strong,b) {color:#ffe4ae!important;}
html[data-reguspace-theme="dark"] .rv-module :is(.rv-youth-card,.rv-youth-core,.rv-youth-q) :is(h2,h3,h4,strong,b) {color:#d6f6ee!important;}
html[data-reguspace-theme="dark"] .rv-module :is(.rv-framework-table-wrap,.rv-dialogue-note,.rv-dialogue-core,.rv-coreg,.rv-no-total,.rv-pattern-note,.rv-action,.rv-principle,.rv-core-line,.rv-youth-card,.rv-youth-core,.rv-youth-q,.rv-red-card,.rv-red-item,.rv-gaslight,.rv-regulation-boundary,.rv-youth-flags,.rv-next,details:not(.rv-depth):not(.rv-check-collapse):not(.rv-accountability-more)) a:not(.btn) {color:#c5edff!important;text-decoration:underline!important;}
/* Neurodiversiteit: keep palette meaningful, temper the sizeable cards; leave radar chart/canvas untouched. */
html[data-reguspace-theme="dark"] .nd-module :is(.route-card,.cycle-card,.align-card,.summary-card,.definition,.tri,.tip) {
  background:#385467!important;border-color:#7b9bac!important;color:#f0f8fd!important;
}
html[data-reguspace-theme="dark"] .nd-module :is(.profile details,.example,.counterpoint,.mirror-insight,.legend-box) {
  background:#3c4b5b!important;border-color:#859aab!important;color:#f1f6fc!important;
}
html[data-reguspace-theme="dark"] .nd-module .effort {
  background:#514554!important;border-color:#9e86a4!important;color:#f9eff8!important;
}
html[data-reguspace-theme="dark"] .nd-module :is(.route-card,.cycle-card,.align-card,.summary-card,.definition,.tri,.tip,.profile details,.example,.counterpoint,.mirror-insight,.legend-box,.effort) :is(h2,h3,h4,h5,p,li,span,strong,small,summary,label,b,em) {
  color:#f1f7fb!important;
}
html[data-reguspace-theme="dark"] .nd-module :is(.route-card,.cycle-card,.align-card,.summary-card,.definition,.tri,.tip) :is(h2,h3,h4,strong,b) {color:#e0f3ff!important;}
html[data-reguspace-theme="dark"] .nd-module .effort :is(h2,h3,h4,strong,b) {color:#f9dfee!important;}
html[data-reguspace-theme="dark"] .nd-module :is(.route-card,.cycle-card,.align-card,.summary-card,.definition,.tri,.tip,.profile details,.example,.counterpoint,.mirror-insight,.legend-box,.effort) a {color:#c6edff!important;}
}
/* Deep-nested legacy-specific selectors: don't turn text white while child remains white. */
@media screen {
html[data-reguspace-theme="dark"] body .rv-module .rv-dialogue-grid > span,
html[data-reguspace-theme="dark"] body .rv-module .rv-red-help a,
html[data-reguspace-theme="dark"] body .rv-module .rv-card.rv-sources details {
  background:#394e5b!important;border-color:#8399a7!important;color:#f3f8fa!important;
}
html[data-reguspace-theme="dark"] body .rv-module .rv-card.rv-sources details :is(summary,p,small,span,a){color:#f3f8fa!important;}
html[data-reguspace-theme="dark"] body .rv-module .rv-red-help a {background:#654750!important;border-color:#c48e94!important;color:#fff7f5!important;}
html[data-reguspace-theme="dark"] body .rv-module .rv-card.rv-regulation-boundary :is(h1,h2,h3,h4,p,small,span,strong),
html[data-reguspace-theme="dark"] body .rv-module .rv-card.rv-youth-card :is(h1,h2,h3,h4,p,small,span,strong){color:#f4f9fa!important;}
html[data-reguspace-theme="dark"] body .rv-module .rv-red-card .rv-red-item :is(strong,span),
html[data-reguspace-theme="dark"] body .rv-module .rv-red-card .rv-gaslight :is(strong,span){color:#fff4f1!important;}
html[data-reguspace-theme="dark"] body .rv-module .rv-red-card .rv-red-item strong {color:#ffdedb!important;}
html[data-reguspace-theme="dark"] body .nd-module :is(a.route-card,article.cycle-card,article.align-card,article.summary-card,div.definition,div.tri,div.tip) {
  background:#385467!important;border-color:#7b9bac!important;color:#f0f8fd!important;
}
html[data-reguspace-theme="dark"] body .nd-module :is(div.effort) {background:#514554!important;color:#f9eff8!important;border-color:#9e86a4!important;}
html[data-reguspace-theme="dark"] body .nd-module :is(a.route-card,article.cycle-card,article.align-card,article.summary-card,div.definition,div.tri,div.tip,div.effort) :is(h1,h2,h3,h4,h5,p,small,li,span,strong,summary,b) {color:#f3f8fa!important;}
html[data-reguspace-theme="dark"] body .nd-module article.align-card :is(li,.meter-label) {color:#f3f8fa!important;}
}
/* Legacy C121R2 uses standalone-specific !important ink. Override by the same
   scope and higher specificity, only for the B1-recoloured surfaces. */
@media screen {
html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module #rode-kaarten.rv-red-card :is(.rv-h2,.rv-small,.rv-copy,.rv-red-intro,p,strong,span),
html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module #rode-kaarten.rv-red-card .rv-red-item :is(strong,span),
html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-red-card .rv-red-head .rv-kicker {color:#fff4f1!important;}
html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module #rode-kaarten.rv-red-card .rv-red-item strong{color:#ffd8d8!important;}
html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module :is(.rv-youth-card,.rv-regulation-boundary) > :is(.rv-kicker,.rv-h2,.rv-copy,.rv-youth-help){color:#f3faf9!important;}
html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module :is(.align-card ul li,.route-card span span,.meter-row .meter-label){color:#f3f8fa!important;}
html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .tip :is(h3,strong,p,li){color:#f2f9fe!important;}
}
@media screen {
html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module #rode-kaarten.rv-card.rv-red-card {
  background:#593e46!important;background-image:none!important;border-color:#bb8187!important;color:#fff4f1!important;
}
html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module div.tri,
html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module div.tip {
  background:#385467!important;border-color:#7b9bac!important;color:#f0f8fd!important;
}
}
@media screen {
html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .tri p,
html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .tip li {color:#f2f8fc!important;}
}
@media screen {
html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .tips-grid .tip :is(li,.tip-note) {color:#f2f8fc!important;}
}
