/* C121R9 — One tested presentation contract for the five Regulator headers/footers.
 * SCREEN ONLY. No route, Quick, Complete, storage, report or print rule here.
 * The HTML menu markup is still embedded in five pages; this CSS is truly shared.
 */
@media screen and (min-width:801px) {
  html body > div.app > div.regu-c44-sticky-frame,
  html[data-rs-standalone] body > div.reguspace-v287-app > div.regu-c44-sticky-frame {
    box-sizing:border-box!important;
    position:fixed!important;
    top:0!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    width:min(calc(100% - 24px),1440px)!important;
    max-width:1440px!important;
    margin:0!important;
  }
  html body > div.app #reguspaceToolbar.toolbar.reguspace-v287-toolbar,
  html[data-rs-standalone] body > div.reguspace-v287-app #reguspaceToolbar.toolbar.reguspace-v287-toolbar {
    box-sizing:border-box!important;
    position:relative!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding-left:8px!important;
    padding-right:8px!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    overscroll-behavior-x:contain;
  }
  html body #reguspaceToolbar::-webkit-scrollbar {display:none!important;}
  /* Remove historic flex auto-gaps and differing button font sizes.
     These values deliberately match the existing Persoonlijkheid navigation. */
  html body #reguspaceToolbar > .app-brand {
    box-sizing:border-box!important;flex:0 0 112px!important;
    width:112px!important;min-width:112px!important;
    margin-left:0!important;margin-right:41.6px!important;
  }
  html body #reguspaceToolbar > #reguPrepWorkmode {
    box-sizing:border-box!important;flex:0 0 176px!important;width:176px!important;
    min-width:176px!important;margin:0!important;
  }
  html body #reguspaceToolbar > #showModel {margin-left:0!important;}
  html body #reguspaceToolbar > #showPersonality {margin-left:auto!important;}
  html body #reguspaceToolbar > button.btn:not(.quickstart-main-btn) {
    font-size:14px!important;
    font-weight:700!important;
    text-rendering:auto!important;
  }

}
/* Nested module content has known 18/20px side-padding; the footer should
 * align with the shared toolbar rather than remain inset twice. */
@media screen and (min-width:801px) {
  html body .q-page-shell > footer#qualitiesSharedFooter {
    box-sizing:border-box!important;
    width:calc(100% + 36px)!important;
    max-width:1440px!important;
    margin-left:-18px!important;
  }
  html body .rv-page > footer.app-footer.rv-shared-footer {
    box-sizing:border-box!important;
    width:calc(100% + 40px)!important;
    max-width:1440px!important;
    margin-left:-20px!important;
  }
}
/* Tablet ribbon keeps existing horizontal scroll and mobile Quick is untouched. */
@media screen and (min-width:761px) and (max-width:800px) {
  html[data-rs-standalone] body > div.reguspace-v287-app > div.regu-c44-sticky-frame {
    max-width:100%!important;width:100%!important;margin-left:0!important;margin-right:0!important;
  }
}
@media screen {
  /* Same width and typography/spacing for every footer, preserve each module's own controls. */
  html body:has(#reguspaceToolbar) .app-footer {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:1440px!important;
    margin:18px auto 8px!important;
    padding:12px 14px!important;
    text-align:center!important;
    border-radius:15px!important;
    font-size:11.5px!important;
    line-height:1.5!important;
  }
  html body:has(#reguspaceToolbar) .app-footer > .footer-actions {
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    margin:8px auto 7px!important;
  }
  html body:has(#reguspaceToolbar) .app-footer > .v294c2-module-manual,
  html body:has(#reguspaceToolbar) .app-footer > .v294c2-footer-guide {
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    margin:5px auto!important;
  }
  html body:has(#reguspaceToolbar) .app-footer > .v294c2-module-manual a,
  html body:has(#reguspaceToolbar) .app-footer > .v294c2-footer-guide a {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:40px!important;
    box-sizing:border-box!important;
    padding:8px 12px!important;
    text-decoration:none!important;
    border-radius:10px!important;
    font:700 12px/1.25 Inter,system-ui,'Segoe UI',Arial,sans-serif!important;
  }
  html body:has(#reguspaceToolbar) .app-footer .footer-link-btn {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:33px!important;
    box-sizing:border-box!important;
    border-radius:9px!important;
    padding:7px 11px!important;
    font:650 11.5px/1.25 Inter,system-ui,'Segoe UI',Arial,sans-serif!important;
    text-decoration:none!important;
  }
  html[data-reguspace-theme='dark'] body:has(#reguspaceToolbar) .app-footer {
    background:#334553!important;
    border:1px solid #657b8b!important;
    color:#e8f3f9!important;
  }
  html[data-reguspace-theme='dark'] body:has(#reguspaceToolbar) .app-footer > .v294c2-module-manual a,
  html[data-reguspace-theme='dark'] body:has(#reguspaceToolbar) .app-footer > .v294c2-footer-guide a,
  html[data-reguspace-theme='dark'] body:has(#reguspaceToolbar) .app-footer .footer-link-btn {
    color:#f0f8ff!important;
    background:#405868!important;
    border:1px solid #728b9a!important;
  }
  html[data-reguspace-theme='dark'] body:has(#reguspaceToolbar) .app-footer :is(.footer-version,.author-mail) {color:#d0e7f5!important;}
  html body:has(#reguspaceToolbar) .app-footer :is(a,button,summary):focus-visible {outline:3px solid #76b6d8;outline-offset:2px;}
  /* Neurodiversiteit uses accessible native disclosure instead of inventing new data handlers. */
  body:has(#reguspaceToolbar) .app-footer .r9-footer-disclosure {position:relative;display:inline-block;margin:0;}
  body:has(#reguspaceToolbar) .app-footer .r9-footer-disclosure > summary {cursor:pointer;list-style:none;}
  body:has(#reguspaceToolbar) .app-footer .r9-footer-disclosure > summary::-webkit-details-marker {display:none;}
  body:has(#reguspaceToolbar) .app-footer .r9-footer-disclosure[open] > .r9-footer-info {
    box-sizing:border-box;position:relative;margin:8px 0 2px;padding:12px;text-align:left;
    max-width:min(440px,85vw);background:#edf5f9;color:#203746;border:1px solid #c8dbe6;border-radius:10px;
    font:13px/1.5 Inter,system-ui,'Segoe UI',Arial,sans-serif;
  }
  html[data-reguspace-theme='dark'] body:has(#reguspaceToolbar) .app-footer .r9-footer-disclosure[open] > .r9-footer-info {
    background:#405868!important;color:#f1f8fc!important;border-color:#728b9a!important;
  }
  body:has(#reguspaceToolbar) .app-footer .r9-footer-info a {color:#155d80;}
  html[data-reguspace-theme='dark'] body:has(#reguspaceToolbar) .app-footer .r9-footer-info a {color:#c3eeff!important;}
}
@media screen and (min-width:801px) {
  html body:has(#reguspaceToolbar) .rv-page > footer.app-footer.rv-shared-footer {
    width:calc(100% + 40px)!important;
    max-width:1440px!important;
    margin-left:-20px!important;
  }
}
/* Measured compact desktop/tablet button minima; prevent two legacy font engines
   allocating different widths. Buttons may grow with larger font settings. */
@media screen and (min-width:801px) and (max-width:1100px) {
  html body #reguspaceToolbar > #showModel {min-width:62px!important;}
  html body #reguspaceToolbar > #showRegulation {min-width:84px!important;}
  html body #reguspaceToolbar > #showAnalysis {min-width:83px!important;}
  html body #reguspaceToolbar > #showPersonality {min-width:96px!important;}
  html body #reguspaceToolbar > #showAttachment {min-width:70px!important;}
  html body #reguspaceToolbar > #showStress {min-width:64px!important;}
  html body #reguspaceToolbar > #showThemes {min-width:77px!important;}
  html body #reguspaceToolbar > #showDepthRecovery {min-width:58px!important;}
}
