/* THE GUIDED TOUR (prototype, brief tour1 - "FOR APPROVAL - Guided tour, version 1"). Its own file, so style.css is
   untouched; NOT A NEW LOOK - the card is the app's dialog (.modal-dialog, .modal-head and its x, .btn, .btn-primary,
   .btn-ghost), the colours style.css's palette. See static/js/tour.js. */

/* THE PAGE DIMMED EXCEPT WHAT A STEP IS ABOUT: one box over it, whose shadow is the dim - the page shows through the
   box, darkened everywhere else. It takes no clicks: a click on the page still reaches the page (and pauses the
   tour). The dialog's own backdrop dims around a step inside a dialog, so there the box casts nothing. */
.tour-hole {
  position: fixed; z-index: 900; pointer-events: none; border-radius: 10px;
  box-shadow: 0 0 0 200vmax rgba(43, 38, 32, 0.55);
}
.tour-hole.tour-hole-clear { box-shadow: none; }
.tour-hole.tour-hole-all { border-radius: 0; }
.tour-hole[hidden], .tour-ring[hidden], #tour-card[hidden], .tour-paused[hidden] { display: none; }
/* A GLOW, NOT A BORDER (the user, 11/9/2026: "Instead of a brown border, which gets lost, can it glow - white or
   pale yellow or something to highlight?"): a thin pale-yellow edge and a soft warm light around it, which reads
   on the dark top bar and on the dimmed page alike. */
.tour-ring {
  position: fixed; z-index: 901; pointer-events: none; border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255, 246, 204, 0.95), 0 0 14px 5px rgba(255, 233, 150, 0.8),
              0 0 34px 12px rgba(255, 226, 130, 0.38);
}
/* WHITE ALL ROUND (an item in an open menu, the list in the Switch role box - nothing dimmed beside it, where a
   pale glow would vanish): lit like a highlighter instead, a deeper yellow edge and a pale-yellow wash. */
.tour-ring.tour-ring-on-light {
  box-shadow: 0 0 0 2px rgba(232, 186, 40, 0.95), 0 0 12px 4px rgba(255, 208, 70, 0.55),
              inset 0 0 0 999px rgba(255, 232, 120, 0.3);
}
/* A MENU A STEP IS INSIDE STAYS OPEN while the step shows - menus open on hover and keyboard focus (style.css's
   .nav-dropdown:hover rule); the tour holds one open by a class instead. */
.nav-dropdown.tour-menu-open > .nav-dropdown-panel { display: block; }
/* THE MENU DROPS OPEN BEFORE YOUR EYES (the user, 11/9/2026: "show an animation of it opening"): a short slide and
   fade; none where the computer asks for less motion. */
@keyframes tour-menu-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.nav-dropdown.tour-menu-anim > .nav-dropdown-panel { animation: tour-menu-drop 280ms ease-out; }
/* Opened unseen for an instant, to measure where the card will stand once it is open (tour.js). */
.nav-dropdown.tour-menu-measure > .nav-dropdown-panel { visibility: hidden !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .nav-dropdown.tour-menu-anim > .nav-dropdown-panel { animation: none; } }
/* THE TOP BAR ABOVE THE SHADE while a step is about it (the user, 11/9/2026: "the menu opened with a highlight
   around it or not shaded so I can read it?"): a menu opened from it shows whole, unshaded, in front of the card
   (902); the glow rides above the bar. tour.js adds and removes the classes. */
.topbar.tour-bar-lit { position: relative; z-index: 903; }
.tour-ring.tour-ring-top { z-index: 904; }

/* THE CARD: the app's dialog, beside what it is about. */
#tour-card {
  position: fixed; z-index: 902; margin: 0; width: 360px; max-width: calc(100vw - 3rem); max-height: none;
  padding: 1.05rem 1.25rem 1rem; outline: none;
  overflow: visible;   /* never a scroll bar inside the card (the user, 11/9/2026); it has no height limit */
}
#tour-card .modal-head { margin-bottom: 0.4rem; }
#tour-card .modal-head h3 { font-size: 1.1rem; line-height: 1.3; }
.tour-card-text { margin: 0; font-size: 0.95rem; line-height: 1.5; }
/* The last end card's line about the other roles' chapters (YOUR ROLES STAYS IN YOUR ROLE, 11/9/2026). */
.tour-card-text.tour-card-also { margin-top: 0.45rem; }
.tour-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem;
  flex-wrap: wrap; row-gap: 0.5rem;   /* wraps rather than overflow */
}
.tour-card-count { font-size: 0.85rem; white-space: nowrap; }
.tour-card-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.tour-card-all { font-size: 0.9rem; }
/* BACK AT THE LEFT, THE COUNT IN THE MIDDLE, NEXT AT THE RIGHT, BOTH WHITE WITH ARROWS (the user, 11/9/2026: "Can
   the buttons have arrows on them and both be white background? ... the 'back' button should be on the left
   side, the 'next' button on the right, and the page count in the center"), as the hymn page's own number
   stepper. Next's words, arrow and edge in the app's brown, so the eye finds the forward step first; Back's grey;
   on step 1 Back stays in its place, faded, so nothing moves. */
.tour-card-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.tour-card-nav .tour-btn-back { justify-self: start; }
.tour-card-nav .tour-card-count { justify-self: center; }
.tour-card-nav .tour-btn-next { justify-self: end; }
.tour-btn { background: var(--card); white-space: nowrap; }
.tour-btn span { font-size: 1.2em; line-height: 1; }
.tour-btn-next { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.tour-btn-back { color: var(--muted); }
.tour-btn[disabled] { opacity: 0.4; cursor: default; box-shadow: none; transform: none; }
/* AT 700PX AND BELOW the card sits at the foot of the screen, the page's width less its gutters. */
#tour-card.tour-docked {
  left: 1.5rem !important; right: 1.5rem; top: auto !important; bottom: 0.75rem; width: auto; max-width: none;
}

/* "TOUR PAUSED - RESUME - CLOSE", in a corner, when somebody clicks away mid-tour. */
.tour-paused {
  position: fixed; z-index: 880; right: 1.5rem; bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.15rem;
  background: var(--card); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); padding: 0.55rem 0.95rem; font-size: 0.9rem;
}
.tour-paused-btn {
  font: inherit; background: none; border: 0; padding: 0.1rem 0.15rem; cursor: pointer;
  color: var(--accent); font-weight: 600;
}
.tour-paused-btn:hover, .tour-paused-btn:focus-visible { text-decoration: underline; }
.tour-paused-close { color: var(--muted); font-weight: 400; }
.tour-sep { color: var(--muted); margin: 0 0.35rem; }
@media (max-width: 700px) {
  .tour-paused { left: 1.5rem; right: 1.5rem; bottom: 0.75rem; justify-content: center; }
}

/* THE WELCOME BOX: the app's dialog, a title that says the thing, no bullets. */
.tour-welcome { max-width: 470px; }
.tour-welcome p { margin: 0 0 0.7rem; line-height: 1.5; }
.tour-welcome .modal-actions { margin-top: 1.1rem; }
.tour-welcome .tour-welcome-later { margin: 0.9rem 0 0; font-size: 0.86rem; text-align: right; }
@media (max-width: 700px) { .tour-welcome .tour-welcome-later { text-align: left; } }

/* A ROLE ADDED: the "Something you sent has an answer" notice (.feedback-notice), its No thanks quieter. */
.tour-new-role .tour-sep { margin: 0 0.3rem 0 0.45rem; }
.tour-no-thanks {
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted);
}
.tour-no-thanks:hover, .tour-no-thanks:focus-visible { text-decoration: underline; color: var(--ink); }
.tour-new-role[hidden], .tour-welcome-overlay[hidden] { display: none; }

/* AN EXAMPLE PAGE: full width under the top bar, plain and unmistakable, not alarming - the calm blue of a review
   sent back to its reviewers, not the amber of something waiting on you or the red of an error. */
.tour-example-band {
  background: var(--status-revision_review-bg); color: var(--status-revision_review-fg);
  border-bottom: 1px solid #b9d0ea; text-align: center; padding: 0.5rem 1rem;
  font-size: 0.92rem; font-weight: 600;
  /* IT STAYS IN SIGHT, and undimmed, while the tour walks the page under it. */
  position: sticky; top: 0; z-index: 903;
}
/* ...BUT AN OPEN BOX COVERS IT, as it covers the top bar (tour.js bandUnder): under every overlay (40-60). */
.tour-example-band.tour-band-under { z-index: 30; }

/* THE TOUR'S PAGE: dense, like the front page's links card - rows indented under their headings, the arrows just
   past the longest name, no numbers. */
.tour-continue { margin: -0.35rem 0 1.1rem; font-size: 1rem; font-weight: 600; }
.tour-continue a { color: var(--accent); }
.tour-continue a:hover { text-decoration: underline; }
.tour-chapters { width: fit-content; min-width: min(100%, 27rem); max-width: 100%; padding: 1rem 1.25rem 0.9rem; }
.tour-group-h {
  display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.35rem; padding: 0; border: 0;
  font-size: 1rem; line-height: 1.3;
}
.card h2.tour-group-h { border-bottom: 0; padding-bottom: 0; }
.tour-group-h .role-badge { margin-left: 0; font-family: var(--font-sans); font-weight: 400; }
.tour-group-note { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.tour-chapters .home-links { width: fit-content; max-width: 100%; padding-left: 0.4rem; }
.tour-chapters .home-link { padding: 0.32rem 0.5rem; }
.tour-tick { flex: none; width: 18px; height: 18px; color: var(--success); }
/* A CHAPTER NOT WRITTEN YET (the user, 11/9/2026: "what is this? 1 of 1?"): said so, small and grey. */
.tour-draft { margin-left: 0.5rem; font-size: 0.8rem; color: var(--muted); font-style: italic; }
/* WHAT A PRACTICE PRESS WOULD HAVE DONE, or the role taken for its chapters: one calm line at the top of the card. */
.tour-card-note {
  margin: 0 0 0.6rem; padding: 0.45rem 0.65rem; border-left: 3px solid #6f9a62; border-radius: 4px;
  background: #f2f7ee; font-size: 0.9rem; line-height: 1.45;
}
.tour-updated {
  display: inline-block; margin-left: 0.45rem; padding: 0 0.45rem; border-radius: 999px; vertical-align: 0.08em;
  background: var(--status-revision_review-bg); color: var(--status-revision_review-fg);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; line-height: 1.45rem;
}
.tour-roles-row { margin-top: 0.6rem; }
.tour-others { margin-top: 1.6rem; }
.tour-other { margin: 0.55rem 0 0 0.4rem; }
.tour-other + .tour-other { margin-top: 1rem; }
.tour-other-h { margin: 0 0 0.2rem; }
.tour-other-h .role-badge { margin-left: 0; }
.tour-other-list { list-style: none; margin: 0 0 0.3rem; padding: 0 0 0 0.5rem; color: var(--muted); font-size: 0.92rem; }
.tour-other-list li { padding: 0.12rem 0; }
.tour-switch { font-size: 0.9rem; margin-left: 0.5rem; }
@media (max-width: 640px) {
  .tour-chapters { width: auto; min-width: 0; }
  .tour-chapters .home-links { width: auto; }
  .tour-chapters .home-link { padding: 0.48rem 0.5rem; }
}
