/* Homepage-only header and footer corrections. Does not affect inner pages. */
header.marjan-header{
  min-height:76px!important;
  align-items:center!important;
}
header.marjan-header>.brand,
header.marjan-header>a.brand{
  flex:0 0 150px!important;
  width:150px!important;
  max-width:150px!important;
  min-width:0!important;
}
header.marjan-header>.brand img,
header.marjan-header>a.brand img{
  display:block!important;
  width:150px!important;
  height:auto!important;
  max-width:100%!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:left center!important;
}
header.marjan-header>nav.primary-navigation{
  min-width:0!important;
}
header.marjan-header>.marjan-header-actions{
  display:flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  gap:8px!important;
}
header.marjan-header .nav-search{
  order:2;
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  border:1px solid #d9e0eb!important;
  border-radius:10px!important;
  background:#fff!important;
}
header.marjan-header .marjan-header-actions>.menu-toggle{
  order:1;
  border-radius:10px!important;
}
header.marjan-header .nav-search:hover,
header.marjan-header .marjan-header-actions>.menu-toggle:hover{
  background:#f4f6fa!important;
  border-color:#c6cfdd!important;
}
header.marjan-header a:focus-visible,
header.marjan-header summary:focus-visible,
header.marjan-header button:focus-visible,
footer a:focus-visible{
  outline:3px solid #e97885!important;
  outline-offset:3px!important;
}
@media(min-width:901px){
  header.marjan-header{
    gap:10px!important;
    padding:10px 2.5%!important;
  }
  header.marjan-header>.brand,
  header.marjan-header>a.brand{
    flex-basis:150px!important;
    width:150px!important;
    max-width:150px!important;
  }
  header.marjan-header>.brand img,
  header.marjan-header>a.brand img{
    width:150px!important;
  }
  header.marjan-header>nav.primary-navigation{
    justify-content:space-between!important;
    gap:2px!important;
  }
  header.marjan-header>nav.primary-navigation>.nav-home,
  header.marjan-header>nav.primary-navigation .nav-group>summary{
    min-height:40px!important;
    padding:7px 6px!important;
    font-size:12px!important;
  }
}
@media(max-width:900px){
  header.marjan-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto!important;
    gap:8px!important;
    min-height:68px!important;
    padding:8px 4%!important;
  }
  header.marjan-header>.brand,
  header.marjan-header>a.brand{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    max-width:156px!important;
    flex:none!important;
  }
  header.marjan-header>.brand img,
  header.marjan-header>a.brand img{
    width:156px!important;
    max-width:100%!important;
    max-height:none!important;
  }
  header.marjan-header>.marjan-header-actions{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
    gap:7px!important;
  }
  header.marjan-header .nav-search{
    width:40px!important;
    height:40px!important;
    flex-basis:40px!important;
  }
  header.marjan-header .marjan-header-actions>.menu-toggle{
    display:inline-flex!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:8px!important;
    background:#f5f7fb!important;
    border:1px solid #d9e0eb!important;
  }
  header.marjan-header .marjan-header-actions>.menu-toggle svg{
    display:block!important;
    width:22px!important;
    height:22px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:2!important;
    stroke-linecap:round!important;
  }
  header.marjan-header .marjan-header-actions>.menu-toggle span{display:none!important}
  header.marjan-header>nav.primary-navigation{
    grid-column:1/-1!important;
    grid-row:2!important;
  }
}
@media(max-width:380px){
  header.marjan-header>.brand,
  header.marjan-header>a.brand{max-width:140px!important}
  header.marjan-header>.brand img,
  header.marjan-header>a.brand img{width:140px!important}
  header.marjan-header>.marjan-header-actions{gap:5px!important}
  header.marjan-header .nav-search,
  header.marjan-header .marjan-header-actions>.menu-toggle{
    width:37px!important;height:37px!important;min-width:37px!important;flex-basis:37px!important
  }
}

/* Clean homepage footer: one real logo link, balanced navigation and social links. */
footer{
  margin-top:34px!important;
  padding:30px 4% 22px!important;
  background:#243047!important;
  color:#fff!important;
  border-top:4px solid #e97885;
  text-align:center!important;
}
footer>a.footer-brand{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  max-width:100%!important;
  min-height:0!important;
  margin:0 auto 14px!important;
  padding:8px 14px!important;
  background:#fff!important;
  border:1px solid #e9edf4!important;
  border-radius:14px!important;
  box-shadow:0 5px 16px #11182730!important;
  text-decoration:none!important;
}
footer>a.footer-brand img{
  display:block!important;
  width:150px!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
}
footer .footer-description{
  max-width:560px;
  margin:0 auto 16px!important;
  color:#e1e7f0!important;
  font-size:14px;
  line-height:1.65;
}
footer .footer-nav{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px 18px!important;
  max-width:850px!important;
  margin:12px auto 16px!important;
  padding:0!important;
}
footer .footer-nav a{
  display:inline-flex!important;
  align-items:center!important;
  min-height:34px;
  margin:0!important;
  padding:5px 3px!important;
  color:#fff!important;
  font-size:14px;
  text-decoration:none!important;
}
footer .footer-nav a:hover{text-decoration:underline!important;text-underline-offset:4px}
footer .social-links{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:9px!important;
  width:auto!important;
  max-width:720px!important;
  margin:14px auto 18px!important;
}
footer .social-links a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:40px!important;
  margin:0!important;
  padding:7px 11px!important;
  border:1px solid #68748a!important;
  border-radius:999px!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:650!important;
  text-decoration:none!important;
  white-space:nowrap;
}
footer .social-links a:hover{background:#40516e!important;border-color:#fff!important}
footer .social-mark{flex:0 0 23px!important;width:23px!important;height:23px!important}
footer .footer-legal{
  margin:16px auto 0!important;
  padding-top:13px;
  border-top:1px solid #526078;
  color:#d5dce7!important;
  font-size:12px;
  line-height:1.7;
}
footer .footer-legal a{color:#fff!important;text-decoration:underline;text-underline-offset:3px}
@media(max-width:480px){
  footer{padding:24px 4% 18px!important}
  footer>a.footer-brand{margin-bottom:11px!important;padding:7px 12px!important}
  footer>a.footer-brand img{width:140px!important}
  footer .footer-description{font-size:13px}
  footer .footer-nav{gap:3px 12px!important;margin:10px auto 13px!important}
  footer .footer-nav a{font-size:13px;min-height:32px}
  footer .social-links{gap:7px!important;margin:12px auto 15px!important}
  footer .social-links a{min-height:37px!important;padding:6px 9px!important;font-size:12px!important}
}
@media(max-width:350px){
  footer .social-links a{padding:6px 8px!important;font-size:11px!important}
}

/* Final overrides for the Eleventy-generated shared header/footer on the homepage. */
html body header.marjan-header{min-height:76px!important}
html body header.marjan-header>.brand,
html body header.marjan-header>a.brand{flex:0 0 150px!important;width:150px!important;max-width:150px!important}
html body header.marjan-header>.brand img,
html body header.marjan-header>a.brand img{width:150px!important;height:auto!important;max-height:none!important;object-fit:contain!important}
@media(max-width:900px){
 html body header.marjan-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;gap:8px!important;padding:8px 4%!important}
 html body header.marjan-header>.brand,
 html body header.marjan-header>a.brand{grid-column:1!important;grid-row:1!important;flex:none!important;width:100%!important;max-width:156px!important}
 html body header.marjan-header>.brand img,
 html body header.marjan-header>a.brand img{width:156px!important;max-width:100%!important}
 html body header.marjan-header>.marjan-header-actions{grid-column:2!important;grid-row:1!important;justify-self:end!important;display:flex!important;align-items:center!important;gap:7px!important}
 html body header.marjan-header .nav-search{order:2!important;width:40px!important;height:40px!important;flex-basis:40px!important}
 html body header.marjan-header .marjan-header-actions>.menu-toggle{order:1!important;display:inline-flex!important;width:40px!important;height:40px!important;min-width:40px!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:8px!important}
 html body header.marjan-header .marjan-header-actions>.menu-toggle svg{display:block!important;width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important}
 html body header.marjan-header .marjan-header-actions>.menu-toggle span{display:none!important}
}
@media(max-width:380px){
 html body header.marjan-header>.brand,
 html body header.marjan-header>a.brand{max-width:140px!important}
 html body header.marjan-header>.brand img,
 html body header.marjan-header>a.brand img{width:140px!important}
}

/* The build replaces the source footer with this shared semantic footer. */
html body footer.marjan-site-footer{
 margin-top:30px!important;
 padding:30px 4% 20px!important;
 background:#243047!important;
 color:#fff!important;
 text-align:left!important;
 border-top:4px solid #e97885!important;
}
html body footer.marjan-site-footer .marjan-footer-top{
 grid-template-columns:1.35fr repeat(3,minmax(0,1fr))!important;
 gap:22px!important;
 padding-bottom:22px!important;
}
html body footer.marjan-site-footer .footer-follow-line{
 display:flex!important;
 justify-content:flex-start!important;
 align-items:center!important;
 margin:0 0 13px!important;
}
html body footer.marjan-site-footer .footer-follow-line>a.marjan-footer-brand{
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 gap:8px!important;
 width:auto!important;
 height:auto!important;
 min-height:0!important;
 max-width:100%!important;
 overflow:visible!important;
 margin:0!important;
 padding:8px 12px!important;
 background:#fff!important;
 border:1px solid #e8edf5!important;
 border-radius:12px!important;
 box-shadow:0 5px 15px #10182730!important;
 color:#243047!important;
 text-decoration:none!important;
}
html body footer.marjan-site-footer .footer-follow-line>a.marjan-footer-brand img{
 display:block!important;
 position:static!important;
 left:auto!important;
 top:auto!important;
 width:150px!important;
 max-width:100%!important;
 height:auto!important;
 max-height:none!important;
 object-fit:contain!important;
 object-position:center!important;
 clip-path:none!important;
 border-radius:0!important;
 transform:none!important;
 margin:0!important;
}
html body footer.marjan-site-footer .marjan-footer-description{
 max-width:360px!important;
 margin:0 0 12px!important;
 color:#e5eaf2!important;
 font-size:14px!important;
 line-height:1.75!important;
}
html body footer.marjan-site-footer .social-links{
 justify-content:flex-start!important;
 width:auto!important;
 max-width:100%!important;
 margin:14px 0 8px!important;
 gap:8px!important;
}
html body footer.marjan-site-footer .social-links a{
 min-height:38px!important;
 margin:0!important;
 padding:7px 10px!important;
 font-size:13px!important;
}
html body footer.marjan-site-footer .marjan-footer-category-menu{
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:20px 24px!important;
}
html body footer.marjan-site-footer .marjan-footer-bottom{
 padding-top:14px!important;
}
@media(max-width:760px){
 html body footer.marjan-site-footer{padding:26px 5% 18px!important}
 html body footer.marjan-site-footer .marjan-footer-top{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 16px!important}
 html body footer.marjan-site-footer .marjan-footer-about{grid-column:1/-1!important}
 html body footer.marjan-site-footer .footer-follow-line>a.marjan-footer-brand img{width:145px!important}
 html body footer.marjan-site-footer .marjan-footer-category-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 14px!important}
 html body footer.marjan-site-footer .marjan-footer-bottom{align-items:flex-start!important;flex-direction:column!important}
}

/* Keep the supplied white footer wordmark transparent on the navy footer. */
html body footer.marjan-site-footer .footer-follow-line>a.marjan-footer-brand{
 background:transparent!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 padding:0!important;
 overflow:visible!important;
}
html body footer.marjan-site-footer .footer-follow-line>a.marjan-footer-brand img{
 width:190px!important;
 max-width:100%!important;
 height:auto!important;
 max-height:none!important;
 object-fit:contain!important;
}
@media(max-width:480px){
 html body footer.marjan-site-footer .footer-follow-line>a.marjan-footer-brand img{width:170px!important}
}
