/* Position guides share the board's themes; the coaching pitch keeps its own high-contrast palette. */
.editorial .position-label.position-guide-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:3px 7px;border:1px solid var(--pitch-slot-border);border-radius:6px;background:var(--pitch-slot-bg);color:var(--pitch-ink);font-weight:600;cursor:pointer;touch-action:manipulation}
.position-guide-link::after{content:'↗';font-size:13px}
.editorial .position-guide-link:hover{background:var(--pitch-ink);color:var(--pitch-bg)}
.editorial .position-guide-link:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.editorial #main-dialog:has(.position-guide){width:min(850px,calc(100vw - 24px))}
.guide-intro{font-size:13px;color:var(--muted);margin:0 0 18px}
.guide-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:24px;align-items:start}
.guide-visual,.guide-instructions{min-width:0}
.guide-pitch{display:block;width:100%;max-height:440px}
.guide-grass{fill:#173a30}.guide-lines{stroke:#97baaa;stroke-width:1;opacity:.55}.guide-goal{fill:#e1eae1;font:700 8px system-ui,sans-serif;letter-spacing:1.5px;text-anchor:middle}
.guide-zone{fill:#ffe397;fill-opacity:.15;stroke:#ffe397;stroke-width:1.5;stroke-dasharray:5 4}
.guide-arrow{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.guide-move{stroke:#ffe397}.guide-move-head{fill:#ffe397}.guide-danger,.guide-pass{stroke:#ff9c9c;stroke-width:2;stroke-dasharray:5 5}.guide-danger-head,.guide-pass-head{fill:#ff9c9c}
.guide-teammate circle{fill:#2d5347;stroke:#a5bcb2;stroke-width:1}.guide-teammate text{fill:#e1e9e4;font:600 7px system-ui,sans-serif;text-anchor:middle}
.guide-opponent{fill:#ff9c9c;stroke:#173a30;stroke-width:1.5}
.guide-you circle{fill:#ffe397;stroke:#ffe397;stroke-width:2}.guide-you .guide-you-ring{fill:#ffe397;fill-opacity:.12;stroke-width:1.5}.guide-you text{fill:#23332b;font:800 8px system-ui,sans-serif;text-anchor:middle}
.guide-ball circle{fill:#fff;stroke:#173a30;stroke-width:1.5}.guide-ball path{fill:#173a30}.guide-ball text{fill:#fff;font:700 8px system-ui,sans-serif;text-anchor:middle;paint-order:stroke;stroke:#173a30;stroke-width:3px;stroke-linejoin:round}
.guide-call rect{fill:#ffe397}.guide-call text{fill:#23332b;font:700 14px system-ui,sans-serif;text-anchor:middle}
.guide-legend{display:flex;flex-wrap:wrap;gap:9px 15px;font-size:11px;color:var(--muted);margin-top:12px;line-height:1.5}
.guide-legend span{display:inline-flex;align-items:center;gap:6px}.guide-legend i{display:inline-block;flex-shrink:0;width:12px;height:12px;font-style:normal}.legend-you{background:#ffe397;border:1px solid #6b5b33;border-radius:50%}.legend-zone{background:#cfa44633;border:1px dashed #a7832e;border-radius:50%}.legend-opponent{background:#ff9c9c;border:1px solid #a84c4c;border-radius:2px}.guide-legend .legend-move{font-size:20px;line-height:10px;color:var(--text)}
.guide-prompt{font-size:12px;font-weight:700;letter-spacing:.02em;margin:0 0 10px;color:var(--muted)}
.guide-rules{display:grid;gap:10px}.guide-rule{display:flex;align-items:flex-start;gap:12px;text-align:left;width:100%;min-height:74px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-raised);color:var(--text)}
.guide-rule[aria-pressed=true]{border-color:var(--accent-text);background:var(--accent-wash);box-shadow:inset 3px 0 0 var(--accent-text)}
.guide-rule-number{display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;font-weight:700;font-size:12px}.guide-rule[aria-pressed=true] .guide-rule-number{background:var(--red);border-color:var(--red);color:#fff}
.guide-rule strong{display:block;font-size:15px;line-height:1.4}.guide-rule strong+span{display:block;font-size:13px;line-height:1.5;margin-top:4px;color:var(--muted)}
.guide-rule:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.guide-explanation{font-size:14px;line-height:1.65;margin:18px 0 12px;min-height:68px}.guide-note{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.guide-actions{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:600px){.guide-layout{grid-template-columns:1fr;gap:18px}.guide-pitch{max-height:280px}.guide-intro{font-size:12px;margin-bottom:12px}.guide-legend{justify-content:center;font-size:10px;gap:7px 12px}.guide-rule{padding:11px;min-height:65px}.guide-rule strong{font-size:14px}.guide-rule strong+span{font-size:12px}.guide-explanation{min-height:0;margin-top:14px}.guide-actions .button{flex:1}.editorial .position-label.position-guide-link{font-size:11px;min-height:32px;padding:3px 5px}}
@media(prefers-reduced-motion:reduce){.guide-rule,.position-guide-link{transition:none!important}}
