/* Truevision corporate chrome — scoped for embedding (e.g. STEE Laravel pages) */
#tv-corporate-chrome {
  --tv-orange: #ff8000;
  --tv-blue-deep: #0b1f3a;
  --tv-header-h: 72px;
  --tv-topbar-h: 36px;
  --tv-chrome-h: calc(var(--tv-topbar-h) + var(--tv-header-h) + 8px);
  font-family: "Poppins", system-ui, sans-serif;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#tv-corporate-chrome .tv-top-bar {
  background: var(--tv-blue-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#tv-corporate-chrome .tv-top-bar-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0.35rem clamp(1.25rem, 2.5vw, 3.5rem);
  min-height: var(--tv-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#tv-corporate-chrome .tv-top-bar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

#tv-corporate-chrome .tv-top-bar a:hover {
  color: var(--tv-orange);
}

#tv-corporate-chrome .tv-site-header {
  position: relative;
  background: rgba(8, 22, 40, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#tv-corporate-chrome .tv-header-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0.5rem clamp(1.25rem, 2.5vw, 3.5rem);
  min-height: var(--tv-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

#tv-corporate-chrome .tv-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

#tv-corporate-chrome .tv-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

#tv-corporate-chrome .tv-brand-name {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--tv-orange);
  line-height: 1.1;
}

#tv-corporate-chrome .tv-brand-sub {
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
}

#tv-corporate-chrome .tv-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

#tv-corporate-chrome .tv-nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

#tv-corporate-chrome .tv-nav-toggle.is-active .tv-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#tv-corporate-chrome .tv-nav-toggle.is-active .tv-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

#tv-corporate-chrome .tv-nav-toggle.is-active .tv-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tv-mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(8, 22, 40, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tv-mobile-nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.tv-nav-open {
  overflow: hidden;
  touch-action: none;
}

#tv-corporate-chrome .tv-site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

#tv-corporate-chrome .tv-site-nav a {
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  white-space: nowrap;
}

#tv-corporate-chrome .tv-site-nav a:hover,
#tv-corporate-chrome .tv-site-nav a.is-active {
  color: var(--tv-orange);
}

#tv-corporate-chrome .tv-site-nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--tv-orange);
}

#tv-corporate-chrome .tv-nav-donate {
  background: rgba(22, 119, 255, 0.22);
  color: #b8d4ff !important;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 119, 255, 0.45);
}

#tv-corporate-chrome .tv-nav-donate:hover {
  background: rgba(22, 119, 255, 0.35);
  color: #fff !important;
}

#tv-corporate-chrome .tv-nav-cta {
  background: var(--tv-orange);
  color: #fff !important;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  box-shadow: none !important;
}

@media (min-width: 769px) {
  .tv-mobile-nav-backdrop {
    display: none;
  }

  #tv-corporate-chrome .tv-site-nav {
    position: static;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
    box-shadow: none;
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  #tv-corporate-chrome {
    z-index: 210;
  }

  #tv-corporate-chrome .tv-nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 212;
  }

  #tv-corporate-chrome .tv-header-inner {
    flex-wrap: nowrap;
  }

  #tv-corporate-chrome .tv-site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 0;
    transition:
      max-height 0.35s ease,
      opacity 0.22s ease,
      visibility 0.35s;
    background: rgba(8, 22, 40, 0.99);
    border-bottom: 1px solid rgba(255, 128, 0, 0.3);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    z-index: 205;
  }

  #tv-corporate-chrome .tv-site-nav.is-open {
    max-height: min(78vh, 640px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #tv-corporate-chrome .tv-site-nav-scroll {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.35rem clamp(1.25rem, 2.5vw, 3.5rem) 0.85rem;
  }

  #tv-corporate-chrome .tv-site-nav a {
    width: 100%;
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    padding: 0.8rem 0.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    white-space: normal;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }

  #tv-corporate-chrome .tv-nav-cta,
  #tv-corporate-chrome .tv-nav-donate {
    justify-content: center;
    margin-top: 0.35rem;
    border-radius: 10px;
    border-bottom: none;
  }

  #tv-corporate-chrome .tv-nav-cta {
    margin-top: 0.5rem;
  }
}

/* Offset STEE sticky nav below corporate chrome */
body.tv-has-corporate-header .stee-nav-below-corporate {
  top: var(--tv-chrome-h, 116px);
}
