/* /gpf "Someone who checks your team's numbers": the coach's playbook (replaces the 3D ring, ring.css/ring.js left on disk, unlinked).
   A dark slate board with a play drawn in chalk: YOU at quarterback, the five advisors as O's, dashed gold routes with
   arrowheads, faint defenders (X), linemen, blocking lines, yard lines, hash marks and eraser smudges around them. The
   hand-drawn look is baked into the SVG paths (build-playbook.cjs: jittered strokes, O's that overshoot, crossed X's);
   chalk grain is one tiled alpha mask on the SVG, so no filter runs per frame. playbook.js draws the board on scroll
   (anime.js createDrawable) and runs hover, focus and tap. With JS off or reduced motion the finished board shows.
   Two layouts: wide (1000 x 620) and, under 640px, an upright tall board (520 x 780, same orientation as the wide one) so five
   labels fit a phone. Overlay labels and the five advisor buttons sit on the board in the same units (--x --y wide,
   --mx --my tall). */

#your-team .check-grid{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.check-diagram.pb{max-width:780px}
@media (max-width:1000px){#your-team .check-grid{grid-template-columns:1fr}.check-diagram.pb{max-width:700px}}
@media (min-width:641px) and (max-width:1000px){#your-team .pb-run{order:2}} /* phones: the board comes first, above the H2 (operator 2026-11-05) */

/* 2026-11-16 scroll hold (operator: "hang the scroll until half way through the drawing ... desktop and mobile"). playbook.js adds .pb-pin
   only when the chalk draw is live. The board is CSS position:sticky inside .pb-run, whose ::after spacer is the runway: no JS transform and
   no wheel/touch listener, so the compositor scrolls it and a phone finger never fights it. The draw is scrubbed by position over the runway
   (hold ends at 50% drawn). Reduced motion or no JS: no .pb-pin, no pin, the finished board shows. Ancestors use overflow-x:clip only, which keeps sticky alive. */
#your-team .check-grid{--pb-hold:75svh;--pb-top:calc(var(--nav-h,72px) + clamp(8px,2.5svh,32px))}
.pb-run.pb-pin::after{content:"";display:block;height:var(--pb-hold)}
.pb-run.pb-pin>.check-diagram.pb{position:sticky;top:var(--pb-top)}
/* wide screens: the text column pins beside the board, but only when playbook.js finds it fits under the header (.pb-text-pin); otherwise it scrolls on as before */
#your-team .check-grid:has(.pb-pin){align-items:start}
#your-team .pb-text-pin~[data-reveal-group]{position:sticky;top:var(--pb-top)}

.pb{--chalk:#efe8d6;--gold:#e9bf55;--gold-hi:#f6dc92;--hit:max(44px,6.6cqw)}
.pb-board{position:relative;aspect-ratio:1000/620;container-type:inline-size;border-radius:12px;overflow:hidden;isolation:isolate;
  background:radial-gradient(ellipse 70% 60% at 48% 42%,rgb(255 246 218 / .06),transparent 72%),
    radial-gradient(ellipse 120% 100% at 50% 50%,transparent 55%,rgb(0 0 0 / .5)),
    repeating-linear-gradient(97deg,rgb(255 255 255 / .018) 0 46px,transparent 46px 120px),
    url(/assets/gpf/playbook/slate-grain.webp) 0 0/384px,#18191b;
  box-shadow:0 0 0 1px rgb(246 220 146 / .4),0 0 0 7px #0e0d0b,0 0 0 8px rgb(196 145 47 / .55),0 28px 60px rgb(0 0 0 / .55),inset 0 0 70px rgb(0 0 0 / .5);
  -webkit-user-select:none;user-select:none}
.pb-svg{position:absolute;inset:0;width:100%;height:100%;color:var(--chalk);
  -webkit-mask-image:url(/assets/gpf/playbook/chalk-grain.webp);mask-image:url(/assets/gpf/playbook/chalk-grain.webp);-webkit-mask-size:160px;mask-size:160px}
.pb-t{display:none}
:where(.pb-svg path){fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}

/* faint, non-interactive marks: always dimmer than the five advisors */
.pb-yd{stroke-width:2;opacity:.13}
.pb-los{stroke-width:3.6;opacity:.46}
.pb-los2{stroke-width:2;opacity:.2}
.pb-hash{stroke-width:2;opacity:.2}
.pb-mk{stroke-width:2.4;opacity:.4}
.pb-mot{stroke-width:2.2;opacity:.3}
.pb-smudge path{stroke:#fff;stroke-linecap:round}

/* the five advisors (O), routes, arrowheads */
.pb-qb{stroke:var(--gold-hi);stroke-width:3.8;opacity:.95}
.pb-qb2{opacity:.5;stroke-width:2.6}
.pb-adv{transition:opacity .25s}
.pb-ao{stroke-width:3.6;opacity:.96}
.pb-hl{stroke:var(--gold-hi);stroke-width:3.4;opacity:0;transition:opacity .22s}
.pb-rt{stroke:var(--gold);stroke-width:3.8;stroke-dasharray:15 11;opacity:.9}
.pb-rt-hot{stroke:#fff3cc;stroke-width:4.4;opacity:0;transition:opacity .22s}
.pb-glow{stroke:var(--gold-hi);stroke-width:15;opacity:0;transition:opacity .25s}
.pb-pulse{stroke:var(--gold-hi);stroke-width:13;opacity:0}
.pb-ah{stroke:var(--gold);stroke-width:3.8;opacity:.95}
.pb-adv.is-hot .pb-glow{opacity:.34}
.pb-adv.is-hot .pb-rt-hot{opacity:1}
.pb-adv.is-hot .pb-hl{opacity:.95}
.pb-board[data-hot] .pb-adv:not(.is-hot){opacity:.36}

/* SHERR CPA (top middle): a thin faint chalk connector (no glow) from the label to each route's check, then a chalk check mark.
   2026-11-06 operator: the thick glowing line across the top competed with the routes; each check now draws on its own. */
.pb-cn{stroke-width:2.1;opacity:.38}
.pb-tick{stroke:#fff0b8;stroke-width:5;opacity:1}

/* overlay labels (HTML, so they stay sharp, selectable and readable) */
.pb-btn,.pb-you,.pb-sherr,.pb-name{position:absolute;left:calc(var(--x) / 1000 * 100%);top:calc(var(--y) / 620 * 100%);translate:-50% -50%;margin:0}
.pb-btn{width:var(--hit);height:var(--hit);padding:0;border:0;border-radius:50%;background:none;color:var(--chalk);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;z-index:2}
.pb-btn:focus-visible{outline:2px solid var(--gold-hi);outline-offset:3px}
.pb-lab{position:absolute;left:50%;top:calc(100% - 2px);translate:-50% 0;rotate:var(--rot);width:max-content;max-width:12.5cqw;text-align:center;
  font:700 max(13px,2.55cqw)/1.02 var(--display,"Barlow Condensed",sans-serif);letter-spacing:.05em;text-transform:uppercase;color:var(--chalk);
  text-shadow:0 0 1px rgb(255 246 220 / .55),0 1px 2px rgb(0 0 0 / .6);transition:color .2s}
.pb-btn:hover .pb-lab,.pb-btn.is-hot .pb-lab,.pb-btn:focus-visible .pb-lab{color:var(--gold-hi)}
.pb-btn[aria-pressed="true"] .pb-lab{color:#ffe9a8;text-decoration:underline wavy rgb(246 220 146 / .8);text-decoration-thickness:1.5px;text-underline-offset:.2em}
.pb-you::before,.pb-name::before,.pb-sherr::after{content:attr(data-l)} /* decor text lives in an attribute so the markdown twin does not list it */
.pb-you{z-index:1;pointer-events:none;font:700 max(14px,3.5cqw)/1 var(--display,"Barlow Condensed",sans-serif);letter-spacing:.08em;text-transform:uppercase;color:var(--gold-hi);text-shadow:0 0 1px rgb(255 240 190 / .5)}
.pb-sherr,.pb-name{pointer-events:none;font:700 max(12px,2.25cqw)/1 var(--display,"Barlow Condensed",sans-serif);letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
.pb-sherr{display:flex;align-items:center;gap:.6em;color:var(--gold-hi);text-shadow:0 0 1px rgb(255 240 190 / .5)}
.pb-sherr::before{content:"";width:1em;height:1em;box-sizing:border-box;border:2.2px solid var(--gold-hi);border-radius:2px;rotate:-3deg} /* the chalk square marker, now part of the centred label */
.pb-name{rotate:-2.5deg;color:rgb(239 232 214 / .74);text-decoration:underline wavy rgb(239 232 214 / .4);text-decoration-thickness:1px;text-underline-offset:.35em}

/* chalk tray under the board: a gold chalk stick and an eraser */
.pb-tray{position:relative;width:92%;height:15px;margin:9px auto 0;border-radius:3px 3px 7px 7px;background:linear-gradient(#3a3023,#1d1810 60%,#120f0b);box-shadow:0 0 0 1px rgb(196 145 47 / .4),0 10px 18px rgb(0 0 0 / .45)}
.pb-tray::before{content:"";position:absolute;left:14%;top:-5px;width:54px;height:9px;border-radius:3px;background:linear-gradient(#fff2c2,#e3bd5c);transform:rotate(-2deg);box-shadow:0 1px 2px rgb(0 0 0 / .5)}
.pb-tray::after{content:"";position:absolute;right:12%;top:-9px;width:62px;height:13px;border-radius:3px;background:linear-gradient(90deg,#2c2a27 0 58%,#8c6f3d 58%);box-shadow:0 1px 3px rgb(0 0 0 / .55)}

/* the note: the same sentence as the list on the right, shown under the board for the advisor being previewed */
.pb-note{margin:1.1rem 0 0;min-height:3.4em;padding-left:.9rem;border-left:2px solid rgb(246 220 146 / .55);color:var(--ink,#efe8d6);font-size:1rem;line-height:1.45;max-width:36rem}
.pb-note b{color:var(--gold-hi);font-weight:600}
.pb-note:empty{display:none}
.check-list li.is-hot{color:var(--ink,#fff)}
.check-list li{transition:color .2s}

@media (max-width:640px){
  .pb{--hit:max(44px,12.3cqw)}
  .pb-board{aspect-ratio:520/780;box-shadow:0 0 0 1px rgb(246 220 146 / .4),0 0 0 5px #0e0d0b,0 0 0 6px rgb(196 145 47 / .55),0 20px 40px rgb(0 0 0 / .5),inset 0 0 50px rgb(0 0 0 / .5)}
  .pb-w{display:none}
  .pb-t{display:block}
  .pb-btn,.pb-you,.pb-sherr,.pb-name{left:calc(var(--mx) / 520 * 100%);top:calc(var(--my) / 780 * 100%)}
  .pb-lab{max-width:17cqw;font-size:max(13px,3.45cqw)} /* upright board (2026-11-05): five labels across 375-430 px, 13 px minimum */
  .pb-you{font-size:max(14px,4.9cqw)}
  .pb-sherr,.pb-name{font-size:max(12px,3.3cqw)}
  .pb-cn{stroke-width:2}
  .pb-tray{width:94%}
  .pb-rt{stroke-width:4.2}
  .pb-ao{stroke-width:3.8}
}
:where(html:not(.mo):not(.ms)) .pb-adv, :where(html:not(.mo):not(.ms)) .pb-hl, :where(html:not(.mo):not(.ms)) .pb-rt-hot, :where(html:not(.mo):not(.ms)) .pb-glow, :where(html:not(.mo):not(.ms)) .pb-lab, :where(html:not(.mo):not(.ms)) .check-list li{transition:none}

/* r5 2026-11-05 (graphic designer 6, r4 recheck): ~250 px of empty black under the caption (right column is taller, then the
   section's 8rem bottom padding). Bottom padding cut on desktop; the next section keeps its own top padding (seam window). */
@media (min-width:1001px){#your-team.sec{padding-bottom:clamp(1.5rem,2.5vw,2.25rem)}}
@media (min-width:1001px){#starting-young.sec{padding-top:clamp(2.5rem,4vw,3.25rem)}} /* r5: the band between the caption and "Starting young" is now ~200 px (was ~330); the rest is the right column being taller than the board */

