/* C120R2: standalone Regulator menu consistency.
   Existing Regulator display preference (C77) controls this UI.
   Only standalone pages; do not alter navigation mechanics, app functions or print. */

/* One shared menu control: same base design as Regulator C77. */
html[data-rs-standalone] #reguR1Menu .rs-theme-entry{
  margin:12px 16px;padding:10px 0 0;border-top:1px solid #dce6ed;
}
html[data-rs-standalone] #reguR1Menu .rs-theme-control{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;min-height:43px;padding:9px 11px;
  border:1px solid #cfdee7;border-radius:10px;
  background:#f5f9fb;color:#284b60;
  font:700 14px/1.3 Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  text-align:left;cursor:pointer;
}
html[data-rs-standalone] #reguR1Menu .rs-theme-control .rs-theme-value{font-size:13px;font-weight:800;color:#185b7b}
html[data-rs-standalone] #reguR1Menu .rs-theme-control:focus-visible{outline:3px solid #1f80aa;outline-offset:3px}

/* The newer shared menu has a link to the public Regulator introduction. */
html[data-rs-standalone] #reguR1Menu .c104-tour-heading{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:8px 10px;min-height:35px;flex:1;
  color:#244d65;background:#e8f1f6;border:1px solid #c7dbe7;border-radius:10px;
  text-decoration:none;font-size:15px;font-weight:800;line-height:1.25;
}
html[data-rs-standalone] #reguR1Menu .c104-tour-heading:focus-visible{outline:3px solid #1f80aa;outline-offset:2px}

@media screen {
  /* The fixed frame and its toolbar must be the SAME color: no light wedge
     behind the hamburger, sticky brand or sticky-frame cover in Dark. */
  html[data-reguspace-theme="dark"][data-rs-standalone] body .reguspace-v287-app > .regu-c44-sticky-frame,
  html[data-reguspace-theme="dark"][data-rs-standalone] body .reguspace-v287-app > .regu-c44-sticky-frame > .reguspace-v287-toolbar{
    background:#405462!important;border-bottom-color:#718696!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body .reguspace-v287-app .regu-c44-sticky-frame .app-brand,
  html[data-reguspace-theme="dark"][data-rs-standalone] body .reguspace-v287-app .regu-c44-sticky-frame .app-brand::before{
    background:#405462!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body .reguspace-v287-app .regu-c44-sticky-frame .app-brand strong {color:#f0f6fa!important}
  html[data-reguspace-theme="dark"][data-rs-standalone] body .reguspace-v287-app .regu-c44-sticky-frame .app-brand span {color:#d3e1e9!important}
  html[data-reguspace-theme="dark"][data-rs-standalone] body .reguspace-v287-app .reguspace-v287-toolbar .regu-r1-menu-button{
    background:#d7e4eb!important;color:#1d465e!important;
    border-color:#a3bdcc!important;box-shadow:0 1px 4px rgba(15,35,50,.12)!important;
  }
  /* Standalone menu is an independent copy of the old light menu; give it
     the established Regulator menu palette without rewriting click-handlers. */
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu.regu-r1-panel{
    background:#344452!important;border-right-color:#657b8a;color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .regu-r1-panel-head{
    background:#344452;border-bottom-color:#657b8a;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .c104-tour-heading{
    background:#bed9e4;border-color:#8cbbcb;color:#1b4359;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .regu-r1-close{
    background:#405462;border-color:#8097a7;color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .regu-r1-group+.regu-r1-group{border-top-color:#657b8a}
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu :is(.regu-r1-group-title,.regu-r1-panel-foot){color:#c4d8e4}
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .regu-r1-link{color:#e4eff6}
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .regu-r1-link:is(:hover,.is-current){background:#526878;border-color:#7796a9;color:#fff}
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .regu-r1-link.is-primary{background:#305b56;border-color:#598f82;color:#edfcf7}
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu :is(.regu-r1-mark,.regu-r1-info-toggle){color:#c4d8e4}
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .regu-r1-info-toggle::after{border-color:#b1cad9}
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .rs-theme-entry{border-top-color:#657b8a}
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .rs-theme-control{background:#405462;border-color:#8097a7;color:#edf4f8}
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguR1Menu .rs-theme-control .rs-theme-value{color:#b6e2fc}

  /* Other reports: old fixed ink declarations survive C119 on headings. */
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] body .profile-module .page > .head :is(h1,.kicker,.intro,.intro span){color:#edf4f8!important}
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] body .profile-module .page > .head > div .other-reports-back-personal {color:#d2ebfa}
}
@media print {html[data-rs-standalone] #reguR1Menu .rs-theme-entry{display:none!important}}

/* C120R2: Groei / Verdere verdieping + mobile Neurodiversiteit corrections.
   Only dark display. Personal data, active navigation, print and meaningful colors untouched. */
@media screen {
  /* Same dark footer appearance as the accepted Regulator footer, without changing links. */
  html[data-reguspace-theme="dark"][data-rs-standalone] body .app-footer {
    background:#344452 !important;color:#e5eff5 !important;border-color:#718696 !important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body .app-footer :is(strong,a,button,.footer-version,.footer-note) {color:#e5eff5 !important;}
  html[data-reguspace-theme="dark"][data-rs-standalone] body .app-footer :is(.footer-link-btn,.v294c2-module-manual a) {
    background:#405462 !important;border:1px solid #718696 !important;color:#e5eff5 !important;
  }
  /* Actual outer page shell was still light even when child cards were dark. */
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .page {
    background:#344452 !important; color:#edf4f8; box-shadow:0 4px 16px rgba(10,22,34,.17);
  }
  /* Keep questionnaire in one visual family; do not recolor status/selection or graphs. */
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .question-list {border-color:#708697;}
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .question {border-bottom-color:#708697;}
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .question :is(.qtext,.rate-label) {color:#edf4f8 !important;}
  /* Grijsblauw within dark instead of pale grey text inside a light long wrapper. */
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-insights-section,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-reflection-sources,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-step-sources {
    background:#405462 !important;border-color:#718696 !important;color:#edf4f8 !important;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.growth-source-details,.growth-empty-reflections) {
    background:#344452 !important;border-color:#718696 !important;color:#edf4f8 !important;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-source-row {
    background:#405462 !important;border-color:#718696 !important;color:#edf4f8 !important;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.growth-source-row,.growth-source-details,.growth-empty-reflections) :is(strong,small,p,label,summary,h3,h4,span) {
    color:#edf4f8 !important;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.growth-step-kicker,.growth-input-label) {color:#c1e1ee !important;}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-goal-week :is(h5,.growth-week-note) {color:#e3f2ec !important;}
  /* The recovery view still had conspicuously white 'skill cards' on dark chapters. */
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-skill-cards > div {
    background:#405462 !important;border:1px solid #718696 !important;box-shadow:none !important;color:#edf4f8 !important;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-skill-cards > div :is(strong,span,p,small) {color:#edf4f8 !important;}
  /* The expandable sources/footer strips in Growth and recovery must match the same palette. */
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-source-links a {
    background:#526879 !important;border-color:#829dad !important;color:#f0f7fb !important;
  }
  /* Extra pale inset notes and fields in chapters 4 and Recovery: quiet on mobile. */
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .model-choice-note,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-human-note:not(.depth-trauma-section .depth-human-note) {
    background:#405462 !important;border-color:#718696 !important;color:#edf4f8 !important;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.model-choice-note,.depth-human-note) :is(strong,em,p,small,span) {color:#edf4f8 !important;}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-action-card input {
    background:#526879 !important;border-color:#819dab !important;color:#f2f7fa !important;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-source-details > summary,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .sources-disclosure > summary {
    background:#405462 !important;border-color:#718696 !important;color:#edf4f8 !important;
  }
}
