/* The guided tour: the demonstration edition's own guide, recorded step by step.
   The pictures and each step's words are made by demo/capture_tour.py from the running programs. */
/* the site's own column, as wide as every other page; only the player widens, to show the pictures large */
.tour-wide { width: min(100% - 48px, 1180px); margin: 0 auto; }
.tour-wide:has(.tour-player) { width: min(100% - 48px, 2000px); }
@media (max-width: 600px) { .tour-wide, .tour-wide:has(.tour-player) { width: min(100% - 32px, 1180px); } }
.tour-gate { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.tour-lock { background: #fff; border: 1px solid var(--line, #D8DFEF); border-radius: 14px; padding: 22px 22px 18px; display: grid; gap: 12px; align-content: start; }
.tour-lock h2 { font: 800 22px/1.2 "Archivo", system-ui, sans-serif; margin: 0; }
.tour-lock p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.tour-lock label { display: grid; gap: 5px; font-size: 14.5px; font-weight: 600; }
.tour-lock input { font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid var(--line-strong, #B9C4E0); border-radius: 9px; background: #fff; color: inherit; }
.tour-lock input:focus-visible { outline: 3px solid var(--amber, #F2B705); outline-offset: 1px; }
.tour-lock .tour-btn { justify-self: start; }
.tour-lock .tour-said { min-height: 1.4em; font-weight: 600; color: #8A3F06; }
.tour-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tour-note { font-size: 15px; line-height: 1.5; padding: 10px 14px; border-left: 4px solid var(--amber, #F2B705); background: var(--amber-soft, #FFF3C4); border-radius: 0 8px 8px 0; margin: 0 0 26px; color: var(--text, #121A33); }
.tour-group { margin: 0 0 30px; }
.tour-group h2 { font: 800 24px/1.2 "Archivo", system-ui, sans-serif; margin: 0 0 4px; }
.tour-group p { margin: 0 0 14px; font-size: 16px; max-width: 900px; }
.tour-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.tour-item { background: #fff; border: 1px solid var(--line, #D8DFEF); border-radius: 14px; padding: 18px 18px 16px; display: flex; gap: 14px; }
.tour-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink, #0A1633); color: #fff; font: 800 18px/40px "Archivo", system-ui, sans-serif; text-align: center; }
.tour-item b { display: block; font: 700 18px/1.25 "Archivo", system-ui, sans-serif; margin-bottom: 4px; }
.tour-shows { display: block; font-size: 15px; line-height: 1.45; }
.tour-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; flex-wrap: wrap; }
.tour-app { font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--blue, #1F4FD8); color: var(--blue, #1F4FD8); }
.tour-app[data-app="EQAWarden"] { border-color: #86198F; color: #86198F; }
.tour-btn { font: 700 16px/1 "IBM Plex Sans", system-ui, sans-serif; padding: 11px 18px; border-radius: 10px; border: 2px solid var(--blue, #1F4FD8); background: var(--blue, #1F4FD8); color: #fff; cursor: pointer; }
.tour-btn.tour-ghost { background: #fff; color: var(--blue, #1F4FD8); }
.tour-btn:disabled { opacity: .45; cursor: default; }
.tour-btn:focus-visible, .tour-hot:focus-visible, .tour-end:focus-visible { outline: 3px solid var(--amber, #F2B705); outline-offset: 2px; }

.tour-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; scroll-margin-top: 90px; }
.tour-bar b { font: 700 19px/1.2 "Archivo", system-ui, sans-serif; }
.tour-dots { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.tour-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong, #B9C4E0); }
.tour-dots i.on { background: #B45309; }
.tour-dots i.done { background: var(--ink, #0A1633); }
.tour-player { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
/* full screen: the player fills the window, the picture takes all the width the card leaves */
.tour-fs { margin-left: 8px; padding: 8px 14px; font-size: 15px; }
.tour-full { position: fixed; inset: 0; z-index: 1000; overflow: auto; background: var(--bg, #F4F6FB); padding: 12px 16px 16px; max-width: none; }
.tour-full .tour-player { grid-template-columns: minmax(0, 1fr) 320px; }
.tour-full .tour-card { top: 12px; }
.tour-full .tour-bar { margin-bottom: 10px; }
.tour-stage { position: relative; background: #fff; border: 1px solid var(--line-strong, #B9C4E0); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(10, 22, 51, .12); }
.tour-stage img { display: block; width: 100%; height: auto; }
.tour-ring { position: absolute; border: 3px solid #B45309; border-radius: 10px; box-shadow: 0 0 0 6px rgba(180, 83, 9, .25), 0 0 0 9999px rgba(15, 23, 42, .28); pointer-events: none; transition: all .18s ease; }
.tour-ring.tour-pulse { animation: tour-pulse 1.1s ease-in-out infinite; }
@keyframes tour-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(180, 83, 9, .35), 0 0 0 9999px rgba(15, 23, 42, .28); } 50% { box-shadow: 0 0 0 14px rgba(180, 83, 9, .12), 0 0 0 9999px rgba(15, 23, 42, .28); } }
.tour-hot { position: absolute; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: 10px; }

.tour-card { background: #fff; border: 2px solid #B45309; border-radius: 14px; padding: 18px 20px 16px; box-shadow: 0 12px 34px rgba(10, 22, 51, .14); position: sticky; top: 90px; font-size: 18px; line-height: 1.5; color: #171C24; }
.tour-top { display: flex; gap: 12px; align-items: flex-start; }
.tour-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #B45309; color: #fff; font: 800 17px/36px "Archivo", system-ui, sans-serif; text-align: center; }
.tour-of { font-size: 13px; font-weight: 600; color: #5A6478; text-transform: uppercase; letter-spacing: .04em; }
.tour-title { font: 700 21px/1.25 "Archivo", system-ui, sans-serif; }
.tour-where { font-size: 15px; font-weight: 600; color: #8A3F06; margin: 4px 0 0 48px; }
.tour-where:empty, .tour-passed:empty, .tour-files:empty, .tour-how:empty { display: none; }
.tour-text { margin: 10px 0 12px; }
/* the guide's steps since 2026.58: a short lead line and its points */
.tour-text ul { margin: 6px 0 0; padding: 0 0 0 22px; list-style: disc; }
.tour-text li { margin: 3px 0; font-size: 15.5px; line-height: 1.4; }
.tour-text li::marker { color: #B45309; }
.tour-passed { margin: 8px 0 0; padding: 7px 10px; border-radius: 8px; background: #EEF2F7; font-size: 15px; }
.tour-files { margin: 0 0 12px; padding: 8px 10px; background: #FFF7E6; border: 1px dashed #B45309; border-radius: 8px; font-size: 15px; }
.tour-files code { display: block; margin: 4px 0; padding: 5px 10px; background: #fff; border: 1px solid #B45309; border-radius: 8px; font: 600 14px Consolas, "Courier New", monospace; word-break: break-all; }
.tour-how { font-size: 15px; color: #33404F; background: var(--blue-soft, #E7EDFF); border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; }
.tour-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tour-acts .tour-btn { border-color: #B45309; background: #B45309; }
.tour-acts .tour-btn.tour-ghost { background: #fff; color: #8A3F06; }
.tour-end { margin-left: auto; font-size: 14px; background: none; border: 0; color: #5A6478; text-decoration: underline; cursor: pointer; }
/* where the visitor is: finished sections, the one left part way and the one to do next */
.tour-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; background: #fff; border: 1px solid var(--line, #D8DFEF); border-radius: 14px; padding: 18px 22px; margin: 0 0 30px; }
.tour-sum-text { display: grid; gap: 8px; flex: 1 1 320px; min-width: 0; }
.tour-sum-text b { font: 700 19px/1.25 "Archivo", system-ui, sans-serif; }
.tour-upnext { font-size: 15.5px; color: #33404F; }
.tour-sum-acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tour-sum-acts .tour-end { margin-left: 0; }
.tour-progress { height: 10px; background: #E3E8F2; border-radius: 999px; overflow: hidden; width: 100%; max-width: 520px; }
.tour-progress i { display: block; height: 100%; background: #1E7B45; border-radius: inherit; }
.tour-gcount { font: 600 14px/1 "IBM Plex Sans", system-ui, sans-serif; color: #5A6478; margin-left: 8px; white-space: nowrap; vertical-align: middle; }
.tour-item { flex-wrap: wrap; align-content: space-between; overflow: hidden; }
.tour-item > div { flex: 1 1 0; min-width: 0; }
.tour-item > .tour-badge { flex: 0 0 calc(100% + 36px); margin: 2px -18px -16px; padding: 9px 18px; font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tour-badge-done { background: #E6F4EA; color: #155D33; border-top: 1px solid #B9DFC6; }
.tour-badge-part { background: #FFF3C4; color: #7A4A00; border-top: 1px solid #F2D27A; }
.tour-badge-next { background: #FDECDD; color: #8A3F06; border-top: 1px solid #F0C59C; }
.tour-item.is-done { border-color: #B9DFC6; }
.tour-item.is-done .tour-num { background: #1E7B45; }
.tour-item.is-next { border-color: #B45309; box-shadow: 0 0 0 1px #B45309; }
.tour-pill { font-size: 13.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #E6F4EA; color: #155D33; border: 1px solid #B9DFC6; }

.tour-done { background: #fff; border: 1px solid var(--line, #D8DFEF); border-radius: 14px; padding: 30px 28px 26px; max-width: 760px; margin: 0 auto; text-align: center; }
.tour-done h2 { font: 800 28px/1.15 "Archivo", system-ui, sans-serif; margin: 8px 0 0; }
.tour-done-mark { width: 56px; height: 56px; border-radius: 50%; background: #1E7B45; color: #fff; font: 800 30px/56px system-ui, sans-serif; margin: 0 auto 12px; }
.tour-done-count { margin: 12px 0 8px; font-size: 15.5px; }
.tour-done .tour-progress { margin: 0 auto; }
.tour-next { margin: 22px auto 0; padding: 14px 18px; border: 1px solid var(--line, #D8DFEF); border-radius: 12px; background: #F7F9FC; text-align: left; max-width: 560px; }
.tour-next b { display: block; font: 700 18px/1.3 "Archivo", system-ui, sans-serif; margin-top: 4px; }
.tour-next p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.tour-done-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
/* what a step produced: the document on a grey desk, with no ring, and its own colour on the card */
.tour-outs { font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #E3F2EF; color: #0F5E57; border: 1.5px solid #0F766E; }
.tour-dots i.out { border-radius: 2px; background: #9FCFC8; }
.tour-dots i.out.done { background: #0F766E; }
.tour-dots i.out.on { background: #B45309; }
.tour-desk { background: #5F6773 linear-gradient(160deg, #6B7480 0%, #4E5661 100%); border-color: #4E5661; padding: 14px 18px 12px; display: grid; justify-items: center; gap: 10px; }
.tour-doc-label { justify-self: stretch; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #fff; font-size: 14px; }
.tour-out-tag { font: 800 12.5px/1 "IBM Plex Sans", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; background: #0F766E; color: #fff; padding: 5px 9px; border-radius: 6px; }
.tour-doc-label code { font: 600 14px Consolas, "Courier New", monospace; background: rgba(255, 255, 255, .14); padding: 3px 8px; border-radius: 6px; word-break: break-all; }
.tour-page-of { margin-left: auto; opacity: .9; }
.tour-sheet { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-width: 100%; }
.tour-sheet img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 230px); min-height: 0; margin: 0 auto; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 14px 34px rgba(0, 0, 0, .35); }
.tour-desk.tour-zoomed { justify-items: start; overflow: auto; max-height: calc(100vh - 150px); }
.tour-desk.tour-zoomed .tour-sheet { cursor: zoom-out; max-width: none; }
.tour-desk.tour-zoomed .tour-sheet img { max-width: none; max-height: none; width: auto; }
.tour-desk.tour-zoomed .tour-doc-label, .tour-desk.tour-zoomed .tour-zoom-hint, .tour-desk.tour-zoomed .tour-pages { position: sticky; left: 0; }
.tour-pages { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tour-pages button { font: 700 14px/1 "IBM Plex Sans", system-ui, sans-serif; min-width: 34px; padding: 7px 8px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .7); background: transparent; color: #fff; cursor: pointer; }
.tour-pages button.on { background: #fff; color: #0F5E57; }
.tour-pages button:focus-visible, .tour-sheet:focus-visible { outline: 3px solid var(--amber, #F2B705); outline-offset: 2px; }
.tour-zoom-hint { font-size: 13px; color: rgba(255, 255, 255, .85); }
.tour-card-out { border-color: #0F766E; }
.tour-card-out .tour-title { overflow-wrap: anywhere; }
.tour-card-out .tour-acts .tour-btn { border-color: #0F766E; background: #0F766E; }
.tour-card-out .tour-acts .tour-btn.tour-ghost { background: #fff; color: #0F5E57; }
.tour-n-out { background: #0F766E; font-size: 17px; line-height: 36px; }
.tour-card-out .tour-where { color: #0F5E57; }
.tour-demo-note { font-size: 13.5px; color: #5A6478; margin: 0 0 12px; }
.tour-full .tour-sheet img { max-height: calc(100vh - 150px); }
@media (max-width: 600px) {
  .tour-desk { padding: 10px 8px 8px; }
  .tour-sheet img { max-height: none; }
  .tour-doc-label { font-size: 13px; }
}
@media (max-width: 1100px) { .tour-player { grid-template-columns: minmax(0, 1fr); } .tour-card { position: static; } }
@media (prefers-reduced-motion: reduce) { .tour-ring, .tour-ring.tour-pulse { transition: none; animation: none; } }
