/* Shared clinic masthead and interior-page surfaces. */
.lab-design {
  --ink: #282126;
  --accent-ink: #481631;
  --lavender-line: #d8c5ba;
}
html:has(.lab-design) { scroll-padding-top: 1.25rem; }
.clinic-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lab-design .clinic-header {
  position: relative;
  z-index: 10;
  display: block;
  height: auto;
  padding: 0;
  border-bottom: 1px solid #d8c5ba;
  background: #f8f5f1;
  color: var(--ink);
}
.masthead-inner {
  position: relative;
  width: min(89%, 80rem);
  margin-inline: auto;
  display: grid;
  grid-template: "brand utility" auto "brand menu" auto / auto 1fr;
  gap: 0 2rem;
  align-items: center;
  padding-block: .55rem .4rem;
}
.clinic-wordmark {
  grid-area: brand;
  justify-self: start;
  display: grid;
  justify-items: center;
  width: max-content;
  color: #282126;
  font: 400 clamp(1.65rem, 2.55vw, 2.5rem)/1.11 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.045em;
  word-spacing: .04em;
  white-space: nowrap;
}
.wordmark-signature {
  display: flex;
  align-items: center;
  gap: .45em;
  padding-top: .07em;
  color: var(--accent-ink);
  font: inherit;
  font-size: .68em;
  letter-spacing: -.045em;
}
.wordmark-signature::before, .wordmark-signature::after {
  content: "";
  width: 1.45em;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.clinic-utilities {
  grid-area: utility;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
  font: 400 .875rem/1.45 Manrope, sans-serif;
}
.clinic-utilities a { display: inline-flex; gap: .4rem; align-items: center; min-height: 36px; }
.clinic-utilities .clinic-icon { width: 1.05rem; height: 1.05rem; color: var(--accent-ink); }
.clinic-utilities .utility-prices {
  min-height: 32px;
  padding: .25rem 1.1rem;
  border: 1px solid #d8c5ba;
  border-radius: .35rem;
  color: var(--accent-ink);
}
.clinic-utilities a:hover { text-decoration: underline; text-underline-offset: .2em; }
.clinic-header .masthead-tagline, .lab-design .clinic-header .menu, .clinic-header #navigation .nav-prices { display: none; }
.clinic-header #navigation {
  position: static;
  display: flex;
  grid-area: menu;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.75rem, 2vw, 2.2rem);
  overflow: visible;
  padding: 0;
  height: auto;
  max-height: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.clinic-header #navigation > a, .clinic-header .nav-group summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .1rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: 400 .975rem/1.4 Manrope, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
}
.clinic-header #navigation a:is(:hover, :focus-visible, [aria-current="page"]),
.clinic-header .nav-group summary:is(:hover, :focus-visible),
.clinic-header .nav-group[open] summary {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}
.clinic-header .nav-group { position: relative; border: 0; padding: 0; }
.clinic-header .nav-group summary { cursor: pointer; gap: .48rem; list-style: none; }
.clinic-header .nav-group summary::-webkit-details-marker { display: none; }
.clinic-header .nav-group summary::after {
  content: "";
  width: .36rem;
  height: .36rem;
  border: solid currentColor;
  border-width: 0 1.3px 1.3px 0;
  transform: translateY(-.1rem) rotate(45deg);
}
.clinic-header .nav-group[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.clinic-header .nav-group:not([open]) > .nav-panel { display: none; }
.nav-panel {
  position: absolute;
  top: 100%;
  right: -.85rem;
  min-width: 14.5rem;
  padding: .45rem;
  border: 1px solid var(--lavender-line);
  border-radius: .65rem;
  background: white;
  box-shadow: 0 .8rem 2rem #48163120;
}
.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .5rem .75rem;
  border-radius: .3rem;
  color: var(--ink);
  font: 400 .9375rem/1.4 Manrope, sans-serif;
}
.nav-panel a:hover { background: #efe6df; }
.clinic-header :is(a, summary, button):focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

@media (max-width: 860px) {
  .masthead-inner {
    grid-template: "utility" auto "brand" auto "tagline" auto / minmax(0, 1fr);
    width: 100%;
    text-align: center;
    gap: 0;
    padding: 0 0 .65rem;
  }
  .clinic-utilities {
    justify-content: center;
    gap: .9rem;
    border-bottom: 1px solid #d8c5ba;
    background: #efe6df;
  }
  .clinic-utilities a { min-height: 36px; }
  .clinic-utilities .utility-prices { display: none; }
  .clinic-wordmark { justify-self: center; margin-top: .7rem; font-size: clamp(1.6rem, 4.8vw, 2rem); }
  .clinic-header .masthead-tagline {
    display: block;
    grid-area: tagline;
    margin: .42rem 0 0;
    color: #282126;
    font: 400 clamp(.75rem, 3.15vw, .875rem)/1.4 Manrope, sans-serif;
    white-space: nowrap;
  }
  .lab-design .clinic-header.menu-ready .menu {
    position: absolute;
    inset: 44px max(1rem, 4%) auto auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--accent-ink);
  }
  .clinic-header .menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .clinic-header .menu i, .clinic-header .menu i::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
  }
  .clinic-header .menu i { position: relative; transform: translateY(-3px); }
  .clinic-header .menu i::after { content: ""; position: absolute; top: 6px; }
  .clinic-header .menu[aria-expanded="true"] i { transform: rotate(45deg); }
  .clinic-header .menu[aria-expanded="true"] i::after { top: 0; transform: rotate(90deg); }
  .clinic-header #navigation {
    grid-area: auto;
    flex-flow: column;
    align-items: stretch;
    gap: 0;
    padding: .35rem 5% .7rem;
    background: white;
    border-bottom: 1px solid var(--lavender-line);
    text-align: left;
  }
  .clinic-header.menu-ready #navigation {
    position: absolute;
    inset: 100% 0 auto;
    max-height: min(70vh, 34rem);
    max-height: min(70svh, 34rem);
    display: none;
    overflow: auto;
    box-shadow: 0 .8rem 1.5rem #48163120;
  }
  .clinic-header.menu-ready #navigation.open { display: flex; }
  .clinic-header #navigation > a, .clinic-header .nav-group summary { width: 100%; min-height: 46px; }
  .clinic-header #navigation > :not(:last-child) { border-bottom: 1px solid #d8c5ba; }
  .clinic-header .nav-group summary { justify-content: space-between; padding-right: .7rem; }
  .clinic-header .nav-panel { position: static; border: 0; box-shadow: none; background: #f8f5f1; margin-bottom: .5rem; }
  .clinic-header #navigation .nav-prices { display: inline-flex; }
}

.lab-design footer { background: #efe6df; color: var(--ink); border-top: 1px solid var(--lavender-line); }
.lab-design footer :is(p, h3, a, span) { color: var(--ink); }
.lab-design footer :is(.footer-top, .footer-directory, .footer-bottom) { border-color: var(--lavender-line); }
.lab-design footer a:hover { color: var(--accent-ink); text-decoration: underline; }


.lab-design .page-hero {
  background: linear-gradient(105deg, #f8f5f1, #efe6df);
  border-bottom: 1px solid var(--lavender-line);
}
.lab-design .page-hero h1 {
  color: var(--ink);
  letter-spacing: -.035em;
  text-transform: none;
  overflow-wrap: break-word;
}
.lab-design .article-sidebar { top: 1.5rem; }
.lab-design .directory-card, .lab-design .page-cta, .lab-design .gallery-switch { color: var(--ink); }
.lab-design .directory-card {
  border: 1px solid var(--lavender-line);
  border-radius: .85rem;
  background: #f8f5f1;
}
.lab-design .directory-card:is(:hover, :focus-visible) { border-color: var(--primary); background: #efe6df; }
.lab-design .directory-card h2 { color: var(--ink); }
.lab-design .original-content img { border-radius: .65rem; }
.lab-design .page-cta { background: #efe6df; }
.lab-design :is(.page-cta, .contact-page, header) .button {
  border-radius: .45rem;
  background: var(--accent-ink);
}
.lab-design .directory-controls .filters button, .lab-design .gallery-switch a { border-radius: .45rem; }
.lab-design .results .result-image, .lab-design .results .photo-comparison { border-radius: .85rem; }

.footer-contact-links { display: grid; gap: .75rem; justify-items: start; }
.footer-contact-links > a { font-size: 14px; }
.footer-socials { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.footer-social-label { font-size: 14px; font-weight: 700; margin-inline-end: .25rem; }
.footer-socials a { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid currentColor; border-radius: 50%; color: inherit; }
.footer-socials a:is(:hover,:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }

.site-booking-cta { width: min(90%,85rem); margin: 1.1rem auto; display: flex; justify-content: center; }
.site-booking-cta .button { min-height: 44px; padding: .65rem 1.15rem; justify-content: center; background: var(--plum); color: var(--ivory); border-radius: .35rem; text-transform: none; font-weight: 700; }
.site-booking-cta .button:hover { background: #603449; }
