/* ==========================================================================
 * Festival Studio - the guide
 *
 *  1. Guide page        st-guide  st-guide-rail  st-guide-head  st-guide-welcome
 *  2. Chapter           st-guide-chapter  st-guide-steps  st-kbd  st-guide-keys
 *                       st-guide-tips  st-guide-status  st-guide-pager
 *  3. Drawer            st-guide-drawer (ui/guide-drawer.js)
 *  4. Overview card     st-overview-welcome
 *  5. Sidebar           st-nav__sep
 *  6. "Show me"         st-coach (ui/coachmark.js)
 *  7. Drawings          st-gart (ui/guide-art.js) and their motion
 *  8. Narrow screens, reduced motion
 *  9. Guide button      st-guide-fab (views/shell.js): bottom right on every
 *                       event page, and what makes room for it
 *
 * Same tokens as studio.css. The drawings stay flat: tinted fills, thin
 * strokes, the one violet accent - no gradients, no glows.
 * ========================================================================== */

/* ---------- 1. Guide page ---------- */
.st-guide {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.st-guide-head { display: flex; align-items: center; gap: 16px; }
.st-guide-count__wrap { display: grid; gap: 6px; min-width: 150px; }
.st-guide-count { font-size: 12px; color: var(--st-text-dim); text-align: right; }
.st-guide-count__bar { display: block; height: 4px; border-radius: 2px; background: var(--st-bg-hover); overflow: hidden; }
.st-guide-count__fill { display: block; height: 100%; width: 0; background: var(--st-violet); transition: width 0.4s ease; }

.st-guide-rail {
  position: sticky;
  top: 16px;
  padding: 14px 10px 10px;
  background: var(--st-bg-card);
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-14);
}
.st-guide-rail__stage + .st-guide-rail__stage { margin-top: 14px; }
.st-guide-rail__stage-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-text-muted);
}
.st-guide-rail__stage-num {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--st-bg-hover);
  color: var(--st-text-dim);
  font-size: 10px;
  letter-spacing: 0;
}
.st-guide-rail__list { display: grid; gap: 2px; }
.st-guide-rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--st-r-8);
  color: var(--st-text-dim);
  font-size: 13px;
  text-decoration: none;
  transition: background var(--st-ease), color var(--st-ease);
}
.st-guide-rail__item:hover { background: var(--st-bg-hover); color: var(--st-text); }
.st-guide-rail__item.is-current { background: rgba(109, 92, 255, 0.15); color: var(--st-text); }
.st-guide-rail__mark { display: inline-flex; color: var(--st-text-muted); }
.st-guide-rail__item.is-read .st-guide-rail__mark { color: var(--st-green); }
.st-guide-rail__item.is-current .st-guide-rail__mark { color: var(--st-lavender); }
.st-guide-rail__label { flex: 1; min-width: 0; line-height: 1.3; }
.st-guide-rail__done { display: inline-flex; color: var(--st-green); }
.st-guide-rail__time { font-size: 11px; color: var(--st-text-muted); font-variant-numeric: tabular-nums; }
.st-guide-rail__foot { display: grid; gap: 8px; margin-top: 12px; padding: 10px 8px 2px; border-top: 1px solid var(--st-border); font-size: 12px; }
.st-guide-rail__legend { display: flex; align-items: center; gap: 8px; color: var(--st-text-muted); }
.st-guide-rail__foot .st-textlink { justify-self: start; }

.st-guide-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px 28px;
  background: var(--st-bg-card);
  border: 1px solid rgba(109, 92, 255, 0.4);
  border-radius: var(--st-r-14);
}
.st-guide-welcome__eyebrow,
.st-overview-welcome__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--st-lavender);
}
.st-guide-welcome__title { margin: 8px 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.st-guide-welcome__body { max-width: 56ch; color: var(--st-text-dim); line-height: 1.6; }
.st-guide-welcome__actions { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- 2. Chapter ---------- */
.st-guide-reader {
  background: var(--st-bg-card);
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-14);
  overflow: hidden;
  outline: none;
  scroll-margin-top: 16px;
}

.st-guide-art {
  position: relative;
  padding: 18px 24px 10px;
  background: var(--st-bg-elev);
  border-bottom: 1px solid var(--st-border);
}
.st-guide-art .st-gart { max-height: 264px; margin: 0 auto; }
.st-guide-art__replay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-8);
  background: var(--st-bg-card);
  color: var(--st-text-muted);
  cursor: pointer;
  transition: color var(--st-ease), border-color var(--st-ease);
}
.st-guide-art__replay:hover { color: var(--st-text); border-color: var(--st-border-strong); }

.st-guide-chapter__body { padding: 22px 28px 4px; }
.st-guide-chapter__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--st-lavender);
}
.st-guide-chapter__title { margin: 6px 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.st-guide-chapter__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-guide-chapter__time { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--st-text-muted); }
.st-guide-chapter__lead { max-width: 72ch; margin: 14px 0 18px; font-size: 15px; line-height: 1.6; color: var(--st-text); }

.st-guide-steps { display: grid; gap: 10px; }
.st-guide-steps__item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: var(--st-bg-elev);
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-10);
}
.st-guide-steps__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(109, 92, 255, 0.16);
  color: var(--st-lavender);
  font-size: 12px;
  font-weight: 700;
}
.st-guide-steps__text { padding-top: 3px; color: var(--st-text-dim); line-height: 1.55; }
.st-guide-steps__show { align-self: center; white-space: nowrap; }
.st-guide-ui { font-weight: 600; color: var(--st-text); }

.st-kbd {
  display: inline-block;
  min-width: 22px;
  margin: 0 1px;
  padding: 0 6px;
  border: 1px solid var(--st-border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--st-bg-hover);
  color: var(--st-text);
  font: 600 11px/18px var(--st-font);
  text-align: center;
  vertical-align: 1px;
}

.st-guide-keys { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--st-border); border-radius: var(--st-r-10); }
.st-guide-keys__title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; }
.st-guide-keys__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; }
.st-guide-keys__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-guide-keys__row dt { display: flex; align-items: center; gap: 3px; min-width: 96px; }
.st-guide-keys__row dd { margin: 0; font-size: 13px; color: var(--st-text-dim); }
.st-guide-keys__plus { font-size: 11px; color: var(--st-text-muted); }

.st-guide-tips {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--st-r-10);
}
.st-guide-tips__title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; color: var(--st-amber); }
.st-guide-tips__list { display: grid; gap: 6px; color: var(--st-text-dim); line-height: 1.55; }
.st-guide-tips__list li { position: relative; padding-left: 14px; }
.st-guide-tips__list li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--st-amber);
}

.st-guide-status { margin-top: 18px; }
.st-guide-status__heading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; }
.st-guide-status__list { border: 1px solid var(--st-border); border-radius: var(--st-r-10); }
.st-guide-status__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}
.st-guide-status__row + .st-guide-status__row { border-top: 1px solid var(--st-border); }
.st-guide-status__mark { display: inline-flex; color: var(--st-text-muted); }
.st-guide-status__row.is-done .st-guide-status__mark { color: var(--st-green); }
.st-guide-status__row.is-error .st-guide-status__mark { color: var(--st-red); }
.st-guide-status__title { display: block; font-weight: 600; }
.st-guide-status__detail { display: block; font-size: 13px; color: var(--st-text-dim); }

.st-guide-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--st-border);
}
.st-guide-pager__link {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 48%;
  padding: 10px 14px;
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-10);
  text-decoration: none;
  transition: background var(--st-ease), border-color var(--st-ease);
}
.st-guide-pager__link:hover { background: var(--st-bg-hover); border-color: var(--st-border-strong); }
.st-guide-pager__link--next { margin-left: auto; text-align: right; border-color: rgba(109, 92, 255, 0.45); }
.st-guide-pager__dir { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--st-text-muted); }
.st-guide-pager__link--next .st-guide-pager__dir { justify-content: flex-end; color: var(--st-lavender); }
.st-guide-pager__title { font-weight: 600; color: var(--st-text); }
.st-guide-pager__end { display: grid; gap: 6px; justify-items: start; margin-left: auto; text-align: left; }
.st-guide-pager__end-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--st-text); }
.st-guide-pager__end-body { font-size: 13px; color: var(--st-text-dim); }

/* ---------- 3. Drawer ---------- */
.st-guide-drawer .st-dialog__body { padding: 0; }
.st-guide-chapter--compact .st-guide-chapter__body { padding: 16px 20px 20px; }
.st-guide-chapter--compact .st-guide-chapter__title { font-size: 18px; }
.st-guide-art--compact { padding: 12px 14px 6px; }
.st-guide-art--compact .st-gart { max-height: 190px; }
.st-guide-chapter--compact .st-guide-steps__item { grid-template-columns: 24px minmax(0, 1fr); }
.st-guide-chapter--compact .st-guide-steps__num { width: 24px; height: 24px; }
.st-guide-chapter--compact .st-guide-steps__show { grid-column: 2; justify-self: start; }
.st-guide-chapter--compact .st-guide-keys__list { grid-template-columns: 1fr; }
.st-guide-drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.st-guide-drawer__steps { display: flex; gap: 6px; }

/* ---------- 4. Overview card ---------- */
.st-overview-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: var(--st-bg-card);
  border: 1px solid rgba(109, 92, 255, 0.45);
  border-radius: var(--st-r-14);
}
.st-overview-welcome__title { margin: 6px 0; font-size: 17px; font-weight: 700; }
.st-overview-welcome__body { color: var(--st-text-dim); line-height: 1.55; }
.st-overview-welcome__actions { display: flex; gap: 8px; margin-top: 14px; }
/* Too small here for the drawing's captions. */
.st-overview-welcome__art .ga-label { display: none; }

/* ---------- 5. Sidebar ---------- */
.st-nav__sep { height: 1px; margin: 10px 10px; background: var(--st-border); }

/* ---------- 6. "Show me" ---------- */
.st-coach { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.st-coach__hole {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(3, 4, 8, 0.62);
  transition: left 0.18s ease, top 0.18s ease, width 0.18s ease, height 0.18s ease;
}
.st-coach__ring {
  position: fixed;
  border: 2px solid var(--st-lavender);
  border-radius: 12px;
  animation: st-coach-ring 1.6s ease-out infinite;
}
.st-coach__note {
  position: fixed;
  padding: 14px 16px;
  background: var(--st-bg-pop);
  border: 1px solid var(--st-border-strong);
  border-radius: var(--st-r-12);
  box-shadow: var(--st-shadow-pop);
  outline: none;
  pointer-events: auto;
  animation: st-coach-in 0.22s ease both;
}
.st-coach__note-head { display: flex; align-items: center; gap: 8px; }
.st-coach__note-icon { display: inline-flex; color: var(--st-lavender); }
.st-coach__note-title { font-weight: 600; }
.st-coach__note-text { margin-top: 6px; color: var(--st-text-dim); line-height: 1.5; }
.st-coach__note-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

@keyframes st-coach-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.06); opacity: 0.35; }
}
@keyframes st-coach-in {
  from { opacity: 0; transform: translateY(6px); }
}

/* ---------- 7. Drawings ---------- */
.st-gart { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--st-font); }

.st-gart .ga-device { fill: var(--st-bg-card); stroke: var(--st-border-strong); stroke-width: 1.5; }
.st-gart .ga-screen { fill: #0c1120; }
.st-gart .ga-notch { fill: var(--st-border-strong); }
.st-gart .ga-panel { fill: rgba(255, 255, 255, 0.035); }
.st-gart .ga-card { fill: var(--st-bg-card); stroke: var(--st-border-strong); stroke-width: 1; }
.st-gart .ga-map { fill: #0f1527; stroke: var(--st-border); stroke-width: 1; }
.st-gart .ga-streets path { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 6; stroke-linecap: round; }
.st-gart .ga-sheet { fill: var(--st-bg-pop); stroke: var(--st-border-strong); stroke-width: 1; }
.st-gart .ga-input { fill: var(--st-bg-elev); stroke: var(--st-border-strong); stroke-width: 1; }
.st-gart .ga-row { fill: rgba(109, 92, 255, 0.14); }
.st-gart .ga-cover { fill: rgba(109, 92, 255, 0.24); }
.st-gart .ga-button { fill: var(--st-violet); }
.st-gart .ga-camera { fill: #10141f; }
.st-gart .ga-qr-bg { fill: #f5f7ff; }
.st-gart .ga-ticket { fill: var(--st-bg-card); stroke: var(--st-border-strong); stroke-width: 1.5; }
.st-gart .ga-perforation { fill: none; stroke: var(--st-border-strong); stroke-width: 1.5; stroke-dasharray: 4 5; }
.st-gart .ga-beam { fill: var(--st-violet); }
.st-gart .ga-viewfinder { fill: none; stroke: var(--st-lavender); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.st-gart .ga-gridline { fill: none; stroke: var(--st-border); stroke-width: 1; }
.st-gart .ga-route { fill: none; stroke: rgba(185, 174, 255, 0.45); stroke-width: 2; stroke-linecap: round; }
.st-gart .ga-link { fill: none; stroke: rgba(185, 174, 255, 0.4); stroke-width: 1.5; }
.st-gart .ga-focus { fill: none; stroke: var(--st-lavender); stroke-width: 1.5; stroke-dasharray: 3 4; }
/* Booth visits: the rings a beacon sends out (data/guide.js chapter booths). */
.st-gart .ga-ring { fill: rgba(109, 92, 255, 0.10); stroke: var(--st-lavender); stroke-width: 1.5; opacity: 0.85; }
.st-gart .ga-ring--far { fill: none; opacity: 0.45; }
.st-gart .ga-sheet-head { fill: rgba(109, 92, 255, 0.12); }
.st-gart .ga-status--ok { fill: rgba(52, 211, 153, 0.45); }
.st-gart .ga-status--no { fill: rgba(251, 113, 133, 0.4); }
.st-gart .ga-strike { fill: none; stroke: rgba(251, 113, 133, 0.75); stroke-width: 1.5; stroke-linecap: round; }
/* A row left out of the import: faded once the reading line has passed it. */
.st-gart .ga-row-out { opacity: 0.35; }

.st-gart .ga-text { fill: rgba(170, 178, 197, 0.3); }
.st-gart .ga-text--strong { fill: rgba(245, 247, 255, 0.7); }
.st-gart .ga-text--violet { fill: var(--st-lavender); opacity: 0.85; }
/* Text lines on a light notification card (the Messages drawing). */
.st-gart .ga-note { fill: rgba(245, 247, 255, 0.9); }
.st-gart .ga-text--ink { fill: rgba(16, 19, 31, 0.3); }
.st-gart .ga-text--ink-strong { fill: rgba(16, 19, 31, 0.65); }

.st-gart .ga-area-fill { stroke: none; }
.st-gart .ga-area-fill.ga-violet { fill: rgba(109, 92, 255, 0.24); }
.st-gart .ga-area-fill.ga-amber { fill: rgba(251, 191, 36, 0.2); }
.st-gart .ga-area-fill.ga-green { fill: rgba(52, 211, 153, 0.18); }
.st-gart .ga-area-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.st-gart .ga-area-line.ga-violet { stroke: var(--st-violet); }
.st-gart .ga-area-line.ga-amber { stroke: var(--st-amber); }
.st-gart .ga-vertex { fill: var(--st-bg); stroke: var(--st-lavender); stroke-width: 2; }

.st-gart .ga-marker-bg { fill: var(--st-text-muted); stroke: #05060a; stroke-width: 2.5; }
.st-gart .ga-marker--violet .ga-marker-bg { fill: var(--st-violet); }
.st-gart .ga-marker--green .ga-marker-bg { fill: #10b981; }
.st-gart .ga-marker--amber .ga-marker-bg { fill: #f59e0b; }
.st-gart .ga-marker--blue .ga-marker-bg { fill: var(--st-blue); }
.st-gart .ga-marker--red .ga-marker-bg { fill: #f43f5e; }
.st-gart .ga-marker-glyph { color: #fff; }
.st-gart .ga-swatch { stroke: none; }
.st-gart .ga-swatch.ga-marker--violet { fill: var(--st-violet); }
.st-gart .ga-swatch.ga-marker--green { fill: #10b981; }
.st-gart .ga-swatch.ga-marker--amber { fill: #f59e0b; }
.st-gart .ga-swatch.ga-marker--blue { fill: var(--st-blue); }

.st-gart .ga-glyph { color: var(--st-text-dim); }
.st-gart .ga-glyph--dim { color: var(--st-text-muted); }
.st-gart .ga-glyph--violet { color: var(--st-lavender); }
.st-gart .ga-glyph--amber { color: var(--st-amber); }
.st-gart .ga-glyph--cursor { color: #fff; }
.st-gart .ga-glyph--on-cover { color: var(--st-lavender); }
.st-gart .ga-glyph--qr { color: #0b0f1a; }
.st-gart .ga-glyph--on-check,
.st-gart .ga-glyph--on-ok,
.st-gart .ga-glyph--on-avatar { color: #fff; }
.st-gart .ga-glyph--on-hub { color: var(--st-lavender); }

.st-gart .ga-dot { fill: var(--st-lavender); }
.st-gart .ga-check { fill: var(--st-green); }
.st-gart .ga-ok { fill: #10b981; }
.st-gart .ga-step { fill: var(--st-violet); }
.st-gart .ga-step--map { stroke: #05060a; stroke-width: 2.5; }
/* Opaque, so the connectors end at its edge. */
.st-gart .ga-hub { fill: #1a1a3f; stroke: rgba(109, 92, 255, 0.55); stroke-width: 1.5; }
.st-gart .ga-avatar { fill: var(--st-violet); stroke: #05060a; stroke-width: 2; }
.st-gart .ga-avatar--2 { fill: #f59e0b; }
.st-gart .ga-avatar--3 { fill: #10b981; }
.st-gart .ga-avatar--4 { fill: var(--st-blue); }
.st-gart .ga-avatar--5 { fill: #f43f5e; }
.st-gart .ga-bar { fill: rgba(185, 174, 255, 0.45); }
.st-gart .ga-col { fill: rgba(109, 92, 255, 0.4); }
.st-gart .ga-col--top { fill: var(--st-violet); }
.st-gart .ga-pill { fill: var(--st-bg-pop); stroke: var(--st-border-strong); stroke-width: 1; }
.st-gart .ga-pill--violet { fill: var(--st-violet); stroke: none; }
.st-gart .ga-pill--amber { fill: #f59e0b; stroke: none; }
.st-gart .ga-pill-btn { fill: var(--st-bg-elev); stroke: var(--st-border-strong); stroke-width: 1; }
.st-gart .ga-block { stroke-width: 1; }
.st-gart .ga-block--violet { fill: rgba(109, 92, 255, 0.22); stroke: rgba(109, 92, 255, 0.6); }
.st-gart .ga-block--green { fill: rgba(52, 211, 153, 0.16); stroke: rgba(52, 211, 153, 0.5); }
.st-gart .ga-block--amber { fill: rgba(251, 191, 36, 0.16); stroke: rgba(251, 191, 36, 0.5); }
.st-gart .ga-block--blue { fill: rgba(79, 124, 255, 0.18); stroke: rgba(79, 124, 255, 0.55); }

.st-gart .ga-label { fill: var(--st-text-dim); font-size: 12px; font-weight: 600; }
.st-gart .ga-label--pill { fill: var(--st-text); font-size: 11px; }
.st-gart .ga-label--pill-strong { fill: #fff; font-size: 11px; font-weight: 700; }
.st-gart .ga-label--pill-big { fill: #fff; font-size: 16px; font-weight: 800; }
.st-gart .ga-label--on-button { fill: #fff; font-size: 11px; font-weight: 700; }
.st-gart .ga-label--num { fill: var(--st-text-muted); font-size: 11px; }
.st-gart .ga-label--small { fill: var(--st-text-muted); font-size: 10px; font-weight: 600; }
.st-gart .ga-label--big { fill: var(--st-text); font-size: 26px; font-weight: 800; }
.st-gart .ga-label--axis { fill: var(--st-text-muted); font-size: 10px; font-weight: 500; }
.st-gart .ga-label--step { fill: #fff; font-size: 11px; font-weight: 700; }

/* Motion. Every keyframe starts hidden and ends on the natural look. */
.st-gart .ga-a {
  animation: var(--anim) 0.7s cubic-bezier(0.2, 0.75, 0.25, 1) var(--d, 0s) both;
  transform-box: fill-box;
  transform-origin: center;
}
.st-gart .ga-a--draw { stroke-dasharray: var(--len); animation-duration: 1.1s; animation-timing-function: ease-in-out; }
.st-gart .ga-a--grow { transform-origin: center bottom; animation-duration: 0.8s; }
.st-gart .ga-a--scan { animation-duration: 1.3s; animation-timing-function: ease-in-out; }
.st-gart .ga-a--dim { animation-duration: 0.45s; animation-timing-function: ease-out; }
.st-gart .ga-tourpan {
  transform: translate(-185px, 25px);
  animation: st-ga-tour 3.4s ease-in-out 0.5s both;
}

@keyframes st-ga-fade { from { opacity: 0; } }
/* The exception to "starts hidden": a row that is there, then fades back. Ends on its natural (faded) look all the same. */
@keyframes st-ga-dim { from { opacity: 1; } }
@keyframes st-ga-pop {
  0% { opacity: 0; transform: scale(0.3); }
  65% { opacity: 1; transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes st-ga-drop {
  0% { opacity: 0; transform: translateY(-34px); }
  60% { opacity: 1; transform: translateY(3px); }
  100% { transform: none; }
}
@keyframes st-ga-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes st-ga-slide { from { opacity: 0; transform: translateX(-14px); } }
@keyframes st-ga-grow { from { transform: scaleY(0); } }
@keyframes st-ga-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes st-ga-scan {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 1; }
  85% { opacity: 1; transform: translateY(var(--scan, 60px)); }
  100% { opacity: 0; transform: translateY(var(--scan, 60px)); }
}
@keyframes st-ga-tour {
  0%, 16% { transform: translate(105px, 35px); }
  44%, 58% { transform: translate(-75px, -25px); }
  86%, 100% { transform: translate(-185px, 25px); }
}

/* ---------- 8. Narrow screens, reduced motion ---------- */
@media (max-width: 1100px) {
  .st-guide { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
  .st-guide-welcome { grid-template-columns: 1fr; }
  .st-guide-welcome__art { max-width: 440px; }
}
@media (max-width: 860px) {
  .st-guide { grid-template-columns: 1fr; }
  .st-guide-rail { position: static; }
  .st-guide-chapter__body { padding: 18px 18px 4px; }
  .st-guide-steps__item { grid-template-columns: 26px minmax(0, 1fr); }
  .st-guide-steps__show { grid-column: 2; justify-self: start; }
  .st-guide-keys__list { grid-template-columns: 1fr; }
  .st-guide-pager { padding: 16px 18px 20px; }
  .st-overview-welcome { grid-template-columns: 1fr; }
  .st-overview-welcome__art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .st-gart .ga-a,
  .st-gart .ga-tourpan { animation: none !important; }
  .st-coach__ring,
  .st-coach__note { animation: none; }
  .st-coach__hole { transition: none; }
  .st-guide-count__fill { transition: none; }
  .st-guide-fab { animation: none; transition: none; }
}

/* ---------- 9. The floating Guide button (views/shell.js) ---------- */
/* Bottom right on every event page (owner request, Nov 20 2026), above the
   page and under every dialog and drawer: those are in the top layer, so a
   modal covers it and makes it inert. Menus, the "Show me" overlay and the
   toasts stay above it too. */
.st-guide-fab {
  --st-fab-gap: 20px;
  position: fixed; z-index: 800;
  right: calc(var(--st-fab-gap) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--st-fab-gap) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  background: var(--st-violet); color: #fff;
  font: 600 14px/1 var(--st-font); white-space: nowrap; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transition: background var(--st-ease), bottom 160ms ease;
  animation: st-fab-in 220ms ease both;
}
.st-guide-fab[hidden] { display: none; }
.st-guide-fab:hover { background: #7a6bff; }
.st-guide-fab:active { background: #5f4ef0; }
.st-guide-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.st-guide-fab .st-icon { flex: 0 0 auto; }
@keyframes st-fab-in { from { opacity: 0; transform: translateY(8px); } }

/* What shares its corner. An unsaved-changes bar (Details, Vendors >
   Registration) keeps its buttons in view: the Guide button sits above it. */
body:has(.st-details-bar:not([hidden])) .st-guide-fab,
body:has(.st-vreg-bar:not([hidden])) .st-guide-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
/* Toasts stack above the button (and above a bar under it). */
body:has(.st-guide-fab:not([hidden])) > .st-toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
body:has(.st-guide-fab:not([hidden])):has(.st-details-bar:not([hidden])) > .st-toasts,
body:has(.st-guide-fab:not([hidden])):has(.st-vreg-bar:not([hidden])) > .st-toasts { bottom: calc(142px + env(safe-area-inset-bottom, 0px)); }
/* The end of a page scrolls clear of it. */
body:has(.st-guide-fab:not([hidden])) .st-content:not(.st-content--bleed) > .st-page { padding-bottom: 92px; }
/* The venue map fills the page: Mapbox's zoom buttons and attribution move up, and the
   inspector on the right ends above the button. */
body:has(.st-guide-fab:not([hidden])) .st-map__venue:not(.has-side) .mapboxgl-ctrl-bottom-right { bottom: 60px; }
body:has(.st-guide-fab:not([hidden])) .st-map__side { margin-bottom: 56px; }
@container st-map (max-width: 720px) {
  /* The inspector is a sheet along the bottom here: everything on the map ends above the button. */
  body:has(.st-guide-fab:not([hidden])) .st-map__overlay { padding-bottom: 66px; }
  body:has(.st-guide-fab:not([hidden])) .st-map__side { margin-bottom: 0; }
  body:has(.st-guide-fab:not([hidden])) .st-map__venue .mapboxgl-ctrl-bottom-right { bottom: 60px; }
}

/* Phones: a round button with the icon only (the name stays for screen readers). */
@media (max-width: 640px) {
  .st-guide-fab { --st-fab-gap: 14px; width: 48px; height: 48px; padding: 0; }
  .st-guide-fab__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
  .st-guide-fab .st-icon { width: 21px; height: 21px; }
  body:has(.st-guide-fab:not([hidden])) > .st-toasts { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

@media print {
  .st-guide-fab { display: none !important; }
}
