#site-header.sca-mc-ready { position: sticky !important; top: 0; z-index: 9990; }
body.admin-bar #site-header.sca-mc-ready { top: 32px; }
@media(max-width:782px) { body.admin-bar #site-header.sca-mc-ready { top: 46px; } }
@media(max-width:600px) { body.admin-bar #site-header.sca-mc-ready { top: 0; } }
#site-header.sca-mc-ready .sca-header__inner { transition: height .35s ease; }
#site-header.sca-mc-ready.sca-mc-sized .sca-brand__mark { transition: none !important; }
#site-header.sca-mc-ready .sca-nav__list > li > a { transition: padding .35s ease; }
#site-header.sca-mc-sized .sca-header__inner {
  height: var(--sca-mc-natural-height) !important;
  min-height: 0 !important;
}
#site-header.sca-mc-sized.sca-mc-small .sca-header__inner { height: var(--sca-mc-height) !important; }
#site-header.sca-mc-sized .sca-brand__mark {
  width: var(--sca-mc-logo-live-width) !important;
  height: var(--sca-mc-logo-live-height) !important;
}
@media(min-width:901px) {
  #site-header.sca-mc-small .sca-nav__list > li:not(:last-child) > a {
    padding-top: var(--sca-mc-pad-top) !important;
    padding-bottom: var(--sca-mc-pad-bottom) !important;
  }
}
#site-header.sca-mc-measuring, #site-header.sca-mc-measuring * { transition: none !important; }
@media(prefers-reduced-motion:reduce) {
  #site-header.sca-mc-ready, #site-header.sca-mc-ready * { transition: none !important; }
}

/* Replace theme indicators for both WordPress active-menu class variants. */
@media (min-width: 901px) {
  #site-header.sca-mc-small .sca-nav__list > li:not(:last-child):is(.current_page_item, .current-menu-item, :has(> a[aria-current="page"])) > a {
    text-decoration: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    background-image: linear-gradient(var(--sca-gold, #b88b43), var(--sca-gold, #b88b43)) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 2px !important;
    background-position: center bottom 3px !important;
    padding-bottom: max(10px, var(--sca-mc-pad-bottom)) !important;
  }
  #site-header.sca-mc-small .sca-nav__list > li:not(:last-child):is(.current_page_item, .current-menu-item, :has(> a[aria-current="page"])) > a::before,
  #site-header.sca-mc-small .sca-nav__list > li:not(:last-child):is(.current_page_item, .current-menu-item, :has(> a[aria-current="page"])) > a::after {
    content: none !important;
    display: none !important;
  }
}

/* Home only: keep menu spacing stable while its appointment link fades. */
html.sca-appt-scroll:not(.sca-appt-ready) body.home #site-header .sca-nav__list > li:last-child > a,
html.sca-appt-scroll body.home #site-header .sca-mc-appointment {
  opacity: 0 !important; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s !important;
}
html.sca-appt-scroll.sca-appt-visible body.home #site-header .sca-mc-appointment {
  opacity: 1 !important; visibility: visible; pointer-events: auto;
  transition: opacity .3s ease, visibility 0s !important;
}
@media (prefers-reduced-motion:reduce) {
  html.sca-appt-scroll body.home #site-header .sca-mc-appointment { transition: none !important; }
}

html.sca-appt-scroll:not(.sca-appt-ready) body.home #site-header .sca-nav__list > li:last-child > a {
  transition: none !important; visibility: hidden !important;
}
