/* Tour bar: replaces the tour-page side menu (2026-11, approved design "Tour Bar Branded Review" 11-09).
   Same file on AGT and Senior; site colors switch on .tb--senior.
   Markup: /new/inc/tour_side_menu_top.html + tour_side_menu_top_test.html. Behaviour: /new/Site/javascript/tourbar.js */

.tb { --ink: #171A1B; --bar: #30383B; --accent: #AEB7BD; --accent-ink: #171A1B; --icon: #D42027; --stripe: #D42027;
      --live-bg: #24473F; --live-border: #AEB7BD; --hover: #F3F1EB; --line: rgba(255,255,255,.14);
      background: var(--bar); color: #fff; font-family: 'Open Sans', Arial, sans-serif; position: relative; z-index: 50;
      border-bottom: 3px solid var(--stripe); text-align: left; }
.tb--senior { --accent: #B4914F; --icon: #B4914F; --stripe: #B4914F; --live-border: #B4914F; }

/* Hide the bar until tourbar.js has placed it (avoids a flash inside the old column) */
.tb[hidden] { display: none !important; }

/* Old side column goes away once the bar is placed; content uses the full width */
body.tb-on .template-main .col-md-3.ml-auto { display: none !important; }
body.tb-on .template-main .col-md-9.ml-auto { flex: 0 0 100% !important; max-width: 100% !important; margin-left: 0 !important; }

.tb *, .tb *::before, .tb *::after { box-sizing: border-box; }
.tb a, .tb a:hover, .tb a:focus { color: #fff; text-decoration: none; }
.tb button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; }
.tb :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tb__in { max-width: 1140px; margin: 0 auto; padding: 0 15px; display: flex; align-items: stretch; gap: 4px; min-height: 56px; }
.tb__name { display: flex; flex-direction: column; justify-content: center; padding-right: 22px; margin-right: 8px; border-right: 1px solid var(--line); white-space: nowrap; order: 1; }
.tb__name small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #AEB7BD; line-height: 1.2; }
.tb__name b { font-size: 19px; line-height: 1.25; font-weight: 700; }
.tb__links { display: flex; align-items: stretch; gap: 2px; flex: 1; order: 2; margin: 0; padding: 0; list-style: none; }
.tb__links > li { position: relative; display: flex; margin: 0; }
.tb__item { display: flex; align-items: center; padding: 0 14px; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.tb__item:hover, .tb__links > li.open > .tb__item { background: rgba(255,255,255,.08); }
.tb__item.active { border-bottom-color: var(--accent); font-weight: 600; }
.tb__item i.fa-caret-down { margin-left: 7px; font-size: 13px; opacity: .8; }
.tb__menu { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; color: var(--ink); border-radius: 0 0 6px 6px;
            box-shadow: 0 10px 24px rgba(0,0,0,.25); padding: 6px 0; margin-top: 3px; z-index: 60; }
.tb__links > li.open > .tb__menu { display: block; }
.tb .tb__menu a, .tb .tb__menu a:hover { display: flex; align-items: center; gap: 12px; color: var(--ink); padding: 10px 18px; font-size: 15px; line-height: 1.3; }
.tb__menu a i { width: 18px; text-align: center; color: var(--icon); }
.tb__menu a:hover, .tb__menu a:focus { background: var(--hover); }
.tb__menu a.cur { font-weight: 700; }
.tb__menu hr { margin: 6px 0; border: 0; border-top: 1px solid #e3e3e6; }
.tb__menu .sub { display: block; font-size: 12px; color: #6b6b73; margin-top: 1px; }
.tb__right { display: flex; align-items: center; gap: 10px; margin-left: auto; order: 3; }
.tb .tb__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 4px; font-size: 14px; font-weight: 600; white-space: nowrap; line-height: 1.4; }
.tb .tb__btn--live { background: var(--live-bg); border: 1px solid var(--live-border); }
.tb a.tb__btn--join, .tb a.tb__btn--join:hover { background: var(--accent); color: var(--accent-ink); }
.tb__chips, .tb__sheet { display: none; }

/* tablet */
@media (max-width: 991px) {
  .tb__in { flex-wrap: wrap; padding: 0 12px; gap: 0; }
  .tb__name { border-right: 0; padding: 10px 0 6px; flex: 1; }
  .tb__right { order: 2; }
  .tb__links { order: 3; flex: 0 0 100%; border-top: 1px solid var(--line); min-height: 46px; }
  .tb__item { padding: 0 12px; font-size: 14px; }
}

/* phone: Livescore stays in the bar; three chips + More; Join moves into the More sheet */
@media (max-width: 767px) {
  .tb__in { padding: 0 12px; min-height: 0; }
  .tb__name { padding: 10px 0; min-width: 0; }
  .tb__name b { font-size: 17px; white-space: normal; }
  .tb__links, .tb__right .tb__btn--join { display: none; }
  .tb .tb__right .tb__btn--live { padding: 9px 14px; font-size: 15px; }
  .tb__chips { display: flex; order: 3; flex: 0 0 100%; gap: 8px; padding: 0 0 12px; align-items: center; }
  .tb .tb__chips a, .tb__chips button { flex: 0 0 auto; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); font-size: 14px; line-height: 1.4; white-space: nowrap; }
  .tb .tb__chips a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
  .tb .tb__chips .tb__more { margin-left: auto; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.7); font-weight: 600; }
  .tb .tb__chips .tb__more[aria-expanded="true"] { background: #fff; color: var(--ink); border-color: #fff; }
  .tb__sheet.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ink); box-shadow: 0 14px 30px rgba(0,0,0,.35); padding: 6px 0 10px; z-index: 60; }
  .tb__sheethead { padding: 8px 18px 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
  .tb__sheet h6 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6b6b73; margin: 12px 18px 4px; font-weight: 700; }
  .tb .tb__sheet a, .tb .tb__sheet a:hover { display: flex; align-items: center; gap: 14px; color: var(--ink); padding: 11px 18px; font-size: 16px; }
  .tb__sheet a i { width: 20px; text-align: center; color: var(--icon); }
  .tb__sheet a.cur { font-weight: 700; }
  .tb__sheet .row2 { display: flex; gap: 10px; padding: 10px 18px 2px; }
  .tb .tb__sheet .row2 a { flex: 1; justify-content: center; border-radius: 4px; padding: 10px; font-weight: 600; font-size: 15px; background: var(--accent); color: var(--accent-ink); }
  body.tb-dim .template-main, body.tb-dim footer { filter: brightness(.55); }
}

@media print { .tb { display: none !important; } }
