/* NightCast header hardening — scoped styles, predictable layout and mobile-safe controls. */
.nc-header {
  position: sticky !important;
  inset-block-start: 0 !important;
  z-index: 1500 !important;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 68px;
  isolation: isolate;
  background: rgba(4, 9, 23, .94) !important;
  border-bottom: 1px solid rgba(164, 199, 255, .2) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.nc-header, .nc-header * { box-sizing: border-box; }
.nc-header .nc-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 24px) !important;
  width: min(100%, 1560px);
  min-width: 0;
  min-height: 68px;
  height: auto !important;
  margin-inline: auto;
  padding: 10px clamp(12px, 2.6vw, 32px) !important;
}
.nc-header .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #f5f8ff !important;
  text-decoration: none;
}
.nc-header .brand-mark {
  display: inline-grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(140, 232, 255, .42);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(32, 67, 111, .98), rgba(12, 22, 48, .98));
  color: #a9efff !important;
  box-shadow: 0 0 24px rgba(86, 175, 255, .16);
}
.nc-header .brand-text { min-width: 0; line-height: 1.3; }
.nc-header .brand-text strong { display: block; color: #f5f8ff; font-size: 1rem; font-weight: 800; }
.nc-header .brand-text small { display: block; margin-top: 2px; color: #aab9d5; font-size: .72rem; white-space: nowrap; }
.nc-header .nav-links {
  display: flex !important;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, .7vw, 12px);
  min-width: 0;
  margin-inline: auto;
  overflow: visible;
}
.nc-header .nav-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px clamp(8px, 1vw, 14px);
  border: 1px solid transparent;
  border-radius: 13px;
  color: #c1cbe0 !important;
  font-size: clamp(.78rem, .95vw, .92rem);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nc-header .nav-link:hover,
.nc-header .nav-link:focus-visible,
.nc-header .nav-link.active {
  color: #f7fbff !important;
  background: rgba(140, 232, 255, .09) !important;
  border-color: rgba(140, 232, 255, .2);
}
.nc-header .header-actions {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin: 0 !important;
}
.nc-header .icon-btn,
.nc-header .nc-menu-toggle {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(164, 199, 255, .2);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
  color: #eaf5ff;
  line-height: 1;
  cursor: pointer;
}
.nc-header .icon-btn:hover { background: rgba(140, 232, 255, .12); border-color: rgba(140, 232, 255, .42); }
.nc-header .nc-menu-toggle { display: none; }
.nc-header i.fa-solid,
.nc-header i.fa-regular,
.nc-header i.fa-brands {
  display: inline-block;
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}
.nc-header :focus-visible { outline: 2px solid #8ce8ff !important; outline-offset: 3px; }
@media (max-width: 1000px) {
  .nc-header .nc-nav { gap: 10px !important; }
  .nc-header .nav-link { padding-inline: 8px; font-size: .8rem; }
  .nc-header .brand-text small { display: none; }
}
@media (max-width: 800px) {
  .nc-header { min-height: 64px; }
  .nc-header .nc-nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px !important;
    min-height: 64px;
    padding: 9px 14px !important;
  }
  .nc-header .brand { min-width: 0; }
  .nc-header .brand-mark { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; }
  .nc-header .brand-text strong { font-size: .96rem; }
  .nc-header .nav-links { display: none !important; }
  .nc-header .header-actions { grid-column: 2; grid-row: 1; gap: 7px; }
  .nc-header .nc-menu-toggle { display: inline-flex !important; }
}
@media (max-width: 420px) {
  .nc-header .nc-nav { padding-inline: 10px !important; }
  .nc-header .header-actions { gap: 5px; }
  .nc-header .icon-btn, .nc-header .nc-menu-toggle { flex-basis: 38px; width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
  .nc-header .brand-mark { flex-basis: 36px; width: 36px; height: 36px; }
  .nc-header .brand-text strong { font-size: .9rem; }
  .nc-header .social-wrap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nc-header *, .nc-header *::before, .nc-header *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Use the official NightCast app icon at every desktop, tablet and mobile breakpoint. */
.nc-header .brand-mark{overflow:hidden;}
.nc-header .brand-mark img{display:block;flex:0 0 auto;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:inherit;}
@media (min-width:601px){
  .nc-header .brand-mark{width:42px;height:42px;flex-basis:42px;}
  .nc-header .brand-mark img{width:100%;height:100%;}
}
@media (min-width:421px) and (max-width:900px){
  .nc-header .brand-mark{width:40px;height:40px;flex-basis:40px;}
  .nc-header .brand-mark img{width:100%;height:100%;}
}

/* Brand-first header: remove the decorative logo tile and let the official mark lead.
   Shared by desktop, tablet and mobile breakpoints. */
.nc-header .nc-nav {
  min-height: 82px;
}
.nc-header .brand {
  gap: 12px;
}
.nc-header .brand-mark {
  flex: 0 0 64px !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.nc-header .brand-mark img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
@media (min-width: 1001px) {
  .nc-header { min-height: 82px; }
  .nc-header .nc-nav { min-height: 82px; }
}
@media (min-width: 801px) and (max-width: 1000px) {
  .nc-header, .nc-header .nc-nav { min-height: 74px; }
  .nc-header .brand-mark {
    flex-basis: 56px !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px;
  }
}
@media (min-width: 421px) and (max-width: 800px) {
  .nc-header, .nc-header .nc-nav { min-height: 68px; }
  .nc-header .nc-nav { padding-block: 6px !important; }
  .nc-header .brand-mark {
    flex-basis: 52px !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
  }
}
@media (max-width: 420px) {
  .nc-header, .nc-header .nc-nav { min-height: 62px; }
  .nc-header .nc-nav { padding-block: 5px !important; }
  .nc-header .brand { gap: 8px; }
  .nc-header .brand-mark {
    flex-basis: 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
  }
}

