/* Corrected one-row Header — Hero intentionally untouched. */
:root { --header-height: 80px; --header-scrolled-height: 68px; }

html { scroll-padding-top: 82px !important; }
main > section { scroll-margin-top: 82px !important; }

header.new-site-header.compact-reference-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  border-bottom: 1px solid rgba(185,127,27,.12) !important;
  background: rgba(255,253,249,.97) !important;
  box-shadow: 0 4px 22px rgba(14,39,61,.045) !important;
  transition: height 280ms ease, min-height 280ms ease, background-color 280ms ease, box-shadow 280ms ease !important;
}

header.compact-reference-header .site-header-inner {
  display: flex !important;
  width: 100% !important;
  max-width: 1840px !important;
  height: 100% !important;
  min-height: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 26px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
}

header.compact-reference-header .header-brand-contact {
  display: flex;
  min-width: 0;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 30px;
  white-space: nowrap;
}

header.compact-reference-header .new-header-brand {
  display: flex !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  align-items: center !important;
  flex: 0 0 auto;
  gap: 12px !important;
  margin: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

header.compact-reference-header .new-brand-mark {
  display: block;
  width: 64px !important;
  height: 64px !important;
  flex: 0 0 64px !important;
  overflow: visible !important;
  transform: none !important;
  transition: width 280ms ease, height 280ms ease, flex-basis 280ms ease !important;
}

header.compact-reference-header .new-brand-mark img {
  display: block;
  width: 100% !important;
  max-width: 240px !important;
  height: 100% !important;
  max-height: 64px !important;
  object-fit: contain !important;
}

@media (min-width: 1180px) {
  header.compact-reference-header .new-brand-copy,
  header.compact-reference-header .new-brand-copy small { display: block !important; }
}

header.compact-reference-header .new-header-contact {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto;
  gap: 20px !important;
  white-space: nowrap;
}

header.compact-reference-header .new-header-phone,
header.compact-reference-header .new-header-email {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  color: #294258 !important;
  font-size: 15.5px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  direction: ltr;
  unicode-bidi: isolate;
  text-decoration: none !important;
  transform: none !important;
  transition: color 220ms ease !important;
}

header.compact-reference-header .new-header-phone::before,
header.compact-reference-header .new-header-email::before {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  flex: 0 0 17px;
  margin: 0 !important;
  color: #b77d22 !important;
  font-size: 17px !important;
  line-height: 1 !important;
  transition: color 220ms ease, transform 220ms ease !important;
}

header.compact-reference-header .new-header-email::before {
  display: none !important;
  content: none !important;
}

header.compact-reference-header .header-email-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  align-self: center;
  object-fit: contain;
  transition: transform 220ms ease;
}

header.compact-reference-header .new-header-phone:hover,
header.compact-reference-header .new-header-email:hover,
header.compact-reference-header .new-header-phone:focus-visible,
header.compact-reference-header .new-header-email:focus-visible { color: #b77d22 !important; }

header.compact-reference-header .new-header-phone:hover::before,
header.compact-reference-header .new-header-phone:focus-visible::before,
header.compact-reference-header .new-header-email:hover .header-email-icon,
header.compact-reference-header .new-header-email:focus-visible .header-email-icon {
  transform: translateY(-2px);
}

header.compact-reference-header .header-navigation {
  position: static !important;
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 650px;
  flex-wrap: nowrap !important;
  max-width: 650px !important;
  gap: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  transform: none;
}

header.compact-reference-header .header-navigation > a:not(.new-header-cta) {
  position: relative;
  display: inline-flex;
  width: auto !important;
  min-height: 40px !important;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 !important;
  border: 0 !important;
  color: #102b43 !important;
  background: transparent !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  transform: none !important;
  transition: color 250ms ease !important;
}

header.compact-reference-header .header-navigation > a:not(.new-header-cta)::after {
  display: none !important;
  content: none !important;
}

header.compact-reference-header .header-navigation > a:not(.new-header-cta):hover,
header.compact-reference-header .header-navigation > a:not(.new-header-cta):focus-visible { color: #b77d22 !important; }

header.compact-reference-header .header-navigation > a.is-active:not(.new-header-cta),
header.compact-reference-header .header-navigation > a[aria-current="page"]:not(.new-header-cta) { color: #102b43 !important; }

header.compact-reference-header .courses-nav-link { gap: 7px !important; }
header.compact-reference-header .courses-badge {
  display: inline-flex;
  height: 20px !important;
  min-height: 20px !important;
  align-items: center;
  justify-content: center;
  padding: 0 8px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #bd8122 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
  box-shadow: none !important;
  animation: none !important;
}

header.compact-reference-header .header-action {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

header.compact-reference-header .new-header-cta {
  display: inline-flex !important;
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  height: 38px !important;
  min-height: 38px !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 12px !important;
  border: 1px solid rgba(168,103,10,.55) !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: linear-gradient(135deg,#e1b04b 0%,#ca871c 100%) !important;
  box-shadow: 0 7px 18px rgba(177,113,18,.13) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease !important;
}

header.compact-reference-header .new-header-cta:hover,
header.compact-reference-header .new-header-cta:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg,#dba943 0%,#c47f17 100%) !important;
  box-shadow: 0 10px 22px rgba(177,113,18,.2) !important;
  transform: translateY(-2px) !important;
}

header.compact-reference-header .mobile-header-cta { display: none !important; }
header.compact-reference-header .new-menu-toggle { display: none !important; }

header.compact-reference-header a:focus-visible,
header.compact-reference-header button:focus-visible {
  outline: 2px solid #b77d22 !important;
  outline-offset: 4px !important;
}

header.new-site-header.compact-reference-header.is-scrolled {
  height: var(--header-scrolled-height) !important;
  min-height: var(--header-scrolled-height) !important;
  background: rgba(255,253,249,.993) !important;
  box-shadow: 0 6px 24px rgba(20,42,61,.06) !important;
}

header.compact-reference-header.is-scrolled .new-brand-mark {
  width: 54px !important;
  height: 54px !important;
  flex-basis: 54px !important;
}

header.compact-reference-header.is-scrolled .new-brand-mark img { max-height: 54px !important; }
header.compact-reference-header.is-scrolled .new-header-cta {
  width: 103px !important;
  min-width: 103px !important;
  max-width: 103px !important;
  height: 34px !important;
  min-height: 34px !important;
  font-size: 13.5px !important;
}

@media (max-width: 1500px) {
  header.compact-reference-header .site-header-inner { gap: 18px !important; padding-inline: 28px !important; }
  header.compact-reference-header .header-brand-contact { gap: 24px; }
  header.compact-reference-header .new-header-brand { gap: 11px !important; }
  header.compact-reference-header .new-header-contact { gap: 18px !important; }
  header.compact-reference-header .new-header-email { display: inline-flex !important; }
  header.compact-reference-header .new-header-phone,
  header.compact-reference-header .new-header-email { font-size: 15px !important; font-weight: 500 !important; }
  header.compact-reference-header .header-navigation { max-width: 650px !important; gap: 30px !important; }
  header.compact-reference-header .header-navigation > a:not(.new-header-cta) { font-size: 16px !important; font-weight: 600 !important; }
  header.compact-reference-header .new-header-cta { width:106px!important;min-width:106px!important;max-width:106px!important;padding-inline:10px!important;font-size:14px!important; }
  header.compact-reference-header .new-brand-mark { width: 62px !important; height: 62px !important; flex-basis: 62px !important; }
  header.compact-reference-header .new-brand-mark img { max-height: 62px !important; }
}

@media (max-width: 1320px) {
  header.compact-reference-header .site-header-inner { gap: 12px !important; padding-inline: 24px !important; }
  header.compact-reference-header .header-brand-contact { gap: 18px; }
  header.compact-reference-header .new-header-brand { gap: 10px !important; }
  header.compact-reference-header .new-header-contact { gap: 15px !important; }
  header.compact-reference-header .new-header-phone,
  header.compact-reference-header .new-header-email { font-size: 14.5px !important; font-weight: 500 !important; }
  header.compact-reference-header .new-brand-copy strong { font-size: 20px !important; }
  header.compact-reference-header .new-brand-copy small { font-size: 9.5px !important; }
  header.compact-reference-header .header-navigation { max-width: 580px !important; gap: 24px !important; }
  header.compact-reference-header .header-navigation > a:not(.new-header-cta) { font-size: 15.5px !important; font-weight: 600 !important; }
  header.compact-reference-header .new-header-cta { width:101px!important;min-width:101px!important;max-width:101px!important;padding-inline:9px!important;font-size:13.5px!important; }
  header.compact-reference-header .new-brand-mark { width: 58px !important; height: 58px !important; flex-basis: 58px !important; }
  header.compact-reference-header .new-brand-mark img { max-height: 58px !important; }
}

@media (min-width: 1180px) {
  header.compact-reference-header.is-scrolled .new-brand-mark {
    width: 52px !important;
    height: 52px !important;
    flex-basis: 52px !important;
  }
  header.compact-reference-header.is-scrolled .new-brand-mark img { max-height: 52px !important; }
  header.compact-reference-header.is-scrolled .new-header-cta {
    width: 95px !important;
    min-width: 95px !important;
    max-width: 95px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 13px !important;
  }
  header.compact-reference-header.is-scrolled .new-header-phone,
  header.compact-reference-header.is-scrolled .new-header-email {
    font-size: 14px !important;
    font-weight: 500 !important;
  }
}

@media (max-width: 1179px) {
  :root { --header-height: 76px; --header-scrolled-height: 76px; }
  html { scroll-padding-top: 88px !important; }
  main > section { scroll-margin-top: 88px !important; }
  body.header-menu-open { overflow: hidden !important; }

  header.new-site-header.compact-reference-header,
  header.new-site-header.compact-reference-header.is-scrolled {
    height: 76px !important;
    min-height: 76px !important;
  }

  header.compact-reference-header .site-header-inner {
    width: 100% !important;
    max-width: none !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding-inline: 18px !important;
  }

  header.compact-reference-header .header-brand-contact { gap: 10px; }
  header.compact-reference-header .new-brand-copy { display: none !important; }
  header.compact-reference-header .new-header-email { display: none !important; }
  header.compact-reference-header .new-header-phone {
    width: 44px;
    height: 44px;
    justify-content: center;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
  }
  header.compact-reference-header .new-header-phone::before { margin: 0 !important; }
  header.compact-reference-header .new-brand-mark,
  header.compact-reference-header.is-scrolled .new-brand-mark {
    width: 58px !important;
    height: 58px !important;
    flex-basis: 58px !important;
  }
  header.compact-reference-header .new-brand-mark img,
  header.compact-reference-header.is-scrolled .new-brand-mark img { max-height: 58px !important; }

  header.compact-reference-header .header-action { display: none !important; }
  header.compact-reference-header .new-menu-toggle {
    display: inline-grid !important;
    width: 46px;
    height: 46px;
    place-items: center;
    flex: 0 0 46px;
    padding: 10px;
    border: 1px solid rgba(183,125,34,.2);
    border-radius: 12px;
    background: transparent;
  }

  header.compact-reference-header .header-navigation {
    position: fixed !important;
    top: 76px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 1001;
    display: flex !important;
    width: min(88vw,380px) !important;
    height: calc(100dvh - 76px) !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-direction: column;
    gap: 0 !important;
    padding: 22px 20px !important;
    border: 0 !important;
    border-left: 1px solid rgba(185,127,27,.14) !important;
    background: #fffdf9 !important;
    box-shadow: -18px 20px 42px rgba(14,39,61,.12) !important;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(105%);
    transition: transform 280ms ease, opacity 220ms ease, visibility 280ms ease !important;
  }

  header.compact-reference-header.is-menu-open .header-navigation {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  header.compact-reference-header .header-navigation > a:not(.new-header-cta) {
    width: 100% !important;
    min-height: 56px !important;
    justify-content: flex-start;
    padding: 8px 6px !important;
    border-bottom: 1px solid rgba(16,42,67,.075) !important;
    font-size: 18px !important;
    text-align: right;
  }
  header.compact-reference-header .header-navigation > a:not(.new-header-cta)::after { display: none !important; }
  header.compact-reference-header .courses-nav-link { justify-content: space-between !important; }
  header.compact-reference-header .mobile-header-cta {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 56px !important;
    min-height: 56px !important;
    margin-top: auto;
  }
}

@media (max-width: 390px) {
  header.compact-reference-header .site-header-inner { padding-inline: 14px !important; }
  header.compact-reference-header .header-navigation { width: min(92vw,350px) !important; padding-inline: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  header.compact-reference-header,
  header.compact-reference-header *,
  header.compact-reference-header *::before,
  header.compact-reference-header *::after { transition-duration: .01ms !important; }
}
