:root {
  --site-primary: #006a69;
  --site-wash: #e7f0ef;
  --site-ink: #181c1d;
}

html { scroll-padding-top: 6rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #007977; outline-offset: 4px; }
.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: .75rem 1rem;
  border-radius: .5rem;
  color: white;
  background: var(--site-primary);
}
.skip-link:focus { transform: none; }
.site-header nav { gap: clamp(.45rem, 1.15vw, 1.25rem); }
.site-header nav a { white-space: nowrap; }
.site-header nav .is-current { color: var(--site-primary); font-weight: 800; }
.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  color: var(--site-primary);
  background: var(--site-wash);
  border-radius: .65rem;
}
.site-header .site-booking-link { white-space: nowrap; }

.booking-panel { display: grid; gap: .85rem; }
.booking-tabs, .booking-links { display: flex; gap: .55rem; flex-wrap: wrap; }
.booking-links { align-items: center; }
.booking-tabs button {
  min-height: 44px;
  padding: .5rem .85rem;
  border-radius: .45rem;
  background: #f0f4f4;
  color: #2b5555;
  font-size: .83rem;
  font-weight: 700;
}
.booking-tabs button[aria-pressed="true"] { color: white; background: var(--site-primary); }
.booking-caption { font-size: .86rem; line-height: 1.5; }
.booking-rules, .source-link { font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.booking-call { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; }
.booking-call .material-symbols-outlined { font-size: 1.1rem; }
.source-link { display: inline-block; margin-top: .45rem; color: var(--site-primary); }
.source-card { padding: 1.4rem; border-radius: .85rem; background: #fff; }
.faq-trigger { cursor: pointer; list-style: none; }
.faq-trigger::-webkit-details-marker { display: none; }
.faq-icon-wrapper { transition: transform .22s ease; }
details[open] .faq-icon-wrapper { transform: rotate(180deg); }
[data-filter][aria-pressed="true"], [data-review-filter][aria-pressed="true"], .route-tab[aria-pressed="true"] {
  background: var(--site-primary);
  color: white;
}
[data-filter][aria-pressed="false"], [data-review-filter][aria-pressed="false"], .route-tab[aria-pressed="false"] {
  background: transparent;
  color: #365b5a;
  box-shadow: none;
}
#clinic-map-canvas { min-height: 24rem; }
.map-attribution {
  position: absolute;
  right: .5rem;
  bottom: .18rem;
  z-index: 15;
  padding: .06rem .3rem;
  color: #234645;
  background: #fffe;
  border-radius: .2rem;
  font-size: .65rem;
}
.site-footer { padding: 3.5rem 1.5rem 1.4rem; color: #3e4b4b; background: #eff3f3; }
.site-footer-grid, .site-footer-end { width: min(100%, 74rem); margin-inline: auto; }
.site-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.15fr; gap: 1.5rem; }
.site-footer-grid h2, .footer-brand { color: var(--site-ink); font-family: Manrope, sans-serif; font-weight: 800; }
.footer-brand { display: inline-flex !important; align-items: center; gap: .55rem; }
.footer-brand .material-symbols-outlined { padding: .35rem; border-radius: .4rem; color: white; background: var(--site-primary); }
.site-footer-grid p, .site-footer-grid a:not(.footer-brand) { font-size: .81rem; line-height: 1.45; }
.site-footer-grid a { display: block; width: fit-content; margin-block: .55rem; }
.site-footer-grid a:hover { text-decoration: underline; }
.site-footer-end { margin-top: 2rem; padding-top: .9rem; border-top: 1px solid #d8e2e1; font-size: .75rem; }

@media (max-width: 1279px) {
  .site-menu-toggle { display: grid; }
  .site-header nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 5rem);
    overflow: auto;
    padding: .65rem 1.5rem 1rem;
    border-radius: 0;
    background: #f9fcfc;
    box-shadow: 0 12px 20px #17353518;
  }
  .site-header[data-menu-open] nav { display: grid; }
  .site-header nav a { display: block; min-height: 44px; padding: .65rem .5rem; }
  .site-header nav .is-current { background: var(--site-wash); border-radius: .45rem; }
}

@media (max-width: 680px) {
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-header .site-booking-link { display: none; }
  #clinic-map-canvas { min-height: 20rem; }
  #clinic-map-canvas [class~="top-1/2"] { max-width: 75%; }
  #clinic-map-canvas [class~="bottom-5"] > div { flex-wrap: wrap; gap: .4rem; }
  [data-page="about"] .booking-links { align-items: start; flex-direction: column; }
  main h1, main h2, main h3, main a, main table { overflow-wrap: anywhere; }
  main td, main th { word-break: normal; }
}

@media (prefers-reduced-motion: no-preference) {
  main h1 { animation: stitch-enter .42s ease-out both; }
  [data-revealed] { animation: stitch-enter .42s ease-out both; }
  @keyframes stitch-enter {
    from { opacity: .78; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
