/* ── SITE-100 Shared Tour CSS ──────────────────────────────────────────────
   Used by: design_mockup.html (site100_map_tour_seen)
            phylo.html          (site100_phylo_tour_seen)
   Reset:   localStorage.removeItem('<key>')
   Trigger: click the ? button in toolbar / controls bar
──────────────────────────────────────────────────────────────────────────── */

#tour-overlay {
  --t-accent:      #5B9E8A;
  --t-accent-lt:   #80B8AA;
  --t-accent-pale: #C2DED8;

  position: fixed; inset: 0;
  background: rgba(42,35,24,.52);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: tFadeIn .2s ease;
}
@keyframes tFadeIn { from { opacity:0 } to { opacity:1 } }

#tour-card {
  background: var(--card, #FDFAF3);
  border: 1px solid var(--border, #D8CEBB);
  border-radius: 10px;
  width: 600px; max-width: 94vw;
  box-shadow: 0 8px 40px rgba(42,35,24,.2);
  animation: tSlideUp .22s ease;
  overflow: hidden;
  font-family: Arial, sans-serif;
}
@keyframes tSlideUp { from { transform:translateY(14px);opacity:0 } to { transform:translateY(0);opacity:1 } }

/* progress bar */
.t-progress { height: 3px; background: var(--border, #D8CEBB); }
.t-progress-fill { height: 100%; background: var(--olive-dk, #2c5f45); transition: width .3s ease; }

/* steps */
.t-step { display: none; }
.t-step.active { display: block; }

/* header */
.t-header { padding: 24px 28px 0; }
.t-label {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t-accent); margin-bottom: 7px;
}
.t-header h2 { font-size: 19px; font-weight: 600; color: var(--olive-dk, #2c5f45); margin-bottom: 6px; }
.t-header p  { font-size: 13px; color: var(--ink-muted, #6B6355); line-height: 1.65; }

/* preview box */
.t-preview {
  margin: 14px 28px;
  border: 1px solid var(--border, #D8CEBB);
  border-radius: 6px;
  background: #F5F1E8;
  overflow: hidden;
  font-size: 11px;
  position: relative;
}
.t-preview-bar {
  background: var(--olive-dk, #2c5f45);
  height: 28px; padding: 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.t-preview-bar .t-bar-title { color: #EDE7D5; font-size: 11px; font-weight: 600; }
.t-preview-bar .t-bar-tag   { color: var(--t-accent-lt); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.t-preview-body { padding: 10px 12px; }

/* footer */
.t-footer {
  padding: 14px 28px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.t-dots { display: flex; gap: 6px; }
.t-dot  { width: 7px; height: 7px; border-radius: 50%; background: var(--border, #D8CEBB); transition: background .2s; }
.t-dot.active { background: var(--olive-dk, #2c5f45); }

.t-nav { display: flex; align-items: center; gap: 10px; }
.t-skip {
  font-size: 12px; color: var(--ink-muted, #6B6355);
  cursor: pointer; user-select: none;
}
.t-skip:hover { color: var(--ink, #2A2318); text-decoration: underline; }

.t-btn-ghost {
  background: none; border: 1px solid var(--border, #D8CEBB);
  color: var(--ink-muted, #6B6355); padding: 8px 18px;
  border-radius: 4px; font-size: 13px; cursor: pointer;
  font-family: Arial, sans-serif;
}
.t-btn-ghost:hover { background: #F5F1E8; }

.t-btn-go {
  background: var(--olive-dk, #2c5f45); color: #EDE7D5;
  border: none; padding: 8px 22px;
  border-radius: 4px; font-size: 13px; cursor: pointer;
  font-family: Arial, sans-serif; font-weight: 600;
}
.t-btn-go:hover { background: #3D7268; }

/* ── preview mini-components ─────────────────────────────────────── */

/* toolbar mockup */
.t-toolbar {
  display: flex; align-items: center; gap: 0;
  background: var(--olive-dk, #2c5f45);
  border-radius: 3px; overflow: hidden; height: 30px;
}
.t-tb-group {
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px; height: 100%;
  border-right: 1px solid rgba(255,255,255,.12);
}
.t-tb-lbl  { font-size: 9px; color: rgba(237,231,213,.6); letter-spacing: .06em; text-transform: uppercase; }
.t-tb-sel  {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 2px; padding: 2px 6px; font-size: 10px; color: #EDE7D5;
}
.t-tb-link {
  font-size: 10px; color: var(--t-accent-lt);
  border: 1px solid rgba(91,158,138,.35);
  border-radius: 2px; padding: 2px 7px;
}
.t-tb-clear { font-size: 10px; color: var(--t-accent-lt); padding: 0 8px; }

/* map panels */
.t-map-row { display: flex; gap: 0; height: 120px; }
.t-map-area {
  flex: 1.5; background: linear-gradient(135deg,#c8d8dc,#dce8e4 45%,#c9d4c0 75%,#d8cebb);
  position: relative; border-radius: 3px 0 0 3px; overflow: hidden;
}
.t-map-divider { width: 3px; background: var(--border, #D8CEBB); cursor: col-resize; }
.t-right-col { flex: 1; display: flex; flex-direction: column; }
.t-right-top {
  flex: 1; background: var(--card, #FDFAF3);
  border: 1px solid var(--border, #D8CEBB); border-left: none;
  padding: 6px 8px; overflow: hidden;
}
.t-right-divider { height: 3px; background: var(--border, #D8CEBB); cursor: row-resize; }
.t-right-bot {
  flex: 1; background: var(--card, #FDFAF3);
  border: 1px solid var(--border, #D8CEBB); border-left: none; border-top: none;
  padding: 6px 8px;
}

/* map marker */
.t-marker {
  position: absolute;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #EDE7D5;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.t-marker-ring {
  position: absolute; border-radius: 50%;
  background: var(--olive-dk, #2c5f45); opacity: .15;
}

/* phylo layout */
.t-phylo-row { display: flex; height: 120px; gap: 0; }
.t-tree-col {
  flex: 1.4; background: var(--card, #FDFAF3);
  border: 1px solid var(--border, #D8CEBB);
  border-radius: 3px 0 0 3px; overflow: hidden;
}
.t-controls-bar {
  background: #F0EDE4; border-bottom: 1px solid var(--border, #D8CEBB);
  height: 22px; display: flex; align-items: center; gap: 8px; padding: 0 8px;
}
.t-ctl-chip {
  background: var(--card, #FDFAF3); border: 1px solid var(--border, #D8CEBB);
  border-radius: 2px; padding: 2px 6px; font-size: 9px; color: var(--ink-muted, #6B6355);
}
.t-legend-row {
  height: 14px; display: flex; gap: 0;
}
.t-legend-chip { height: 100%; flex: 1; }
.t-tree-body { padding: 5px 8px; font-family: monospace; font-size: 9px; line-height: 1.9; color: var(--ink-muted, #6B6355); }
.t-tip-hl   { background: #C2DED8; color: var(--olive-dk, #2c5f45); padding: 0 3px; border-radius: 2px; }
.t-node-hl  { background: var(--olive-dk, #2c5f45); color: #EDE7D5; padding: 0 3px; border-radius: 2px; }
.t-info-col {
  flex: 1; background: var(--card, #FDFAF3);
  border: 1px solid var(--border, #D8CEBB); border-left: none;
  border-radius: 0 3px 3px 0; overflow: hidden;
}
.t-search-bar {
  background: #F0EDE4; border-bottom: 1px solid var(--border, #D8CEBB);
  height: 22px; display: flex; align-items: center; padding: 0 6px; gap: 4px;
}
.t-search-input {
  flex: 1; background: var(--card, #FDFAF3);
  border: 1px solid var(--border, #D8CEBB);
  border-radius: 2px; padding: 2px 5px; font-size: 9px; color: var(--ink, #2A2318);
}
.t-suggest {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card, #FDFAF3); border: 1px solid var(--border, #D8CEBB);
  border-radius: 0 0 3px 3px; z-index: 1;
}
.t-suggest-item {
  padding: 3px 6px; font-size: 9px; cursor: pointer;
  color: var(--ink-muted, #6B6355);
}
.t-suggest-item.active { background: #C2DED8; color: var(--olive-dk, #2c5f45); }
.t-panel-body { padding: 5px 8px; font-size: 9px; }
.t-panel-id  { font-family: monospace; color: var(--olive-dk, #2c5f45); font-weight: 700; font-size: 10px; margin-bottom: 3px; }
.t-panel-row { display: flex; justify-content: space-between; margin-top: 2px; color: var(--ink-muted, #6B6355); }
.t-panel-val { color: var(--ink, #2A2318); font-weight: 600; }
.t-clade-tag {
  display: inline-block; background: var(--olive-dk, #2c5f45);
  color: #EDE7D5; font-size: 8px; padding: 1px 5px;
  border-radius: 10px; margin-bottom: 3px; font-weight: 600;
}
.t-chip-row { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
.t-chip {
  background: #C2DED8; color: var(--olive-dk, #2c5f45);
  font-size: 8px; padding: 1px 4px; border-radius: 2px;
}
.t-bar-row { display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.t-bar-fill { height: 5px; border-radius: 2px; background: var(--olive-dk, #2c5f45); }
.t-bar-lbl { font-size: 8px; color: var(--ink-muted, #6B6355); }

/* two-panel split for step 3 of phylo */
.t-split { display: flex; gap: 8px; }
.t-split-panel {
  flex: 1; background: var(--card, #FDFAF3);
  border: 1px solid var(--border, #D8CEBB);
  border-radius: 3px; padding: 6px 8px; font-size: 9px;
}
.t-split-title {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--t-accent); margin-bottom: 5px;
}
