.guide-page [id] { scroll-margin-top: 95px; }
.guide-page :is(a, button, [tabindex]):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.guide-page .sub-title { text-wrap: balance; }
.guide-page .sub-section:last-child { padding-bottom: clamp(48px, 8vw, 100px); }
.guide-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.guide-jump a { padding: 8px 12px; border-radius: 10px; background: white; border: 1px solid #c7d9ef; color: var(--navy); font-weight: 650; }
.guide-figure { margin: 0; min-width: 0; }
.guide-stage { padding: clamp(12px, 3vw, 26px); background: #edf4ff; color: var(--navy); }
.guide-stage svg { display: block; width: 100%; height: auto; }
.guide-figure figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }
.guide-play { appearance: none; border: 1px solid #afc9eb; border-radius: 10px; padding: 8px 14px; min-height: 44px; margin-top: 12px; font: inherit; font-weight: 650; color: var(--navy); background: #fff; cursor: pointer; }
.guide-play:hover { background: var(--blue-soft); }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-examples, .guide-fixes { display: grid; gap: 16px; }
.guide-fixes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card { background: white; border: 1px solid #d7e4f5; border-radius: 20px; padding: clamp(14px, 3vw, 26px); }
.guide-card:target { border-color: var(--blue); }
.guide-card h3 { color: var(--navy); font-size: clamp(20px, 3vw, 28px); line-height: 1.15; margin: 6px 0 10px; }
.guide-card p + p { margin-top: 10px; }
.guide-card svg { display: block; }
.guide-icon { width: 100%; height: 88px; background: var(--blue-soft); border-radius: 12px; margin-bottom: 16px; color: var(--blue); }
.guide-example { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(16px, 4vw, 42px); }
.guide-example .guide-stage { border-radius: 12px; }
.guide-device { fill: #fff; stroke: #102a56; stroke-width: 3; }
.guide-pulse { opacity: 0; }
.guide-timeline { position: relative; display: grid; gap: 6px; font-size: clamp(11px, 1.3vw, 14px); }
.guide-track { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 6px; align-items: center; }
.guide-clips { display: grid; grid-template-columns: var(--clips, 1fr 1fr); gap: 2px; min-width: 0; }
.guide-clips span { display: grid; align-content: center; min-width: 0; overflow-wrap: anywhere; padding: 8px 3px; text-align: center; border-radius: 5px; background: #d2e4ff; font-weight: 700; }
.guide-clips span:nth-child(2) { background: #d9f0e6; }
.guide-sound .guide-clips span { border-bottom: 2px solid currentColor; }
.guide-playhead { position: absolute; pointer-events: none; inset: -3px 0 -3px calc(4em + 6px); }
.guide-playhead::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: #9c320c; opacity: 0; }
.guide-track-title { font-weight: 700; }
.guide-frames { margin-bottom: 16px; border-radius: 10px; background: #e0ecfc; }
@media (prefers-reduced-motion: no-preference) {
  .guide-active .guide-pulse { animation: guide-signal 3.2s linear; }
  .guide-active .guide-playhead::before { animation: guide-travel 3.2s linear; }
  .guide-active .guide-shot-a > rect:first-child { animation: guide-highlight 1.6s step-end; }
  .guide-active .guide-shot-b > rect:first-child { animation: guide-highlight 1.6s 1.6s step-end; }
  .guide-active .guide-sound .guide-clips span:last-child { animation: guide-heard 2.4s .8s step-end; }
}
@keyframes guide-highlight { from { stroke: #102a56; stroke-width: 6px; } }
@keyframes guide-heard { from { background: #b7e3ce; } }
@keyframes guide-signal { 0% { opacity: 1; transform: translateX(0); } 70%, 95% { opacity: 1; transform: translateX(157px); } 100% { opacity: 0; transform: translateX(157px); } }
@keyframes guide-travel { from { left: 0; opacity: 1; } to { left: calc(100% - 2px); opacity: 1; } }
@media (max-width: 760px) { .guide-cards, .guide-fixes, .guide-example { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .guide-play { display: none; } .guide-page, .guide-page * { scroll-behavior: auto; } }
