/* Fold unified homepage header stylesheet.
   Extracted verbatim from the public homepage header styles in fold-theme.css / fold.css
   so standalone pages (like /chicago-nov-2026) can reuse _fold_header.html with identical
   appearance without importing unrelated global form/body/card overrides. */

:root {
  --fold-ink: #0E1726;
  --fold-text: #334155;
  --fold-border: #E2E8F0;
  --fold-accent-soft: #EEF8F6;
  --fold-blue: #0F6F69;
}

.fold-header,
.fold-header *,
.fold-header *::before,
.fold-header *::after {
  box-sizing: border-box;
}

.fold-header {
  width: 100% !important;
  max-width: none !important;
  min-height: 78px;
  height: 78px !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1300 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(210, 226, 237, .9) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(248, 252, 255, .72)),
    rgba(255, 255, 255, .76) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 16px 46px rgba(24, 58, 84, .11) !important;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  isolation: isolate;
  overflow: visible;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fold-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 88% 0%, rgba(44, 125, 181, .08), transparent 28%),
    linear-gradient(112deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, .62) 50%, rgba(255, 255, 255, 0) 54%, transparent 100%);
  background-size: auto, 240% 100%;
  background-position: center, -140% 0;
  pointer-events: none;
}

.fold-header.is-scrolled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(246, 251, 255, .66)),
    rgba(255, 255, 255, .70) !important;
  border-bottom-color: rgba(160, 190, 207, .62) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 18px 52px rgba(17, 34, 51, .16) !important;
}

.fold-header.is-scrolled::before {
  animation: foldHeaderReflect 2.8s ease-in-out infinite;
}

@keyframes foldHeaderReflect {
  0% { background-position: center, -140% 0; }
  48%, 100% { background-position: center, 140% 0; }
}

.fold-header__inner {
  width: 100%;
  max-width: none !important;
  height: 78px;
  min-height: 78px;
  margin: 0 !important;
  padding: 10px clamp(22px, 5vw, 92px) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.fold-logo-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 260px;
  min-width: 190px;
  padding-left: clamp(12px, 1.6vw, 28px);
}

.fold-logo {
  height: 44px !important;
  width: auto;
  display: block;
  filter: none !important;
  -webkit-filter: none !important;
}

.fold-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.fold-main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  color: #334155 !important;
  font-size: 0.94rem;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, background .2s ease, transform .16s ease;
}

.fold-main-nav a:hover,
.fold-main-nav a.active {
  color: #0F6F69 !important;
  background: var(--fold-accent-soft) !important;
  transform: translateY(-1px);
}

.fold-main-nav .fold-nav-cta {
  background: #0F6F69 !important;
  color: #fff !important;
  border: 1px solid #0F6F69 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 20px -4px rgba(15, 111, 105, .32) !important;
  padding-inline: 22px;
}

.fold-main-nav .fold-nav-cta:hover {
  background: #0B5752 !important;
  border-color: #0B5752 !important;
  color: #fff !important;
}

.fold-account {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 4px;
  padding-left: 14px;
  z-index: 1;
}

.fold-account::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 30px;
  margin-right: 12px;
  background: var(--fold-border);
  vertical-align: middle;
}

.fold-account__btn {
  width: 44px;
  height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  border: 1px solid #D7E8E6 !important;
  background: #EEF8F6 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.fold-account__btn svg circle,
.fold-account__btn svg path {
  stroke: #0f6f69 !important;
}

.fold-account__dropdown {
  display: none;
  flex-direction: column;
  align-items: stretch;
  min-width: 195px;
  position: absolute;
  top: 58px;
  right: 0;
  z-index: 1400;
  background: #fff;
  border: 1px solid var(--fold-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px rgba(24, 58, 84, .16) !important;
  padding: 10px 0 8px;
  text-align: left;
}

.fold-account__dropdown.open,
.fold-account.is-open .fold-account__dropdown {
  display: flex;
}

.fold-dd-link {
  display: block;
  padding: 12px 26px 10px;
  color: var(--fold-ink) !important;
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 12px;
}

.fold-dd-link:hover,
.fold-dd-link:focus {
  color: #0f6f69 !important;
  background: var(--fold-accent-soft);
  outline: none;
}

.fold-dd-link.fold-dd-link--danger {
  color: #d32f2f !important;
}

.fold-dd-link.fold-dd-link--danger:hover,
.fold-dd-link.fold-dd-link--danger:focus {
  background: #ffecec;
  color: #b71c1c !important;
}

.fold-mobile-toggle,
.fold-mobile-panel {
  display: none;
}

.fold-mobile-toggle {
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #d7e8e6;
  border-radius: 13px;
  background: #f2faf9;
  cursor: pointer;
}

.fold-mobile-toggle__bar {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #0f6f69;
  transition: transform .18s ease, opacity .18s ease;
}

.fold-header.is-mobile-open .fold-mobile-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.fold-header.is-mobile-open .fold-mobile-toggle__bar:nth-child(2) {
  opacity: 0;
}

.fold-header.is-mobile-open .fold-mobile-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body:has(.fold-header) {
  padding-top: 78px;
}

body:has(.top-promo-banner) {
  padding-top: calc(78px + 36px) !important;
}

body:has(.top-promo-banner) .fold-header {
  top: 36px !important;
}

@media (max-width: 1024px) {
  .fold-account--guest {
    display: none;
  }
  .fold-main-nav {
    display: none;
  }
  .fold-header {
    overflow: visible;
  }
  .fold-header .fold-logo-link {
    position: fixed !important;
    left: 50vw !important;
    right: auto !important;
    top: 17px !important;
    width: max-content !important;
    min-width: 0 !important;
    height: auto !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    z-index: 1 !important;
    justify-content: center;
  }
  .fold-header .fold-logo {
    display: block !important;
    margin: 0 !important;
  }
  .fold-mobile-toggle {
    display: inline-flex;
    position: absolute;
    left: 18px;
    top: 16px;
    z-index: 2;
  }
  .fold-account {
    position: absolute;
    right: 18px;
    top: 16px;
    margin-left: 0;
    padding-left: 0;
  }
  .fold-account::before {
    display: none;
  }
  .fold-account__dropdown {
    right: 0;
    top: 54px;
  }
  .fold-mobile-panel {
    position: fixed;
    top: 86px;
    left: 12px;
    right: 12px;
    z-index: 1490;
    max-height: calc(100svh - 102px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(210, 226, 237, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 58px rgba(24, 58, 84, .18);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  body:has(.top-promo-banner) .fold-mobile-panel {
    top: calc(86px + var(--fold-promo-height-desktop, 36px));
    max-height: calc(100svh - 134px);
  }
  .fold-header.is-mobile-open .fold-mobile-panel {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .fold-mobile-panel a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 13px;
    color: var(--fold-ink) !important;
    font-weight: 600;
    text-decoration: none;
  }
  .fold-mobile-panel a:hover,
  .fold-mobile-panel a:focus {
    color: #0f6f69 !important;
    background: var(--fold-accent-soft);
    outline: none;
  }
  .fold-mobile-panel .fold-mobile-panel__cta {
    min-height: 56px !important;
    justify-content: center !important;
    margin: 4px 0 6px !important;
    border: 1px solid var(--fold-ink) !important;
    border-radius: 16px !important;
    background: var(--fold-ink) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(17, 24, 39, .16) !important;
  }
  .fold-mobile-panel .fold-mobile-panel__cta:hover,
  .fold-mobile-panel .fold-mobile-panel__cta:focus {
    background: var(--fold-blue) !important;
    border-color: var(--fold-blue) !important;
    color: #fff !important;
  }
  .fold-header__inner {
    justify-content: center;
    padding-inline: 18px !important;
  }
}

@media (max-width: 640px) {
  body:has(.fold-header) {
    padding-top: 64px;
  }
  body:has(.top-promo-banner) {
    padding-top: calc(64px + 32px) !important;
  }
  body:has(.top-promo-banner) .fold-header {
    top: 32px !important;
  }
  body:has(.top-promo-banner) .fold-mobile-panel {
    top: calc(72px + 32px) !important;
    max-height: calc(100svh - 114px) !important;
  }
  .fold-header {
    min-height: 64px;
    height: 64px !important;
  }
  .fold-header__inner {
    min-height: 64px;
    height: 64px;
  }
  .fold-header .fold-logo-link {
    top: 15px !important;
  }
  .fold-mobile-toggle,
  .fold-account {
    top: 9px;
  }
  .fold-mobile-toggle {
    left: 12px;
  }
  .fold-account {
    right: 12px;
  }
  .fold-mobile-panel {
    top: 72px;
    max-height: calc(100svh - 88px);
  }
  .fold-logo {
    height: 34px !important;
  }
  .fold-account__btn,
  .fold-mobile-toggle {
    width: 42px !important;
    height: 42px !important;
  }
}
