/**
 * brief.pk — Desktop / wide shell layer (≥769px only)
 * ---------------------------------------------------------------
 * Load after /css/main.css and after app-shell-mobile-native.css.
 * Keeps hover-first affordances explicit and avoids fighting the mobile
 * sheet rules (which are scoped to max-width: 768px only).
 */

@media (max-width: 768px) {
  /* Mobile tears down the wrap; guard if a resize races before JS unwraps */
  .intel-chrome-wrap {
    display: contents;
  }
}

@media (min-width: 769px) {
  /* Bottom installable chrome must never flash on resize into desktop */
  .app-bottom-chrome,
  .app-bottom-nav {
    display: none !important;
  }

  body.gn-has-bottom-nav {
    padding-bottom: 0 !important;
  }

  /* ── Desktop navigation strip ──────────────────────────────────────────
     global-nav.js wraps header + strip in .intel-chrome-wrap (one sticky unit).
     --intel-header-h / --intel-chrome-h are measured at runtime (ResizeObserver)
     so two-row headers (769–980px) never overlap the strip. Pills in
     .brand-lockup are hidden if they ever render on this path.
  ── */

  .intel-chrome-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
  }

  body.has-degradation-banner .intel-chrome-wrap {
    top: var(--degradation-banner-h, 0);
  }

  .intel-chrome-wrap .intel-header {
    position: relative;
    top: auto;
    z-index: auto;
  }

  body.has-degradation-banner .intel-chrome-wrap .intel-header {
    top: auto;
  }

  #globalNavStrip {
    position: relative;
    z-index: 90;
    width: 100%;
    display: flex;
    align-items: stretch;
    padding: 0 20px;
    height: 40px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--panel-border);
    box-sizing: border-box;
  }

  [data-theme="dark"] #globalNavStrip {
    background: rgba(15, 23, 42, 0.97);
  }

  .gns-link {
    font-family: var(--ui-font, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted, #64748b);
    text-decoration: none;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
  }

  .gns-link:hover {
    color: var(--brand-red, #dc2626);
  }

  .gns-link:focus-visible {
    outline: 2px solid var(--brand-red, #dc2626);
    outline-offset: -2px;
    border-radius: 2px;
  }

  .gns-link--active {
    color: var(--brand-red, #dc2626);
    border-bottom-color: var(--brand-red, #dc2626);
    font-weight: 600;
  }

  [data-theme="dark"] .gns-link {
    color: #64748b;
  }

  [data-theme="dark"] .gns-link:hover {
    color: #f87171;
  }

  [data-theme="dark"] .gns-link--active {
    color: #f87171;
    border-bottom-color: #f87171;
  }

  /* Guard: hide old inline pills if they ever render on this path */
  .gdph-nav-links,
  .gdph-nav-sep {
    display: none !important;
  }
}
