.header {
  position: relative;
  z-index: 501;
}

.lehigh-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  background-color: var(--color-golden-hour);
  padding: var(--space-one-half) var(--space-triple);
}

.lehigh-nav--universityhome {
  color: var(--color-lehigh-brown);
  flex-grow: 1;
}

.lehigh-nav--universityhome:hover,
.lehigh-nav--universityhome:focus {
  color: var(--color-lehigh-brown);
}

.lehigh-nav--links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-grow: 1;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lehigh-nav--links li {
  margin: 0 var(--space-double) 0 0;
}

.lehigh-nav--links li:last-of-type {
  margin: 0;
}

.lehigh-nav--links a {
  color: var(--color-lehigh-brown);
}

.business-nav {
  background-color: var(--color-lehigh-brown);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  padding: var(--space);
}

@media (min-width: 769px) {
  .business-nav {
    padding: var(--space) var(--space-triple);
  }
}

.business-nav.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 1920px;
}

.business-nav .hamburger .icons {
  background-color: transparent;
  max-width: inherit;
  min-width: inherit;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.business-nav .hamburger .icons i {
  font-size: 2.5rem;
}

@media (min-width: 769px) {
  .business-nav .hamburger {
    display: none;
  }
}

.business-nav .menu {
  flex-grow: 3;
  color: var(--color-white);
  display: flex;
}

@media (min-width: 769px) {
  .business-nav .menu {
    justify-content: flex-end;
  }
}

/* Deliberately NOT "position: relative" here, matching production exactly
   (confirmed via getBoundingClientRect on the live site): a Phase 3b fix
   had added it, to give ".menu-toggle-button--site-search" (the search
   icon, below) a stable positioning context so its "position: absolute"
   rule wouldn't resolve all the way up to ".header" -- whose height
   varies with menu-toggle/sticky state, making the icon visibly "jump up"
   on scroll. Found via a user report that the site search box itself was
   broken: giving .main-search its own positioning context ALSO made it
   the containing block for ".main-search__block-wrapper" (the search
   panel, a sibling descendant of .menu-toggle-button--site-search), which
   relies on ".header" being its containing block for TWO things at once
   -- spanning the full page width via "left: 0; right: 0", AND landing
   directly below ".name-tag" via "top: 100%" (.header's rendered height
   includes both .business-nav and .name-tag; .main-search's narrow
   ~72px-wide box does not). Reverting to plain parity with production
   here undoes the Phase 3b icon-stability fix in exchange for fixing the
   more severely broken, user-facing search panel; re-fixing the icon's
   scroll-jump without reintroducing this regression needs a mechanism
   that doesn't change the search panel's containing block too (e.g. a
   JS-computed position, matching how sticky-nav.js already computes
   --sticky-nav-height/--sticky-header-height dynamically for a related
   problem) -- out of scope for this fix. */
.main-search {
  color: var(--color-white);
}

.main-search .icon-list {
  align-content: flex-end;
}

.main-search .icon-list .icons {
  background-color: transparent;
  max-width: inherit;
  min-width: inherit;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.main-search .icon-list .icons i {
  font-size: 1.5rem;
}

.menu-toggle-button--site-search {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 72px;
  height: 41px;
  color: var(--color-white);
}

@media (min-width: 769px) {
  .menu-toggle-button--site-search {
    position: relative;
    bottom: auto;
    right: auto;
    height: 48px;
  }
}

.menu-toggle-button--site-search:hover:before,
.menu-toggle-button--site-search:hover:after,
.menu-toggle-button--site-search:focus:before,
.menu-toggle-button--site-search:focus:after {
  /* #251506 = darken($lehigh-brown, 10%) in the original Sass -- no
     --color-* token exists for this one-off computed shade (pre-existing
     gap, not fixed here); kept as a literal hex. */
  background: #251506;
}

.menu-toggle-button--site-search .menu-toggle-button__icon--magnifying-glass {
  position: relative;
  display: block;
  margin: 0;
  width: 1em;
  height: 1.125em;
  padding: 0;
  border: 0;
  transform: scale(0.5);
  transform-origin: left top;
  font-size: 2.5em;
  appearance: none;
}

.menu-toggle-button--site-search .menu-toggle-button__icon--magnifying-glass:before,
.menu-toggle-button--site-search .menu-toggle-button__icon--magnifying-glass:after {
  content: "";
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
  transition: border-color 0.25s;
}

.menu-toggle-button--site-search .menu-toggle-button__icon--magnifying-glass:before {
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 0.1em solid var(--color-white);
}

.menu-toggle-button--site-search .menu-toggle-button__icon--magnifying-glass:after {
  top: 0.875em;
  left: 0.7em;
  width: 0.15em;
  height: 0.5em;
  background: var(--color-white);
  border-radius: 0.075em;
  transform: rotate(-45deg);
  transform-origin: left top;
}

.menu-toggle-button--site-search .menu-toggle-button__icon--magnifying-glass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: scale(0.5) translate(-50%, -50%) translate(0, -5px);
  transition: opacity 0.25s;
}

.menu-toggle-button--site-search .menu-toggle-button__icon--close {
  position: relative;
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  opacity: 0;
  transition: opacity 0.25s;
}

.menu-toggle-button--site-search .menu-toggle-button__icon--close:before,
.menu-toggle-button--site-search .menu-toggle-button__icon--close:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 50%;
  box-sizing: border-box;
  display: block;
  width: 2px;
  height: 22px;
  background: var(--color-white);
  transform: translate(0, -50%) rotate(180deg);
  transition: background-color 0.25s;
}

.menu-toggle-button--site-search .menu-toggle-button__icon--close:before {
  transform: translate(0, -50%) rotate(45deg);
}

.menu-toggle-button--site-search .menu-toggle-button__icon--close:after {
  transform: translate(0, -50%) rotate(-45deg);
}

.menu-toggle-button--site-search.js-menu-toggle-button--active {
  background: #251506;
}

.menu-toggle-button--site-search.js-menu-toggle-button--active .menu-toggle-button__icon--magnifying-glass {
  opacity: 0;
}

.menu-toggle-button--site-search.js-menu-toggle-button--active .menu-toggle-button__icon--close {
  opacity: 1;
}

.main-search__block-wrapper {
  color: var(--color-white);
  background: var(--color-lehigh-brown);
}

.main-search__block-wrapper > .menu-toggle__toggleable-content-wrapper {
  padding: var(--space-one-half) var(--space-double);
}

.name-tag {
  background-color: var(--color-lehigh-brown);
  color: var(--color-white);
  font-family: var(--font-lehigh-business);
  font-size: 1.5rem;
  line-height: 1;
  font-style: italic;
  border-top: 1px solid var(--color-white);
  padding: var(--space-one-half);
  text-align: center;
}

.name-tag.sticky {
  position: fixed;
  /* Bug fix (Phase 3b): 80px was a hardcoded assumption about
     .business-nav's real rendered height, which varies with real menu
     content (the real "cta-menu" region has 5 links, not the 3-item
     Fractal mock) and toggle state -- part of the "grey bar" sticky-header
     bug. js/sticky-nav.js (Task 4) now measures the real height on every
     scroll event and sets --sticky-nav-height on the root element; 80px is
     kept only as the pre-JS/no-JS fallback. */
  top: var(--sticky-nav-height, 80px);
  width: 100%;
  max-width: 1920px;
}

.menu-toggle-button,
.js-menu-toggle__toggleable__close,
.menu-toggle-button--shut {
  border: 0;
  appearance: none;
  background: transparent;
}

.menu--mobile-menu {
  background: var(--color-white);
}

@media (min-width: 769px) {
  .menu--mobile-menu {
    /* important flag preserved verbatim from the Sass source (comment
       there: "Overriding inline style"). */
    height: auto !important;
    background: transparent;
  }
}

.menu--mobile-menu > .menu-toggle__toggleable-content-wrapper {
  width: 100%;
}

@media (min-width: 769px) {
  .menu--mobile-menu > .menu-toggle__toggleable-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
  }
}

.menu-toggle-button--mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  height: 67px;
  width: 72px;
}

.menu-toggle-button__icon--burger {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 60px;
  height: 44px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.5);
}

.menu-toggle-button__icon--burger:before,
.menu-toggle-button__icon--burger:after,
.menu-toggle-button__icon--burger .menu-toggle-button__icon--burger__inner {
  content: "";
  position: absolute;
  box-sizing: border-box;
  display: block;
  border-top: 4px solid var(--color-white);
  width: 60px;
  height: 0;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.menu-toggle-button__icon--burger:before {
  top: 0;
  left: 0;
  height: 0;
  transform: none;
  transform-origin: left top;
}

.menu-toggle-button__icon--burger:after {
  bottom: 0;
  left: 0;
}

.menu-toggle-button__icon--burger .menu-toggle-button__icon--burger__inner {
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  transform-origin: right top;
}

.js-menu-toggle-button--active .menu-toggle-button__icon--burger {
  height: 46px;
}

.js-menu-toggle-button--active .menu-toggle-button__icon--burger:before {
  transform: translate(-6px) rotate(-45deg);
  transform-origin: right top;
}

.js-menu-toggle-button--active .menu-toggle-button__icon--burger:after {
  transform: translate(-6px) rotate(45deg);
  transform-origin: right bottom;
}

.js-menu-toggle-button--active .menu-toggle-button__icon--burger .menu-toggle-button__icon--burger__inner {
  opacity: 0;
  transform: rotate(45deg);
  transform-origin: right top;
}

.menu--mobile-menu.js-menu-toggle__toggleable,
.mobile-menu-toggle ~ .menu--mobile-menu {
  transition: visibility 0s 0.4s, transform 0.25s ease-out, height 0.25s ease-out;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  width: 200vw;
  height: 100vh;
  overflow: hidden;
}

@media (min-width: 769px) {
  .menu--mobile-menu.js-menu-toggle__toggleable,
  .mobile-menu-toggle ~ .menu--mobile-menu {
    visibility: visible;
    transition: none;
  }
}

@media (min-width: 769px) {
  .menu--mobile-menu.js-menu-toggle__toggleable,
  .mobile-menu-toggle ~ .menu--mobile-menu {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
  }
}

.js-menu-toggle__toggleable--active-child.menu--mobile-menu.js-menu-toggle__toggleable,
.mobile-menu-toggle ~ .js-menu-toggle__toggleable--active-child.menu--mobile-menu {
  transform: translate(-100vw);
}

@media (min-width: 769px) {
  .js-menu-toggle__toggleable--active-child.menu--mobile-menu.js-menu-toggle__toggleable,
  .mobile-menu-toggle ~ .js-menu-toggle__toggleable--active-child.menu--mobile-menu {
    transform: none;
  }
}

.menu--mobile-menu.js-menu-toggle__toggleable > .menu-toggle__toggleable-content-wrapper,
.mobile-menu-toggle ~ .menu--mobile-menu > .menu-toggle__toggleable-content-wrapper {
  width: 100vw;
}

@media (min-width: 769px) {
  .menu--mobile-menu.js-menu-toggle__toggleable > .menu-toggle__toggleable-content-wrapper,
  .mobile-menu-toggle ~ .menu--mobile-menu > .menu-toggle__toggleable-content-wrapper {
    width: auto;
  }
}

.menu--mobile-menu.js-menu-toggle__toggleable--open,
.mobile-menu-toggle:checked ~ .menu--mobile-menu {
  transition: visibility 0s 0s, transform 0.25s ease-out, height 0.25s ease-out;
  transform: none;
}

@media (min-width: 769px) {
  .menu--mobile-menu.js-menu-toggle__toggleable--open,
  .mobile-menu-toggle:checked ~ .menu--mobile-menu {
    visibility: visible;
    transition: none;
  }
}

@media (min-width: 769px) {
  .menu--mobile-menu.js-menu-toggle__toggleable--open,
  .mobile-menu-toggle:checked ~ .menu--mobile-menu {
    overflow: visible;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle,
  .menu-toggle-button--mobile-menu {
    display: none;
  }
}

@media (min-width: 769px) {
  .menu--mobile-menu {
    margin-left: auto;
    margin-right: auto;
  }
}

.menu--mobile-menu.js-menu-toggle__toggleable:not(.js-menu-toggle__toggleable--open) {
  /* important flag preserved verbatim from the Sass source (comment there:
     "@todo shouldn't have to add this, have a bug in menu-toggle"). */
  height: 0 !important;
}

.main-search__block-wrapper.js-menu-toggle__toggleable,
.site-search-toggle ~ .menu-toggle__toggleable {
  transition: visibility 0s 0.4s, height 0.25s ease-out, padding-top 0.25s ease-in-out, padding-bottom 0.25s ease-in-out, box-shadow 0.4s ease-out;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: -2;
  height: 0;
  overflow: hidden;
}

/* Found via a user report that the search box was invisible once opened
   on a scrolled/sticky page: "top: 100%" above is relative to this
   element's OWN containing block, which is .main-search normally (no
   position set, so resolution continues up to .header) -- but once
   ".business-nav.sticky" (an ancestor, between .main-search and .header)
   becomes "position: fixed", IT becomes the nearest positioned ancestor
   instead (position:fixed always establishes a valid containing block),
   so "top: 100%" now means 100% of .business-nav's own height alone
   (measured/published as --sticky-nav-height by js/sticky-nav.js), NOT
   .business-nav plus .name-tag combined (--sticky-header-height, which
   .innerpage-nav.sticky's own "top" below already correctly uses for the
   same reason). Since .name-tag also independently becomes
   "position: fixed" when sticky, sitting immediately after
   .business-nav using its OWN "top" offset, the search panel and
   .name-tag ended up occupying the exact same ~41px band whenever both
   were sticky -- with .name-tag (compared directly against this
   deeply-negative z-index panel, since fixed elements with z-index:auto
   don't create their own stacking context) painting over the entire
   search input. Overriding "top" here to the combined height once
   .business-nav is sticky makes the panel open directly below .name-tag
   instead, matching the non-sticky behavior (where .header, the
   correctly-resolved containing block there, already includes
   .name-tag's height naturally). */
.business-nav.sticky .main-search__block-wrapper.js-menu-toggle__toggleable,
.business-nav.sticky .site-search-toggle ~ .menu-toggle__toggleable {
  top: var(--sticky-header-height, 120px);
}

.main-search__block-wrapper.js-menu-toggle__toggleable--open,
.site-search-toggle:checked ~ .menu-toggle__toggleable {
  transition: visibility 0s 0s, height 0.25s ease-out, padding-top 0.25s ease-in-out, padding-bottom 0.25s ease-in-out, box-shadow 0.4s ease-out;
  height: 120px;
}

[style*=height].main-search__block-wrapper.js-menu-toggle__toggleable--open,
.site-search-toggle:checked ~ [style*=height].menu-toggle__toggleable {
  overflow: hidden;
}
