/* custom overrides (loaded last) */
/* Skip link: visually hidden until keyboard focus, then shown top-left. */
.skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #163e70;
  color: #fff;
  padding: 10px 18px;
  text-decoration: underline;
}
.skipLink:focus {
  left: 8px;
  top: 8px;
}
/* Screen-reader-only text (home logo heading). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Newsletter section: the Lumistry embed replaces the old two-column
   heading + form layout, so center the widget within the full-width band. */
.blockForm.newsletterEmbed {
  float: none !important;
  width: 100% !important;
  max-width: 640px;
  margin: 0 auto !important;
  display: block;
  text-align: center;
}
.blockForm.newsletterEmbed [data-lumistry-capture] {
  margin: 0 auto;
}
/* Pharmacy Team section on the about page: reuses the template's layoutD
   circle-image block; center the heading and constrain each profile. */
.teamSection {
  margin-top: 2.5em;
}
.teamSection > .blockContent > .blockText,
.teamSection .contentTitle {
  text-align: center;
}
.teamMember .blockImg {
  max-width: 240px;
  margin: 0 auto;
}
.teamMember .blockText {
  align-self: center;
}
.teamMember .teamName {
  margin: 0 0 .5em;
}
.teamMember .blockInnerContent ul {
  margin: 0;
  padding-left: 1.25em;
}
.teamMember .blockInnerContent li {
  margin-bottom: .35em;
}
/* Top utility bar: the site JS hoists the address, contact, and hours blocks
   into .secondaryNav > .secondaryNavContent above the nav. Lay that row out as
   an evenly spaced flex row and keep each line from wrapping (the hours string
   is long and otherwise breaks onto a second line). */
@media (min-width: 768px) {
  .secondaryNav .secondaryNavContent {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 32px;
    width: 100%;
  }
  .secondaryNav .secondaryNavContent > .blockContainer {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    clear: none !important;
    flex: 0 1 auto;
  }
  /* Each block shrink-wraps its own icon + text so the floated icon
     pseudo-element sits tight against the text; the flex container's
     space-between then distributes the three blocks evenly. Stretching a
     block (flex-grow) + centering its text separates it from its icon. */
  .secondaryNav .secondaryNavContent > .blockContainer {
    flex: 0 0 auto;
    text-align: left !important;
  }
  .secondaryNav .secondaryNavContent p { margin: 0; white-space: nowrap; }
  /* Normalize the icon pseudo-elements inside the top bar: same 8px gap,
     no footer-sized bottom margins throwing off vertical centering. */
  .secondaryNav .secondaryNavContent .blockContainer:before,
  .secondaryNav .secondaryNavContent p.contactPhone:before {
    margin-top: 3px !important;
    margin-right: 8px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
  }
}
@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;
  }
}
