/* Source: https://github.com/TFH-Web/rock-frontend/blob/main/theme/Styles/v18/tfh-tour.css */
/* Converted from theme/Styles/tfh-tour.less for the Rock v18 RockV2 theme. */
/* Plain CSS: native nesting + custom properties. No compiler. */

/* ──────────────────────────────────────────────────────────────────────────
   TFH Guided Spotlight Tour — shared, page-agnostic styles
   Paired with theme/Assets/Scripts/tfh-tour.js (the engine) and a per-page
   window.tfhTourSteps array (the step data).

   Namespaced tfh-tour-* / .tfh-tour-launch so it cannot collide with dashboard
   CSS/JS or the Chart.js charts. High z-index. Inert on any page that doesn't
   set window.tfhTourSteps.
   ────────────────────────────────────────────────────────────────────────── */

/* ── Guided tour (namespaced, high z-index) ─────────────────────────────── */
.tfh-tour-launch{
  display:inline-flex; align-items:center; gap:6px;
  margin-left:12px; vertical-align:middle;
  padding:4px 12px; font-size:12px; font-weight:600; line-height:1.4;
  color:var(--tfh-black); background:var(--tfh-white);
  border:1.5px solid var(--tfh-border-dark); border-radius:999px;
  cursor:pointer; font-family:inherit; white-space:nowrap;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.tfh-tour-launch:hover{ background:var(--tfh-brand); border-color:var(--tfh-brand); color:#fff; }
.tfh-tour-launch i{ font-size:11px; }

.tfh-tour-overlay{
  position:fixed; inset:0; z-index:2147483000;
  display:none;
}
.tfh-tour-overlay.is-active{ display:block; }

/* Catch-all blocker — darkens nothing itself, just eats clicks under the popover */
.tfh-tour-blocker{
  position:fixed; inset:0; z-index:1;
  background:transparent; cursor:default;
}

/* The highlight box: a transparent rect with a giant shadow that darkens
   everything else. pointer-events:none so it never intercepts clicks. */
.tfh-tour-spot{
  position:fixed; z-index:2;
  border-radius:10px;
  box-shadow:0 0 0 9999px rgba(0,0,0,.72);
  pointer-events:none;
  transition:top .25s ease, left .25s ease, width .25s ease, height .25s ease;
  outline:2px solid rgba(255,255,255,.85);
  outline-offset:0;
}

.tfh-tour-pop{
  position:fixed; z-index:3;
  width:340px; max-width:calc(100vw - 24px);
  background:var(--tfh-white); border-radius:12px;
  box-shadow:0 12px 40px rgba(0,0,0,.35);
  padding:18px 18px 14px;
  font-family:inherit; color:var(--tfh-black);
  box-sizing:border-box;
}
.tfh-tour-pop__close{
  position:absolute; top:10px; right:10px;
  width:30px; height:30px; line-height:30px; text-align:center;
  border:none; background:transparent; color:var(--tfh-muted);
  font-size:18px; cursor:pointer; border-radius:6px; padding:0;
}
.tfh-tour-pop__close:hover{ background:var(--tfh-light-gray); color:var(--tfh-black); }
.tfh-tour-pop__swatch{ margin-bottom:12px; height:22px; }
.tfh-tour-pop__title{
  font-size:15px; font-weight:700; margin:0 26px 6px 0; line-height:1.3;
}
.tfh-tour-pop__body{
  font-size:13.5px; line-height:1.55; color:var(--tfh-muted); margin:0 0 14px;
}
.tfh-tour-pop__foot{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.tfh-tour-pop__count{ font-size:12px; color:var(--tfh-muted); font-variant-numeric:tabular-nums; }
.tfh-tour-pop__btns{ display:flex; gap:8px; }
.tfh-tour-btn{
  padding:8px 16px; font-size:13px; font-weight:600; font-family:inherit;
  border-radius:8px; cursor:pointer; border:1.5px solid var(--tfh-border-dark);
  background:var(--tfh-white); color:var(--tfh-black); min-height:38px;
}
.tfh-tour-btn:hover{ background:var(--tfh-light-gray); }
.tfh-tour-btn--primary{ background:var(--tfh-brand); border-color:var(--tfh-brand); color:#fff; }
/* Rock v2 supplies the darkened brand; fallback is the v1 literal darken(#36454f,5%). */
.tfh-tour-btn--primary:hover{ background:var(--color-primary-shade, #2a363e); border-color:var(--color-primary-shade, #2a363e); }
.tfh-tour-btn[disabled]{ opacity:.4; cursor:default; }

/* SVG/CSS swatches that mirror the chart layers */
.tfh-tour-swatch-svg{ display:block; width:120px; height:18px; }
.tfh-tour-swatch-band{
  display:block; width:120px; height:18px; border-radius:4px;
  background:rgba(54,69,79,.15); border:1px solid rgba(54,69,79,.25);
}

@media (max-width:480px){
  .tfh-tour-pop{ width:calc(100vw - 16px); padding:16px 16px 12px; }
  .tfh-tour-pop__btns{ flex:1; }
  .tfh-tour-btn{ flex:1; padding:10px 12px; }
  .tfh-tour-launch{ margin-left:0; margin-top:8px; }
}
