/* The Baller Picks bar under the site header (includes/picks-bar.php,
   scripts/picks-bar.js). Colours are tokens (styles/tokens.css).

   Placement: in the flow, drawn one header-height lower (see picks-bar.php's
   header). The two `top` values are front.css's .header heights: change them
   together. Layers (front.css's scale): the sport bar is 95, the strip 96, the
   header 97 on a page with the strip (96 without), the menu and footer 99+. */
.header { z-index: 97; }
.tmb-picks-bar {
    position: relative;
    top: 70px;
    z-index: 96;
    background: #fff;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--tmb-gray-900);
    box-shadow: 0 2px 4px var(--tmb-black-10);
}
.tmb-picks-bar *, .tmb-picks-bar *::before, .tmb-picks-bar *::after { box-sizing: border-box; }

/* front.css paints every button grey with a bottom margin, and the blog theme
   gives them a border and padding: each button here states its own. */
.tmb-picks-bar button {
    margin: 0 !important;
    background-color: transparent !important;
    border: 0;
    border-radius: 0;
    padding: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    box-shadow: none;
}
.tmb-picks-bar button:focus-visible, .tmb-picks-bar a:focus-visible {
    outline: 2px solid var(--tmb-blue-300);
    outline-offset: 1px;
}

/* ---- the strip ---- */
.tmb-pkb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 16px;
    background: color-mix(in srgb, var(--tmb-brand-dark), white 9%);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}
.tmb-pkb-title { font-weight: 600; letter-spacing: 0.01em; }
/* The chips: as wide as they are until the strip has no more room, then a row
   that scrolls sideways (no scrollbar: the two arrows, a swipe or a wheel).
   position: relative so a chip's offsetLeft is measured from the row. */
.tmb-pkb-chips {
    display: flex; align-items: center; gap: 5px; flex: 0 1 auto; min-width: 0; position: relative;
    overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
}
.tmb-pkb-chips::-webkit-scrollbar { display: none; }
/* The arrows either side of the chips: earlier days, later days. Hidden while
   their side has nothing (scripts/picks-bar.js syncMore()), keeping their room. */
.tmb-picks-bar .tmb-pkb-more { flex: 0 0 20px; height: 24px; margin: 0 -5px !important; border-radius: 12px; font-size: 10px; color: var(--tmb-white-70); }
.tmb-picks-bar .tmb-pkb-more:hover { color: #fff; background-color: var(--tmb-white-10) !important; }
.tmb-picks-bar .tmb-pkb-more[disabled] { visibility: hidden; }
.tmb-picks-bar .tmb-pkb-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid var(--tmb-white-20);
    border-radius: 12px;
    font-size: 12px;
    color: var(--tmb-white-90);
    flex: 0 0 auto;
}
.tmb-picks-bar .tmb-pkb-chip:hover { border-color: var(--tmb-white-50); }
.tmb-picks-bar .tmb-pkb-chip.is-today { border-color: var(--tmb-brand); color: #fff; font-weight: 600; }
.tmb-picks-bar .tmb-pkb-chip.is-empty { color: var(--tmb-white-50); }
.tmb-pkb-chip i { font-size: 9px; color: var(--tmb-white-70); }
.tmb-pkb-chip b { font-weight: 700; }
.tmb-pkb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tmb-white-50); flex: 0 0 auto; }
.tmb-pkb-dot.is-up { background: var(--tmb-green-300); }
.tmb-pkb-dot.is-down { background: color-mix(in srgb, var(--tmb-red), white 30%); }
.tmb-picks-bar .tmb-pkb-end { display: inline-flex; align-items: center; gap: 8px; margin-left: auto !important; flex: 0 0 auto; font-size: 12px; color: var(--tmb-white-90); }
.tmb-pkb-record .is-up { color: var(--tmb-green-300); font-weight: 600; }
.tmb-pkb-record .is-down { color: color-mix(in srgb, var(--tmb-red), white 45%); font-weight: 600; }
.tmb-pkb-chev { font-size: 11px; transition: transform 0.15s ease; }
.tmb-picks-bar.is-open .tmb-pkb-chev { transform: rotate(180deg); }

/* ---- the expanded view ---- */
.tmb-pkb-panel[hidden] { display: none; }
/* A very light green, so the open view reads as its own section and not as
   more of the white page under it (Zach, 2026-10-10). What sat on white as a
   grey fill (the sport tag, a push, a pending play) is white on it. */
.tmb-pkb-panel { background: var(--tmb-good-7); border-bottom: 1px solid var(--tmb-good-2); }
.tmb-pkb-inner { max-width: 880px; margin: 0 auto; padding: 12px 16px 14px; }
.tmb-pkb-inner.is-loading { opacity: 0.55; }
.tmb-pkb-week { display: flex; align-items: stretch; gap: 6px; }
.tmb-picks-bar .tmb-pkb-arrow { flex: 0 0 28px; color: var(--tmb-gray-600); font-size: 14px; border-radius: 6px; }
.tmb-picks-bar .tmb-pkb-arrow:hover { background-color: var(--tmb-black-5) !important; color: var(--tmb-gray-900); }
.tmb-picks-bar .tmb-pkb-arrow[disabled] { visibility: hidden; }
.tmb-pkb-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; flex: 1 1 auto; min-width: 0; }
.tmb-picks-bar .tmb-pkb-day {
    display: block;
    padding: 7px 2px 6px;
    border: 1px solid var(--tmb-gray-300);
    border-radius: 8px;
    text-align: center;
    min-width: 0;
    background-color: #fff !important;
}
.tmb-picks-bar .tmb-pkb-day:hover { border-color: var(--tmb-gray-500); }
.tmb-picks-bar .tmb-pkb-day.is-sel { border-color: var(--tmb-green-700); box-shadow: inset 0 0 0 1px var(--tmb-green-700); }
.tmb-pkb-day span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmb-pkb-dow { font-size: 12px; color: var(--tmb-gray-600); }
.tmb-pkb-day.is-today .tmb-pkb-dow { color: var(--tmb-green-700); font-weight: 600; }
.tmb-pkb-num { font-size: 18px; font-weight: 600; color: var(--tmb-gray-900); line-height: 1.25; }
.tmb-pkb-count { font-size: 12px; color: var(--tmb-gray-900); }
.tmb-pkb-sub { font-size: 11px; color: var(--tmb-gray-600); min-height: 15px; }
.tmb-pkb-sub i { font-size: 9px; }
.tmb-pkb-panel .is-up { color: var(--tmb-green-700); }
.tmb-pkb-panel .is-down { color: var(--tmb-red-700); }
.tmb-pkb-panel .is-flat { color: var(--tmb-gray-600); }

.tmb-pkb-dayhead { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 14px 0 9px; }
.tmb-pkb-dayname { font-size: 15px; font-weight: 600; }
.tmb-pkb-daysum { font-size: 13px; color: var(--tmb-gray-600); }
.tmb-pkb-play { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--tmb-black-10); }
.tmb-pkb-tag { font-size: 11px; font-weight: 600; text-align: center; padding: 3px 0; border-radius: 6px; background: #fff; color: var(--tmb-gray-700); }
.tmb-pkb-main { min-width: 0; }
.tmb-pkb-label { font-size: 14px; font-weight: 600; color: var(--tmb-gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmb-pkb-label a { color: inherit; text-decoration: none; }
.tmb-pkb-label a:hover { text-decoration: underline; }
.tmb-pkb-price { font-weight: 400; color: var(--tmb-gray-700); }
.tmb-pkb-meta { font-size: 12px; color: var(--tmb-gray-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmb-pkb-res { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; white-space: nowrap; border: 1px solid transparent; }
.tmb-pkb-res.is-win { background: var(--tmb-good-3); color: var(--tmb-success-text); }
.tmb-pkb-res.is-loss { background: var(--tmb-danger-bg); color: var(--tmb-danger-text); }
.tmb-pkb-res.is-push { background: #fff; border-color: var(--tmb-gray-300); color: var(--tmb-gray-700); }
.tmb-pkb-res.is-live { background: var(--tmb-warning-bg); color: var(--tmb-warning-text); }
.tmb-pkb-res.is-pending, .tmb-pkb-res.is-open { background: #fff; border-color: var(--tmb-gray-300); color: var(--tmb-gray-600); font-weight: 400; }
.tmb-pkb-res i { font-size: 10px; margin-right: 4px; }
/* A locked play's chip is a link to the memberships page: green, the lock and the words in white. */
.tmb-picks-bar a.tmb-pkb-res.is-locked { background: var(--tmb-green-700); color: #fff; text-decoration: none; }
.tmb-picks-bar a.tmb-pkb-res.is-locked:hover { background: color-mix(in srgb, var(--tmb-green-700), black 12%); color: #fff; }
/* The chip, and under it the way to the play's write-up (a member's answer carries the link). */
.tmb-pkb-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tmb-picks-bar a.tmb-pkb-article { font-size: 12px; font-weight: 600; color: var(--tmb-green-700); text-decoration: none; white-space: nowrap; }
.tmb-picks-bar a.tmb-pkb-article:hover { text-decoration: underline; }
.tmb-pkb-article i { font-size: 11px; }
.tmb-pkb-hidden { height: 10px; border-radius: 5px; background: var(--tmb-gray-300); width: 190px; max-width: 70%; }
.tmb-pkb-none { padding: 16px 0; border-top: 1px solid var(--tmb-black-10); font-size: 14px; color: var(--tmb-gray-600); }
.tmb-pkb-cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 0 2px; border-top: 1px solid var(--tmb-black-10); font-size: 13px; color: var(--tmb-gray-700); }
.tmb-pkb-cta-links { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
/* The two buttons of that row: "Log in" plain, the way to a membership filled. */
.tmb-picks-bar a.tmb-pkb-btn { display: inline-block; padding: 6px 14px; border: 1px solid var(--tmb-green-700); border-radius: 6px; background: var(--tmb-green-700); color: #fff; font-weight: 600; text-decoration: none; }
.tmb-picks-bar a.tmb-pkb-btn:hover { background: color-mix(in srgb, var(--tmb-green-700), black 12%); color: #fff; }
.tmb-picks-bar a.tmb-pkb-btn.is-plain { background: #fff; color: var(--tmb-green-700); }
.tmb-picks-bar a.tmb-pkb-btn.is-plain:hover { background: var(--tmb-good-8); color: var(--tmb-green-700); }

/* The page beside a snapped panel is narrower (TMB.pageShift): the strip is in
   the flow and follows the body, so it needs no rule in page-shift.css. */

@media (max-width: 767px) {
    .tmb-picks-bar { top: 60px; }
    .tmb-pkb-row { padding: 0 10px; gap: 8px; }
    .tmb-picks-bar .tmb-pkb-more { display: none; }   /* a phone swipes the row */
    .tmb-pkb-inner { padding: 10px 8px 12px; }
    .tmb-pkb-week { gap: 2px; }
    .tmb-picks-bar .tmb-pkb-arrow { flex-basis: 22px; }
    .tmb-pkb-days { gap: 3px; }
    .tmb-pkb-num { font-size: 16px; }
    .tmb-picks-bar .tmb-pkb-day { padding-left: 0; padding-right: 0; }
    .tmb-pkb-count { font-size: 10px; letter-spacing: -0.02em; }   /* "5 plays" in a 41px cell at 375px */
    .tmb-pkb-sub { display: none !important; }
    .tmb-pkb-play { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; }
    .tmb-pkb-label { white-space: normal; }
}
@media print { .tmb-picks-bar { display: none; } }
