/* Keep the normal header footprint in the document as its fixed surface contracts. */
.grr-site-header{position:sticky;top:var(--grr-admin-offset,0px);z-index:1000}
.admin-bar .grr-site-header{--grr-admin-offset:32px}
.grr-site-header.grr-sticky-ready{position:relative;top:auto;height:var(--grr-header-reserved,auto)}
.grr-site-header.is-fixed .grr-header-surface{position:fixed;top:var(--grr-admin-offset,0px);inset-inline:0;box-shadow:0 8px 24px #04255222}
.grr-header-surface{background:#fff}
.grr-site-header .grr-header-surface .grr-navigation,.grr-site-header .grr-header-surface .nav-bar{position:relative;top:auto}
.grr-site-header .masthead{transition:min-height .22s ease,padding .22s ease}
.grr-site-header .masthead .brand-image{transition:width .22s ease,height .22s ease,max-height .22s ease;object-fit:contain}
.grr-site-header.is-compact .masthead{min-height:72px;padding-block:4px;gap:20px;flex-wrap:nowrap}
.grr-site-header.is-compact .masthead>.grr-brand{padding-block:4px;flex:0 1 auto;min-width:0}
.grr-site-header.is-compact .masthead .website-brand-logo{width:176px;height:44px}
.grr-site-header.is-compact .masthead .brand-image:not(.website-brand-logo):not(.footer-brand-logo){max-height:48px;width:auto}
.grr-site-header.is-compact .citizen-button{padding-block:6px}
.grr-site-header.is-compact .masthead-statement strong{font-size:16px}
.grr-site-header.is-measuring .masthead,.grr-site-header.is-measuring .brand-image{transition:none}
html{scroll-padding-top:calc(var(--grr-current-header-height,0px) + var(--grr-current-admin-height,0px) + 16px)}
@media(max-width:782px){.admin-bar .grr-site-header{--grr-admin-offset:46px}}
@media(max-width:540px){
  .grr-site-header.is-compact .masthead{min-height:64px;gap:10px;padding-block:6px}
  .grr-site-header.is-compact .masthead>.grr-brand{flex:0 1 144px}
  .grr-site-header.is-compact .masthead .website-brand-logo{width:144px;height:auto;aspect-ratio:4/1}
  .grr-site-header.is-compact .citizen-button{padding:6px 8px;font-size:12px;flex-shrink:0}
  .grr-site-header.is-compact .citizen-icon{display:none}
  .grr-site-header.is-compact .citizen-button small{font-size:12px;letter-spacing:0}
}
@media(prefers-reduced-motion:reduce){.grr-site-header .masthead,.grr-site-header .masthead .brand-image{transition:none}}
@media print{.grr-site-header.grr-sticky-ready{height:auto}.grr-site-header.is-fixed .grr-header-surface{position:static;box-shadow:none}}

/* Compact public masthead. Component specificity takes precedence over the
   legacy Customizer's fixed 96/88px header without changing its saved settings. */
html body .grr-site-header .grr-header-surface .main-header .masthead{height:auto;min-height:72px;padding-block:4px;gap:16px;flex-wrap:nowrap}
html body .grr-site-header .grr-header-surface .main-header .masthead>.grr-brand{flex:0 1 180px;min-width:0;padding-block:0}
html body .grr-site-header .grr-header-surface .main-header .masthead .grr-brand>.brand-image:not(.footer-brand-logo){width:180px;height:60px;max-width:100%;object-fit:contain;aspect-ratio:3/1}
html body .grr-site-header .grr-header-surface .main-header .masthead-statement{padding-inline-start:16px;min-width:0}
html body .grr-site-header .grr-header-surface .main-header .citizen-button{min-height:44px;flex-shrink:0}
/* Search and department access retain full touch targets in the compact bar. */
html body .grr-site-header .grr-header-surface .grr-navigation .grr-directory-toggle{min-height:44px}
html body .grr-site-header .grr-header-surface .grr-navigation .grr-navigation-search input,
html body .grr-site-header .grr-header-surface .grr-navigation .grr-navigation-search button{height:44px;min-height:44px}
html body .grr-site-header.is-compact .grr-header-surface .main-header .masthead{height:auto;min-height:56px;padding-block:4px;gap:12px}
html body .grr-site-header.is-compact .grr-header-surface .main-header .masthead>.grr-brand{flex-basis:144px}
html body .grr-site-header.is-compact .grr-header-surface .main-header .masthead .grr-brand>.brand-image:not(.footer-brand-logo){width:144px;height:48px}
html body .grr-site-header.is-compact .grr-header-surface .main-header .citizen-button{min-height:44px;padding:4px 10px}
html body .grr-site-header.is-compact .grr-header-surface .main-header .grr-citizen-message{display:none}
@media(max-width:1024px){html body .grr-site-header .grr-header-surface .main-header .masthead-statement{display:none}}
@media(max-width:600px){
 html body .grr-site-header .grr-header-surface .main-header .masthead{min-height:64px;gap:8px}
 html body .grr-site-header .grr-header-surface .main-header .masthead>.grr-brand{flex-basis:156px}
 html body .grr-site-header .grr-header-surface .main-header .masthead .grr-brand>.brand-image:not(.footer-brand-logo){width:156px;height:52px}
 html body .grr-site-header .grr-header-surface .main-header .citizen-button{max-width:44%;padding:6px 8px}
 html body .grr-site-header .grr-header-surface .main-header .grr-citizen-message{display:none}
 html body .grr-site-header .grr-header-surface .main-header .citizen-button small{font-size:12px;line-height:1.4;margin:0}
 html body .grr-site-header.is-compact .grr-header-surface .main-header .masthead{min-height:56px}
 html body .grr-site-header.is-compact .grr-header-surface .main-header .masthead>.grr-brand{flex-basis:144px}
 html body .grr-site-header.is-compact .grr-header-surface .main-header .masthead .grr-brand>.brand-image:not(.footer-brand-logo){width:144px;height:48px}
}
