/* Remove the oversized desktop membership masthead while preserving the logo. */
@media (min-width: 781px) {
  .membership-header .c-header.c-header-country {
    min-height: 126px !important;
    padding: 10px 0 !important;
  }
}

/* Compact portrait header: keeps every primary control without obscuring content. */
@media (max-width: 600px) and (orientation: portrait) {
  .c-sticky-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
  }

  html:has(.c-sticky-header) {
    scroll-padding-top: var(--site-header-offset, 150px) !important;
  }

  .c-sticky-header .topline {
    padding-block: 6px !important;
  }

  .c-sticky-header .c-header.c-header-country {
    width: 90% !important;
    min-height: 0 !important;
    gap: 8px !important;
    padding: 8px 0 !important;
  }

  .c-sticky-header .c-header .c-brand-full.c-brand-approved {
    flex: 0 0 190px !important;
    width: 190px !important;
    max-width: 62vw !important;
  }

  .c-sticky-header .c-header-tools {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: end !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .c-sticky-header .c-language-inline,
  .c-sticky-header .c-header-discovery {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-top: 0 !important;
  }

  .c-sticky-header .c-language-inline select,
  .c-sticky-header .c-header-country .c-country-control select {
    min-height: 40px !important;
    padding-block: 7px !important;
    font-size: 14px !important;
  }

  .c-sticky-header .c-language-inline small,
  .c-sticky-header .c-language-inline [role="status"],
  .c-sticky-header .c-header-country .c-country-daily {
    display: none !important;
  }

  .c-sticky-header .c-subnav {
    width: 90% !important;
    min-height: 38px !important;
    gap: 12px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .c-sticky-header .c-subnav::-webkit-scrollbar {
    display: none;
  }

  .c-sticky-header .c-subnav nav {
    flex-wrap: nowrap !important;
    gap: 16px !important;
    font-size: 10px !important;
  }

  .c-sticky-header .c-subnav nav a {
    padding: 10px 0 !important;
  }

  .c-sticky-header .c-subnav .c-header-link {
    flex: 0 0 auto;
    font-size: 9px !important;
  }

  .membership-header .c-header-tools:has(.membership-country-slot:empty) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
