/* Step-by-step guides (guides/*.html). Uses the tokens in site.css. */
.guide-hero { padding-bottom: 28px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.guide-meta span { font-size: 0.85rem; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.video-panel { margin-top: 22px; max-width: 760px; }
.video-panel summary { cursor: pointer; font-weight: 600; color: var(--blue); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.video-panel summary::before { content: "▶"; font-size: 0.75rem; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; }
.video-panel summary::-webkit-details-marker { display: none; }
.video-panel summary::after { content: none; }
.video-panel .video { margin-top: 14px; }

.guide-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding-bottom: 88px; }
.rail { position: sticky; top: 92px; }
.rail ol { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; gap: 2px; }
.rail a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 0.92rem; line-height: 1.35; }
.rail a:hover { background: var(--tint); }
.rail li.current a { background: var(--tint); color: var(--blue); font-weight: 600; }
.rail-n { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 0.75rem; font-weight: 700; color: var(--muted); background: #fff; }
.rail li.current .rail-n { border-color: var(--blue); color: var(--blue); }
.rail li.is-done .rail-n { background: var(--green); border-color: var(--green); color: transparent; position: relative; }
.rail li.is-done .rail-n::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 0.8rem; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width 0.35s ease; }
.progress-label { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.progress-label b { color: var(--navy); }
.reset { background: none; border: 0; padding: 4px 10px; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: underline; }

.gsteps { min-width: 0; }
.gstep { scroll-margin-top: 90px; padding: 0 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.step-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0; flex: 1; }
.step-n { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; }
.gstep.is-done .step-n { background: var(--green); }
.done { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; }
.done input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.gstep.is-done .done { color: var(--green); border-color: rgba(6, 118, 71, 0.35); background: #ecfdf3; }
.step-text { font-size: 1.05rem; max-width: 66ch; }
.step-text p { margin-bottom: 0.7em; }
b.ui { font-weight: 700; color: var(--navy); background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; white-space: nowrap; }

.shot { position: relative; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--tint); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spot { position: absolute; padding: 0; background: rgba(10, 108, 255, 0.07); border: 3px solid var(--blue); border-radius: 10px; cursor: pointer; animation: spot 2.2s ease-out infinite; }
@keyframes spot { 0% { box-shadow: 0 0 0 0 rgba(10, 108, 255, 0.45); } 70% { box-shadow: 0 0 0 12px rgba(10, 108, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 108, 255, 0); } }
.spot-n { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.8rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.spot-tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%) translateY(4px); background: var(--navy); color: #fff; font-size: 0.85rem; font-weight: 600; white-space: nowrap; padding: 7px 11px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; z-index: 3; }
.spot-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--navy); }
.spot:hover .spot-tip, .spot:focus-visible .spot-tip, .spot.open .spot-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.spot:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); color: var(--navy); font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.zoom:hover { color: var(--blue); }

.tip { margin-top: 18px; display: flex; gap: 12px; align-items: baseline; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 14px 16px; font-size: 0.97rem; }
.tip p { margin: 0; }
.tip-label { flex: none; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #92400e; }
.step-foot { margin-top: 20px; }
.next { font: inherit; font-weight: 600; font-size: 0.95rem; color: #fff; background: var(--blue); border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer; }
.next:hover { background: var(--blue-dark); }
.next::after { content: " ↓"; }
.next[data-next="done"]::after { content: " ✓"; }

.finished { background: #ecfdf3; border: 1px solid rgba(6, 118, 71, 0.3); border-radius: var(--radius); padding: 26px; margin-bottom: 44px; }
.finished h2 { color: var(--green); margin-bottom: 0.3em; }
.related h2 { font-size: 1.35rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.related-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); padding: 20px; }
.related-card .eyebrow { margin: 0; }
.related-card b { color: var(--navy); font-size: 1.05rem; }
.related-card .muted { font-size: 0.92rem; }
.related-card:hover { border-color: var(--blue); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(11, 16, 32, 0.86); display: grid; place-items: center; padding: 28px; }
.lightbox[hidden] { display: none; }
.lightbox-inner { width: min(1400px, 100%); max-height: 100%; overflow: auto; }
.lightbox-inner .shot { margin: 0; box-shadow: none; }
.lightbox-inner .zoom { display: none; }
.lightbox-close { position: absolute; top: 12px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .rail { position: sticky; top: 68px; z-index: 5; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); margin: 0 -24px 28px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
  .rail ol, .reset { display: none; }
  .progress-label { margin-top: 6px; }
  .step-head { flex-wrap: wrap; }
  .step-head h2 { flex-basis: calc(100% - 60px); }
  .done { margin-left: 52px; }
  .spot-n { width: 22px; height: 22px; left: -11px; top: -11px; font-size: 0.72rem; }
  .spot { border-width: 2px; }
}
@media (prefers-reduced-motion: reduce) { .spot { animation: none; } .progress-bar span, .spot-tip { transition: none; } }
