/* 12-in-12 Challenge: the welcome tour (tour.js). The same layout as the welcome tour in the Think, Speak, Act program, in the
   12-in-12 colors. Tokens come from index.html (navy, gold, cream, line, amber). Dark follows the device, as the sign in pop-up does.
   Every target is at least 48 px. No shadows on the box, one 10 px radius, motion only for people who have not asked for less. */
.tour{position:fixed;inset:0;z-index:950;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;background:rgba(0,51,102,.72);overflow-y:auto;font-family:var(--f-ui,'Lato',Arial,sans-serif)}
.tour *{box-sizing:border-box}
.tour-box{position:relative;width:100%;max-width:600px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:20px 20px 0;background:#fff;color:#333;border:1px solid var(--line,#C7D8E8);border-radius:var(--pr,10px)}
.tour-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}
.tour-kicker{margin:0;color:var(--amber,#A26700);font:700 14px/1.2 var(--f-ui,'Lato',Arial,sans-serif)}
.tour-skip,.tour-back{min-height:48px;padding:0 8px;border:0;background:none;color:var(--navy,#003366);font:700 16px/1.2 var(--f-ui,'Lato',Arial,sans-serif);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tour-skip[hidden],.tour-back[hidden]{display:none}
.tour-h{margin:0;color:var(--navy,#003366);font:700 26px/1.2 var(--f-disp,'Playfair Display',Georgia,serif);text-wrap:balance;overflow-wrap:break-word}
.tour-h:focus{outline:none}
.tour-b{margin:0;font:400 16px/1.55 var(--f-ui,'Lato',Arial,sans-serif);color:#333}
.tour-shot{position:relative;width:100%;aspect-ratio:10/7;overflow:hidden;border:1px solid var(--line,#C7D8E8);border-radius:var(--r,7px);background:var(--soft,#FAF8F3);line-height:0}
.tour-shot img{display:block;width:100%;height:100%;object-fit:cover}
.tour-cut{position:absolute;border:3px solid var(--gold,#EEA320);border-radius:6px;box-shadow:0 0 0 999px rgba(8,20,38,.55);pointer-events:none}
.tour-cut[hidden]{display:none}
.tour-nav{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;margin:0 -20px;padding:12px 20px;background:#fff;border-top:1px solid var(--line,#C7D8E8)}
.tour-dots{display:flex;align-items:center;gap:8px}
.tour-dot{width:9px;height:9px;border-radius:999px;background:var(--line,#C7D8E8)}
.tour-dot.on{width:23px;background:var(--gold,#EEA320)}
.tour-next{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;min-width:48px;padding:0 6px 0 16px;border:0;border-radius:999px;background:none;color:var(--navy,#003366);font:700 17px/1.2 var(--f-ui,'Lato',Arial,sans-serif);cursor:pointer}
.tour-arrow{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:999px;background:var(--gold,#EEA320);color:var(--navy,#003366);font-size:20px}
.tour-arrow[hidden]{display:none}
.tour-next.last{white-space:nowrap;padding:0 16px;border-radius:var(--r,7px);background:var(--gold,#EEA320)}
.tour-skip:focus-visible,.tour-back:focus-visible,.tour-next:focus-visible{outline:3px solid var(--navy,#003366);outline-offset:2px}
.tour-restored:focus{outline:none}
.tour-points{list-style:none;margin:0;padding:16px;display:flex;flex-direction:column;gap:12px;background:var(--soft,#FAF8F3);border:1px solid var(--line,#C7D8E8);border-radius:var(--r,7px)}
.tour-points[hidden],.tour-shot[hidden]{display:none}
.tour-pt{display:flex;flex-direction:column;gap:2px}
.tour-pt-k{font:700 14px/1.3 var(--f-ui,'Lato',Arial,sans-serif);color:var(--navy,#003366)}
.tour-pt.no .tour-pt-k{color:#8A1F1F}
.tour-pt-v{font:400 16px/1.45 var(--f-ui,'Lato',Arial,sans-serif);color:#333}
.tour-live{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:520px){
  .tour{padding:10px}
  .tour-box{padding:14px 16px 0;gap:10px;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
  .tour-nav{margin:0 -16px;padding:10px 16px}
  .tour-h{font-size:22px}
  .tour-b{font-size:16px}
}
@media(max-height:560px){.tour-h{font-size:20px}}
@media(prefers-reduced-motion:no-preference){
  .tour:not(.still){animation:tour-in 140ms ease-out}
  .tour:not(.still) .tour-box{animation:tour-rise 140ms ease-out}
  .tour-dot{transition:width 120ms,background-color 120ms}
  .tour-skip,.tour-back,.tour-arrow{transition:background-color 100ms,color 100ms}
  @keyframes tour-in{from{opacity:0}to{opacity:1}}
  @keyframes tour-rise{from{transform:translateY(8px)}to{transform:none}}
}
@media(prefers-color-scheme:dark){
  .tour{background:rgba(0,20,40,.82)}
  .tour-box{background:#0B2A4A;color:#F3EDE2;border-color:#4D7094}
  .tour-kicker{color:#EEA320}
  .tour-h{color:#F3EDE2}
  .tour-b{color:#F3EDE2}
  .tour-skip,.tour-back,.tour-next{color:#F3EDE2}
  .tour-next.last{color:#003366}
  .tour-shot{border-color:#4D7094}
  .tour-points{background:#123A63;border-color:#4D7094}
  .tour-pt-k,.tour-pt-v{color:#F3EDE2}
  .tour-pt.no .tour-pt-k{color:#FFB4A6}
  .tour-nav{background:#0B2A4A;border-top-color:#4D7094}
  .tour-dot{background:#4D7094}
  .tour-dot.on{background:#EEA320}
  .tour-skip:focus-visible,.tour-back:focus-visible,.tour-next:focus-visible{outline-color:#EEA320}
  .tour-arrow{color:#003366}
}
