/* ==========================================================================
   BizzPress — header layer (assets/css/bp-header.css)
   Top strip · sticky black header (band + nav + dropdowns + search panel) · quick-links strip · leaderboard
   ad row · mobile drawer · bottom nav · footer · shared sidebar widgets (includes/partials/sidebar.php).
   Tokens and shared components come from bizzpress.css (design-spec §1–§2); markup in header.php/footer.php.
   Only white and white-alpha values are written literally (text/borders on the black band and footer).
   ========================================================================== */

/* ---- 0. Legacy neutralisers (style.css rules that would otherwise leak into the new markup) ---- */
body { overflow-x: clip; padding-bottom: 0; }      /* overflow-x:hidden made <body> a scroll container, which stops position:sticky */
html.bt-noscroll { overflow: hidden; }             /* page scroll lock while the drawer is open (html, not body: html has overflow-x:clip) */
.scroll-progress { width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--bt-cyan); box-shadow: none; }
.bt-topbar a:focus-visible, .bt-quick a:focus-visible, .bt-search :focus-visible, .bt-drawer :focus-visible,
.bt-bottomnav :focus-visible, .bt-sidebar :focus-visible { outline: 2px solid var(--bt-cyan); outline-offset: 2px; border-radius: 2px; }
.bt-header :focus-visible, .bt-footer :focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
.bt-header .bt-search :focus-visible, .bt-header .bt-drop :focus-visible { outline-color: var(--bt-cyan); }
.bt-header svg, .bt-topbar svg, .bt-quick svg, .bt-drawer svg, .bt-bottomnav svg, .bt-footer svg { display: inline-block; }

/* ---- 1. Top strip ------------------------------------------------------------------------- */
.bt-topbar { background: var(--bt-surface); border-bottom: 1px solid var(--bt-line); color: var(--bt-grey); font-size: 11px; line-height: 1; }
.bt-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; }
.bt-topbar__left { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.bt-topbar__sep { color: var(--bt-line); }
.bt-topbar__brand { color: var(--bt-ink); font-weight: 700; }
.bt-topbar__tag { color: var(--bt-grey); }
.bt-topbar__dot { margin-right: 6px; }
.bt-topbar__login { flex-shrink: 0; color: var(--bt-grey); font-weight: 500; white-space: nowrap; }
.bt-topbar__login:hover { color: var(--bt-link); }

/* ---- 2. Sticky black header: band ----------------------------------------------------------- */
.bt-header { position: sticky; top: 0; z-index: 999; background: var(--bt-black); color: #fff; transition: box-shadow .2s; }
.bt-header.is-stuck { box-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.bt-header__row { position: relative; display: flex; align-items: center; justify-content: space-between; height: 84px; }
.bt-ham { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.bt-ham svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bt-ham:hover { color: var(--bt-cyan); }
.bt-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; line-height: 0; }
.bt-logo img { display: block; height: 44px; width: auto; max-width: none; }
.bt-header__right { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: -8px; }
.bt-subscribe { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; color: #fff; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; }
.bt-subscribe:hover { color: var(--bt-cyan); }
.bt-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.bt-iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-iconbtn:hover, .bt-iconbtn[aria-expanded="true"] { color: var(--bt-cyan); }

/* ---- 3. Nav row + dropdowns ---------------------------------------------------------------- */
.bt-nav { height: 29px; }
.bt-menu { display: flex; align-items: stretch; height: 29px; margin: 0; padding: 0; list-style: none; }
.bt-menu > li { position: relative; flex: 0 0 auto; list-style: none; }
.bt-menu > li > a { position: relative; display: flex; align-items: center; gap: 3px; height: 29px; padding: 0 14px 0 0; color: #fff; font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.bt-menu > li > a::after { content: ""; position: absolute; left: 0; right: 14px; bottom: 0; height: 3px; background: var(--bt-cyan); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .15s; }
.bt-menu > li > a:hover, .bt-menu > li > a.active, .bt-menu > li.open > a, .bt-menu > li.has-active > a { color: #fff; }
.bt-menu > li > a:hover::after, .bt-menu > li > a.active::after, .bt-menu > li.open > a::after, .bt-menu > li.has-active > a::after, .bt-menu > li:focus-within > a::after { transform: none; }
.bt-menu .cr { width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.bt-menu > li.open > a .cr, .bt-menu > li:hover > a .cr { transform: rotate(180deg); }
.bt-drop { position: absolute; top: 100%; left: 0; z-index: 5; display: none; min-width: 210px; margin: 0; padding: 6px 0; list-style: none; background: var(--bt-surface); border-radius: 4px; box-shadow: 0 0 10px rgba(0, 0, 0, .2); text-align: left; }
.bt-menu > li:hover > .bt-drop, .bt-menu > li:focus-within > .bt-drop, .bt-menu > li.open > .bt-drop { display: block; }
.bt-drop > li { position: static; display: block; list-style: none; }
.bt-drop a { display: block; padding: 10px 16px; color: var(--bt-ink); font-size: 15px; font-weight: 500; line-height: 1.3; text-transform: none; white-space: nowrap; }
.bt-drop a:hover, .bt-drop a.active { background: var(--bt-cyan-soft); color: var(--bt-link); }
.bt-menu > li:last-child > .bt-drop, .bt-more-item > .bt-drop { left: auto; right: 0; }
.bt-more-item[hidden] { display: none; }
/* items that fitMenu moved into MORE keep their own sub-lists, shown inline and indented */
.bt-more-item .bt-drop .bt-drop { position: static; display: block; min-width: 0; padding: 0 0 4px; border-radius: 0; box-shadow: none; }
.bt-more-item .bt-drop .bt-drop a { padding: 7px 16px 7px 30px; font-size: 14px; }
.bt-more-item .bt-drop .cr { display: none; }

/* ---- 4. Search panel (inside the sticky header; .open shows it) ---------------------------- */
.bt-search { position: absolute; left: 0; right: 0; top: 100%; z-index: 4; background: var(--bt-surface); color: var(--bt-ink); border-bottom: 1px solid var(--bt-line); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility 0s linear .18s; }
.bt-search.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.bt-search__form { display: flex; align-items: center; gap: 8px; height: 64px; }
.bt-search__input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--bt-line); border-radius: 4px; background: var(--bt-bg); color: var(--bt-ink); font: 400 16px/1.3 var(--bt-font); -webkit-appearance: none; appearance: none; }
.bt-search__input::placeholder { color: var(--bt-muted); }
.bt-search__input:focus { outline: 2px solid var(--bt-cyan); outline-offset: 0; border-color: var(--bt-cyan); }
.bt-search__go { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: var(--bt-cyan); color: #fff; cursor: pointer; }
.bt-search__go:hover { background: var(--bt-link); }
.bt-search__close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--bt-muted); cursor: pointer; }
.bt-search__close:hover { color: var(--bt-ink); background: var(--bt-bg); }
.bt-search__go svg, .bt-search__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 5. Quick-links strip, ticker hover, leaderboard row ---------------------------------- */
.bt-quick { background: var(--bt-surface); border-bottom: 1px solid var(--bt-line); }
.bt-quick__in { display: flex; align-items: center; gap: 22px; height: 36px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.bt-quick__in::-webkit-scrollbar { display: none; }
.bt-quick__link { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--bt-ink); font-size: 13px; font-weight: 500; line-height: 1; }
.bt-quick__link:hover { color: var(--bt-link); }
.bt-quick__flame { width: 15px; height: 15px; fill: none; stroke: var(--bt-cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-ticker:hover * { animation-play-state: paused; }
.bt-ad-row { margin: 12px auto; }
.bt-ad-row .bt-ad { min-height: 0; }

/* ---- 6. Mobile header (≤919px) ------------------------------------------------------------ */
@media (max-width: 919px) {
  .bt-topbar__in { justify-content: flex-start; gap: 12px; overflow-x: auto; scrollbar-width: none; }
  .bt-topbar__in::-webkit-scrollbar { display: none; }
  .bt-topbar__left { flex: 0 0 auto; }
  .bt-topbar__login { margin-left: auto; padding-left: 12px; }
  .bt-header__row { height: 56px; }
  .bt-logo img { height: 30px; }
  .bt-ham { margin-left: -10px; }
  .bt-header__right { margin-right: -10px; }
  .bt-subscribe, .bt-iconbtn--user { display: none; }
  .bt-nav, .bt-quick { display: none; }
  .bt-search__form { height: 56px; gap: 6px; }
  .bt-search__input { height: 40px; }
  .bt-search__go { width: 40px; height: 40px; }
  .bt-ad-row { margin: 10px auto; }
}

/* ---- 7. Drawer (300px, slides from the left) + overlay ------------------------------------ */
.bt-overlay { position: fixed; inset: 0; z-index: 1290; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
.bt-overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.bt-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1300; display: flex; flex-direction: column; width: 300px; max-width: 88vw; background: var(--bt-surface); color: var(--bt-ink); box-shadow: 0 0 30px rgba(0, 0, 0, .3); transform: translateX(-100%); visibility: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; outline: 0; transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .28s; }
.bt-drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.bt-drawer__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 56px; padding: 0 8px 0 16px; background: var(--bt-black); }
.bt-drawer__logo { display: block; line-height: 0; }
.bt-drawer__logo img { display: block; height: 28px; width: auto; }
.bt-drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.bt-drawer__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bt-drawer__close:hover { color: var(--bt-cyan); }
.bt-drawer__head :focus-visible { outline-color: #fff; }
.bt-drawer__nav { flex: 1 0 auto; }
.bt-drawer__nav ul { margin: 0; padding: 0; list-style: none; }
.bt-drawer__nav > ul > li { border-bottom: 1px solid var(--bt-line); }
.bt-drawer__nav a { display: block; padding: 14px 18px; color: var(--bt-ink); font-size: 16px; font-weight: 500; line-height: 1.3; }
.bt-drawer__nav a:hover, .bt-drawer__nav a.active { color: var(--bt-link); background: var(--bt-cyan-soft); }
.bt-drawer__sub { padding: 0 0 6px; }
.bt-drawer__sub a { padding: 8px 18px 8px 34px; font-size: 14px; color: var(--bt-muted); }
.bt-drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 16px 18px 24px; border-top: 1px solid var(--bt-line); }
.bt-drawer__login { display: inline-flex; align-items: center; gap: 6px; color: var(--bt-ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.bt-drawer__login svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-drawer__login:hover { color: var(--bt-link); }

/* ---- 8. Bottom nav (mobile only) ---------------------------------------------------------- */
.bt-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: none; align-items: stretch; height: calc(56px + env(safe-area-inset-bottom, 0px)); padding: 0 0 env(safe-area-inset-bottom, 0px); background: var(--bt-surface); border-top: 1px solid var(--bt-line); box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); }
.bt-bottomnav a, .bt-bottomnav button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 56px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--bt-muted); font: 500 11px/1 var(--bt-font); cursor: pointer; }
.bt-bottomnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-bottomnav .active, .bt-bottomnav a:hover, .bt-bottomnav button:hover, .bt-bottomnav [aria-expanded="true"] { color: var(--bt-link); }
.bt-bottomnav span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 919px) { .bt-bottomnav { display: flex; } }

/* ---- 9. Footer ---------------------------------------------------------------------------- */
.bt-footer { margin-top: 28px; color: #fff; }
.bt-watermark { display: flex; align-items: center; gap: 28px; height: 44px; padding: 0 16px; overflow: hidden; background: var(--bt-bg); color: var(--bt-line); font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; user-select: none; }
.bt-watermark span { flex-shrink: 0; }
.bt-footer__main { background: var(--bt-footer); padding: 36px 0; }
.bt-footer__grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.bt-footer__logo { display: inline-block; line-height: 0; }
.bt-footer__logo img { display: block; width: 150px; height: auto; }
.bt-footer__follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; color: #fff; font-size: 12px; }
.bt-footer .dyn-follow { gap: 8px; }
.bt-footer .dyn-follow .fl { width: 32px; height: 32px; background: transparent; border: 1px solid rgba(255, 255, 255, .7); }
.bt-footer .dyn-follow .fl:hover { background: var(--bt-cyan); border-color: var(--bt-cyan); transform: none; }
.bt-footer .dyn-follow .fl svg { width: 15px; height: 15px; }
.bt-fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bt-fcols--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bt-fcol h4 { margin: 0 0 8px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; }
.bt-fcol ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.bt-fcol li { position: relative; padding-left: 14px; color: #fff; font-size: 14px; line-height: 1.5; }
.bt-fcol li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--bt-cyan); }
.bt-fcol a { color: #fff; }
.bt-fcol a:hover { color: var(--bt-cyan); text-decoration: underline; }
.bt-fcol--contact ul { flex-direction: column; gap: 8px; }
.bt-fcol--contact li { display: flex; gap: 8px; padding-left: 0; overflow-wrap: anywhere; }
.bt-fcol--contact li::before { display: none; }
.bt-fcol--contact svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--bt-cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-footer__bottom { background: var(--bt-footer-2); border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0 18px; }
.bt-footer__links { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 10px; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; }
.bt-footer__links li { display: flex; align-items: center; }
.bt-footer__links li + li::before { content: "|"; margin: 0 10px; color: rgba(255, 255, 255, .3); }
.bt-footer__links a { color: #fff; }
.bt-footer__links a:hover { color: var(--bt-cyan); }
.bt-footer__copy, .bt-footer__legal { margin: 0; color: rgba(255, 255, 255, .6); font-size: 12px; line-height: 1.6; }
.bt-footer__legal { margin-top: 4px; }
.bt-footer__copy a { color: #fff; }
.bt-footer__copy a:hover { color: var(--bt-cyan); }
.bt-footer__dev { margin-left: 10px; }
@media (max-width: 1020px) {
  .bt-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bt-fcols, .bt-fcols--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 919px) { .bt-footer__bottom { padding-bottom: 72px; } }
@media (max-width: 600px) {
  .bt-fcols, .bt-fcols--5 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bt-footer__main { padding: 28px 0; }
  .bt-footer__dev { display: block; margin: 4px 0 0; }
}

/* ---- 10. Shared sidebar (includes/partials/sidebar.php) ----------------------------------- */
.bt-layout > .bt-sidebar { align-self: stretch; }   /* as tall as the main column, so the sticky last widget can travel */
.bt-sidebar .bt-ad { padding: 10px 0 14px; }
.bt-sb-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.bt-sb-video h3 { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.bt-sb-video h3 a:hover { color: var(--bt-link); }
.bt-sb-video .bt-play { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.bt-sb-video .bt-play svg { width: 14px; height: 14px; }
.bt-sidebar .bt-list .bt-cat { margin-bottom: 2px; }
@media (max-width: 1024px) { .bt-widget--sticky, .bt-sb-sticky-wrap { position: static; } }

/* ---- 11. Motion preferences ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bt-drawer, .bt-overlay, .bt-search, .bt-menu .cr, .bt-menu > li > a::after, .bt-header { transition: none; }
}
