/* Learnium Consulting — portal/css/tour.css: first-login walkthroughs (portal/js/tour.js, 2026-10-24)
   Same look as .lc-dialog in portal.css. Colours are tokens only (tokens.css loads on every page that loads this
   file, the generator pages included; those lock the light theme). Radius 0, Questrial headings, the double-square
   motif on the card. */

/* ---- spotlight ---- */
.lc-tour-dim { position: fixed; inset: 0; z-index: 9000; background: transparent; }
.lc-tour.no-target .lc-tour-dim { background: color-mix(in srgb, var(--night, var(--fg)) 62%, transparent); }
.lc-tour-spot {
  position: fixed; z-index: 9001; pointer-events: none; border-radius: 0; box-sizing: border-box;
  outline: 2px solid var(--focus);
  box-shadow: 0 0 0 200vmax color-mix(in srgb, var(--night, var(--fg)) 62%, transparent);
  transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease;
}
.lc-tour-spot[hidden] { display: none; }

/* ---- the card ---- */
.lc-tour-card {
  position: fixed; z-index: 9002; box-sizing: border-box;
  width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--surface-raised); color: var(--fg);
  border: 1px solid var(--elev-border, var(--border)); border-radius: 0;
  box-shadow: var(--shadow-lg);
  padding: 22px 24px 18px; text-align: left;
  font-family: var(--font-body, "Mulish", "Avenir Next", "Segoe UI", sans-serif);
}
.lc-tour-card::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: var(--accent); }
.lc-tour-card::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; background: var(--surface-raised); }
.lc-tour-card.is-centred { left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; transform: translate(-50%, -50%); }
.lc-tour-step { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 8px; }
.lc-tour-card h2 {
  font-family: var(--font-head, "Questrial", "Century Gothic", "Futura", sans-serif); font-weight: 400;
  font-size: 20px; line-height: 1.25; margin: 0 0 10px; color: var(--fg); letter-spacing: 0;
}
.lc-tour-body { font-size: 14px; line-height: 1.65; color: var(--fg-muted); margin: 0 0 18px; }
.lc-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lc-tour-actions-right { display: flex; gap: 8px; margin-left: auto; }
.lc-tour-skip {
  background: none; border: 0; padding: 8px 0; margin: 0; font: inherit; font-size: 13px;
  color: var(--fg-muted); text-decoration: underline; cursor: pointer;
}
.lc-tour-skip:hover { color: var(--fg); }

/* Buttons inside the card and the help dialog: full styling, so they look the same on pages without style.css. */
.lc-tour-card .btn, .lc-tour-help .btn {
  display: inline-flex; align-items: center; justify-content: center; width: auto;
  min-height: 36px; padding: 0 16px; margin: 0; font-family: inherit; font-size: 14px; font-weight: 500;
  letter-spacing: 0; text-transform: none; line-height: 1; border-radius: 0;
  border: 1px solid var(--border-strong); cursor: pointer; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.lc-tour-card .btn-primary, .lc-tour-help .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.lc-tour-card .btn-primary:hover, .lc-tour-help .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.lc-tour-card .btn-outline, .lc-tour-help .btn-outline { background: var(--surface); color: var(--fg); }
.lc-tour-card .btn-outline:hover, .lc-tour-help .btn-outline:hover { background: var(--surface-2); color: var(--fg); }
.lc-tour-card .btn:focus-visible, .lc-tour-help .btn:focus-visible, .lc-tour-skip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lc-tour-card .btn[hidden] { display: none; }

/* ---- phones: the card docks at the bottom as a sheet ---- */
.lc-tour-card.is-sheet {
  left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; transform: none;
  width: auto; max-height: 55vh; border-left: 0; border-right: 0; border-bottom: 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
}
.lc-tour-card.is-sheet::before, .lc-tour-card.is-sheet::after { display: none; }
@media (max-width: 700px) {
  .lc-tour-card.is-centred { width: calc(100vw - 32px); }
  .lc-tour-card h2 { font-size: 20px; }
}

/* ---- Help: the written walkthrough (a <dialog>, same look as .lc-dialog) ---- */
.lc-tour-help {
  position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100% - 32px); overflow: auto;
  border: 1px solid var(--elev-border, var(--border)); border-radius: 0; padding: 28px; max-width: 580px; width: calc(100% - 32px);
  background: var(--surface-raised); color: var(--fg); box-shadow: var(--shadow-lg);
  font-family: var(--font-body, "Mulish", "Avenir Next", "Segoe UI", sans-serif); text-align: left; box-sizing: border-box;
}
.lc-tour-help::backdrop { background: var(--overlay); }
.lc-tour-help h2 { font-family: var(--font-head, "Questrial", "Century Gothic", "Futura", sans-serif); font-weight: 400; font-size: 20px; margin: 0 0 10px; letter-spacing: 0; }
.lc-tour-help p { font-size: 14px; color: var(--fg-muted); margin: 0 0 14px; line-height: 1.6; white-space: normal; }
.lc-tour-help-list { margin: 0 0 18px; padding: 0 0 0 22px; display: grid; gap: 10px; font-size: 14px; }
.lc-tour-help-list li::marker { color: var(--accent-text); font-weight: 700; }
.lc-tour-help-list li strong { display: block; color: var(--fg); font-weight: 700; margin-bottom: 2px; }
.lc-tour-help-list li span { color: var(--fg-muted); line-height: 1.55; }
.lc-tour-help-note { font-size: 13px; border-left: 3px solid var(--accent); padding-left: 12px; }
.lc-tour-help .lc-dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  .lc-tour-spot, .lc-tour-card .btn, .lc-tour-help .btn { transition: none; }
}
