/* UBC pilot desktop header — batch 198K.
   Scope: index.html / index_u.html / index_e.html only via .pilot-desktop-header.
   Mobile/compact <=900px keeps the established 192K header/menu geometry. */

.pilot-logo-stack { display: block; width: 100%; }
.pilot-logo-wordmark { display: none; }

@media (min-width: 901px) {
  .pilot-desktop-header .header-visual-inner {
    position: relative;
    padding-top: 20px;
    box-sizing: border-box;
  }

  /* Utility/language line shares the top edge of the logo instead of
     reserving a separate row above the brand block. */
  .pilot-desktop-header .header-visual-inner > .utility-row {
    position: absolute;
    top: 20px;
    right: 0;
    z-index: 6;
    width: auto;
    min-height: 18px;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-end;
    line-height: 18px;
    white-space: nowrap;
  }

  .pilot-desktop-header .header-brand-row {
    grid-template-columns: 222px minmax(0, 1fr);
    gap: 18px;
    min-height: 93px;
    align-items: start;
    overflow: visible;
  }

  .pilot-desktop-header .logo-link {
    display: block;
    width: 222px;
    min-width: 222px;
    margin: 0;
    align-self: start;
    justify-self: start;
  }

  .pilot-desktop-header .pilot-logo-stack {
    display: flex;
    width: 222px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .pilot-desktop-header .header-brand-row .logo-main {
    display: block;
    width: 222px;
    height: 64px;
    max-width: 222px;
    object-fit: contain;
    object-position: left top;
  }

  .pilot-desktop-header .pilot-logo-wordmark {
    display: block;
    width: 222px;
    height: auto;
    max-height: 19px;
    margin: 0;
    object-fit: contain;
    object-position: left top;
  }

  /* 1100x100 legacy contacts artwork is displayed at the same 11:1 ratio.
     704px wide = 64px high on a standard desktop; it scales down only when
     the available right column becomes narrower. */
  .pilot-desktop-header .header-contacts {
    width: min(704px, 100%);
    min-width: 0;
    aspect-ratio: 11 / 1;
    height: auto;
    margin-top: 20px;
    align-self: start;
    justify-self: end;
    overflow: visible;
  }

  .pilot-desktop-header .header-contacts .contacts-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: right center;
  }

  /* Preserve the supplied 1400x200 image ratio. This avoids cropping or
     horizontal stretching and yields the intended ~200px visual height on
     a standard scaled laptop display. */
  .pilot-desktop-header .header-visual-inner .hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 7 / 1;
    object-fit: contain;
    object-position: center;
  }
}

/* Batch 204K: desktop logo stack uses real 5px spacing after the UBC mark
   and 5px after the language wordmark. */
@media (min-width: 901px) {
  .pilot-desktop-header .pilot-logo-wordmark {
    position: relative;
    z-index: 3;
    margin: 0 0 5px;
    transform: none;
  }
}

/* G9C3 master refinement 2026-09-07: header messenger icons -10%; clickable anchors unchanged. */
.pilot-desktop-header .header-contact-actions .contact-icon-list img { width:34.2px !important; height:34.2px !important; }
