/* Shared navigation component for every public page. */
.site-menu-toggle {
  display: none;
  box-sizing: border-box;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #183f2b;
  border-radius: 10px;
  background: #fffaf1;
  color: #183f2b;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.site-menu-toggle-icon,
.site-menu-toggle-icon::before,
.site-menu-toggle-icon::after {
  display: block;
  box-sizing: border-box;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, top .18s ease, background .18s ease;
}

.site-menu-toggle-icon { position: relative; }

.site-menu-toggle-icon::before,
.site-menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-menu-toggle-icon::before { top: -8px; }
.site-menu-toggle-icon::after { top: 8px; }

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle-icon { background: transparent; }
.site-menu-toggle[aria-expanded="true"] .site-menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
.site-menu-toggle[aria-expanded="true"] .site-menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.site-menu-toggle:focus-visible {
  outline: 3px solid #c99b5b;
  outline-offset: 3px;
}

.site-menu-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.persistent-give {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 14px;
  padding: 10px 17px;
  border: 2px solid #c99b5b;
  border-radius: 9px;
  background: #c99b5b;
  color: #102b1f !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 7px 20px rgba(16,43,31,.15);
}

.persistent-give:hover { transform: translateY(-1px); }
.persistent-give:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

body.main-site .site-menu-toggle {
  border-color: #5b2166;
  background: #fff9f2;
  color: #5b2166;
}

body.main-site .persistent-give {
  border-color: #e1bd78;
  background: #e1bd78;
  color: #2d1238 !important;
  box-shadow: 0 7px 20px rgba(45,18,56,.18);
}

body.main-site nav .campus-link {
  padding: 10px 14px;
  border: 2px solid #c99b5b;
  border-radius: 8px;
  background: #183f2b;
  color: #ffffff !important;
  font-weight: 900;
}

body.main-site nav .campus-link:hover,
body.main-site nav .campus-link:focus-visible {
  background: #c99b5b;
  color: #102b1f !important;
}

body:not(.main-site) nav .main-site-return {
  padding: 9px 12px;
  border: 2px solid #7c3b88;
  border-radius: 8px;
  background: #f7ebf7;
  color: #5b2166 !important;
  font-size: .74rem;
  font-weight: 900;
  text-decoration: none;
}

body:not(.main-site) nav .main-site-return:hover,
body:not(.main-site) nav .main-site-return:focus-visible {
  background: #5b2166;
  color: #ffffff !important;
}

@media (max-width: 1200px) {
  body > header {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 54px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 76px !important;
    padding: 10px 16px !important;
  }

  body > header > .logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body > header > .logo > img,
  body > header > .logo > .logo-mark {
    box-sizing: border-box !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    object-fit: contain !important;
  }

  body > header > .logo > span:last-child {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body > header > .logo .name,
  body > header > .logo .tag {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  body > header > .logo .name {
    font-size: clamp(15px, 4.5vw, 20px) !important;
    line-height: 1.05 !important;
  }

  body > header > .logo .tag {
    margin-top: 4px !important;
    font-size: clamp(7px, 2.2vw, 10px) !important;
    line-height: 1.1 !important;
    letter-spacing: clamp(1px, .52vw, 2.4px) !important;
  }

  .site-menu-toggle {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    justify-self: end !important;
    align-self: center !important;
  }

  body > header > .persistent-give {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    justify-self: end !important;
    align-self: center !important;
  }

  body > header > nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-height: calc(100vh - 96px) !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    margin: 10px 0 0 !important;
    padding: 10px 0 6px !important;
    border-top: 1px solid rgba(24, 63, 43, .16) !important;
    font-size: 15px !important;
  }

  body > header > nav.is-open { display: flex !important; }

  body > header > nav a {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 11px 14px !important;
    border-radius: 7px !important;
    white-space: normal !important;
  }

  body > header > nav a::after { display: none !important; }

  body > header > nav .give {
    justify-content: center !important;
    margin: 6px 0 0 !important;
    text-align: center !important;
  }

  body:not(.main-site) > header > nav .main-site-return {
    justify-content: center !important;
    margin-top: 8px !important;
    border: 2px solid #7c3b88 !important;
    background: #f7ebf7 !important;
    color: #5b2166 !important;
    text-align: center !important;
  }

  body:not(.main-site) > header > nav .main-site-return:hover,
  body:not(.main-site) > header > nav .main-site-return:focus-visible {
    background: #5b2166 !important;
    color: #ffffff !important;
  }

  body.main-site > header > nav .campus-link {
    justify-content: center !important;
    margin-top: 8px !important;
    border: 2px solid #c99b5b !important;
    background: #183f2b !important;
    color: #ffffff !important;
    text-align: center !important;
  }
}

@media (max-width: 359px) {
  body > header {
    grid-template-columns: minmax(0, 1fr) auto 50px !important;
    column-gap: 8px !important;
    padding: 9px 12px !important;
  }

  body > header > .persistent-give {
    min-height: 44px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  .site-menu-toggle {
    width: 50px;
    min-width: 50px;
  }

  body > header > .logo > img,
  body > header > .logo > .logo-mark {
    flex-basis: 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu-toggle-icon,
  .site-menu-toggle-icon::before,
  .site-menu-toggle-icon::after { transition: none; }
}
