/* ============================================================
   SEDU Header 3.0 — single source of truth
   Loaded LAST. Beats accumulated rules in structuralist.css.
   ============================================================ */

.site-header.site-header--fullbleed {
  position: sticky;
  top: 0;
  z-index: 300;
  width: 100%;
  max-width: none;
  margin: 0;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  background: var(--header-bg, #0E5A4A);
  color: var(--header-text, #fff);
  border: 0 !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
  font-family: 'Onest', system-ui, sans-serif !important;
}

.admin-bar .site-header.site-header--fullbleed { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header.site-header--fullbleed { top: 46px; }
}

.site-header--fullbleed .site-header__bar,
.site-header--fullbleed .site-header__bar.has-marks,
.site-header--fullbleed .site-header__bar.no-marks {
  display: grid !important;
  grid-template-columns: minmax(240px, auto) minmax(0, 1fr) auto;
  align-items: center !important;
  column-gap: 28px;
  width: 100%;
  min-height: 88px !important;
  height: auto !important;
  padding: 12px 24px !important;
  box-sizing: border-box;
}

/* Identity */
.site-header--fullbleed .site-identity {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  min-width: 0;
  max-width: none !important;
  padding: 0 !important;
  text-decoration: none;
  color: inherit;
}

.site-header--fullbleed .site-brand-zone {
  display: flex !important;
  align-items: center;
  gap: 8px;
  height: 64px !important;
  flex-shrink: 0;
  background: transparent !important;
}

.site-header--fullbleed .site-brand-zone__slot,
.site-header--fullbleed .site-brand-zone__slot--uni,
.site-header--fullbleed .site-brand-zone__slot--fac {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 64px !important;
  height: 64px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-header--fullbleed .site-brand-zone__slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0 !important;
  background: transparent !important;
}

.site-header--fullbleed .site-brand-zone__fallback {
  color: var(--header-text, #fff);
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.site-header--fullbleed .site-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 0 !important;
}

.site-header--fullbleed .site-titles__uni {
  display: block;
  margin: 0 !important;
  font-family: 'Onest', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .10em !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--header-text, #fff) 70%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header--fullbleed .site-titles__fac {
  display: block;
  margin: 0 !important;
  max-width: 28rem;
  font-family: 'Onest', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  line-height: 1.3 !important;
  text-transform: uppercase;
  color: var(--header-text, #fff) !important;
  text-wrap: balance;
  white-space: normal !important;
}

/* Nav — one horizontal row, vertically centered with identity */
.site-header--fullbleed .site-nav-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  align-self: center !important;
  width: auto;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  gap: 0;
}

.site-header--fullbleed .site-nav,
.site-header--fullbleed .site-nav--row1,
.site-header--fullbleed .site-nav--row2 {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  flex: 0 0 auto !important;
}

.site-header--fullbleed .site-nav--row1 { display: flex !important; }
.site-header--fullbleed .site-nav--row1 .site-nav__link {
  font-size: 12px !important;
  font-weight: 500 !important;
  height: 28px !important;
  min-height: 28px !important;
  opacity: .78;
}

.site-header--fullbleed .site-nav-stack .site-nav__list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center !important;
  gap: 2px;
  height: auto !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header--fullbleed .site-nav-stack .site-nav__item {
  display: flex !important;
  align-items: center !important;
  position: relative;
  height: auto !important;
  margin: 0;
}

.site-header--fullbleed .site-nav-stack .site-nav__link,
.site-header--fullbleed .site-nav--row2 .site-nav__link {
  display: inline-flex !important;
  align-items: center !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--header-text, #fff) !important;
  font-family: 'Onest', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
  text-decoration: none;
  white-space: nowrap;
  opacity: .92;
  border-radius: 4px;
}

.site-header--fullbleed .site-nav-stack .site-nav__link:hover,
.site-header--fullbleed .site-nav-stack .site-nav__item.is-active > .site-nav__link {
  background: var(--header-hover, rgba(255,255,255,.10)) !important;
  color: var(--header-accent, #D6C19A) !important;
  opacity: 1;
}

.site-header--fullbleed .site-nav__sub {
  top: calc(100% + 6px);
  left: 0;
  background: var(--header-bg, #0E5A4A);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  min-width: 220px;
}

.site-header--fullbleed .site-nav__sub .site-nav__link {
  width: 100%;
  height: auto !important;
  min-height: 40px !important;
  justify-content: space-between;
  white-space: normal;
}

/* Tools */
.site-header--fullbleed .site-header__tools {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px !important;
  align-self: center !important;
  margin-left: 0;
}

.site-header--fullbleed .site-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--header-text, #fff);
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.site-header--fullbleed .site-tool:hover { color: var(--header-accent, #D6C19A); }
.site-header--fullbleed .site-tool i { font-size: 18px; }

.site-header--fullbleed .site-burger {
  display: none;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--header-text, #fff);
}

.site-header--fullbleed .site-search-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 14px;
  background: var(--header-bg, #0E5A4A);
}
.site-header--fullbleed .site-search-panel[hidden] { display: none; }
.site-header--fullbleed .site-search-panel input[type="search"] {
  flex: 1;
  height: 40px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: var(--header-text, #fff);
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  outline: none;
}
.site-header--fullbleed .site-search-panel button {
  width: 40px; height: 40px; border: 0; background: transparent;
  color: var(--header-accent, #D6C19A); cursor: pointer;
}

@media (max-width: 1100px) {
  .site-header.site-header--fullbleed {
    overflow: visible !important;
  }
  .site-header--fullbleed .site-header__bar,
  .site-header--fullbleed .site-header__bar.has-marks,
  .site-header--fullbleed .site-header__bar.no-marks {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 76px !important;
    padding: 10px 16px !important;
    column-gap: 12px;
  }
  .site-header--fullbleed .site-nav-stack {
    display: none !important;
  }
  .site-header--fullbleed .site-nav-stack.is-open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: fixed !important;
    top: 76px;
    left: 0;
    right: 0;
    width: 100vw !important;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--header-bg, #0E5A4A);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 8px 0 24px;
    z-index: 1000 !important;
  }
  .admin-bar .site-header--fullbleed .site-nav-stack.is-open { top: 122px; }
  .site-header--fullbleed .site-nav-stack.is-open .site-nav--row1,
  .site-header--fullbleed .site-nav-stack.is-open .site-nav--row2 {
    display: flex !important;
    width: 100%;
  }
  .site-header--fullbleed .site-nav-stack.is-open .site-nav__list {
    flex-direction: column !important;
    width: 100%;
  }
  .site-header--fullbleed .site-nav-stack.is-open .site-nav__item {
    display: block !important;
    width: 100%;
  }
  .site-header--fullbleed .site-nav-stack.is-open .site-nav__link {
    width: 100%;
    height: 48px !important;
    min-height: 48px !important;
    justify-content: flex-start;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }
  .site-header--fullbleed .site-nav-stack.is-open .site-nav__sub {
    position: static !important;
    display: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    box-shadow: none;
    border: 0;
    background: rgba(0,0,0,.18);
  }
  .site-header--fullbleed .site-nav-stack.is-open .site-nav__item.is-open > .site-nav__sub {
    display: block !important;
  }
  .site-header--fullbleed .site-burger {
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 1001;
  }
  .site-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 900;
  }
  .site-header.is-nav-open .site-nav-overlay,
  .site-nav-overlay:not([hidden]) {
    display: block;
  }
  body.sedu-nav-lock { overflow: hidden; }
  .site-header--fullbleed .site-titles__fac { font-size: 12.5px !important; max-width: 22rem; }
  .site-header--fullbleed .site-brand-zone,
  .site-header--fullbleed .site-brand-zone__slot {
    width: 48px !important;
    height: 48px !important;
  }
  .site-header--fullbleed .site-brand-zone { height: 48px !important; }
}

.site-nav-overlay[hidden] { display: none !important; }

@media print {
  .site-header.site-header--fullbleed { display: none !important; }
}

/* Burger: visible on small screens only. CSS bars, no Phosphor. */
.site-header--fullbleed .site-burger {
  display: none !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px !important;
  height: 44px !important;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25) !important;
  background: transparent !important;
  cursor: pointer;
}
.site-header--fullbleed .site-burger__line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--header-text, #fff);
  transition: transform .2s, opacity .2s;
}
.site-header--fullbleed .site-burger.is-open .site-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header--fullbleed .site-burger.is-open .site-burger__line:nth-child(2) { opacity: 0; }
.site-header--fullbleed .site-burger.is-open .site-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .site-header--fullbleed .site-burger {
    display: flex !important;
    position: relative;
    z-index: 10002 !important;
  }
}
