/**
 * Shared Ice Cold MMA banner + top navigation.
 *
 * Single source for the public header used on every page — homepage, Episodes,
 * Articles listing, and the server-rendered article-detail pages — so they all
 * show the exact same full-width banner and black nav bar.
 *
 * Reference markup (see index.html): a full-width <section class="top-banner">
 * holding the banner image, immediately followed by <header class="site-header">
 * with a .brand-mark link, the .main-nav, and the .youtube-pill.
 *
 * Header/banner ONLY — deliberately no body, :root, or footer rules — so it can
 * be dropped into any page's <head> alongside that page's own stylesheet
 * without touching its background, tokens, cards, or footer. Colours and sizing
 * are copied verbatim from the original homepage header so the result is the
 * real header, not an approximation.
 */

.top-banner {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  background: #000;
  border-bottom: 1px solid #101010;
}

.top-banner img {
  display: block;
  width: 100%;
  height: clamp(220px, 31vw, 520px);
  object-fit: cover;
  object-position: center;
}

/* Centered header bar (banner above stays full width). */
.site-header {
  width: min(calc(100% - 40px), 1180px);
  margin-left: auto;
  margin-right: auto;
  height: 44px;
  padding: 0 15px;
  background: #050505;
  border-bottom: 1px solid #121212;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-mark img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.brand-mark span {
  font-size: 13px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.main-nav a {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #e8e8e8;
  text-decoration: none;
}

/* Current-section marker for sub-pages. The homepage marks nothing active. */
.main-nav a.is-active {
  color: #75eaff;
}

.youtube-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(90deg, #fa3025, #ee1825);
  color: white;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(255, 36, 36, 0.18);
}

.youtube-dot {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  background: white;
  color: #ff1e1e;
  border-radius: 50%;
  font-size: 9px;
}

@media (max-width: 760px) {
  .top-banner img {
    min-height: 145px;
    object-fit: cover;
    object-position: center;
  }

  .site-header {
    height: auto;
    padding: 12px 14px;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .main-nav {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .youtube-pill {
    justify-self: start;
  }
}
