/* WB7R6 — Premium single-row laptop header correction.
   Laptop widths keep the same premium desktop language: brand + Nepali identity
   + full primary navigation in one row. Secondary location and header event CTA
   are removed before core identity/navigation are compressed. */

@media (min-width: 901px) and (max-width: 1160px) {
  .p5-header .p5-header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-height: 88px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    row-gap: 0 !important;
    column-gap: .68rem !important;
  }

  .p5-header .p5-brand {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    gap: .56rem !important;
  }

  .p5-header .p5-brand-logo-h3 {
    width: 174px !important;
    flex: 0 0 auto !important;
  }

  .p5-brand-companion {
    display: flex !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    padding-left: .58rem !important;
    gap: 0 !important;
  }

  .p5-brand-nepali {
    display: block !important;
    font-size: .90rem !important;
    font-weight: 680 !important;
    line-height: 1.28 !important;
    white-space: nowrap !important;
  }

  /* Location is useful, but not more important than premium identity/navigation. */
  .p5-brand-location {
    display: none !important;
  }

  .p5-nav-toggle {
    display: none !important;
  }

  .p5-nav {
    order: initial !important;
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: .68rem !important;
  }

  .p5-nav > a:not(.p5-btn) {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 46px !important;
    padding: .58rem .02rem !important;
    font-size: .95rem !important;
    font-weight: 760 !important;
    line-height: 1.14 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  /* Preserve the five true navigation destinations first. */
  .p5-nav > .p5-btn {
    display: none !important;
  }
}

/* Tight laptops: trim secondary spacing/size slightly, never create a second row. */
@media (min-width: 901px) and (max-width: 980px) {
  .p5-header .p5-header-inner {
    column-gap: .48rem !important;
  }

  .p5-header .p5-brand {
    gap: .44rem !important;
  }

  .p5-header .p5-brand-logo-h3 {
    width: 160px !important;
  }

  .p5-brand-companion {
    padding-left: .46rem !important;
  }

  .p5-brand-nepali {
    font-size: .84rem !important;
  }

  .p5-nav {
    gap: .48rem !important;
  }

  .p5-nav > a:not(.p5-btn) {
    font-size: .89rem !important;
  }
}
