/* Dec. 2 (Heath approved the card binder mockup): white masthead, binder index tabs, the stitched thread and the panels
   each tab opens. Markup: partials/header/compact.hbs and partials/tpt-binder.hbs. Everything is scoped to .tpt-bh and
   written to win over the older masthead rules still in header.css (they target the old class names). */
html:root body header.tpt-hdr.tpt-bh{position:relative;z-index:60;background:#fff!important;border:0!important;box-shadow:none!important;color:#0C2340;font-family:var(--font-sans,Inter,system-ui,sans-serif)}
.tpt-bh a{text-decoration:none}
.tpt-bh,.tpt-bh *,.tpt-bh *::before,.tpt-bh *::after{box-sizing:border-box}
.tpt-bh .bh-bar{display:flex;align-items:center;gap:12px;max-width:1280px;height:68px;margin:0 auto;padding:0 24px}
.tpt-bh .bh-lg{display:flex;align-items:center;flex:none;height:100%}
html:root body .tpt-bh .bh-lg img{display:block;height:48px!important;width:auto!important;max-width:none}
html:root body .tpt-bh .bh-lg img.hidden{display:none}
html.dark:root body .tpt-bh .bh-lg img.dark\:hidden{display:none}html.dark:root body .tpt-bh .bh-lg img.hidden{display:block}
html.dark .tpt-bh .bh-lg img.bh-inv{filter:brightness(0) invert(1)}
.tpt-bh .bh-lg b{font:800 20px/1 "Barlow Condensed",var(--font-sans);color:#0C2340}
.tpt-bh .bh-grow{flex:1}
.tpt-bh .bh-find{display:flex;align-items:center;gap:9px;width:270px;height:42px;padding:0 10px 0 13px;border:1.5px solid #D3D9E3;border-radius:999px;background:#F7F9FC;color:#5b6577;font:600 14px/1 var(--font-sans,Inter,sans-serif);cursor:pointer}
.tpt-bh .bh-find:hover,.tpt-bh .bh-find:focus-visible{border-color:#003278;color:#0C2340;background:#fff}
.tpt-bh .bh-find svg,.tpt-bh .bh-s svg,.tpt-bh .bh-fb svg{width:20px;height:20px;flex:none;color:#0C2340}
.tpt-bh .bh-find kbd{margin-left:auto;font:600 11px/1 var(--font-sans);border:1px solid #D3D9E3;border-radius:5px;padding:3px 6px;color:#8a92a3;background:#fff}
.tpt-bh .bh-sw{display:flex;flex:none;background:#EEF1F5;border-radius:999px;padding:3px}
.tpt-bh .bh-sw a{padding:8px 14px;border-radius:999px;font:700 13px/1 var(--font-sans,Inter,sans-serif);color:#46546b;white-space:nowrap}
.tpt-bh .bh-sw a:hover{color:#0C2340}
html:not(.tpt-bb) .tpt-bh .bh-sw a.r{background:#003278;color:#fff}
html.tpt-bb .tpt-bh .bh-sw a.b{background:#F5C400;color:#141414}
.tpt-bh .bh-jn{flex:none;background:#C0111F;color:#fff!important;font:700 14px/1 var(--font-sans,Inter,sans-serif);padding:13px 18px;border-radius:999px;white-space:nowrap}
.tpt-bh .bh-jn:hover{background:#9E0E19}
html.tpt-bb .tpt-bh .bh-jn{background:#123E8C}html.tpt-bb .tpt-bh .bh-jn:hover{background:#0d2f6b}
.tpt-bh .bh-ic{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;border:1.5px solid #D3D9E3;color:#0C2340;background:none;padding:0;cursor:pointer}
.tpt-bh .bh-ic:hover{border-color:#003278}
.tpt-bh .bh-ic>svg{width:20px;height:20px}
.tpt-bh .bh-s{display:none}
.tpt-bh .bh-menu{border:0;background:none}
html:root body .tpt-bh .bh-menu>div>button{background:none;width:42px!important;height:42px!important;border-radius:50%;border:1.5px solid #D3D9E3!important;color:#0C2340!important}
html:root body .tpt-bh .bh-menu>div>button svg{width:20px!important;height:20px!important}

/* binder index tabs */
.tpt-bh .bh-tabs{border-bottom:1px solid #E1E5EB}
.tpt-bh .bh-tr{display:flex;align-items:flex-end;gap:6px;max-width:1280px;margin:0 auto;padding:0 24px}
html.tpt-bb .tpt-bh .bh-tr.rg,html:not(.tpt-bb) .tpt-bh .bh-tr.bb{display:none}
.tpt-bh .bh-tb{position:relative;display:block;padding:10px 22px 9px;margin-bottom:-1px;font:600 14.5px/1.2 var(--font-sans,Inter,sans-serif);color:#46546b;background:#F1F3F6;border:1px solid #E1E5EB;border-top:3px solid var(--c);border-bottom-color:#E1E5EB;border-radius:9px 9px 0 0;white-space:nowrap;cursor:pointer}
.tpt-bh .bh-tb:hover{color:#0C2340;background:#F8F9FB}
.tpt-bh .bh-tb.cur,.tpt-bh .bh-tb.open{background:#fff;color:#0C2340;font-weight:700;border-bottom-color:#fff}
.tpt-bh .bh-tb:focus-visible{outline:2px solid #003278;outline-offset:2px}
/* the stitched thread: red on the Rangers side, gold on Banana Ball */
.tpt-bh .bh-st{height:9px;background:repeating-linear-gradient(90deg,transparent 0 9px,#C0111F 9px 15px,transparent 15px 22px) center/22px 2px repeat-x,#fff}
html.tpt-bb .tpt-bh .bh-st{background:repeating-linear-gradient(90deg,transparent 0 9px,#E0B000 9px 15px,transparent 15px 22px) center/22px 2px repeat-x,#fff}
/* the standings strip stays on the homepage only */
html:not(.tpt-home) .tpt-bh .tpt-sb{display:none!important}
html body .tpt-h>.pick{display:none!important}

/* panels */
.tpt-bh .bh-pans{position:absolute;left:0;right:0;z-index:70;overflow:auto;overscroll-behavior:contain;background:#fff;border-top:1px solid #EEF1F5;box-shadow:0 26px 50px -24px rgba(12,35,64,.45)}
.tpt-bh .bh-pans[hidden],.tpt-bh .bh-pn[hidden]{display:none}
.tpt-bh .bh-pn{display:grid;grid-template-columns:minmax(0,1fr);max-width:1280px;margin:0 auto}
.tpt-bh .bh-pn.bh-two{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.tpt-bh .bh-m1,.tpt-bh .bh-m2{min-width:0;padding:20px 24px 24px}
.tpt-bh .bh-m2{border-left:1px solid #EEF1F5;background:#FAFBFC}
.tpt-bh .bh-mh{margin:0 0 10px}.tpt-bh .bh-m2 .bh-mh+.bh-fb+.bh-mh{margin-top:16px}
.tpt-bh .bh-mh b{display:block;font:700 16px/1.3 var(--font-sans,Inter,sans-serif);color:#0C2340}
.tpt-bh .bh-mh span{display:block;font:500 13px/1.4 var(--font-sans,Inter,sans-serif);color:#6b778c;margin-top:2px}
.tpt-bh .bh-full{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font:700 14px/1 var(--font-sans,Inter,sans-serif);color:#C0111F}
html.tpt-bb .tpt-bh .bh-full{color:#123E8C}
.tpt-bh .bh-full svg,.tpt-bh .bh-pg svg{width:12px;height:12px}
.tpt-bh .bh-full:hover{text-decoration:underline;text-underline-offset:3px}
.tpt-bh .bh-fb{display:flex;align-items:center;gap:10px;width:100%;height:46px;padding:0 14px;border:1.5px solid #D3D9E3;border-radius:999px;background:#fff;color:#6b778c;font:600 14.5px/1 var(--font-sans,Inter,sans-serif);cursor:pointer}
.tpt-bh .bh-fb:hover{border-color:#003278;color:#0C2340}
.tpt-bh .bh-lv{display:flex;align-items:center;gap:10px;padding:8px 0;font:600 14px/1.3 var(--font-sans,Inter,sans-serif);color:#0C2340;border-bottom:1px solid #EEF1F5}
.tpt-bh .bh-lv i{display:inline-grid;place-items:center;flex:none;min-width:38px;height:22px;padding:0 5px;border-radius:5px;color:#fff;font:800 11px/1 var(--font-sans,Inter,sans-serif);font-style:normal}
.tpt-bh .bh-lv:hover span{text-decoration:underline;text-underline-offset:3px}

/* the binder page */
.tpt-bh .bh-binder{position:relative;min-width:0;background:#EEF1F5;border-radius:12px;padding:14px 14px 10px 40px}
.tpt-bh .bh-rings{position:absolute;left:11px;top:14px;bottom:44px;display:flex;flex-direction:column;justify-content:space-around}
.tpt-bh .bh-rings i{display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:inset 0 2px 3px rgba(0,0,0,.25),0 0 0 1px #CBD2DC}
.tpt-bh .bh-pages{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:6px}
.tpt-bh .bh-pages::-webkit-scrollbar{display:none}
.tpt-bh .bh-sheet{flex:0 0 100%;scroll-snap-align:start;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;border-radius:6px;background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(255,255,255,.55) 40%,rgba(255,255,255,.8));box-shadow:inset 0 0 0 1px #D8DEE6}
.tpt-bh .bh-pk{position:relative;display:block;min-width:0;border-radius:4px;overflow:hidden;background:#fff;aspect-ratio:360/151;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.tpt-bh .bh-pk::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.35) 0 12%,rgba(255,255,255,0) 30% 70%,rgba(255,255,255,.18));pointer-events:none}
.tpt-bh .bh-pk img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;display:block;transition:transform .2s}
.tpt-bh a.bh-pk:hover img{transform:scale(1.04)}
.tpt-bh a.bh-pk:focus-visible{outline:2px solid #003278;outline-offset:2px}
/* Banana Ball cards: just the header (3:1) */
.tpt-bh [data-binder=bb] .bh-pk{aspect-ratio:3/1}
.tpt-bh .bh-pk.em{background:rgba(255,255,255,.45);box-shadow:inset 0 0 0 1px #D8DEE6}
.tpt-bh .bh-wait .bh-pk{background:#E4E8EE;box-shadow:none}
/* no card yet: the baseball with initials and the name */
.tpt-bh .bh-nc{display:none}
.tpt-bh .bh-pk.nc .bh-nc{position:absolute;inset:0;display:flex;align-items:center;gap:10px;padding:0 12px;background:#0C2340;color:#fff}
.tpt-bh .bh-nc i{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#fff;color:#0C2340;font:800 12px/1 var(--font-sans,Inter,sans-serif);font-style:normal;box-shadow:inset 0 0 0 2px #C0111F}
.tpt-bh .bh-nc b{font:700 13px/1.2 var(--font-sans,Inter,sans-serif);min-width:0;overflow:hidden;text-overflow:ellipsis}
.tpt-bh .bh-nm{display:none}
.tpt-bh .bh-pg{display:flex;align-items:center;gap:10px;margin-top:10px}
.tpt-bh .bh-pg button{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1.5px solid #CBD2DC;background:#fff;color:#0C2340;cursor:pointer;padding:0}
.tpt-bh .bh-pg button:disabled{opacity:.35;cursor:default}
.tpt-bh .bh-pg button:not(:disabled):hover{border-color:#003278}
.tpt-bh .bh-pt{order:-1;margin-right:auto;font:600 12.5px/1.2 var(--font-sans,Inter,sans-serif);color:#6b778c}
.tpt-bh .bh-pt b{display:inline-flex;align-items:center;gap:6px;margin-right:10px;color:#0C2340;font-weight:700}
.tpt-bh .bh-pt b::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--c)}

/* Top 30: three columns of 10 */
.tpt-bh .bh-t30{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:column;grid-template-rows:repeat(10,auto);column-gap:28px;min-height:200px}
.tpt-bh .bh-t3{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:baseline;padding:6px 0;border-bottom:1px solid #F0F2F6}
.tpt-bh .bh-t3 span{grid-row:span 2;font:700 13px/1 var(--font-sans,Inter,sans-serif);color:#9aa3b2}
.tpt-bh .bh-t3 b{font:600 14.5px/1.3 var(--font-sans,Inter,sans-serif);color:#0C2340}
.tpt-bh .bh-t3 small{font:500 12px/1.3 var(--font-sans,Inter,sans-serif);color:#6b778c}
.tpt-bh .bh-t3:hover b{color:#C0111F}

/* Teams */
.tpt-bh .bh-tcs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tpt-bh .bh-tc{display:flex;gap:12px;padding:14px;border:1px solid #E6E9EF;border-top:3px solid var(--c);border-radius:10px;background:#fff}
.tpt-bh .bh-tc i{display:grid;place-items:center;flex:none;min-width:40px;height:26px;padding:0 6px;border-radius:6px;background:var(--c);color:#fff;font:800 12px/1 var(--font-sans,Inter,sans-serif);font-style:normal}
.tpt-bh .bh-tc span{min-width:0}
.tpt-bh .bh-tc b{display:block;font:600 15px/1.3 var(--font-sans,Inter,sans-serif);color:#0C2340}
.tpt-bh .bh-tc small{display:block;font:500 12.5px/1.35 var(--font-sans,Inter,sans-serif);color:#6b778c}.tpt-bh .bh-tc small:empty{display:none}
.tpt-bh .bh-tc em{display:block;margin-top:4px;font:600 12.5px/1.35 var(--font-sans,Inter,sans-serif);font-style:normal;color:#003278}
.tpt-bh .bh-tc:hover{border-color:#C9D1DD;border-top-color:var(--c)}.tpt-bh .bh-tc:hover b{text-decoration:underline;text-underline-offset:3px}

/* Stats and news tiles */
.tpt-bh .bh-tls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tpt-bh .bh-tl{display:block;padding:14px;border:1px solid #E6E9EF;border-radius:10px;background:#fff}
.tpt-bh .bh-tl b{display:block;font:600 15px/1.3 var(--font-sans,Inter,sans-serif);color:#0C2340}
.tpt-bh .bh-tl small{display:block;margin-top:2px;font:500 13px/1.4 var(--font-sans,Inter,sans-serif);color:#6b778c}
.tpt-bh .bh-tl:hover{border-color:#C0111F}html.tpt-bb .tpt-bh .bh-tl:hover{border-color:#123E8C}

/* in-between widths: the switch and Join stay, the search box gets shorter */
@media (max-width:1099px){.tpt-bh .bh-find{width:200px}.tpt-bh .bh-find kbd{display:none}.tpt-bh .bh-tb{padding:10px 16px 9px}}
@media (max-width:899px){.tpt-bh .bh-find{width:auto}.tpt-bh .bh-find span{display:none}.tpt-bh .bh-find{padding:0 10px}
 .tpt-bh .bh-pn.bh-two{grid-template-columns:minmax(0,1fr)}.tpt-bh .bh-m2{border-left:0;border-top:1px solid #EEF1F5}
 .tpt-bh .bh-tcs,.tpt-bh .bh-tls{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* phones: logo, the switch, the ball (search) and the menu; small tabs; panels fill the screen under the tabs */
@media (max-width:767px){
 .tpt-bh .bh-bar{height:58px;gap:8px;padding:0 10px 0 12px}
 html:root body .tpt-bh .bh-lg img{height:38px!important}
 .tpt-bh .bh-find,.tpt-bh .bh-jn,.tpt-bh .bh-acct{display:none}
 .tpt-bh .bh-s{display:grid}
 .tpt-bh .bh-sw a{padding:7px 10px;font-size:12px}
 .tpt-bh .bh-ic,html:root body .tpt-bh .bh-menu>div>button{width:40px!important;height:40px!important}
 .tpt-bh .bh-tr{gap:4px;padding:0 8px}
 .tpt-bh .bh-tb{flex:1 1 0;min-width:0;padding:8px 4px 7px;text-align:center;font-size:13px;border-radius:8px 8px 0 0}
 .tpt-bh .bh-m1,.tpt-bh .bh-m2{padding:14px 12px 18px}
 .tpt-bh .bh-binder{padding:10px 8px 8px 28px}
 .tpt-bh .bh-rings{left:7px}.tpt-bh .bh-rings i{width:12px;height:12px}
 .tpt-bh .bh-sheet{gap:6px 5px;padding:5px}
 .tpt-bh .bh-pk{display:flex;flex-direction:column;aspect-ratio:auto;background:none;box-shadow:none;overflow:visible}
 .tpt-bh .bh-pk img{position:relative;inset:auto;height:auto;aspect-ratio:360/151;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}
 .tpt-bh .bh-pk::after{display:none}
 .tpt-bh .bh-pk.em,.tpt-bh .bh-wait .bh-pk{aspect-ratio:360/151;border-radius:3px}
 .tpt-bh [data-binder=bb] .bh-pk img,.tpt-bh [data-binder=bb] .bh-pk.em,.tpt-bh [data-binder=bb] .bh-wait .bh-pk{aspect-ratio:3/1}
 .tpt-bh [data-binder=bb] .bh-pk{aspect-ratio:auto}
 .tpt-bh .bh-nm{display:block;margin-top:3px;font:700 10.5px/1.2 var(--font-sans,Inter,sans-serif);color:#0C2340;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .tpt-bh .bh-pk.nc .bh-nc{position:relative;inset:auto;aspect-ratio:360/151;padding:0;justify-content:center;border-radius:3px}
 .tpt-bh .bh-pk.nc .bh-nc b{display:none}.tpt-bh .bh-nc i{width:26px;height:26px;font-size:10px}
 .tpt-bh .bh-t30{grid-template-columns:1fr;grid-auto-flow:row;grid-template-rows:none}
 .tpt-bh .bh-tcs,.tpt-bh .bh-tls{grid-template-columns:1fr;gap:8px}
 .tpt-bh .bh-tc,.tpt-bh .bh-tl{padding:11px 12px}
}
@media (max-width:359px){.tpt-bh .bh-sw a{padding:7px 7px;font-size:11.5px}.tpt-bh .bh-tb{font-size:12px}html:root body .tpt-bh .bh-lg img{height:32px!important}}

/* dark mode */
html.dark:root body header.tpt-hdr.tpt-bh{background:#0f1825!important;color:#e8eef8}
html.dark .tpt-bh .bh-find,html.dark .tpt-bh .bh-fb{background:#162131;border-color:#2b3a52;color:#9fb0c7}
html.dark .tpt-bh .bh-find svg,html.dark .tpt-bh .bh-fb svg,html.dark .tpt-bh .bh-s svg{color:#e8eef8}
html.dark .tpt-bh .bh-find kbd{background:#0f1825;border-color:#2b3a52}
html.dark .tpt-bh .bh-sw{background:#162131}html.dark .tpt-bh .bh-sw a{color:#9fb0c7}
html.dark .tpt-bh .bh-ic,html.dark:root body .tpt-bh .bh-menu>div>button{border-color:#2b3a52!important;color:#e8eef8!important}
html.dark .tpt-bh .bh-tabs{border-color:#26344a}
html.dark .tpt-bh .bh-tb{background:#162131;border-color:#26344a;border-top-color:var(--c);color:#9fb0c7}
html.dark .tpt-bh .bh-tb.cur,html.dark .tpt-bh .bh-tb.open{background:#0f1825;color:#fff;border-bottom-color:#0f1825}
html.dark .tpt-bh .bh-st{background-color:#0f1825}
html.dark .tpt-bh .bh-pans{background:#0f1825;border-color:#26344a}
html.dark .tpt-bh .bh-m2{background:#121d2c;border-color:#26344a}
html.dark .tpt-bh .bh-mh b,html.dark .tpt-bh .bh-lv,html.dark .tpt-bh .bh-t3 b,html.dark .tpt-bh .bh-tc b,html.dark .tpt-bh .bh-tl b,html.dark .tpt-bh .bh-nm,html.dark .tpt-bh .bh-pt b{color:#e8eef8}
html.dark .tpt-bh .bh-lv,html.dark .tpt-bh .bh-t3{border-color:#26344a}
html.dark .tpt-bh .bh-tc,html.dark .tpt-bh .bh-tl{background:#162131;border-color:#26344a}html.dark .tpt-bh .bh-tc{border-top-color:var(--c)}
html.dark .tpt-bh .bh-tc em{color:#8DB9E2}html.dark .tpt-bh .bh-full{color:#FF6B76}html.dark.tpt-bb .tpt-bh .bh-full{color:#FFE27A}
html.dark .tpt-bh .bh-binder{background:#1a2638}html.dark .tpt-bh .bh-sheet{background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px #2b3a52}
html.dark .tpt-bh .bh-pg button{background:#162131;border-color:#2b3a52;color:#e8eef8}
@media (prefers-reduced-motion:reduce){.tpt-bh .bh-pk img{transition:none}}
@media print{.tpt-bh .bh-tabs,.tpt-bh .bh-st,.tpt-bh .bh-pans{display:none!important}}
