/* A compact, continuous broadcast desk above the live fixture list. */
html body.home-companion {
  --desk-surface: #101a23;
  --desk-raised: #172633;
  --desk-control: #1e2d3b;
  --desk-line: rgba(255, 255, 255, .10);
  --desk-text: #f3f7f8;
  --desk-muted: #a9bdc5;
  --desk-accent: #0d7667;
  --desk-gold: #f5c542;
}

@media (min-width: 761px) {
  html body.home-companion .companion-header {
    grid-template-columns: 52px minmax(220px, 460px) minmax(285px, 1fr) auto !important;
    grid-template-areas: "brand search nav app" !important;
    gap: clamp(10px, 1.4vw, 20px) !important;
    align-items: center !important;
    width: calc(100% - 64px) !important;
    max-width: none !important;
    min-height: 64px !important;
    margin: 12px auto 0 !important;
    padding: 7px 12px !important;
    border: 1px solid var(--desk-line) !important;
    border-radius: 12px !important;
    color: var(--desk-text) !important;
    background: linear-gradient(105deg, #14242c, #101921 55%, #111b24) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .04) !important;
  }
  html body.home-companion .companion-header .brand {
    width: 50px !important;
    height: 50px !important;
    border-color: #315455 !important;
    border-radius: 10px !important;
    background: #0a2729 !important;
  }
  html body.home-companion .companion-header .brand-mark {
    width: 42px !important;
    height: 42px !important;
    border-radius: 7px !important;
  }
  html body.home-companion .companion-header .wtgo-dsearch {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 460px !important;
  }
  html body.home-companion .companion-header .ds-field {
    min-height: 43px !important;
    border: 1px solid #334a54 !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, .045) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035) !important;
  }
  html body.home-companion .companion-header .ds-field:hover { border-color: #5d8585 !important; }
  html body.home-companion .companion-header .ds-field:focus-within {
    border-color: #62d7bf !important;
    background: #1a3038 !important;
    box-shadow: 0 0 0 3px rgba(98, 215, 191, .13) !important;
  }
  html body.home-companion .companion-header .ds-field input { color: var(--desk-text) !important; font-weight: 650 !important; }
  html body.home-companion .companion-header .ds-field input::placeholder { color: #9ab1ba !important; opacity: 1; }
  html body.home-companion .companion-header .ds-ico { color: #70d7cc !important; }
  html body.home-companion .companion-header .ds-kbd {
    border-color: #455b62 !important;
    color: #a9c2c6 !important;
    background: #22343d !important;
  }
  html body.home-companion .companion-header .nav-links {
    justify-content: flex-end !important;
    gap: 2px !important;
    background: transparent !important;
  }
  html body.home-companion .companion-header .nav-links a,
  html body.home-companion .companion-header .nav-links a:not(.is-active):not([aria-current="page"]) {
    min-height: 42px !important;
    padding-inline: 11px !important;
    border-radius: 9px !important;
    color: #d0dce0 !important;
    font-size: .8rem !important;
  }
  html body.home-companion .companion-header .nav-links a:hover,
  html body.home-companion .companion-header .nav-links a:not(.is-active):not([aria-current="page"]):hover {
    border-color: #3a5860 !important;
    color: #fff !important;
    background: #21343d !important;
  }
  html body.home-companion .companion-header .nav-links a[aria-current="page"] {
    border-color: #288c7d !important;
    color: #fff !important;
    background: var(--desk-accent) !important;
    box-shadow: none !important;
  }
  html body.home-companion .header-app-menu > summary {
    min-height: 42px !important;
    padding-inline: 12px !important;
    border-color: #e5b632 !important;
    border-radius: 9px !important;
    color: #10171a !important;
    background: var(--desk-gold) !important;
    box-shadow: 0 3px 12px rgba(245, 197, 66, .12) !important;
  }
  html body.home-companion .header-app-menu > summary:hover,
  html body.home-companion .header-app-menu[open] > summary { background: #ffda6b !important; }
}

/* Two existing DOM rows visually form one control unit; all hooks remain unchanged. */
html body.home-companion #today .fixture-centre { border-color: var(--desk-line) !important; }
html body.home-companion #today .mobile-control-stack {
  background: var(--desk-surface) !important;
}
html body.home-companion #today .fixture-toolbar,
html body.home-companion #today .fixture-filterbar {
  border-color: var(--desk-line) !important;
  background: var(--desk-surface) !important;
  box-shadow: none !important;
}
html body.home-companion #today .fixture-toolbar::before { display: none !important; }
html body.home-companion #today .fixture-toolbar {
  min-height: 58px !important;
  padding: 7px 12px !important;
  border-bottom: 1px solid var(--desk-line) !important;
}
html body.home-companion #today .fixture-filterbar {
  min-height: 52px !important;
  gap: 5px !important;
  padding: 6px 12px !important;
  border-bottom: 0 !important;
}
html body.home-companion #today .date-mini-nav {
  gap: 3px !important;
  padding: 3px !important;
  border: 1px solid #344956 !important;
  border-radius: 10px !important;
  background: #16242f !important;
  box-shadow: none !important;
}
html body.home-companion #today .date-mini-nav button,
html body.home-companion #today .date-picker-control,
html body.home-companion #today .fixture-toolbar .date-mini-nav button[data-date-shift="-1"],
html body.home-companion #today .fixture-toolbar .date-mini-nav button[data-date-shift="1"] {
  height: 36px !important;
  min-width: 36px !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  color: #c4d5dc !important;
  background: var(--desk-control) !important;
  box-shadow: none !important;
}
html body.home-companion #today .date-mini-nav button:hover:not(.is-active),
html body.home-companion #today .date-picker-control:hover { background: #2b4150 !important; color: #fff !important; }
html body.home-companion #today .date-mini-nav button.is-active,
html body.home-companion #today .fixture-toolbar .date-mini-nav button[data-date-shift="0"] {
  border-color: #268e7a !important;
  color: #fff !important;
  background: var(--desk-accent) !important;
  box-shadow: none !important;
}
html body.home-companion #today .date-mini-nav button.is-active :is(strong,small),
html body.home-companion #today .fixture-toolbar .date-mini-nav button[data-date-shift="0"] :is(strong,small) { color: #fff !important; }
html body.home-companion #today .date-picker-control::before,
html body.home-companion #today .fixture-toolbar .date-picker-control::before { color: #b9ced5 !important; }
html body.home-companion #today .fixture-toolbar .premium-select > summary,
html body.home-companion #today .fixture-filterbar .premium-select > summary {
  min-height: 40px !important;
  border: 1px solid #344c58 !important;
  border-radius: 9px !important;
  color: var(--desk-text) !important;
  background: var(--desk-raised) !important;
  box-shadow: none !important;
}
html body.home-companion #today .fixture-toolbar .premium-select > summary strong,
html body.home-companion #today .fixture-filterbar .premium-select > summary strong { color: #f0f7f7 !important; }
html body.home-companion #today :is(.fixture-toolbar,.fixture-filterbar) .premium-select > summary :is(small,i) { color: #9fb9c0 !important; }
html body.home-companion #today .fixture-filterbar > button,
html body.home-companion #today .fixture-filterbar > button:not(.is-active) {
  min-height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid #344956 !important;
  border-radius: 8px !important;
  color: #d3e0e4 !important;
  background: var(--desk-control) !important;
  box-shadow: none !important;
}
html body.home-companion #today .fixture-filterbar > button:hover,
html body.home-companion #today .fixture-filterbar > button:not(.is-active):hover {
  border-color: #4e867d !important;
  color: #fff !important;
  background: #29433f !important;
}
html body.home-companion #today .fixture-filterbar > button.is-active {
  border-color: #268e7a !important;
  color: #fff !important;
  background: var(--desk-accent) !important;
}
html body.home-companion #today .fixture-filterbar > button[data-status-filter="live"]:not(.is-active)::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #f25b69;
  content: "";
  vertical-align: 2px;
}
html body.home-companion #today .all-sports-status,
html body.home-companion #today .fixture-centre .all-sports-status {
  min-height: 26px !important;
  margin: 0 !important;
  padding: 4px 14px !important;
  border: 0 !important;
  border-top: 1px solid var(--desk-line) !important;
  border-radius: 0 !important;
  color: #a9c1c7 !important;
  background: #101a23 !important;
  font-size: .72rem !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}
html body.home-companion #today :is(.fixture-toolbar,.fixture-filterbar) :is(button,summary,input):focus-visible {
  outline: 2px solid var(--desk-gold) !important;
  outline-offset: 2px !important;
}

/* A chapter marker, not a warning strip. */
html body.home-companion #today .sport-divider {
  min-height: 42px !important;
  margin: 12px 0 9px !important;
  padding: 6px 12px !important;
  border: 1px solid #2c404c !important;
  border-left: 3px solid var(--desk-gold) !important;
  border-radius: 9px !important;
  color: #f1f5f7 !important;
  background: #182633 !important;
  background-image: none !important;
  box-shadow: none !important;
}
html body.home-companion #today .sport-divider-label { gap: 9px !important; color: #f1f5f7 !important; }
html body.home-companion #today .sport-divider-label i {
  width: 29px !important;
  height: 29px !important;
  flex-basis: 29px !important;
  border-color: #52615a !important;
  border-radius: 7px !important;
  color: var(--desk-gold) !important;
  background: rgba(245, 197, 66, .08) !important;
}
html body.home-companion #today .sport-divider-label svg { color: var(--desk-gold) !important; }
html body.home-companion #today .sport-divider-label strong {
  color: #f1f5f7 !important;
  font-size: .78rem !important;
  letter-spacing: .08em !important;
}

@media (min-width: 761px) and (max-width: 980px) {
  html body.home-companion .companion-header {
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    grid-template-areas: "brand nav app" "search search search" !important;
    min-height: 64px !important;
    gap: 6px 10px !important;
  }
  html body.home-companion .companion-header .wtgo-dsearch { max-width: none !important; }
}
@media (max-width: 760px) {
  html body.home-companion #today .fixture-toolbar { padding: 6px 8px !important; }
  html body.home-companion #today .fixture-filterbar { padding: 6px 8px !important; }
  html body.home-companion #today .sport-divider { min-height: 42px !important; margin: 12px 0 9px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body.home-companion #today :is(.fixture-toolbar,.fixture-filterbar) * { animation: none !important; transition: none !important; }
}

/* Editorial finish: one edge per control and one baseline across the three columns. */
@media (min-width: 761px) {
  html body.home-companion .companion-header {
    grid-template-columns: 50px minmax(220px, 420px) minmax(285px, 1fr) auto !important;
  }
  html body.home-companion .companion-header .brand {
    width: 48px !important;
    height: 48px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body.home-companion .companion-header .brand::before { content: none !important; }
  html body.home-companion .companion-header .brand-mark {
    width: 46px !important;
    height: 46px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    filter: none !important;
  }
  html body.home-companion .companion-header .wtgo-dsearch {
    max-width: 420px !important;
    margin-right: auto !important;
  }
  html body.home-companion .companion-header .ds-field {
    height: 40px !important;
    min-height: 40px !important;
  }
  html body.home-companion .header-app-menu > summary {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(245, 197, 66, .5) !important;
    border-radius: 8px !important;
    color: #f5c542 !important;
    background: rgba(245, 197, 66, .11) !important;
    box-shadow: none !important;
  }
  html body.home-companion .header-app-menu > summary:hover,
  html body.home-companion .header-app-menu[open] > summary {
    border-color: #f5c542 !important;
    color: #ffe28a !important;
    background: rgba(245, 197, 66, .2) !important;
  }
  html body.home-companion .header-app-menu > summary span::before,
  html body.home-companion .header-app-menu > summary i {
    border-color: #f5c542 !important;
  }

  html body.home-companion #today .fixture-dashboard {
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body.home-companion #today .fixture-centre {
    border: 0 !important;
    border-radius: 10px !important;
  }
  html body.home-companion #today .fixture-toolbar {
    height: 56px !important;
    min-height: 56px !important;
    padding: 7px 12px !important;
  }
  html body.home-companion #today .date-mini-nav {
    height: 42px !important;
    min-height: 42px !important;
    gap: 4px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
  }
  html body.home-companion #today .date-mini-nav button,
  html body.home-companion #today .date-picker-control,
  html body.home-companion #today .fixture-toolbar .date-mini-nav button[data-date-shift="-1"],
  html body.home-companion #today .fixture-toolbar .date-mini-nav button[data-date-shift="1"],
  html body.home-companion #today .fixture-toolbar .date-mini-nav button[data-date-shift="0"] {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    border-radius: 8px !important;
  }
  html body.home-companion #today .fixture-timezone {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body.home-companion #today .timezone-menu,
  html body.home-companion #today .timezone-menu > summary {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    border-radius: 8px !important;
  }
  html body.home-companion #today .fixture-filterbar {
    height: 48px !important;
    min-height: 48px !important;
    padding: 6px 12px !important;
    align-items: center !important;
  }
  html body.home-companion #today .fixture-filterbar > button,
  html body.home-companion #today .fixture-filterbar > button:not(.is-active),
  html body.home-companion #today .competition-filter,
  html body.home-companion #today .competition-menu,
  html body.home-companion #today .competition-menu > summary {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 8px !important;
  }
  html body.home-companion #today .competition-filter,
  html body.home-companion #today .competition-menu {
    border: 0 !important;
    background: transparent !important;
  }
  html body.home-companion #today .competition-menu > summary {
    padding: 3px 9px !important;
    box-shadow: none !important;
  }
  html body.home-companion #today .fixture-filterbar .competition-menu > summary {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 8px !important;
  }
  html body.home-companion #today .competition-menu-icon {
    border: 0 !important;
    background: transparent !important;
  }
  html body.home-companion #today .all-sports-status,
  html body.home-companion #today .fixture-centre .all-sports-status {
    min-height: 24px !important;
    padding: 3px 12px !important;
    color: #9cabbc !important;
    font-size: .78rem !important;
    font-weight: 500 !important;
  }
  html body.home-companion #today .sport-divider { margin-top: 12px !important; }
}

@media (min-width: 761px) and (max-width: 980px) {
  html body.home-companion .companion-header {
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
  }
  html body.home-companion .companion-header .wtgo-dsearch { max-width: none !important; }
}

/* App CTA: broadcast yellow with a restrained glass sweep. */
@media (min-width: 761px) {
  html body.home-companion .companion-header .header-app-menu > summary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 17px !important;
    border: 1px solid #ffe787 !important;
    border-radius: 10px !important;
    color: #0b1517 !important;
    background: linear-gradient(125deg, #fff2a1 0%, #ffd947 34%, #ffc924 70%, #ffe783 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), inset 0 -1px 0 rgba(135, 80, 0, .18), 0 5px 18px rgba(255, 198, 30, .27) !important;
    text-shadow: none !important;
    animation: wtgo-app-glow 4.4s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  }
  html body.home-companion .companion-header .header-app-menu > summary::after {
    content: "";
    position: absolute;
    inset: -30% auto -30% -45%;
    width: 34%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .53), transparent);
    transform: skewX(-24deg) translateX(-180%);
    animation: wtgo-app-sheen 5.2s ease-in-out infinite;
  }
  html body.home-companion .companion-header .header-app-menu > summary :is(span, strong, i) {
    position: relative;
    z-index: 1;
    color: #0b1517 !important;
  }
  html body.home-companion .companion-header .header-app-menu > summary span {
    color: transparent !important;
  }
  html body.home-companion .companion-header .header-app-menu > summary span::before,
  html body.home-companion .companion-header .header-app-menu > summary i {
    border-color: #0b1517 !important;
  }
  html body.home-companion .companion-header .header-app-menu > summary:hover,
  html body.home-companion .companion-header .header-app-menu[open] > summary {
    color: #071114 !important;
    background: linear-gradient(125deg, #fff5b5, #ffe05b 40%, #ffd02b 100%) !important;
    border-color: #fff1b7 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 8px 24px rgba(255, 198, 30, .42) !important;
    transform: translateY(-2px);
  }
  html body.home-companion .companion-header .header-app-menu > summary:active {
    transform: translateY(0) scale(.98);
  }
}

@keyframes wtgo-app-glow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 204, 50, 0)); }
  50% { filter: brightness(1.045) drop-shadow(0 0 8px rgba(255, 204, 50, .28)); }
}
@keyframes wtgo-app-sheen {
  0%, 62% { transform: skewX(-24deg) translateX(-180%); }
  82%, 100% { transform: skewX(-24deg) translateX(620%); }
}

@media (prefers-reduced-motion: reduce) {
  html body.home-companion .companion-header .header-app-menu > summary,
  html body.home-companion .companion-header .header-app-menu > summary::after {
    animation: none !important;
    transition: none !important;
  }
}
