/* custom overrides (loaded last) */
/* keyboard skip-to-content link: hidden until focused */
.skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 0.75em 1.25em;
  background: #00467f;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skipLink:focus {
  left: 0;
  outline: 3px solid #ffd200;
  outline-offset: 2px;
}
@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;
  }
}

/* FAQ accordion on the contact page */
.faqBlock .faqItem {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.25rem 0;
}
.faqBlock .faqItem > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 0.85rem 1.75rem 0.85rem 0;
  position: relative;
  outline: none;
}
.faqBlock .faqItem > summary::-webkit-details-marker { display: none; }
.faqBlock .faqItem > summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1;
}
.faqBlock .faqItem[open] > summary::after { content: "\2013"; }
.faqBlock .faqItem > p {
  margin: 0 0 0.85rem;
  padding-right: 1.75rem;
}

/* top contact bar: each icon sits tight against its text with even spacing and
   no wrapping. The template positions the icon :before absolutely at left:-20px
   (detached in the flex gap, uneven gaps from differing icon widths); re-flow
   the icon inline next to the text instead. */
.secondaryNavContent .blockInnerContent {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.secondaryNavContent .blockInnerContent > * { white-space: nowrap; }
.secondaryNavContent .blockInnerContent::before {
  position: static;
  left: auto;
  top: auto;
  margin: 0 8px 0 0;
  flex: 0 0 auto;
  vertical-align: middle;
}
/* The three eyebrow blocks are centered as a group with a fixed gap, but the
   address and hours blocks differ in width, so the phone ends up with a large
   gap on its left and a small one on its right. Nudge the phone block left to
   even the two gaps. Targets the phone block via its tel: link; the desktop
   row layout only applies above the mobile breakpoint. */
@media (min-width: 768px) {
  .secondaryNavContent .blockContainer:has(a[href^="tel:"]) {
    transform: translateX(-2.5em);
  }
}

/* newsletter: a single, centered Lumistry signup form. The template's static
   duplicate heading is removed in the build; center the embed in its section. */
.newsletterCapture { text-align: center; }
.newsletterCapture .blockImg,
.newsletterCapture .blockForm {
  float: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.newsletterCapture [data-lumistry-capture] {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

/* About page: "The Pharmacy Team" card grid */
.pharmacyTeamBlock { padding-top: 1rem; padding-bottom: 3rem; }
.pharmacyTeamBlock > .blockContent { max-width: 1000px; margin: 0 auto; }
.pharmacyTeamBlock .contentTitle { text-align: center; }
.pharmacyTeamGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 1.75rem;
}
@media (max-width: 640px) {
  .pharmacyTeamGrid { grid-template-columns: 1fr; }
}
.pharmacyTeamGrid .teamMember { text-align: center; }
.pharmacyTeamGrid .teamMemberImg {
  width: 190px;
  height: 190px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  background: #eef4fb;
  box-shadow: 0 4px 16px rgba(0,62,126,0.12);
}
.pharmacyTeamGrid .teamMemberImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pharmacyTeamGrid .teamMemberName {
  margin: 0 0 0.25rem;
  color: #003e7e;
  font-size: 1.4rem;
}
.pharmacyTeamGrid .teamMemberRole {
  margin: 0 0 0.9rem;
  font-weight: 600;
  color: #6CADDF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.pharmacyTeamGrid .teamMemberBio {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
}
.pharmacyTeamGrid .teamMemberBio li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  line-height: 1.45;
}
.pharmacyTeamGrid .teamMemberBio li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  color: #6CADDF;
  font-weight: 700;
}
.teamGroupPhoto {
  margin: 3rem auto 0;
  max-width: 760px;
}
.teamGroupPhoto img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,62,126,0.15);
}
.serviceCallout {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #6CADDF;
  background: #eef4fb;
  border-radius: 6px;
  color: #003e7e;
  font-weight: 600;
}
