
/* Header layout is self-contained; it does not require the remote theme CSS. */
.skip-link:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link:focus { position:fixed; top:12px; left:12px; padding:12px 18px; background:white; color:#212121; z-index:10001; }
body #masthead {
  position:relative; height:auto; min-height:0; padding:0;
  background-color:#212121;
  background-size:cover; background-position:center; color:white;
}
#masthead .site-header-wrapper {
  position:relative; inset:auto; display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:20px; width:100%; max-width:none; margin:0;
  padding:22px max(24px,calc((100% - 1200px)/2)); box-sizing:border-box;
  background:#fff; border:0; z-index:1000;
}
#masthead .site-title-wrapper { float:none; flex:0 0 auto; margin:0; padding:0; }
#masthead .header-brand, #masthead .custom-logo-link { display:inline-flex; align-items:center; color:#212121; text-decoration:none; }
#masthead .header-brand img, #masthead img.custom-logo { display:block; position:static; width:220px; max-width:100%; height:auto; margin:0; filter:none; }
#masthead .header-brand-text { font-size:30px; font-weight:700; letter-spacing:-1px; line-height:1.2; }
#masthead .main-navigation-container { position:static; float:none; width:auto; margin:0; padding:0; background:transparent; }
#masthead #site-navigation { position:static; float:none; width:auto; margin:0; padding:0; background:transparent !important; }
#masthead #site-navigation .menu-primary-menu-container { position:static; margin:0; padding:0; }
#masthead #site-navigation ul.menu { display:flex; align-items:center; flex-wrap:wrap; gap:8px 26px; margin:0; padding:0; list-style:none; }
#masthead #site-navigation ul.menu > li { float:none; display:block; margin:0; padding:0; list-style:none; }
#masthead #site-navigation a { display:block; padding:10px 0; border:0; color:#444; font-size:16px; line-height:1.5; text-decoration:none; text-transform:none; }
#masthead #site-navigation a:hover, #masthead #site-navigation a[aria-current="page"] { color:#657e10 !important; }
#masthead a:focus-visible, #masthead button:focus-visible { outline:3px solid #9bbe19; outline-offset:5px; }
#masthead #menu-toggle { display:none; }
@media (max-width:760px) {
  #masthead .site-header-wrapper { padding:18px 20px; gap:14px; }
  #masthead .header-brand img, #masthead img.custom-logo { width:180px; }
  #masthead #menu-toggle { display:flex; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; padding:10px; margin:0; border:1px solid #ddd; border-radius:6px; background:#fff; cursor:pointer; box-sizing:border-box; }
  #masthead #menu-toggle span { display:block; height:2px; width:22px; background:#333; }
  #masthead .main-navigation-container { flex:0 0 100%; width:100%; }
  #masthead .main-navigation-container[hidden] { display:none; }
  #masthead #site-navigation ul.menu { flex-direction:column; align-items:stretch; gap:0; }
  #masthead #site-navigation a { padding:12px 0; }
  body.page-template-nopia-front-page #hero-overlay { min-height:360px; padding:48px 20px; }
}


/* Restore accessibility helpers when the original theme stylesheet is missing. */
#masthead .site-title, #masthead .site-description { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); margin:0; }
#masthead .header-logo-fallback { font-size:30px; font-weight:700; line-height:1.2; color:#212121; }
body #masthead img.custom-logo { display:block; }
body #masthead img.custom-logo[hidden] { display:none !important; }
#masthead #menu-toggle > div { display:block; height:2px; width:22px; margin:0; background:#333; }
/* Inner-page heading remains visible, with no empty 500px header. */
#masthead:has(.page-title-container) #hero-overlay { display:none; }
#masthead .page-title-container { position:relative; padding:52px 24px; text-align:center; }
#masthead .page-title-container .page-header { margin:0; padding:0; background:none; }
#masthead .page-title { margin:0; color:#fff; font-size:clamp(30px,5vw,50px) !important; }
