/*
 * Odds2Win — shared header.
 * Visual reference: existing Tennis category desktop header, 2026-11-26.
 * Edit this file for all routes. Keep legacy style.css release hash unchanged.
 */
#o2w-site-topbar, #o2w-site-brand, #o2w-site-nav {
  --o2w-green: #2e9e41;
  --o2w-green-dark: #23803a;
}
#o2w-site-topbar, #o2w-site-nav { --bs-dark-rgb: 33,37,41; }
#o2w-site-topbar > .container.small { font-size: .875em; line-height: 1.5; }
#o2w-site-topbar .text-white-50 { color: rgba(255,255,255,.5) !important; }
#o2w-site-brand { background: #2e9e41 !important; }
#o2w-site-brand > .container > a:first-child {
  min-width: 0;
  touch-action: manipulation;
}
#o2w-site-brand > .container > a:first-child img { pointer-events: none; }
#o2w-site-nav .navbar-nav .nav-link {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}
@media (min-width: 992px) {
  #o2w-site-brand > .container {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px !important;
  }
  #o2w-site-brand > .container > a:first-child { flex: 0 0 auto; }
  #o2w-site-brand .o2w-quick-navigation {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
  }
  #o2w-site-brand .o2w-home-hubs-primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px !important;
  }
}
#o2w-site-brand .o2w-home-hubs-primary > a.btn,
#o2w-site-brand .o2w-home-hubs-more > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 750;
  text-decoration: none;
}
#o2w-site-brand .o2w-home-hubs-primary > a.btn {
  --bs-btn-bg: #f8f9fa;
  --bs-btn-border-color: #f8f9fa;
  --bs-btn-color: #000;
  --bs-btn-hover-bg: #d3d4d5;
  --bs-btn-hover-border-color: #c6c7c8;
  --bs-btn-hover-color: #000;
  --bs-btn-active-bg: #c6c7c8;
  --bs-btn-active-border-color: #babbbc;
  --bs-btn-active-color: #000;
  color: #000;
  box-shadow: none;
}
#o2w-site-brand .o2w-home-hubs-primary > .badge {
  padding: 8px 11px;
  font-size: 12.5px;
  line-height: 1.2;
}
#o2w-site-brand .o2w-home-hubs-more {
  position: relative;
  z-index: 30;
  color: #153b26;
}
#o2w-site-brand .o2w-home-hubs-more > summary {
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  background: #fff;
  color: #16462c;
  border: 1px solid #cde3d0;
  border-radius: 999px;
}
#o2w-site-brand .o2w-home-hubs-more > summary::-webkit-details-marker { display: none; }
#o2w-site-brand .o2w-home-hubs-more > summary::after {
  content: "\2304";
  margin-left: 8px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
#o2w-site-brand .o2w-home-hubs-more[open] > summary::after {
  display: inline-block;
  transform: rotate(180deg);
}
#o2w-site-brand .o2w-home-hubs-more > summary:hover,
#o2w-site-brand .o2w-home-hubs-more[open] > summary {
  background: #eff6ef;
  border-color: #91bb9c;
}
#o2w-site-brand .o2w-home-hubs-more > summary:focus-visible,
#o2w-site-brand .o2w-home-menu-launch:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
#o2w-site-brand:has(.o2w-home-hubs-more[open]) { position: relative; z-index: 1040; }
#o2w-site-brand .o2w-home-hubs-more-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 31;
  width: 360px;
  max-width: min(360px,94vw);
  padding: 16px;
  background: #fff;
  color: #1b3c29;
  border: 1px solid #d4e5d7;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(9,33,16,.2);
}
#o2w-site-brand .o2w-home-hubs-more:not([open]) > .o2w-home-hubs-more-panel { display: none !important; }
#o2w-site-brand .o2w-home-hubs-more[open] > .o2w-home-hubs-more-panel { display: block; }
#o2w-site-brand .o2w-home-hubs-more-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin: 0;
}
#o2w-site-brand .o2w-home-hubs-more-grid a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  background: #f4faf5;
  color: #1d5130;
  border: 1px solid #e1ece3;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
#o2w-site-brand .o2w-home-hubs-more-grid a:hover,
#o2w-site-brand .o2w-home-hubs-more-grid a:focus-visible {
  background: #1a7339;
  color: #fff;
  border-color: #1a7339;
}

/* One mobile launcher and one Bootstrap offcanvas, on every page. */
@media (max-width: 991.98px) {
  #o2w-site-topbar { display: none !important; }
  #o2w-site-brand { padding: 0 !important; }
  #o2w-site-brand > .container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding-block: 8px;
    gap: 10px !important;
  }
  #o2w-site-brand > .container > a:first-child {
    display: flex !important;
    align-items: center;
    margin: 0;
    position: relative;
    z-index: 5;
  }
  #o2w-site-brand > .container > a:first-child > img {
    display: block;
    width: auto;
    height: 44px;
    max-width: min(205px,54vw);
  }
  #o2w-site-brand > .container > a:first-child > div { display: none !important; }
  #o2w-site-brand .o2w-home-menu-launch {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #b7e1bd;
    border-radius: 9px;
    color: #fff;
    background: #23803a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    touch-action: manipulation;
    cursor: pointer;
  }
  #o2w-site-brand .o2w-home-menu-launch .bi { font-size: 18px; }
  #o2w-site-brand .o2w-quick-navigation {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
  }
  #o2w-site-brand .o2w-home-hubs-primary { justify-content: flex-start; gap: 6px !important; }
  #o2w-site-brand .o2w-home-hubs-primary > a.btn,
  #o2w-site-brand .o2w-home-hubs-more > summary {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  #o2w-site-brand .o2w-home-hubs-more { position: static; }
  #o2w-site-brand .o2w-home-hubs-more-panel {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 8px;
  }
  #o2w-site-brand .o2w-home-hubs-more-grid a { min-height: 44px; overflow-wrap: anywhere; }
  #o2w-site-nav {
    position: static !important;
    z-index: auto;
    min-height: 0;
    height: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  #o2w-site-nav > .container { min-height: 0; height: 0; padding: 0 !important; }
  #o2w-site-nav > .container > .navbar-brand,
  #o2w-site-nav > .container > .navbar-toggler { display: none !important; }
  #o2w-site-nav:has(#mainNav.show),
  #o2w-site-nav:has(#mainNav.showing),
  #o2w-site-nav:has(#mainNav.hiding) { position: relative !important; z-index: 1080 !important; }
  #o2w-site-nav #mainNav {
    z-index: 1085 !important;
    height: 100dvh;
    max-width: min(390px,92vw);
    background: #212529;
  }
  body:has(#mainNav.show, #mainNav.showing, #mainNav.hiding) .offcanvas-backdrop { z-index: 1060 !important; }
  #o2w-site-nav .offcanvas-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #212529;
    min-height: 64px;
  }
  #o2w-site-nav .btn-close { min-width: 44px; min-height: 44px; touch-action: manipulation; }
  #o2w-site-nav .offcanvas-body {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(32px,env(safe-area-inset-bottom));
  }
  #o2w-site-nav .navbar-nav { width: 100%; flex-direction: column; gap: 0 !important; }
  #o2w-site-nav .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 11px 12px;
    font-size: 1rem;
    color: #f1f5f2;
    touch-action: manipulation;
  }
  #o2w-site-nav .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    width: 100%;
    max-width: 100%;
    margin: 4px 0 10px;
    padding: 5px;
    background: #fff;
    border-radius: 9px;
    border: 1px solid #d8e7dc;
    box-shadow: none !important;
  }
  #o2w-site-nav .dropdown-menu:not(.show) { display: none !important; }
  #o2w-site-nav .dropdown-menu.show { display: block !important; }
  #o2w-site-nav .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    color: #212529;
    font-size: 14px;
    font-weight: 400;
  }
}
@media (max-width: 359.98px) {
  #o2w-site-brand > .container > a:first-child > img { height: 40px; max-width: 151px; }
  #o2w-site-brand .o2w-home-menu-launch { padding: 8px; gap: 5px; font-size: 12px; }
}

