/* Interactive Playbooks: shared by every play page (/tools/interactive-playbooks/ and its sub-pages).
   The court-diagram palette below is the same one the Session Plans section uses (/session-plans/plans.css, "court svg"). */
/* site.css doesn't style plain links, so set them to the site's light green here. */
main a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
main a:hover { color: var(--lime-dk); }
main a:focus-visible, footer a:focus-visible, .site-header a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
.crumbs a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Court diagram palette. This is the same palette and the same class rules as the Session Plans section
   (source of truth: /session-plans/plans.css, "court svg"); the drawing itself comes from /session-plans/court.js.
   Kept scoped to .playbook and the home-page tile previews so it can't leak into the rest of the page. */
.playbook, .play-thumb {
  --floor: #1f4331; --paint: #26503b; --line: #8fa597; --o: #b5e32a; --on-o: #0f1a13;
  --x: #ff7a66; --c: #f2ede4; --ballc: #f08a3e; --step-bg: #0f1a13; --step-ink: #f2ede4; --lab: #c9d3c6;
}
.playbook {
  margin: 2rem 0 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
:is(.playbook, .play-thumb) .court { width: 100%; height: auto; display: block; }
:is(.playbook, .play-thumb) .fl { fill: var(--floor); } :is(.playbook, .play-thumb) .pt { fill: var(--paint); }
:is(.playbook, .play-thumb) .cl { stroke: var(--line); stroke-width: 0.06; fill: none; } :is(.playbook, .play-thumb) .bb { stroke: var(--line); stroke-width: 0.1; }
:is(.playbook, .play-thumb) .rim { stroke: var(--ballc); stroke-width: 0.07; }
:is(.playbook, .play-thumb) .mo { stroke: var(--o); fill: var(--o); } :is(.playbook, .play-thumb) .mx { stroke: var(--x); fill: var(--x); }
:is(.playbook, .play-thumb) .mv { fill: none; stroke-width: 0.075; stroke-linecap: round; stroke-linejoin: round; }
:is(.playbook, .play-thumb) .ah { stroke: none; }
:is(.playbook, .play-thumb) .po { fill: var(--o); }
:is(.playbook, .play-thumb) .pot { fill: var(--on-o); font: 700 0.52px 'Barlow Condensed', sans-serif; text-anchor: middle; dominant-baseline: central; }
:is(.playbook, .play-thumb) .px line { stroke: var(--x); stroke-width: 0.12; stroke-linecap: round; }
:is(.playbook, .play-thumb) .xt { fill: var(--x); font: 700 0.44px 'Barlow Condensed', sans-serif; }
:is(.playbook, .play-thumb) .ball { fill: var(--ballc); stroke: var(--ink); stroke-width: 0.04; }
:is(.playbook, .play-thumb) .lab { fill: var(--lab); font: 600 0.42px 'Barlow', sans-serif; text-anchor: middle; dominant-baseline: central; }
@media (max-width: 600px) { .playbook .lab { font-size: 0.5px; } }

.pb-stage-wrap { padding: 1rem 1rem 0; }
.pb-stage { transition: opacity 0.2s ease; }
.pb-stage.swap { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .pb-stage { transition: none; } }

.pb-legend {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0; padding: 0.8rem 1.1rem 0.9rem; list-style: none;
  font-size: 0.82rem; color: #a6b3a2;
}
.pb-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.pb-legend svg { width: 30px; height: 15px; }

.pb-panel { padding: 1.2rem 1.3rem 1.4rem; border-top: 1px solid rgba(255,255,255,0.08); }
.pb-step-indicator {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 0.4rem;
}
.pb-step-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--chalk); }
.pb-step-caption { color: var(--chalk-dk); margin-bottom: 1rem; min-height: 3.6em; }

.pb-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pb-btn {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--ink); background: var(--lime); border: none; border-radius: 6px;
  padding: 0 1.2rem; min-height: 2.75rem; cursor: pointer; transition: background 0.15s ease, opacity 0.15s ease;
}
.pb-btn:hover:not(:disabled) { background: var(--lime-dk); }
.pb-btn:disabled { opacity: 0.35; cursor: default; }
.pb-btn:focus-visible, .step-dot:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.pb-dots { display: flex; gap: 0; }
/* The button is a 28px tap target (WCAG 2.2 needs 24px); the small visible dot is drawn inside it. */
.step-dot { position: relative; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.step-dot::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: rgba(242,237,228,0.5);
}
.step-dot:hover::before { background: rgba(242,237,228,0.8); }
.step-dot.active::before, .step-dot.active:hover::before { background: var(--lime); }
@media (max-width: 480px) {
  /* Back and Next share the first row; the dots drop to their own centred row. */
  .pb-controls { flex-wrap: wrap; }
  .pb-dots { order: 3; width: 100%; justify-content: center; }
}

.pb-text { margin: 0 0 2rem; }
.pb-text summary { cursor: pointer; color: var(--lime); font-weight: 600; padding: 0.4rem 0; }
.pb-text summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.pb-text ol { margin-top: 0.6rem; }

/* Home page (/tools/interactive-playbooks/): the note before the plays, and the list of plays. */
.pb-disclaimer {
  margin: 1.5rem 0 2rem; padding: 0.85rem 1.1rem; font-size: 0.95rem; color: var(--chalk-dk); max-width: 46rem;
  border-left: 3px solid var(--lime); background: rgba(255,255,255,0.03); border-radius: 0 6px 6px 0;
}
.pb-disclaimer strong { color: var(--chalk); }
.pb-feedback { margin: 2rem 0 0; font-size: 0.95rem; color: var(--chalk-dk); }
.pb-feedback a { color: var(--lime); text-decoration: underline; }
.play-group { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.8rem; margin: 2rem 0 0.8rem; }
.play-group h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--chalk); margin: 0; }
.play-group a { font-size: 0.88rem; }
.play-grid { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1rem; }
@media (min-width: 640px) { .play-grid { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); } }
.play-tile { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(255,255,255,0.03); text-decoration: none; }
.play-tile:hover { border-color: rgba(181,227,42,0.5); }
.play-thumb { aspect-ratio: 15 / 12; background: var(--floor); display: flex; }
.play-thumb .court { width: 100%; height: 100%; display: block; }
.play-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 0.7rem 0.8rem 0.9rem; }
.play-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.15; color: var(--lime); }
.play-tile:hover .play-name { text-decoration: underline; }
.play-age { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chalk); border: 1px solid rgba(255,255,255,0.3); border-radius: 3px; padding: 0.05rem 0.4rem; }
.play-blurb { font-size: 0.86rem; line-height: 1.4; color: var(--chalk-dk); }
