/* The SSY Tour's own layout. The look comes from ../css/ssy.css. */

.tour-h{font-size:20px;font-weight:800;margin:26px 0 10px}
.btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:48px;padding:10px 26px;border-radius:10px;text-decoration:none;font:inherit;
  font-weight:800;cursor:pointer;text-align:center}
.tour-resume-row{margin-top:16px}
.tour-resume-where{display:block;font-size:14px;font-weight:600;opacity:.92}

/* ---- the tour's own band: gold, not the portal's green, with a compass, a
   stamped TOUR and a dotted route along its foot, so nobody mistakes a tour page
   for the portal. The stamp and the route say it without the colour. ---- */
.tour-rule-top{background:var(--ink);height:3px}
.tour-band{background:var(--accent);color:var(--ink);position:relative;padding-bottom:5px;
  background-image:radial-gradient(circle,var(--ink) 1.2px,transparent 1.6px);
  background-size:11px 5px;background-repeat:repeat-x;background-position:0 100%}
/* One row: compass, name, TOUR, and the language choice folded behind a globe,
   since a reader picks a language once or twice, ever. */
.tour-band .wrap{min-height:0;padding-top:6px;padding-bottom:5px;gap:8px;flex-wrap:nowrap}
.tour-band .tour-brand{flex:1 1 auto;min-width:0;flex-wrap:nowrap;gap:6px;font-size:12px;letter-spacing:.01em}
@media (min-width:420px){.tour-band .tour-brand{font-size:13.5px;letter-spacing:.05em}}
.tour-brand-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tour-langs{position:relative;flex:none}
.tour-langs summary{list-style:none;cursor:pointer;width:34px;height:34px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;border:1.5px solid rgba(20,38,60,.5)}
.tour-langs summary::-webkit-details-marker{display:none}
.tour-langs summary svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:1.6}
.tour-langs summary:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.tour-langs[open] summary{background:var(--ink)}
.tour-langs[open] summary svg{stroke:var(--accent)}
.tour-langs .langs{position:absolute;right:0;top:40px;z-index:20;flex-direction:column;gap:4px;
  background:var(--paper);padding:6px;border-radius:12px;box-shadow:0 6px 20px rgba(20,38,60,.25)}
.tour-langs .langs button{min-height:36px;min-width:96px;font-size:14px;padding:4px 12px;text-align:left;
  color:var(--ink);border:1.5px solid var(--rail);background:var(--card)}
.tour-langs .langs button[aria-current="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.tour-band::after{content:"";position:absolute;right:14px;bottom:-1px;width:9px;height:9px;border-radius:50%;
  background:var(--ink);box-shadow:0 0 0 3px var(--accent)}
.tour-brand{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--ink)}
.tour-compass{flex:none}
.tour-compass svg{display:block;width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linejoin:round}
.tour-stamp{flex:none;display:inline-block;transform:rotate(-6deg);border:2.5px double var(--ink);border-radius:6px;
  padding:0 6px;font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink);background:rgba(255,255,255,.35);line-height:1.35}
.tour-band .langs button{color:var(--ink);border-color:rgba(20,38,60,.55)}
.tour-band .langs button[aria-current="true"]{background:var(--ink);color:var(--accent);border-color:var(--ink)}
.tour-band .langs button:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
@media print{.tour-band{background:var(--accent)!important}}

/* ---- the home page and a section's page ---- */
.tour-welcome{background:var(--tint);border-bottom:1px solid var(--rail);padding:16px 0 22px}
.tour-welcome h1{font-size:30px;font-weight:800;line-height:1.15;margin-top:6px;display:flex;gap:10px;align-items:center}
.tour-welcome .lead{margin-top:10px;font-size:17.5px;color:#2B2721}
.tour-welcome-sm h1{font-size:26px}
.tour-h1-ico svg{width:34px;height:34px;fill:none;stroke:var(--brand);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tour-cards{display:grid;gap:12px;grid-template-columns:1fr}
.tour-card-sec{display:flex;gap:14px;align-items:center;padding:16px;border-radius:14px;
  background:var(--card);border:1.5px solid var(--rail);border-left:6px solid var(--brand);
  text-decoration:none;color:var(--ink);position:relative}
.tour-card-sec:hover,.tour-card-sec:focus-visible{background:var(--tint);outline:none;border-color:var(--brand)}
.tour-card-is-mine{border-color:var(--accent);border-left-color:var(--accent);box-shadow:0 0 0 2px rgba(232,149,43,.35)}
.tour-card-ico{flex:none;width:52px;height:52px;border-radius:50%;background:var(--tint);
  display:flex;align-items:center;justify-content:center}
.tour-card-ico svg{width:30px;height:30px;fill:none;stroke:var(--brand);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tour-card-body{flex:1 1 auto;min-width:0}
.tour-card-name{display:block;font-size:20px;font-weight:800;line-height:1.2}
.tour-card-line{display:block;font-size:15.5px;color:var(--muted);margin-top:3px}
.tour-card-mine{position:absolute;top:-10px;right:12px;background:var(--accent);color:var(--ink);
  font-size:12.5px;font-weight:800;border-radius:6px;padding:2px 8px}
@media (min-width:620px){.tour-cards{grid-template-columns:1fr 1fr}}

.tour-homelink{display:inline-flex;align-items:center;gap:6px;min-height:40px;font-size:15px;font-weight:700;
  text-decoration:none;color:var(--brand-dark)}
.tour-homelink svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tour-group{margin-top:18px}
.tour-group + .tour-group{margin-top:22px}
.tour-group h2{font-size:14px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tour-topics{list-style:none;margin-top:6px;border-top:1px solid var(--rail)}
.tour-topics a{display:flex;gap:10px;align-items:center;min-height:50px;padding:10px 4px;
  border-bottom:1px solid var(--rail);text-decoration:none;color:var(--ink);font-size:17.5px;font-weight:600}
.tour-topics a:hover,.tour-topics a:focus{background:var(--tint)}
.tour-tname{flex:1 1 auto}
.tour-done-mark svg{width:22px;height:22px;fill:none;stroke:var(--brand);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.tour-done-mark{flex:none;display:inline-flex}
.tour-done-mark[hidden]{display:none}

/* Where a topic is best seen. */
.tour-device{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--muted)}
.tour-device svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tour-laptop{color:var(--brand-dark);font-weight:700}
.tour-device-sm{font-size:12.5px;flex:none}
.tour-intro .tour-device{margin:8px 0 0}

/* ---- a topic ---- */
.tour-step{padding-top:4px;padding-bottom:12px}
.tour-where{display:flex;align-items:center;gap:6px;font-size:14.5px;flex-wrap:wrap;min-height:32px}
.tour-where .tour-homelink span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tour-where .tour-homelink{padding-right:4px}
.tour-crumb-sec{font-weight:700;text-decoration:none;color:var(--brand-dark)}
.tour-crumb-sep{color:var(--faint)}
.tour-tname-top{font-weight:700;color:var(--ink)}
.tour-where .tour-count{margin-left:auto;color:var(--muted);font-variant-numeric:tabular-nums}
.tour-bar{height:4px;background:var(--rail);border-radius:3px;margin-top:2px;overflow:hidden}
.tour-bar span{display:block;height:100%;background:var(--accent);transition:width .25s}
.tour-step h1{font-size:22px;font-weight:800;line-height:1.25;margin-top:12px}

/* The screenshot on a step page sits in a light phone-shaped frame. */
.tour-shot{margin:12px auto 0;max-width:390px;border:1.5px solid var(--rail);border-radius:18px;
  background:var(--card);padding:6px;box-shadow:0 2px 10px rgba(20,38,60,.08)}
.tour-shot img{width:100%;height:auto;border-radius:12px}
.tour-missing{aspect-ratio:390/700;border-radius:12px;background:repeating-linear-gradient(
  135deg,var(--paper) 0 14px,var(--tint) 14px 28px)}

.tour-cap{max-width:390px;margin:12px auto 0;font-size:17.5px;line-height:1.55}
.tour-cap strong{color:var(--brand-dark)}

/* ---- interactive topics ---- */
.tour-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tour-frame{margin:0}
.tour-frame + .tour-frame{margin-top:28px;padding-top:20px;border-top:1px dashed var(--rail)}
.tour-js .tour-frame + .tour-frame{margin-top:0;padding-top:0;border-top:0}
.tour-js .tour-frame[hidden]{display:none}

.tour-ftitle{font-size:17px;font-weight:800;line-height:1.25;margin-top:6px}
/* The words to read sit on a subtle tint. A button name is not bold: it carries a
   thin underline in the text's own colour (a coloured one read like a spelling
   mark, Tarak, 7 October). */
.tour-text{margin-top:5px;padding:6px 10px;border-radius:10px;background:var(--tint);
  font-size:16px;line-height:1.5}
.tour-text strong,.tour-do strong,.tour-card strong{font-weight:inherit;color:inherit;
  text-decoration:underline;text-decoration-color:currentColor;text-decoration-thickness:1px;
  text-underline-offset:3px}
/* What to do, set apart: a tap mark and a gold tint in every language, and italic
   in English only (Punjabi and Hindi have no true italic). */
.tour-do{display:flex;align-items:flex-start;gap:8px;margin-top:4px;padding:5px 10px;border-radius:10px;
  background:rgba(232,149,43,.18);font-size:16px;line-height:1.45}
.tour-do svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--ink);stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}
:lang(en) .tour-do span{font-style:italic}

/* The window holding one screen; the script sizes it to fit. */
.tour-live .tour-shot{max-width:none;width:max-content;margin:5px auto 0;padding:3px;border-radius:14px}
.tour-window{width:min(80vw,390px);aspect-ratio:390/844;overflow-y:auto;border-radius:12px;
  overscroll-behavior:contain;scrollbar-width:thin;background:var(--paper)}
.tour-window.tour-win-laptop{width:min(100%,960px);aspect-ratio:1280/800}
.tour-screen{position:relative}
.tour-screen img{display:block;width:100%;height:auto}

.tour-hot{position:absolute;display:block;padding:0;background:transparent;
  border:2.5px solid var(--accent);border-radius:12px;cursor:pointer;
  animation:tour-pulse 1.6s ease-out infinite}
.tour-hot:focus-visible{outline:3px solid var(--brand-dark);outline-offset:3px}
.tour-hot:hover{background:rgba(232,149,43,.12)}
.tour-hot.tour-nudge{animation:tour-nudge .45s ease-in-out 2}
@keyframes tour-pulse{0%{box-shadow:0 0 0 0 rgba(232,149,43,.7)}70%{box-shadow:0 0 0 12px rgba(232,149,43,0)}
  100%{box-shadow:0 0 0 0 rgba(232,149,43,0)}}
@keyframes tour-nudge{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.tour-hint{max-width:390px;margin:8px auto 0;padding:8px 12px;border-radius:10px;background:var(--accent);
  color:var(--ink);font-weight:700;text-align:center;position:sticky;top:8px;z-index:4}

/* The topic's opening and closing pages. */
.tour-intro,.tour-close{padding:16px 2px 8px}
.tour-intro-h{font-size:24px;font-weight:800;line-height:1.2}
.tour-intro .tour-text,.tour-close .tour-text{font-size:17px;margin-top:14px;padding:14px 16px}
.tour-go{margin-top:20px}
.tour-go .btn{min-width:170px}
.tour-proceed{min-height:62px}
.tour-proceed-label{font-size:13px;font-weight:600;opacity:.9}
.tour-skip{margin-top:26px;font-size:15px}
.tour-skip a{color:var(--muted)}
.tour-close-mark svg{width:46px;height:46px;fill:none;stroke:var(--brand);stroke-width:2.6;
  stroke-linecap:round;stroke-linejoin:round}
.tour-close .tour-ftitle{font-size:22px;margin-top:4px}

/* The card that says who opens the portal next. */
.tour-card{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:390px;
  margin:14px auto 0;padding:34px 20px;border:2px dashed var(--brand);border-radius:18px;
  background:var(--tint);font:inherit;color:var(--ink);cursor:pointer;text-align:center}
.tour-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.tour-avatar{width:84px;height:84px;border-radius:50%;background:#fff;color:var(--brand);
  border:3px solid var(--brand);display:flex;align-items:center;justify-content:center;
  font-size:28px;font-weight:800;animation:tour-pulse 1.6s ease-out infinite}
.tour-card-text{font-size:19px;font-weight:700}
.tour-card-who{font-size:15px;color:var(--muted)}

/* ---- the slim bar at the foot: Back, the menu, Next ---- */
.tour-foot{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin-top:4px;padding:5px 0 6px;
  background:linear-gradient(transparent,var(--ground,var(--paper)) 35%)}
.tour-arrow{flex:none;width:48px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  font-size:30px;line-height:1;font-weight:700;text-decoration:none;
  background:var(--card);color:var(--brand-dark);border:1.5px solid var(--brand)}
.tour-arrow-next{background:var(--brand);color:#fff}
.tour-arrow:focus-visible,.tour-menu-btn:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.tour-menu-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 16px;border-radius:22px;
  background:var(--card);border:1.5px solid var(--rail);font:inherit;font-size:15px;font-weight:700;color:var(--ink);cursor:pointer}
.tour-menu-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tour-js .tour-live[data-kind="intro"] .tour-arrow-next{visibility:hidden}
.tour-js .tour-live[data-kind="close"] .tour-arrow-next{visibility:hidden}

/* The menu: a sheet rising from the foot. */
.tour-sheet{position:fixed;inset:0;z-index:10;background:rgba(20,38,60,.35);display:flex;align-items:flex-end;justify-content:center}
.tour-sheet[hidden]{display:none}
.tour-sheet-in{width:100%;max-width:520px;max-height:82vh;overflow-y:auto;background:var(--paper);
  border-radius:18px 18px 0 0;padding:10px 16px 18px;box-shadow:0 -6px 24px rgba(20,38,60,.18)}
.tour-sheet-top{display:flex;align-items:center;justify-content:space-between}
.tour-sheet-h{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tour-sheet-h2{margin-top:16px}
.tour-sheet-more{font-size:12.5px;color:var(--faint);margin-left:6px}
.tour-icon-btn{width:44px;height:44px;border:0;background:none;cursor:pointer;color:var(--ink);display:flex;align-items:center;justify-content:center}
.tour-icon-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tour-pages{list-style:none;margin-top:2px}
.tour-pages a,.tour-sheet-topics a{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 8px;
  border-radius:8px;text-decoration:none;color:var(--ink);font-size:16px}
.tour-pages a:hover,.tour-sheet-topics a:hover{background:var(--tint)}
.tour-pages a[aria-current],.tour-sheet-topics a.tour-here{background:var(--tint);font-weight:700}
.tour-pages .sn{min-width:1.8em}
.tour-sheet-grp{font-size:13px;font-weight:700;color:var(--muted);margin:10px 0 2px 8px}
.tour-sheet-topics{list-style:none}
.tour-sheet-topics a{justify-content:space-between}
.tour-sheet-actions{display:flex;flex-direction:column;gap:6px;margin-top:16px;border-top:1px solid var(--rail);padding-top:12px}
.tour-act{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 8px;border:0;background:none;
  font:inherit;font-size:16px;font-weight:700;color:var(--brand-dark);text-decoration:none;cursor:pointer;text-align:left}
.tour-act svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tour-portal{margin-top:10px}
.tour-portal .btn{min-width:170px}
.tour-toast{margin-top:8px;padding:8px 12px;border-radius:10px;background:var(--brand);color:#fff;font-weight:700}
html.tour-sheet-open{overflow:hidden}

@media (prefers-reduced-motion: reduce){
  .tour-hot,.tour-avatar,.tour-hot.tour-nudge{animation:none}
  .tour-hot{border-width:4px}
  .tour-bar span{transition:none}
}

/* Step pages (topics not yet interactive) keep their Back and Next. */
.tour-nav{display:flex;justify-content:space-between;gap:12px;max-width:390px;margin:18px auto 0}
.tour-step:not(.tour-end) .tour-nav{position:sticky;bottom:0;margin-top:10px;padding:10px 0 12px;
  max-width:none;background:linear-gradient(transparent,var(--ground,var(--paper)) 30%);z-index:3}
.tour-nav a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 16px;
  border-radius:10px;font-weight:800;text-decoration:none;font-size:16px}
.tour-back{background:var(--card);color:var(--brand-dark);border:2px solid var(--brand)}
.tour-next{background:var(--brand);color:#fff;border:2px solid var(--brand);margin-left:auto}
.tour-nav a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.tour-end{text-align:center}
.tour-anim{margin:22px auto 0;max-width:360px}
.tour-anim img{width:100%;height:auto;image-rendering:pixelated}

/* On a laptop, the words sit on the left and the phone on the right, so the phone
   can use the screen's full height. */
@media (min-width:900px){
  .tour-live{max-width:1000px}
  .tour-live .tour-frame[data-kind="screen"]:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;
    gap:0 40px;align-items:start}
  .tour-live .tour-frame[data-kind="screen"] .tour-head{min-height:0 !important;padding-top:6px}
  .tour-live .tour-frame[data-kind="screen"] .tour-shot{margin-top:12px}
  .tour-live .tour-text,.tour-live .tour-do{font-size:17px}
  .tour-live .tour-ftitle{font-size:22px}
  .tour-live .tour-frame[data-kind="screen"]:has(.tour-win-laptop):not([hidden]){grid-template-columns:1fr}
  .tour-foot{max-width:520px;margin-left:auto;margin-right:auto}
  .tour-sheet{align-items:center}
  .tour-sheet-in{border-radius:18px}
}
