/* The Pact Schools step-through tour (/demo/schools/; Nov 20, 2026; pact-schools-spec/24 B2, L4, D5). Loaded only by that
   page, after schools.css (ops/build_schools_tour.py). Behavior: /demo/schools/tour.js. Without the script every step
   shows, one under the other, and the controls and hotspots stay hidden. */
.sx-tour-how{margin:0 0 22px;padding:14px 18px;border-radius:14px;background:var(--sx-tint-2);font-size:15px;line-height:1.6;color:var(--sx-body)}
.sx-tour-how b{color:var(--ink)}
.sx main .sx-tour{margin:0;padding:0;scroll-margin-top:84px}
.sx-tour-step{margin:0 0 44px}
.sx-tour-frame{border:1px solid var(--sx-hair);border-radius:16px;background:#fff;box-shadow:var(--sx-soft);overflow:hidden}
.sx-tour-bar{display:flex;align-items:center;gap:6px;height:38px;padding:0 14px;border-bottom:1px solid var(--sx-hair);background:var(--sx-tint)}
.sx-tour-bar i{width:10px;height:10px;border-radius:50%;background:var(--sx-hair-2)}
.sx-tour-bar span{flex:0 1 300px;margin:0 auto;padding:4px 14px;border:1px solid var(--sx-hair);border-radius:999px;background:#fff;font:500 13px/1.3 var(--sx-sans);color:var(--sx-body);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-tour-bar::after{content:"";width:42px}
.sx-tour-shot{position:relative;aspect-ratio:16/9;background:var(--sx-tint)}
.sx-tour-pic{position:relative;display:block;height:100%}
.sx-tour-pic img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
/* a phone screen at every width: the phone picture in a bezel, centered on the 16:9 stage */
.sx-tour-shot.is-phone{background:linear-gradient(160deg,var(--sx-tint-2),var(--sx-tint))}
.sx-tour-shot.is-phone .sx-tour-pic{position:absolute;top:4%;left:50%;height:92%;aspect-ratio:780/1280;transform:translateX(-50%)}
.sx-tour-shot.is-phone .sx-tour-pic img{border:5px solid var(--ink);border-radius:22px;box-shadow:0 18px 40px -18px rgba(0,32,95,.55);object-fit:contain;background:#fff}

/* The hotspot: a 34px royal dot with a white edge in a 44px target, and a ring that grows and fades every 1.6s */
.sx-tour-hot{position:absolute;left:var(--dx);top:var(--dy);z-index:2;display:none;width:44px;height:44px;margin:-22px 0 0 -22px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.sx-tour.is-live .sx-tour-hot{display:block}
.sx-tour-hot::before{content:"";position:absolute;inset:5px;border:3px solid #fff;border-radius:50%;background:var(--sx-bright);box-shadow:0 2px 10px rgba(0,32,95,.5)}
.sx-tour-hot::after{content:"";position:absolute;inset:5px;border:2px solid var(--sx-bright);border-radius:50%;animation:sx-tour-ring 1.6s ease-out infinite}
.sx .sx-tour-hot:focus-visible{outline:3px solid var(--ink);outline-offset:1px;border-radius:50%}
@keyframes sx-tour-ring{from{transform:scale(1);opacity:.85}to{transform:scale(2.3);opacity:0}}

.sx-tour-cap{margin:18px 0 0}
.sx-tour-cap .sx-k{margin:0 0 8px;color:var(--sx-bright)}
.sx .sx-prose .sx-tour-cap h3{margin:0 0 6px;font-size:24px}
.sx-tour-cap p:last-child{margin:0;font-size:16px;line-height:1.6}
.sx-tour.is-live .sx-tour-cap{min-height:118px}

/* The end card takes the screenshot's place */
.sx-tour-end{margin:0}
.sx-tour-endcard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:420px;padding:40px 28px;border-radius:16px;background:radial-gradient(520px 320px at 88% 0,rgba(91,141,239,.34),transparent 70%),linear-gradient(135deg,var(--royal),var(--deep));text-align:center;color:#fff}
.sx .sx-prose .sx-tour-endcard h3{margin:0;font-size:31px;color:#fff}
.sx .sx-tour-endcard h3:focus{outline:none}
.sx-tour-endcard p{margin:0;max-width:520px;font-size:17px;line-height:1.6;color:var(--sx-on-86)}
.sx-tour-endcard .sx-tour-price{font:600 22px/1.3 var(--sx-serif);color:#fff}
.sx-tour-endcard .sx-btns{justify-content:center;margin:6px 0 0}
.sx-prose .sx-tour-endcard a:not(.sx-btn){color:#fff;font-weight:700}
.sx .sx-tour-endcard :is(a,button):focus-visible{outline-color:#fff}

/* Controls (shown by the script): Back, eight dots, Next, and start over */
.sx-tour-ctl,.sx-tour-again{display:none}
.sx-tour.is-live .sx-tour-step{display:none;margin:0}
.sx-tour.is-live .sx-tour-step.is-on{display:block}
.sx-tour.is-live .sx-tour-ctl{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 0}
.sx-tour-ctl .sx-btn{min-width:112px}
.sx-tour-ctl .sx-btn[disabled]{opacity:.38;cursor:default;box-shadow:none;transform:none}
.sx-tour-dots{display:flex;justify-content:center;min-width:0}
.sx-tour-dot{position:relative;width:28px;height:44px;padding:0;border:0;background:none;cursor:pointer}
.sx-tour-dot::before{content:"";position:absolute;left:50%;top:50%;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:var(--sx-hair-2);transition:background-color .2s,transform .2s}
.sx-tour-dot:hover::before{background:var(--sx-glow)}
.sx-tour-dot[aria-current="step"]::before{background:var(--royal);transform:scale(1.34)}
.sx-tour.is-live .sx-tour-again{display:inline-flex;align-items:center;min-height:44px;margin:6px 0 0;padding:0 4px;border:0;background:none;font:600 15px/1.2 var(--sx-sans);color:var(--royal);text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* What it costs: two lines */
.sx-tour-cost{margin:0 0 20px;padding:0;list-style:none}
.sx-prose ul.sx-tour-cost li{margin:0;padding:14px 0;border-top:1px solid var(--sx-hair);font-size:17px}
.sx-prose ul.sx-tour-cost li::before{display:none}
.sx-prose ul.sx-tour-cost li:last-child{border-bottom:1px solid var(--sx-hair)}
.sx-tour-cost b{font:600 22px/1.2 var(--sx-serif);color:var(--royal)}

@media (max-width:640px){
  /* phones get the phone-width picture of every step */
  .sx-tour-shot,.sx-tour-shot.is-phone{aspect-ratio:780/1280}
  .sx-tour-shot.is-phone .sx-tour-pic{top:0;height:100%}
  .sx-tour-shot.is-phone .sx-tour-pic img{border:0;border-radius:0;box-shadow:none}
  .sx-tour-hot{left:var(--mx);top:var(--my)}
  .sx-tour-bar span{flex-basis:220px}
  .sx .sx-prose .sx-tour-cap h3{font-size:22px}
  .sx-tour.is-live .sx-tour-cap{min-height:150px}
  /* Next sits on the left, so the chat button at the lower right never covers it */
  .sx-tour.is-live .sx-tour-ctl{flex-wrap:wrap;gap:8px 12px}
  .sx-tour-dots{order:-1;flex:0 0 100%}
  .sx-tour-dot{flex:1 1 0;min-width:0}
  .sx-tour-ctl .sx-tour-next{order:1;flex:1 1 0}
  .sx-tour-ctl .sx-tour-back{order:2;flex:0 0 auto;min-width:96px}
  .sx-tour-endcard{min-height:0;padding:36px 20px}
  .sx .sx-prose .sx-tour-endcard h3{font-size:24px}
  .sx-tour-endcard .sx-btns{flex-direction:column;align-self:stretch}
}
@media (prefers-reduced-motion:reduce){
  .sx-tour-hot::after{animation:none;transform:scale(1.45);opacity:.5}
  .sx-tour-dot::before{transition:none}
}
@media print{.sx-tour-ctl,.sx-tour-again,.sx-tour-hot{display:none!important}.sx-tour.is-live .sx-tour-step{display:block;margin:0 0 30px}}
