/* custom overrides (loaded last) */
/* Leave room for the full Patient Portal label without wrapping desktop CTAs. */
@media (min-width: 1025px) {
  .headerContainer { width: 18%; }
  .navContainer { width: 82%; padding-left: 0; }
  .navContent > ul > li { margin-left: 1em; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  .navContainer, .navContent li .button { font-size: 14px; }
  .navContent li .button { min-width: 0; padding: .65em 1em; }
}
/* accessibility: skip-to-content link, visually hidden until focused */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 16px;
  background: #003e7e;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-to-content:focus {
  left: 0;
}
/* app-store badges: plain links (detached from the template's modal gallery) */
.appBadges .blockInnerContent {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25em;
  align-items: center;
  justify-content: center;
}
.appBadges a {
  display: inline-block;
}
.appBadges img {
  max-width: 220px;
  width: 100%;
  height: auto;
}
/* footer bottom strip: logo + copyright (left), Download Our App (right) */
.footerBottomRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5em 2.5em;
  clear: both;
  width: 100%;
  margin-top: 1.25em;
}
.footerBottomRow .blockContainer,
.footerBottomRow .blockContent {
  float: none !important;
  width: auto !important;
}
.footerBottomLeft {
  text-align: left;
}
.footerBottomLeft img {
  max-width: 180px;
  height: auto;
  display: block;
  margin-bottom: 0.75em;
}
.footerBottomLeft p {
  margin: 0;
}
.footerBottomRight {
  text-align: right;
  margin-left: auto;
}
.footerBottomRight .appDownload p {
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .footerBottomRow {
    flex-direction: column;
    align-items: flex-start;
  }
  .footerBottomRight {
    text-align: left;
    margin-left: 0;
  }
}
/* contact page: keyless Google Maps embed replacing the inactive scMap */
iframe.contactMap {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  margin-top: 1em;
  border-radius: 6px;
}
/* logo: width is CSS-driven; keep the aspect ratio (never honor a px height) */
.headerContent div.logo img,
.headerContent h1.logo img,
.headerContent a.logo img {
  height: auto;
}
@media (max-width: 767px) {
  .headerAndNavContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
  }
  /* eyebrow (secondary nav) collapses on scroll to reclaim space */
  .secondaryNav {
    overflow: hidden;
    max-height: 300px;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .secondaryNav.eyebrow-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
  }
}
