/* WTGO desktop header: one legible broadcast control bar. Mobile keeps its own navigation. */
@media (min-width: 761px) {
  html body.home-companion .companion-header {
    grid-template-columns: 68px minmax(200px, 1fr) auto auto !important;
    grid-template-areas: "brand search nav app" !important;
    gap: clamp(12px, 1.6vw, 24px) !important;
    align-items: center !important;
    width: min(1380px, calc(100% - 32px)) !important;
    min-height: 78px !important;
    padding: 9px 14px !important;
    border: 1px solid #31434a !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #14232b 0%, #0b151b 100%) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .27), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  }

  html body.home-companion .companion-header .brand {
    width: 62px;
    height: 62px;
    border: 1px solid rgba(94, 223, 204, .22);
    border-radius: 16px;
    background: #0a2226;
  }
  html body.home-companion .companion-header .brand-mark {
    width: 50px !important;
    height: 50px !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }

  html body.home-companion .companion-header .wtgo-dsearch {
    min-width: 0 !important;
    max-width: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body.home-companion .companion-header .ds-field {
    min-height: 48px !important;
    padding-inline: 15px 10px !important;
    border: 1px solid #354750 !important;
    border-radius: 12px !important;
    background: #18262e !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
  }
  html body.home-companion .companion-header .ds-field:hover { border-color: #5a777d !important; }
  html body.home-companion .companion-header .ds-field:focus-within {
    border-color: #59decb !important;
    background: #1b2c34 !important;
    box-shadow: 0 0 0 3px rgba(89, 222, 203, .14) !important;
  }
  html body.home-companion .companion-header .ds-field input {
    min-width: 0;
    color: #f6fcfa !important;
    font-size: .88rem !important;
    font-weight: 600 !important;
  }
  html body.home-companion .companion-header .ds-field input::placeholder { color: #b3c5cb !important; opacity: 1; }
  html body.home-companion .companion-header .ds-ico { color: #74d9ce !important; }
  html body.home-companion .companion-header .ds-kbd {
    color: #c1d4d8 !important;
    border-color: #49616a !important;
    background: #25353e !important;
  }

  html body.home-companion .companion-header .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    white-space: nowrap;
  }
  html body.home-companion .companion-header .nav-links a {
    min-height: 46px !important;
    padding: 0 15px !important;
    color: #d5e2e5 !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    background: transparent !important;
    font-size: .81rem !important;
    font-weight: 800 !important;
    letter-spacing: .005em;
    text-decoration: none !important;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
  }
  html body.home-companion .companion-header .nav-links a:hover {
    color: #fff !important;
    border-color: #35545b !important;
    background: #1d343b !important;
  }
  html body.home-companion .companion-header .nav-links a[aria-current="page"] {
    color: #062b2a !important;
    border-color: #87f3e1 !important;
    background: #65dfce !important;
    box-shadow: 0 5px 15px rgba(42, 207, 182, .17) !important;
  }
  html body.home-companion .companion-header .nav-links a[aria-current="page"]:hover { background: #91f1df !important; }

  html body.home-companion .header-app-menu { align-self: center; }
  html body.home-companion .header-app-menu > summary {
    min-height: 46px;
    padding: 0 16px;
    gap: 10px;
    color: #17220e;
    border-color: #ffe997;
    border-radius: 11px;
    background: #ffdc69;
    box-shadow: 0 6px 17px rgba(245, 194, 63, .15);
    font-size: .82rem;
    font-weight: 900;
    white-space: nowrap;
  }
  html body.home-companion .header-app-menu > summary:hover,
  html body.home-companion .header-app-menu[open] > summary { background: #ffea98; border-color: #fff2b0; }
  html body.home-companion .header-app-menu > summary span {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    color: transparent;
    font-size: 0;
  }
  html body.home-companion .header-app-menu > summary span::before {
    content: "";
    width: 9px;
    height: 15px;
    border: 2px solid #1b2925;
    border-radius: 3px;
  }
  html body.home-companion .header-app-menu > summary i {
    display: block;
    width: 7px;
    height: 7px;
    margin: -4px 0 0 2px;
    border-right: 2px solid #1b2925;
    border-bottom: 2px solid #1b2925;
    color: transparent;
    font-size: 0;
    transform: rotate(45deg);
  }
  html body.home-companion .header-app-popover { border-color: #3c6467; background: #10232a; }
  html body.home-companion .companion-header :is(a, input, summary):focus-visible {
    outline: 2px solid #ffe071 !important;
    outline-offset: 3px !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  html body.home-companion .companion-header {
    grid-template-columns: 62px minmax(0, 1fr) auto !important;
    grid-template-areas: "brand nav app" "search search search" !important;
    gap: 7px 12px !important;
    padding: 9px 12px 12px !important;
  }
  html body.home-companion .companion-header .nav-links { justify-content: center; }
  html body.home-companion .companion-header .nav-links a { padding-inline: 10px !important; }
  html body.home-companion .companion-header .ds-field { min-height: 42px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html body.home-companion .companion-header :is(.ds-field, .nav-links a) { transition: none !important; }
}
