/* BLUE07: a minimal header and focused homepage updates.
   Load after BLUE06 so its content-width and mobile safeguards remain active. */

/* Keep the established brand geometry and leave open space between the mark
   and the three actions. These rules also support the application header. */
.site-header--minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header--minimal nav.header-actions {
  display: flex;
  position: static;
  inset: auto;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header--minimal nav.header-actions > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-header--minimal nav.header-actions > .join-nav {
  min-width: 84px;
  height: 42px;
  font-size: 14px;
}

.site-header--minimal nav.header-actions > .instagram-nav {
  width: 44px;
  height: 44px;
}

.site-header--minimal .instagram-nav > svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.site-header--minimal nav.header-actions > .youtube-nav {
  width: 84px;
  height: 42px;
}

/* The supplied YouTube artwork includes transparent padding. Retain its
   optical size while containing the surrounding navigation geometry. */
.site-header--minimal .youtube-nav > img {
  width: 102px;
  max-width: none;
  max-height: none;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-header--minimal .instagram-nav:hover {
  color: #83aaff;
}

.site-header--minimal .menu-toggle {
  display: none;
}

/* Mirror the photograph alone; the contrast overlay, grid, and copy retain
   their original orientation. The empty right track reveals the camera. */
.intro-backdrop > img {
  transform: scaleX(-1);
  transform-origin: center;
}

.network-intro .intro-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 440px;
}

.media-channels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 440px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.media-channels > li {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  color: #f5f7fd;
  cursor: default;
}

.media-channel-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: #83aaff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-channels > li > span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Informational cards keep their approved photography and square edges
   without suggesting that the card itself is an interactive control. */
article.world-card,
article.world-card:hover,
article.show-card,
article.show-card:hover {
  cursor: default;
  transform: none;
  border-color: var(--line);
  transition: none;
}

article.world-card > img,
article.world-card:hover > img,
article.show-card .show-image img,
article.show-card:hover .show-image img {
  transform: none;
  transition: none;
}

/* The two heading spans and CTA share one grid. The heading remains an h2;
   only its box is removed so the button can sit beside its second line. */
.join-lead:has(.join-title-row) {
  display: block;
}

.join-lead > div:has(.join-title-row) {
  width: 100%;
}

.join-title-row {
  --join-button-width: 140px;
  --join-title-gap: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--join-button-width);
  align-items: end;
  column-gap: var(--join-title-gap);
  row-gap: 6px;
  width: 100%;
  max-width: 820px;
  min-width: 0;
  margin-top: 18px;
  container-type: inline-size;
}

.join-title-row .join-title {
  display: contents;
  margin: 0;
  padding: 0;
  font-family: var(--display-font);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  font-kerning: normal;
  letter-spacing: .012em;
}

.join-title-first,
.join-title-last {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
  letter-spacing: .012em;
  line-height: .94;
}

.join-title-first {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: clamp(28px, 5.4vw, 76px);
  color: #f5f7fd;
}

.join-title-last {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(30px, 8vw, 118px);
  color: #83aaff;
}

.join-title-row .join-universe-button {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 0;
  font-size: 16px;
  white-space: nowrap;
}

/* Ratios use the supplied MILKER glyph widths, with a small allowance for
   rounding. Each line fits its own track without changing the letterforms. */
@supports (font-size: 1cqw) {
  .join-title-first {
    font-size: min(76px, calc(100cqw / 8.92));
  }

  .join-title-last {
    font-size: calc((100cqw - var(--join-button-width) - var(--join-title-gap)) / 5.62);
  }
}

/* Twelve formats form complete rows at each breakpoint. */
.blue-formats .format-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blue-formats .format-card:last-child {
  grid-column: auto;
}

.blue-formats .format-card h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .blue-formats .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .site-header--minimal {
    gap: 18px;
  }

  .site-header--minimal nav.header-actions {
    gap: 12px;
  }

  .site-header--minimal nav.header-actions > .join-nav {
    min-width: 65px;
  }

  .site-header--minimal nav.header-actions > .instagram-nav {
    width: 40px;
    height: 42px;
  }

  .site-header--minimal nav.header-actions > .youtube-nav {
    width: 68px;
  }

  .site-header--minimal .youtube-nav > img {
    width: 88px;
  }
}

@media (max-width: 700px) {
  .network-intro .intro-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .site-header--minimal {
    gap: 12px;
  }

  .site-header--minimal nav.header-actions {
    gap: 10px;
  }

  .site-header--minimal nav.header-actions > .join-nav {
    min-width: 60px;
    height: 38px;
    font-size: 13px;
  }

  .site-header--minimal nav.header-actions > .instagram-nav {
    width: 38px;
    height: 38px;
  }

  .site-header--minimal nav.header-actions > .youtube-nav {
    width: 65px;
    height: 38px;
  }

  .site-header--minimal .youtube-nav > img {
    width: 82px;
  }

  .media-channels {
    gap: 10px;
    margin-top: 26px;
  }

  .join-title-row {
    --join-button-width: 100px;
    --join-title-gap: 12px;
    row-gap: 8px;
  }

  .join-title-row .join-universe-button {
    min-height: 42px;
    padding: 10px 8px;
    font-size: 14px;
  }

  .blue-formats .format-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .site-header--minimal {
    gap: 10px;
  }

  .site-header--minimal nav.header-actions {
    gap: 8px;
  }

  .site-header--minimal nav.header-actions > .join-nav {
    min-width: 52px;
  }

  .site-header--minimal nav.header-actions > .instagram-nav {
    width: 36px;
  }

  .site-header--minimal nav.header-actions > .youtube-nav {
    width: 56px;
  }

  .site-header--minimal .youtube-nav > img {
    width: 68px;
  }
}
