/* Coachmark / guided-tour overlay — styles for static/js/shared/coachmark.js.
   Shared across pages; the JS builds the DOM, this sizes and themes it. */

.cm-overlay {
  position:   fixed;
  inset:      0;
  z-index:    var(--z-tour);
  background: transparent;   /* the dim comes from .cm-spot's box-shadow */
  cursor:     default;
}

/* The bright ring around the current target. Its huge box-shadow is what dims
   the rest of the page, leaving the target area as a lit "hole". */
.cm-spot {
  position:      fixed;
  z-index:       calc(var(--z-tour) + 1);
  pointer-events: none;
  border-radius: var(--radius);
  border:        2px solid var(--acc);
  box-shadow:    0 0 0 9999px var(--scrim);
  transition:    left .18s ease, top .18s ease, width .18s ease, height .18s ease;
}

.cm-tip {
  position:      fixed;
  z-index:       calc(var(--z-tour) + 2);
  width:         288px;
  max-width:     calc(100vw - 16px);
  background:    var(--bg1);
  border:        1px solid var(--bdr2);
  border-radius: var(--radius);
  box-shadow:    var(--sh-float);
  padding:       var(--space-xl) var(--space-2xl) var(--space-xl);
  color:         var(--t1);
  font-family:   var(--font-sans);
}
.cm-count {
  font-family:    var(--font-num);
  font-size:      var(--fs-micro);
  letter-spacing: .04em;
  color:          var(--t2);
  margin-bottom:  5px;
}
.cm-title {
  font-size:     var(--fs-base);
  font-weight:   700;
  color:         var(--t0);
  margin-bottom: 6px;
}
.cm-body {
  font-size:     var(--fs-body);
  line-height:   1.55;
  color:         var(--t1);
  margin-bottom: 13px;
}
.cm-actions {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}
.cm-nav { display: flex; gap: 7px; }
.cm-skip, .cm-back, .cm-next {
  font-family:   var(--font-sans);
  font-size:     var(--fs-caption);
  padding:       var(--space-xs) var(--space-xl);
  border-radius: var(--radius);
  cursor:        pointer;
  border:        1px solid var(--bdr2);
  background:    transparent;
  color:         var(--t1);
  transition:    background .12s, color .12s, border-color .12s, filter .12s;
}
.cm-skip {
  border-color: transparent;
  color:        var(--t2);
  padding-left: var(--space-2xs);
}
.cm-skip:hover { color: var(--t1); }
.cm-back:hover { background: var(--bg2); color: var(--t0); }
.cm-next {
  background:    var(--acc);
  border-color: var(--acc);
  color:        var(--on-acc);
}
.cm-next:hover { filter: brightness(1.08); }
