/* custom overrides (loaded last) */
@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;
  }
}

/* a11y: skip-to-content link, visible only on keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 18px;
  background: #1b3a6b;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* FAQ accordion (home page) — styled to sit with the template's blocks */
.faqSection {
  max-width: 980px;
  margin: 48px auto;
  padding: 0 20px;
}
.faqSection .faqHeading {
  text-align: center;
  margin-bottom: 24px;
}
.faqSection .faqItem {
  border-bottom: 1px solid #e3e8ef;
  padding: 16px 4px;
}
.faqSection .faqItem > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faqSection .faqItem > summary::-webkit-details-marker { display: none; }
.faqSection .faqItem > summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 1.4rem;
  line-height: 1;
  color: #6CADDF;
}
.faqSection .faqItem[open] > summary::after { content: "\2212"; }
.faqSection .faqA {
  margin-top: 10px;
  color: #4a5568;
  line-height: 1.6;
}

/* "The Pharmacy Team" section on the About page — styled to match the
   template's content blocks (blue heading, green check bullets). */
.teamSection {
  margin: 12px 0 56px;
}
.teamSection .teamHeading {
  text-align: left;
  margin-bottom: 28px;
}
.teamSection .teamMember {
  max-width: 560px;
  margin: 0;
}
.teamSection .teamMemberName {
  color: #003e7e;
  font-size: 1.2rem;
  margin: 0 0 14px;
}
.teamSection .teamMemberHighlights {
  list-style: none;
  margin: 0;
  padding: 0;
}
.teamSection .teamMemberHighlights li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.5;
  color: #27251f;
}
.teamSection .teamMemberHighlights li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #8bc53f;
  font-weight: 700;
}

/* Newsletter (home): the Lumistry embed renders its own heading + form, so the
   template's duplicate heading column is dropped and the single embed is
   centered within its section (matches the original centered design). */
.newsletterCentered {
  display: block;
  text-align: center;
}
.newsletterCentered .blockForm,
.newsletterCentered .blockImg {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  float: none;
  padding: 0;
}

/* Top contact bar (secondaryNav): keep each icon tight against its text with
   even spacing, and stop the address/hours from wrapping. The theme ships these
   blocks with an inline width:100%;text-align:right (which detaches the phone
   icon from its number) and absolutely-positioned :before icons. */
.secondaryNavContent .blockContainer {
  width: auto !important;
  text-align: left !important;
}
.secondaryNavContent .blockInnerContent {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.secondaryNavContent .blockInnerContent > p { margin: 0; }
.secondaryNavContent .blockInnerContent br { display: none; }
.secondaryNavContent .blockInnerContent:before {
  position: static !important;
  left: auto !important;
  float: none !important;
  flex: 0 0 auto;
  margin: 0 8px 0 0 !important;
}
