/* Shared chrome must not inherit page-specific header dimensions or form styles. */
html.site-root body > :is(.skip-link,.skip,.auth-skip) {
  position:absolute; top:-100px; left:16px; z-index:300; padding:10px 16px;
  border-radius:6px; background:#fff; color:#07366e;
}
html.site-root body > :is(.skip-link,.skip,.auth-skip):focus { top:8px; }
html.site-root body [data-shared-header] {
  position:relative; z-index:120; width:100%; height:var(--site-header-height);
  margin:0; padding:0; border:0; background:#fff; color:#193958;
  font:14px/1.4 Arial,Helvetica,sans-serif;
}
[data-shared-header] *, .page-footer * { box-sizing:border-box; }
html.site-root body [data-shared-header] > .header-inner {
  position:relative; display:flex; align-items:center; gap:20px;
  width:calc(100% - var(--site-gutter)*2); max-width:var(--site-content-max);
  height:100%; min-height:0; margin:0 auto; padding:0;
}
html.site-root body [data-shared-header] .brand {
  display:block; width:var(--site-logo-width); flex:0 0 var(--site-logo-width); margin:0;
}
html.site-root body [data-shared-header] .brand img {
  display:block; width:100%; height:auto; max-width:100%; object-fit:contain;
}
html.site-root body [data-shared-header] .main-nav { margin-left:auto; }
html.site-root body [data-shared-header] .header-actions {
  display:flex; align-items:center; flex-shrink:0; gap:8px; margin-left:auto;
}
html.site-root body [data-shared-header] .header-actions > .theme-picker { order:0; }
html.site-root body [data-shared-header] .header-actions > .rb-language { order:1; }
html.site-root body [data-shared-header] .header-actions > .rb-search { order:2; }
html.site-root body [data-shared-header] .header-actions > .rb-notifications { order:3; }
html.site-root body [data-shared-header] .header-actions > .rb-account-slot { order:4; }
html.site-root body [data-shared-header] .header-actions > .rb-menu-toggle { order:5; }
html.site-root body [data-shared-header] .theme-picker > summary {
  width:44px; height:44px; border:0; border-radius:6px; background:transparent;
}
html.site-root body [data-shared-header] .theme-choice { margin:0; font-size:13px; }
html.site-root body [data-shared-header] .theme-choice input { min-height:0; margin:0; }
html[data-theme=dark] body [data-shared-header] { background:var(--dm-surface,#202d30); color:var(--dm-text,#e4eff6); }
/* The homepage hero already supplies a continuous, theme-aware contrast scrim. */
html.site-root body.home-page .hero > [data-shared-header] {
  background:transparent; backdrop-filter:none; box-shadow:none;
}
html[data-theme=dark] body.home-page .hero > [data-shared-header] { background:transparent!important; }
.auth-redesign .auth-layout { min-height:calc(100dvh - var(--site-header-height)); }
.auth-redesign .auth-back-row { display:flex; padding:24px 7%; min-height:68px; }
.auth-redesign .auth-scenery > .auth-brand { display:none; }
.ops-page > .ops-single { min-height:calc(60dvh - var(--site-header-height)); }
.site-footer-notice { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:200; width:max-content; max-width:calc(100% - 32px); padding:14px 20px; border:1px solid #bad6df; border-radius:8px; background:#fff; color:#193958; box-shadow:0 6px 24px #05264526; font:14px/1.5 Arial,Helvetica,sans-serif; }
/* Keep the header geometry stable while the verified account controls arrive. */
html.site-root body [data-shared-header] .header-actions:empty { width:394px; height:44px; }
@media(max-width:1360px) {
  html.site-root body [data-shared-header] .header-actions:empty { width:372px; }
}
 html.site-root body [data-shared-header] .rb-account-slot { width:44px; min-height:44px; justify-content:flex-end; }
html.site-root body [data-shared-header] .rb-notifications[hidden] { display:inline-flex!important; visibility:hidden; }
@media(max-width:600px) {
  html.site-root body [data-shared-header] .header-actions:empty { width:198px; }
  html.site-root body [data-shared-header] .rb-account-slot { width:56px; }
}
/* Phones: scripts rearrange desktop markup into the mobile layout. Keep everything but the header
   and bottom bar hidden until the page is ready, so each page appears once in its final layout
   (browsers without cross-document view transitions would otherwise show every step). */
@media(max-width:767px) {
  html.rb-page-initializing body > :not([data-shared-header],.skip-link,.rb-bottom-nav,dialog,script,.toast) { visibility:hidden; }
}
/* Native document navigation preserves browser history, downloads and form guards. */
@view-transition { navigation:auto; }
[data-shared-header] { view-transition-name:site-header; }
::view-transition-old(root),::view-transition-new(root) { animation:none; }
::view-transition-group(site-header) { animation-duration:0s; }
::view-transition-old(site-header) { animation:none; opacity:0; }
::view-transition-new(site-header) { animation:none; }
/* Retain browser-owned outgoing snapshots until verified chrome and page scripts
   are ready. No account HTML or identity is persisted in browser storage. */
.rb-navigation-pending::view-transition-old(root),
.rb-navigation-pending::view-transition-old(site-header) {
  animation:rb-navigation-hold 3s linear both; opacity:1; z-index:2;
}
.rb-navigation-pending::view-transition-new(root),
.rb-navigation-pending::view-transition-new(site-header) { opacity:0; }
@keyframes rb-navigation-hold { from,to { opacity:1; } }
.rb-account-pending { display:flex; align-items:center; justify-content:center; width:44px; min-height:44px; }
.rb-pending-avatar { width:32px; height:32px; border-radius:50%; background:currentColor; opacity:.1; }
.rb-pending-name { display:none; }
@media(max-width:600px) { .rb-pending-name { display:none; } }
@media(prefers-reduced-motion:reduce) {
  @view-transition { navigation:none; }
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*) { animation:none!important; }
}
@media(max-width:760px) {
  html.site-root body [data-shared-header] > .header-inner { gap:8px; }
}
@media(max-width:400px) {
  html.site-root body [data-shared-header] .brand { flex-shrink:1; min-width:88px; }
}
@media(max-width:360px) {
  html.site-root body [data-shared-header] .header-actions { gap:0; }
  html.site-root body [data-shared-header] .rb-account-slot { width:44px; }
  .rb-header .rb-account>summary { min-width:44px; justify-content:center; }
  .rb-header .rb-account>summary>.rb-chevron { display:none; }
}
/* Guest labels must grow with the selected language, not overflow the avatar slot. */
html.site-root body [data-shared-header] .rb-account-slot:has(.rb-join){width:auto;flex-shrink:0}
.rb-header .rb-mobile-auth{display:none}
/* The account disclosure shares the richer navigation row treatment. */
html.site-root body [data-shared-header] .rb-account-panel{width:270px;padding:12px;border-radius:8px;background:var(--nav-panel);border-color:var(--nav-line);color:var(--nav-ink);right:0}
html.site-root body [data-shared-header] .rb-account-panel>a,html.site-root body [data-shared-header] .rb-account-panel>button{justify-content:flex-start;gap:12px;min-height:46px;color:var(--nav-ink);font-size:14px}
html.site-root body [data-shared-header] .rb-account-panel .rb-account-identity{gap:12px;padding:4px 8px 16px;margin-bottom:8px;border-bottom:1px solid var(--nav-line);border-radius:0}
.rb-header .rb-identity-photo{width:44px;height:44px;flex:0 0 44px;border-radius:50%;object-fit:cover}
.rb-header .rb-account-identity>span,.rb-header .rb-account-copy{min-width:0;flex:1}
.rb-header .rb-account-panel strong{display:block;font-size:14px;line-height:1.4;font-weight:600;color:var(--nav-ink);overflow-wrap:anywhere}
.rb-header .rb-account-panel small{display:block;margin-top:3px;font-size:12px;font-weight:400;line-height:1.4;color:var(--nav-muted)}
.rb-header .rb-account-icon{display:block;flex:0 0 22px;width:22px;height:22px;background:currentColor;mask:var(--account-icon) center/contain no-repeat}
html.site-root body [data-shared-header] .rb-account-panel [data-staff]{background:#edf9f4;color:#148474;border-radius:8px}
html.site-root body [data-shared-header] .rb-account-panel [data-auth-signout]{margin-top:10px;padding-top:14px;border-top:1px solid var(--nav-line);border-radius:0}
.rb-header [data-auth-signout] .rb-account-icon{color:#d43856}
html.site-root body [data-shared-header] .rb-account-panel :is(a,button):is(:hover,:focus-visible){background:var(--nav-hover);color:var(--nav-ink)}
html.site-root body [data-shared-header] .rb-account[open]>summary{background:var(--nav-hover)}
html[data-theme=dark] body [data-shared-header] .rb-account-panel [data-staff]{background:#29443e;color:#82dfcb}
html[data-theme=dark] .rb-header [data-auth-signout] .rb-account-icon{color:#ff9caf}
html[data-theme=dark] .rb-header .rb-identity-photo{filter:none!important}
@media(max-width:600px){
 html.site-root body [data-shared-header] .rb-account-panel{position:fixed;top:calc(var(--site-header-height) + 8px);right:16px;width:min(270px,calc(100vw - 32px))}
}
.rb-header{--nav-ink:#153651;--nav-muted:#60758a;--nav-panel:#fff;--nav-line:#dfE8ef;--nav-hover:#eaf7fb}
html[data-theme=dark] .rb-header{--nav-ink:#e5f0f3;--nav-muted:#b2c6cf;--nav-panel:#253238;--nav-line:#46575f;--nav-hover:#30494f}
html.site-root body [data-shared-header] > .header-inner{gap:14px;max-width:1600px}
html.site-root body [data-shared-header] .rb-search{display:flex;align-items:center;gap:10px;flex:0 0 250px;min-width:44px;max-width:250px;height:46px;padding:0 14px;border:1px solid var(--nav-line);border-radius:28px;background:var(--nav-panel);color:var(--nav-muted);text-decoration:none}
.rb-header .rb-search>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.rb-header .rb-search>img{flex:0 0 20px}
html.site-root.site-layout body [data-shared-header] .rb-navigation{gap:8px;margin-left:0;flex-shrink:0}
html.site-root body [data-shared-header] .rb-navigation>a,.rb-header .rb-rich-menu>summary{gap:10px;padding:12px;color:var(--nav-ink);font-size:14px;font-weight:700;white-space:nowrap}
.rb-header .rb-nav-icon{width:24px;height:24px;object-fit:contain;flex:0 0 24px}
.rb-header .rb-rich-menu>summary{border-radius:8px;min-height:48px}
.rb-header .rb-rich-menu>summary:is(:hover,:focus-visible,.rb-current),.rb-header .rb-rich-menu[open]>summary{background:var(--nav-hover);color:var(--nav-ink)}
.rb-header .rb-rich-menu>summary.rb-current::before{background:#008ca8}
html.site-root body [data-shared-header] .rb-share>summary{background:#008ba5;color:#fff!important}
.rb-header .rb-share>summary>.rb-nav-icon{filter:brightness(0) invert(1)}
/* Own the panel geometry rather than inheriting the legacy Community grid. */
html.site-root body [data-shared-header] .rb-rich-panel{display:block;position:absolute;z-index:100;left:0;right:auto;top:calc(100% + 6px);width:290px;min-width:0;margin:0;padding:8px 12px;border:1px solid var(--nav-line);border-radius:11px;background:var(--nav-panel);color:var(--nav-ink);box-shadow:0 6px 18px #102f491a}
.rb-header .rb-menu-heading{display:flex;align-items:center;height:25px;margin:0;font:700 11px/16px Arial,Helvetica,sans-serif;text-transform:uppercase;color:var(--nav-muted)}
html.site-root body [data-shared-header] .rb-rich-panel>a{display:flex;align-items:center;gap:10px;height:52px;min-height:52px;margin:0;padding:0;white-space:nowrap;border-radius:6px;color:var(--nav-ink);text-decoration:none;line-height:1.4}
html.site-root body [data-shared-header] .rb-rich-panel>a:is(:hover,:focus-visible){background:var(--nav-hover);color:var(--nav-ink)}
html.site-root body [data-shared-header] .rb-rich-panel>a[aria-current=page]{background:var(--nav-hover);color:var(--nav-ink);text-decoration:none}
.rb-header .rb-menu-icon{display:flex;align-items:center;width:20px;height:20px;flex:0 0 20px}
.rb-header .rb-menu-icon .rb-nav-icon{width:20px;height:20px;flex-basis:20px}
.rb-header .rb-menu-copy{flex:1;min-width:0}
.rb-header .rb-menu-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--nav-ink);font:600 14px/19px Arial,Helvetica,sans-serif}
.rb-header .rb-menu-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;color:var(--nav-muted);font:400 11px/16px Arial,Helvetica,sans-serif}
.rb-header .rb-menu-arrow{font-size:24px;color:var(--nav-muted)}
html.site-root body [data-shared-header] .header-actions{gap:4px!important}
html.site-root body [data-shared-header] .rb-account-slot:not(:has(.rb-join)){width:44px}
.rb-header .rb-messages{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:6px;color:var(--nav-ink);order:3}
.rb-header .rb-messages:hover{background:var(--nav-hover)}
html[data-theme=dark] .rb-header :is(.rb-nav-icon,.rb-messages>img,.rb-search>img){filter:brightness(0) invert(1)}
@media(min-width:1361px){
 html.site-root body [data-shared-header] > .header-inner{width:max-content;max-width:calc(100% - var(--site-gutter)*2)}
 html.site-root body [data-shared-header] .header-actions{margin-left:0}
 html.site-root body [data-shared-header] .brand{width:200px;flex-basis:200px}
 html.site-root.site-layout body [data-shared-header] .rb-navigation{gap:4px}
 html.site-root body [data-shared-header] .rb-search{min-width:180px}
 html.site-root:not([lang=en]) body [data-shared-header] .rb-search{min-width:140px;flex-shrink:1}
 html.site-root body [data-shared-header]:has(.rb-join) :is(.rb-messages,.rb-notifications[hidden]){display:none!important}
}
@media(max-width:1360px){
 html.site-root body [data-shared-header] .rb-search{margin-left:auto}
 html.site-root body [data-shared-header] .rb-navigation.open{max-height:calc(100dvh - var(--site-header-height));overflow-y:auto;background:var(--nav-panel);color:var(--nav-ink)}
 html.site-root body [data-shared-header] .rb-rich-panel{position:static;width:100%;margin-top:6px;box-shadow:none}
 .rb-header .rb-menu-heading{display:none}
}
@media(min-width:1280px) and (max-width:1439px){
 html.site-root body [data-shared-header] .rb-search{flex-basis:230px;max-width:230px}
}
@media(min-width:1361px) and (max-width:1439px){
 html.site-root body [data-shared-header] > .header-inner{gap:8px}
 html.site-root.site-layout body [data-shared-header] .rb-navigation{gap:0}
 html.site-root body [data-shared-header] .rb-navigation>a,.rb-header .rb-rich-menu>summary{padding-left:8px;padding-right:8px}
}
@media(min-width:768px) and (max-width:1279px){
 /* The compact search and utility controls share one group at the right edge. */
 html.site-root body [data-shared-header] .header-actions{margin-left:0!important}
}
@media(max-width:1279px){
 html.site-root body [data-shared-header] .rb-search{flex:0 0 44px;width:44px;padding:0;justify-content:center;background:transparent;border:0}
 .rb-header .rb-search>span{display:none}
}
@media(max-width:760px){
 .rb-header .rb-messages{display:none}
}
@media(max-width:600px){
 html.site-root body [data-shared-header] .rb-search{display:none}
}
@media(max-width:600px){
 html.site-root body [data-shared-header] .rb-account-slot:has(.rb-join){display:none}
 html.site-root body [data-shared-header]:has(.rb-join) .rb-notifications[hidden]{display:none!important}
 .rb-header .rb-navigation.open .rb-mobile-auth{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border-top:1px solid var(--site-border,#c8dce3);padding-top:12px}
 .rb-header .rb-mobile-auth>a{white-space:normal;min-height:44px;display:inline-flex;align-items:center}
}
