.tt-quick-search[hidden] {
  display: none !important;
}

.tt-quick-search {
  position: relative;
  z-index: 1000;
  background: #03050b;
  border-top: 1px solid rgba(54, 78, 150, 0.42);
  border-bottom: 1px solid rgba(54, 78, 150, 0.42);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.tt-quick-search--open {
  animation: tt-quick-search-in 180ms ease-out both;
}

.tt-quick-search__inner {
  display: flex;
  width: min(1240px, 94vw);
  margin: 0 auto;
  padding: 13px 0 16px;
  justify-content: flex-end;
}

.tt-quick-search__form {
  display: grid;
  width: min(430px, 100%);
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  background: #080d1b;
  border: 1px solid #2f4f9e;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.tt-quick-search__input {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 500 14px/1.2 Montserrat, Arial, sans-serif;
}

.tt-quick-search__input::placeholder {
  color: #9ba8c7;
  opacity: 1;
}

.tt-quick-search__input:focus {
  outline: 2px solid #168eea;
  outline-offset: -2px;
}

.tt-quick-search__submit {
  min-width: 106px;
  height: 48px;
  margin: 0;
  padding: 0 18px;
  color: #fff;
  background: #223a91;
  border: 0;
  border-left: 1px solid #3659bd;
  border-radius: 0;
  font: 700 12px/1 Montserrat, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.tt-quick-search__submit:hover,
.tt-quick-search__submit:focus-visible {
  background: #168eea;
}

.site-header a.tt-quick-search-toggle--open {
  color: #31aaff !important;
}

@keyframes tt-quick-search-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .tt-quick-search__inner {
    width: calc(100% - 28px);
    padding: 11px 0 13px;
  }

  .tt-quick-search__form {
    width: 100%;
  }

  .tt-quick-search__input {
    height: 46px;
    padding: 0 13px;
  }

  .tt-quick-search__submit {
    min-width: 90px;
    height: 46px;
    padding: 0 13px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-quick-search--open {
    animation: none;
  }
}

/*
 * TangoTV editorial typography
 *
 * Trajan/Cinzel are reserved for the brand. Editorial headlines use a clean
 * broadcast sans-serif, while longer reading uses an editorial serif.
 * Uppercase remains only for navigation, buttons, kickers and metadata.
 */

body.page.content-title-style-above h1.entry-title,
body.search h1.search-title,
body.search h2.entry-title,
body.single-post h1.entry-title,
body.single-tangotv_article h1.entry-title,
.tango-video-page h2,
.tango-video-page h3 {
  font-family: Montserrat, Arial, sans-serif !important;
  text-transform: none !important;
}

body.page.content-title-style-above h1.entry-title {
  margin-bottom: 24px;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.tango-content-page > p {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0;
  text-transform: none !important;
}

.tango-content-page > p strong {
  font-weight: 700;
}

/* Contact information is interface text, not long-form editorial copy. */
.tango-content-page > .tango-kicker,
.tango-content-page > .tango-kicker ~ p,
.tango-content-page > .tango-kicker ~ p a {
  font-family: Montserrat, Arial, sans-serif !important;
}

.tango-content-page > .tango-kicker ~ p {
  font-size: 15.5px;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none !important;
}

.tango-content-page > .tango-kicker {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase !important;
}

/* Search results: compact, readable and consistent on all language versions. */
body.search h1.search-title {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.search h2.entry-title {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

body.search .entry-summary,
body.search .entry-summary p {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none !important;
}

body.search .entry-meta {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: none !important;
}

/* Long-form news and articles follow the same broadcast/editorial hierarchy. */
body.single-post h1.entry-title,
body.single-tangotv_article h1.entry-title {
  font-size: 32px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.single-post .entry-content p,
body.single-tangotv_article .entry-content p {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0;
  text-transform: none !important;
}

/* Video/report pages keep uppercase only for the small broadcast labels. */
.tango-video-page > .tango-video-inner > .tango-video-header > p:not(.tango-kicker) {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none !important;
}

.tango-video-page h2 {
  font-size: clamp(26px, 2.4vw, 32px) !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

.tango-video-page h3 {
  font-weight: 650 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
}

.tango-video-page .tango-meta,
.tango-video-page .tango-kicker,
.tt-card__meta,
.tt-card__read,
.tt-quick-search__submit {
  font-family: Montserrat, Arial, sans-serif !important;
  text-transform: uppercase !important;
}

@media (max-width: 767px) {
  body.page.content-title-style-above h1.entry-title,
  body.search h1.search-title {
    margin-bottom: 18px;
    font-size: 22px;
    line-height: 1.35;
  }

  body.search h2.entry-title {
    font-size: 20px;
    line-height: 1.4;
  }

  body.search .entry-summary,
  body.search .entry-summary p {
    font-size: 16px;
    line-height: 1.65;
  }

  body.single-post h1.entry-title,
  body.single-tangotv_article h1.entry-title {
    font-size: 26px;
    line-height: 1.3;
  }

  body.single-post .entry-content p,
  body.single-tangotv_article .entry-content p,
  .tango-content-page > p {
    font-size: 16px;
    line-height: 1.7;
  }

  .tango-video-page h2 {
    font-size: 24px !important;
  }

  .tango-video-page h3 {
    font-size: 18px !important;
  }
}
