/* 1TTD Trainer publish26 (PRIVATE PROTOTYPE): getting-started steps, primary setup actions, collapsed Load a 1TTD,
   phone MOVE / BLOCK / BLITZ bar with a More sheet, empty-state prompts, Back to lesson, focus rings. */
.p26-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.p26-guide{border:2px solid #d8b25a;border-radius:12px;background:#2a2312;padding:10px 12px;margin:0 0 10px;color:#f6e7c4}
.p26-guide-h{display:flex;justify-content:space-between;align-items:center;gap:8px}
.p26-guide-h strong{font-size:15px;letter-spacing:.02em}
.p26-guide-x{min-height:44px;min-width:44px;padding:0 12px;border-radius:8px;border:1px solid #9c8045;background:transparent;color:#f6e7c4;font:inherit;cursor:pointer}
.p26-steps{list-style:none;margin:6px 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.p26-steps li{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:#1c1a10;font-size:13.5px;line-height:1.25}
.p26-steps li.is-next{outline:2px solid #ffd98a;background:#3a2f12}
.p26-steps li.is-done{opacity:.8}
.p26-steps li.is-done .p26-st{text-decoration:line-through;text-decoration-color:#8fbf8f}
.p26-tick{flex:0 0 26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#5b4a1f;color:#fff;font-weight:800;font-size:13px}
.p26-steps li.is-done .p26-tick{background:#2f7a45}
.p26-guide-act{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.p26-guide-tip{margin:2px 0;font-size:13.5px}
.p26-guide.is-complete{border-color:#4f9a62;background:#16281b}
.p26-primary,button.p26-primary{min-height:44px;background:#d8b25a!important;color:#1b1406!important;border:1px solid #f2d48f!important;font-weight:800!important}
/* until players are on the pitch, the Teams panel's team picker and Add player are the primary actions */
html.p26.p26-empty.p26-noteam #r6OffenceRace{outline:3px solid #ffd98a;outline-offset:2px;box-shadow:0 0 0 6px rgba(255,217,138,.18)}
html.p26.p26-empty:not(.p26-noteam) #r61AddOffence{background:#d8b25a!important;color:#1b1406!important;border-color:#f2d48f!important;font-weight:800;outline:3px solid #ffd98a;outline-offset:2px}
/* Load a 1TTD collapsed */
.p26-load-t{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:44px;font:inherit;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#f3d68c}
.p26-load-t::before{content:"▸";transition:transform .15s}
.p26-load-t[aria-expanded=true]::before{transform:rotate(90deg)}
.p26-load-t:focus-visible{outline:2px solid #ffd98a;outline-offset:3px;border-radius:4px}
#p22Top.p26-collapsed>.p22-load,#p22Top.p26-collapsed>.p22-fine,#p22Top.p26-collapsed>#p22Say:empty{display:none!important}
/* empty-state prompts */
.p26-prompt{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:6px 0;padding:8px 10px;border:1px dashed #8a7440;border-radius:10px;background:#1e1c12}
.p26-prompt[hidden]{display:none!important}
.p26-prompt p{margin:0;flex:1 1 180px;font-size:13.5px}
.p26-prompt-bub{display:none}
.p22-bubble.is-empty .p26-prompt-bub{display:flex}
.p22-bubble.is-empty #p22BubbleToggle .p26-grp,.p22-bubble.is-empty #p22BubbleToggle .p23-pair{opacity:.55}
/* the same two odds rows as Play a 1TTD */
.p26-grp{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;margin-right:6px}
.p26-grp-l{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:#f4dcb0}
.p26-rr-legend{font-style:italic}
/* Back to lesson */
.p26-back{position:sticky;top:0;z-index:70;display:flex;align-items:center;min-height:44px;padding:0 14px;background:#1d3324;border-bottom:1px solid #4f7d5a;color:#e9ffea;font-weight:800;text-decoration:none}
.p26-back:focus-visible{outline:3px solid #ffd98a;outline-offset:-3px}
/* focus rings on actions and the pitch */
html.p26 #primaryBar button:focus-visible,html.p26 .r4-tabs [role=tab]:focus-visible,html.p26 .p22-btn:focus-visible{outline:3px solid #ffd98a!important;outline-offset:2px}
html.p26 #pitch:focus-visible,html.p26 #pitchScroll:focus-visible,html.p26 #pitch [tabindex]:focus-visible{outline:3px solid #ffd98a!important;outline-offset:2px}
.p26-more-acts{display:none}
/* phones: MOVE / BLOCK / BLITZ always visible and larger, the rest in a More sheet just above the bar */
@media (max-width:600px){
  html.p26.ttd-r4 .r4-actions{position:fixed!important;left:0;right:0;bottom:0;margin:0!important;z-index:60;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px))}
  html.p26.ttd-r4 body{padding-bottom:calc(var(--p26-bar-h,72px) + 8px)!important}
  html.p26.ttd-r4 .r4-actions #primaryBar{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible!important}
  html.p26.ttd-r4 .r4-actions #primaryBar>button{min-width:0!important;width:auto!important;min-height:52px!important;font-size:14px!important;font-weight:800;padding:2px 4px!important}
  html.p26.ttd-r4 #primaryBar>#move{order:1}html.p26.ttd-r4 #primaryBar>#block{order:2}html.p26.ttd-r4 #primaryBar>#blitz{order:3}
  html.p26.ttd-r4 #primaryBar>#p26MoreActs{order:4;display:block;background:#3a3016;border:1px solid #b08a45;color:#fff1d2}
  html.p26.ttd-r4 .r4-actions #primaryBar>#transfer,html.p26.ttd-r4 .r4-actions #primaryBar>#transfer.r61-hidden,html.p26.ttd-r4 .r4-actions #primaryBar>#r61GiveBall,html.p26.ttd-r4 .r4-actions #primaryBar>#r61GiveBall.r61-hidden,html.p26.ttd-r4 .r4-actions #primaryBar>#p22Reposition,html.p26.ttd-r4 .r4-actions #primaryBar>#p22Reposition.r61-hidden,html.p26.ttd-r4 .r4-actions #primaryBar>#undo,html.p26.ttd-r4 .r4-actions #primaryBar>#undo.r61-hidden,html.p26.ttd-r4 .r4-actions #primaryBar>#redo,html.p26.ttd-r4 .r4-actions #primaryBar>#redo.r61-hidden{display:none!important;order:10;min-height:46px!important;font-size:12.5px!important}
  html.p26.p26-sheet.ttd-r4 .r4-actions #primaryBar>#transfer,html.p26.p26-sheet.ttd-r4 .r4-actions #primaryBar>#r61GiveBall,html.p26.p26-sheet.ttd-r4 .r4-actions #primaryBar>#p22Reposition,html.p26.p26-sheet.ttd-r4 .r4-actions #primaryBar>#undo,html.p26.p26-sheet.ttd-r4 .r4-actions #primaryBar>#redo{display:block!important}
  html.p26.p26-sheet.ttd-r4 #primaryBar{grid-template-columns:repeat(4,minmax(0,1fr))}
  html.p26.p26-sheet.ttd-r4 #primaryBar>#transfer{grid-column:1 / span 2}
  html.p26.ttd-r4 #primaryBar>button:disabled{min-height:52px!important;opacity:.6}
  html.p26 .p26-steps{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){html.p26.ttd-r4 #p26Guide{order:2}}   /* publish27: right under the pitch, above the tabs */   /* phones/tablets: pitch first, the steps lead the setup area */
@media (prefers-reduced-motion:reduce){.p26-load-t::before{transition:none}}
/* publish27: the RR legend next to the odds controls whenever detailed odds are open */
.p27-detail-legend{display:none;margin:4px 0 0;font-size:12px;color:#f4dcb0}
html.p25-detail .p27-detail-legend{display:block}
#p26OddsLegend{margin:6px 0;padding:6px 10px;border-left:3px solid #d8b25a;background:#231d10;font-style:normal;color:#f4dcb0}

/* publish28: Free Play odds box. One control row: Team rerolls (left) | +Detailed odds (right). The extra summary boxes
   are gone; expanded shows only the legend, the dice-only line and the link to the full Odds tab. */
#p23BubPM{display:none!important}
.p22-bubble .p22-bubble-grid{display:none!important}
.p28-odds-ctl{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:4px 0 0}
.p28-odds-ctl .p23-rr{margin:0}
.p28-detail-btn{min-height:32px;padding:4px 10px;border:1px solid #c59a4b;border-radius:7px;background:#2a1d0c;color:#ffe3ad;font-size:12.5px;font-weight:700;cursor:pointer}
.p28-detail-btn:hover{background:#3a2810}
.p28-detail-btn:focus-visible{outline:2px solid #ffd98a;outline-offset:1px}
.p22-bubble.is-open .p27-detail-legend{display:none!important}

/* publish28: "Show getting started" after the steps are hidden */
.p28-guide-show{align-self:flex-start;min-height:36px;margin:0 0 8px;padding:4px 12px;border:1px dashed #9c8045;border-radius:8px;background:transparent;color:#f6e7c4;font:inherit;font-size:13px;cursor:pointer}
.p28-guide-show:hover{background:#2a2312}
.p28-guide-show:focus-visible{outline:2px solid #ffd98a;outline-offset:1px}
@media (max-width:900px){html.p26.ttd-r4 #p28GuideShow{order:2}}
