/* Site shell fixes shared by every page that uses app.js (not MAIA / hematology).
   Loaded last so it wins over the page-specific header rules. */

/* Mobile header (Go-live T5): the menu button must stay on screen on every page.
   Before this, only the homepage (body:has(.hero-evidence)) had compact header rules, so on
   /platform, /publications, /contact, /careers etc. the "Connect with us" button pushed the
   menu button past the right edge at 390 px. These rules apply to all pages and do not rely on :has(). */
@media(max-width:760px){
  html:not([data-maia]) .site-header,
  html:not([data-maia]) .site-header.sticky{height:68px}
  html:not([data-maia]) .nav-inner{width:calc(100% - 32px);gap:12px;min-width:0}
  html:not([data-maia]) .wordmark{width:106px;flex:0 1 106px;min-width:72px}
  html:not([data-maia]) .nav-tools{flex:0 0 auto;gap:6px;margin-left:auto;min-width:0}
  html:not([data-maia]) .nav-tools .icon-btn{width:32px;height:36px;padding:5px;flex:none;display:inline-flex;align-items:center;justify-content:center}
  html:not([data-maia]) .nav-tools .menu-button{display:inline-flex;visibility:visible;opacity:1;order:99}
  html:not([data-maia]) .nav-tools .menu-button svg{width:21px;height:21px}
  html:not([data-maia]) .theme-toggle{width:34px;min-height:34px;padding:7px;flex:none}
  html:not([data-maia]) .nav-contact{max-width:95px;min-height:36px;padding:7px 8px;font-size:12px;line-height:1.25;white-space:normal;text-align:center;justify-content:center;gap:0;flex:0 1 auto}
  html:not([data-maia]) .nav-contact svg{display:none}
}
@media(max-width:380px){
  html:not([data-maia]) .nav-contact{display:none}
}
@media(max-width:360px){
  html:not([data-maia]) .nav-inner{width:calc(100% - 24px);gap:8px}
  html:not([data-maia]) .wordmark{width:96px;flex-basis:96px}
  html:not([data-maia]) .nav-tools{gap:4px}
  html:not([data-maia]) .nav-tools .icon-btn{width:30px;padding:4px}
  html:not([data-maia]) .theme-toggle{width:30px;min-height:30px;padding:5px}
}

/* Footer "Your privacy choices" opens ConsentStack preferences. */
.footer-privacy-choices{cursor:pointer}

/* Legal pages: privacy policy, terms of use, responsible disclosure (Go-live T1). */
.legal-body{max-width:820px;font-size:17px;line-height:1.75;color:var(--text)}
.legal-body>*:first-child{margin-top:0}
.legal-body p{margin:0 0 18px}
.legal-body .legal-subtitle{font-family:var(--display);font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin-bottom:22px}
.legal-body h3{font-family:var(--display);font-size:24px;line-height:1.3;font-weight:600;margin:44px 0 14px;color:var(--text)}
.legal-body ul,.legal-body ol{margin:0 0 22px;padding-left:24px}
.legal-body li{margin:0 0 12px;padding-left:4px}
.legal-body li>ul,.legal-body li>ol{margin:12px 0 0}
.legal-body strong{font-weight:600}
.legal-body a{color:var(--teal);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.legal-body a:hover{color:#055a5e}
.legal-loading{color:var(--muted)}
/* Same size and colour for paragraphs and list items (site rules otherwise make list text 13px). */
html:not([data-maia]) .legal-section .legal-body p,html:not([data-maia]) .legal-section .legal-body li{font-size:17px;line-height:1.75;color:#3f565d}
@media(max-width:760px){html:not([data-maia]) .legal-section .legal-body p,html:not([data-maia]) .legal-section .legal-body li{font-size:16px}}
@media(max-width:760px){.legal-body{font-size:16px}.legal-body h3{font-size:21px;margin-top:36px}}

/* Owner review (2026-11-22). Light/dark switch: a round icon at every width; the words "Light"/"Dark" are not shown
   (the switch keeps its aria-label and tooltip). */
html:not([data-maia]) .theme-toggle{width:38px;height:38px;min-height:38px;padding:0;gap:0;border-radius:50%;justify-content:center}
html:not([data-maia]) .theme-toggle [data-theme-label]{display:none}
@media(max-width:760px){html:not([data-maia]) .theme-toggle{width:34px;height:34px;min-height:34px}}
@media(max-width:360px){html:not([data-maia]) .theme-toggle{width:30px;height:30px;min-height:30px}}
/* "Connect with us" on one line on phones (it wrapped to two); under 381px the button is hidden, as before. */
@media(max-width:760px) and (min-width:381px){html:not([data-maia]) .nav-contact{max-width:none;white-space:nowrap;padding:7px 10px;flex:none}}
/* About us, offices: the logos (max 170px) forced the two phone columns wider than a 360px screen. */
@media(max-width:760px){.office-grid>.office{min-width:0}.office img{max-width:100%}}
