/* AHD softball / fastpitch theme — Oct 23, 2026.
   Everything softball wears the optic yellow of the fastpitch ball.
   Yellow is used as a fill, a border or text on dark backgrounds only; on light backgrounds
   text stays dark (ink on yellow) so it stays readable. */
:root{--sb-y:#e3ec34;--sb-y2:#c8d11d;--sb-y3:#f4f8b0;--sb-ink:#191b04;--sb-glow:rgba(227,236,52,.38)}

/* ---------- 1. Softball tool bricks (Tools page grid + quick wall) ---------- */
:is(.tools-grid,.tw-wall,.ahd-tools-strip,.tool-list) a:is([href*="/tools/softball-"],[href*="/tools/riseball-lay-off-trainer"],[href*="/tools/slap-hitting-timing-trainer"]){
  background:var(--sb-y)!important;background-image:none!important;color:var(--sb-ink)!important;
  border-color:var(--sb-y2)!important;border-top-color:var(--sb-ink)!important;
  box-shadow:0 10px 26px var(--sb-glow)!important;
  --b:var(--sb-ink);--t:var(--sb-y)}
:is(.tools-grid,.tw-wall,.ahd-tools-strip,.tool-list) a:is([href*="/tools/softball-"],[href*="/tools/riseball-lay-off-trainer"],[href*="/tools/slap-hitting-timing-trainer"]) :is(b,strong,span,small,p,em,h2,h3,h4,div){color:var(--sb-ink)!important}
:is(.tools-grid,.tw-wall) a:is([href*="/tools/softball-"],[href*="/tools/riseball-lay-off-trainer"],[href*="/tools/slap-hitting-timing-trainer"]) i.tg{background:var(--sb-ink)!important;color:var(--sb-y)!important}
.tools-grid a:is([href*="/tools/softball-"],[href*="/tools/riseball-lay-off-trainer"],[href*="/tools/slap-hitting-timing-trainer"]) b::before{background:var(--sb-ink)!important;color:var(--sb-y)!important;border-color:var(--sb-ink)!important}
:is(.tools-grid,.tw-wall) a:is([href*="/tools/softball-"],[href*="/tools/riseball-lay-off-trainer"],[href*="/tools/slap-hitting-timing-trainer"]):is(:hover,:focus-visible){background:#eef55a!important;outline:3px solid var(--sb-ink)!important;outline-offset:2px}
/* the "Play →" line and any red text inside the yellow brick */
.tools-grid a:is([href*="/tools/softball-"],[href*="/tools/riseball-lay-off-trainer"],[href*="/tools/slap-hitting-timing-trainer"]) :is(.go,.play,u,ins){color:var(--sb-ink)!important;text-decoration-color:var(--sb-ink)}

/* ---------- 2. Softball pages: body.ahd-softball ---------- */
/* hero: yellow accents, yellow underline band, yellow primary button */
body.ahd-softball :is(.cp-hero,.article-hero,.local-hero,.funnel-hero,.hub-hero){box-shadow:inset 0 -7px 0 var(--sb-y)!important}
body.ahd-softball :is(.cp-eyebrow,.local-eyebrow,.local-kicker,.funnel-eyebrow,.funnel-kicker,.article-head .tag,.cp-h1-sub){color:var(--sb-y)!important}
body.ahd-softball :is(.cp-hero,.article-hero,.funnel-hero,.local-hero.dark) :is(h1 em,h1 .ed-acc,h1 span:not(.cp-h1-name)){color:var(--sb-y)!important}
body.ahd-softball .cp-hero .cp-chips li{border-color:var(--sb-y)!important;color:#fff!important}
body.ahd-softball .cp-hero .cp-chips li:first-child{background:var(--sb-y)!important;color:var(--sb-ink)!important;border-color:var(--sb-y)!important}
body.ahd-softball :is(.cp-btn.free,.local-btn.primary,.hub-hero .cp-btn.free){background:var(--sb-y)!important;color:var(--sb-ink)!important;border-color:var(--sb-y)!important}
body.ahd-softball :is(.cp-btn.free,.local-btn.primary):is(:hover,:focus-visible){background:#fff!important;color:var(--sb-ink)!important}
body.ahd-softball .cp-hero .cp-btn.ghost{border-color:var(--sb-y)!important}
/* a fastpitch badge on the hero */
body.ahd-softball :is(.cp-hero-in,.article-head,.funnel-hero>div:first-child,.local-copy){position:relative}
body.ahd-softball :is(.cp-hero-in,.article-head)::after{content:"FASTPITCH";position:absolute;top:0;right:0;transform:translateY(-6px);padding:5px 10px 5px 26px;border-radius:999px;background:var(--sb-y) radial-gradient(circle at 12px 50%,#fff 0 2px,transparent 2.5px);color:var(--sb-ink);font:900 10.5px/1 Inter,system-ui,sans-serif;letter-spacing:.16em;box-shadow:0 6px 18px var(--sb-glow);pointer-events:none}
@media(max-width:600px){body.ahd-softball :is(.cp-hero-in,.article-head)::after{display:none}}

/* hero accent words, coach-certification money band */
body.ahd-softball .local-hero h1 span,body.ahd-softball .pbh h2 :is(em,b){color:var(--sb-y)!important}
body.ahd-softball .pbh{box-shadow:inset 0 -6px 0 var(--sb-y)}
body.ahd-softball .pbh .pbh-t.win{background:var(--sb-y)!important;border-color:var(--sb-y)!important}
body.ahd-softball .pbh .pbh-t.win :is(b,span){color:var(--sb-ink)!important}
body.ahd-softball .pbh .pbh-kick{border-color:var(--sb-y)!important;color:var(--sb-y)!important}
body.ahd-softball .pbh .pbh-cta{background:var(--sb-y)!important;color:var(--sb-ink)!important;border-color:var(--sb-y)!important}

/* cards and sections on softball pages */
body.ahd-softball :is(.cp-card,.tool-card,.cp-promise,.cp-how,.local-section .local-card,.hub-check,.cp-unsure){border-top:6px solid var(--sb-y)!important}
body.ahd-softball :is(.cp-card,.cp-promise,.cp-how) :is(h2,h3)::after{content:"";display:block;width:46px;height:5px;border-radius:3px;background:var(--sb-y);margin-top:8px;box-shadow:0 0 0 1px var(--sb-y2)}
body.ahd-softball .tool-seg input:checked+span{background:var(--sb-ink)!important;color:var(--sb-y)!important;border-color:var(--sb-ink)!important;box-shadow:inset 0 -3px 0 var(--sb-y)}
body.ahd-softball :is(.tool-go,.prt-btns button:first-child){background:var(--sb-y)!important;color:var(--sb-ink)!important;border-color:var(--sb-y2)!important}
body.ahd-softball .tool-result{border-left:6px solid var(--sb-y)!important}
body.ahd-softball .prt-overlay :is(h2,h3,strong) em,body.ahd-softball .prt-overlay .acc{color:var(--sb-y)!important}
body.ahd-softball .local-section.dark{box-shadow:inset 0 6px 0 var(--sb-y)}
body.ahd-softball .film-strip{border-color:var(--sb-y)!important}

/* ---------- 3. Softball Backspin posts (editorial layout) ---------- */
body.ahd-softball.ed-post{--ed-sand:var(--sb-y);--ed-sand2:var(--sb-y2)}
body.ahd-softball.ed-post .article-body>h2::before{background:var(--sb-y)!important;box-shadow:0 0 0 1px var(--sb-y2)}
body.ahd-softball.ed-post .article-body>h2.ed-num>.ed-n{display:inline-block;background:var(--sb-y);color:var(--sb-ink)!important;padding:0 .22em;border-radius:6px;margin-right:.3em}
body.ahd-softball.ed-post .article-body li::marker{color:#7d8410}
body.ahd-softball.ed-post .article-body ol>li:has(>b){border-left-color:var(--sb-y)!important}
body.ahd-softball.ed-post .article-body ol>li>b{color:var(--sb-y)!important}
body.ahd-softball.ed-post .article-body ol>li::before{color:var(--sb-y)!important}
body.ahd-softball.ed-post .article-body blockquote,body.ahd-softball.ed-post .ahd-quick-answer{border-left-color:var(--sb-y)!important}
body.ahd-softball.ed-post .article-body .big-line{box-shadow:inset 0 -.42em 0 var(--sb-y3)}
body.ahd-softball.ed-post .key-takeaways{border-top:6px solid var(--sb-y)!important}
body.ahd-softball.ed-post .ahd-author{border-top-color:var(--sb-y)!important}
body.ahd-softball.ed-post .ed-band{box-shadow:inset 0 6px 0 var(--sb-y)}
body.ahd-softball .bx-card{border-color:var(--sb-y)!important}
body.ahd-softball .bx-kick{color:var(--sb-y)!important}

/* softball posts in the blog hub and keep-reading strips */
.post-card:has(a.read:is([href*="softball"],[href*="fastpitch"],[href*="rise-ball"],[href*="drop-ball"],[href*="slap"]):not([href*="baseball-softball"],[href*="baseball-and-fastpitch"])){border-left:6px solid var(--sb-y)!important;position:relative}
.post-card:has(a.read:is([href*="softball"],[href*="fastpitch"],[href*="rise-ball"],[href*="drop-ball"],[href*="slap"]):not([href*="baseball-softball"],[href*="baseball-and-fastpitch"])) .tag{background:var(--sb-y);color:var(--sb-ink)!important;padding:2px 7px;border-radius:5px;display:inline-block}

/* ---------- 4. Softball notes inside lessons, coach editions and posts ---------- */
.ahd-sb-note{position:relative;margin:16px 0!important;padding:12px 14px 12px 16px!important;background:#fbfde3!important;border:1px solid var(--sb-y2)!important;border-left:7px solid var(--sb-y)!important;border-radius:10px!important;color:#22240a!important}
.ahd-sb-note>strong:first-child,.ahd-sb-note .sb-lbl{display:inline-block;background:var(--sb-y);color:var(--sb-ink)!important;font:900 11px/1 Inter,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;padding:5px 8px;border-radius:5px;margin-right:6px;vertical-align:2px}
:is(.dark,[data-theme=dark]) .ahd-sb-note,.ahd-dark .ahd-sb-note{background:linear-gradient(120deg,#121110 0%,#2a1218 55%,#5a1424 100%)!important;color:#f4f8d6!important}

/* ---------- 5. Shared tools switched to fastpitch ---------- */
.tool-seg input[value="softball"]+span,.tool-seg input[value="fastpitch"]+span{border-color:var(--sb-y2)!important}
.tool-seg input:is([value="softball"],[value="fastpitch"]):checked+span{background:var(--sb-y)!important;color:var(--sb-ink)!important;border-color:var(--sb-y2)!important}
body.ahd-sb-mode .tool-card{border-top:6px solid var(--sb-y)!important;box-shadow:0 12px 30px var(--sb-glow)!important}
body.ahd-sb-mode :is(.tool-go,.prt-btns button:first-child){background:var(--sb-y)!important;color:var(--sb-ink)!important;border-color:var(--sb-y2)!important}

@media (prefers-reduced-motion:no-preference){.tools-grid a:is([href*="/tools/softball-"],[href*="/tools/riseball-lay-off-trainer"],[href*="/tools/slap-hitting-timing-trainer"]){transition:background .15s,transform .15s}}
