/* The approved homepage shell, shared by the public templates.
   Only the shell owns these type roles; account forms keep their own fonts. */
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/noto-sans/noto-sans-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Presence of the real public header replaces offsets for the old fixed navbar.
   Neither management apps nor standalone/embedded documents have this wrapper. */
:root body:has(> .tv-public-header) {
  padding-top: 0 !important;
}

/* The 404's former fixed-navbar viewport constant no longer measures the shell. */
:root body.tv-not-found-page:has(> .tv-public-header) > .tv-not-found {
  min-height: 0;
  flex: 1 0 auto;
}

.tv-public-header {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  color: var(--tv-navy, #071540);
  font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}

.tv-public-header .tv-header > .container,
.tv-public-header .tv-home-topbar > .container {
  width: 100%;
  max-width: 1640px;
  padding-right: clamp(20px, 3.4vw, 64px);
  padding-left: clamp(20px, 3.4vw, 64px);
}

.tv-public-header a {
  text-decoration: none;
}

.tv-public-header a,
.tv-public-header button {
  -webkit-tap-highlight-color: transparent;
}

.tv-public-header a:focus-visible,
.tv-public-header button:focus-visible,
.tv-public-header input:focus-visible {
  outline: 3px solid var(--tv-blue);
  outline-offset: 4px;
}

.tv-public-header .tv-home-topbar {
  background: #0d3567;
  color: #fff;
  font-size: 12px;
}

.tv-public-header .tv-home-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
}

.tv-public-header .tv-home-topbar-copy {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tv-public-header .tv-home-topbar-copy > span {
  color: var(--tv-yellow);
  font-size: 12px;
}

.tv-public-header .tv-home-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.tv-public-header .tv-home-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: #fff;
}

.tv-public-header .tv-home-topbar-link:hover {
  color: var(--tv-yellow);
}

.tv-public-header .tv-header {
  position: relative;
  top: auto;
  z-index: 100;
  min-height: 88px;
  padding: 16px 0;
  font-family: inherit;
}

.tv-public-header .tv-header .tv-brand-logo {
  width: 166px;
}

.tv-public-header .tv-header .tv-brand-tagline {
  padding-left: 15px;
  margin-left: 12px;
  font-size: 10px;
}

.tv-public-header .tv-header .navbar-nav {
  align-items: center;
  gap: 3px;
}

.tv-public-header .tv-header .nav-link {
  padding: 12px 10px !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.tv-public-header .tv-header .tv-account-trigger > span {
  display: none;
}

.tv-public-header .tv-header .tv-home-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  margin-left: 12px;
  padding: 12px 17px;
  border: 1px solid var(--tv-yellow);
  border-radius: 10px;
  background: var(--tv-yellow);
  color: var(--tv-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.tv-public-header .tv-home-nav-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tv-public-header .tv-header .tv-home-nav-cta:hover {
  background: #f1c900;
  border-color: #f1c900;
}

/* Keep dropdown type identical to the approved homepage instead of inheriting
   each page's body scale. Layout and interactions remain in shared navigation. */
.tv-public-header .tv-header .tv-mega-title {
  font-size: 16px;
  line-height: 1.5;
}

.tv-public-header .tv-header .tv-nav-category {
  font-size: 12px;
  line-height: 1.4;
}

.tv-public-header .tv-header .tv-nav-filter input {
  font-size: 13px;
  line-height: 1.5;
}

.tv-public-header .tv-header .tv-nav-all-categories,
.tv-public-header .tv-header .tv-nav-loading,
.tv-public-header .tv-header .tv-nav-no-results {
  font-size: 13px;
  line-height: 1.5;
}

.tv-public-header .tv-header .tv-account-menu a,
.tv-public-header .tv-header .tv-account-menu button {
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 1199.98px) {
  .tv-public-header .tv-home-topbar-link {
    display: none;
  }
  .tv-public-header .tv-header .tv-brand-tagline {
    display: none;
  }
  .tv-public-header .tv-header .tv-brand-logo {
    width: 145px;
  }
  .tv-public-header .tv-header .nav-link {
    padding: 12px 8px !important;
    font-size: 13px;
  }
  .tv-public-header .tv-header .tv-home-nav-cta {
    margin-left: 6px;
    padding: 12px;
    font-size: 12px;
  }
}

@media (max-width: 991.98px) {
  .tv-public-header .tv-header {
    min-height: 76px;
    padding: 12px 0;
  }
  .tv-public-header .tv-header .navbar-collapse {
    padding-top: 14px;
  }
  .tv-public-header .tv-header #navbarResponsive {
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .tv-public-header .tv-header .navbar-nav {
    align-items: stretch;
  }
  .tv-public-header .tv-header .nav-link {
    min-height: 44px;
    font-size: 15px;
  }
  .tv-public-header .tv-header .tv-account-trigger > span {
    display: inline;
  }
  .tv-public-header .tv-header .tv-home-nav-cta {
    margin: 12px 0 4px;
    font-size: 14px;
  }
}

@media (max-width: 767.98px) {
  .tv-public-header .tv-header > .container,
  .tv-public-header .tv-home-topbar > .container {
    padding-right: 20px;
    padding-left: 20px;
  }
  .tv-public-header .tv-home-topbar .container {
    justify-content: flex-start;
    min-height: 54px;
  }
  .tv-public-header .tv-home-topbar-copy {
    padding: 10px 0;
    line-height: 1.5;
  }
  .tv-public-header .tv-home-topbar-actions {
    display: none;
  }
  .tv-public-header .tv-home-topbar-link {
    min-height: 54px;
    font-size: 12px;
  }
}

@media print {
  .tv-public-header {
    display: none;
  }
}
