/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 * Copyright © 2026 Marcel Rymenhout and IniqDash contributors */
/* THE HOSTED PUBLIC DEMO — the guided tour (assets/js/demo-tour.js): a spotlight on a real control, a compact card beside it.
   The application's own tokens (dark surfaces, orange accent); everything else is left as it is. */
.iq-tour { position: fixed; inset: 0; z-index: 2147483600; font-family: var(--font, system-ui, sans-serif); }
.iq-tour[popover] { inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: inherit; }
.iq-tour[hidden] { display: none; }
/* the page under the tour does not react (the tour moves through it itself) */
.iq-tour__catch { position: fixed; inset: 0; background: transparent; }
.iq-tour.is-centred .iq-tour__catch { background: rgba(6, 7, 10, .62); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
/* the spotlight: everything around it darkened, the control itself clear, an accent ring */
.iq-tour__spot { position: fixed; left: 50%; top: 50%; width: 0; height: 0; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--accent, #ff7a1a), 0 0 22px 2px color-mix(in srgb, var(--accent, #ff7a1a) 45%, transparent), 0 0 0 200vmax rgba(6, 7, 10, .62);
  transition: left .32s cubic-bezier(.2, .8, .2, 1), top .32s cubic-bezier(.2, .8, .2, 1), width .32s cubic-bezier(.2, .8, .2, 1), height .32s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.iq-tour.is-centred .iq-tour__spot { opacity: 0; }

.iq-tour__card { position: fixed; left: 50%; top: 50%; box-sizing: border-box; width: min(340px, calc(100vw - 24px));
  padding: 16px 16px 14px; border-radius: 18px; color: var(--text-primary, #f1f1f3); background: var(--surface-primary, #17171a);
  box-shadow: 0 0 0 1px var(--border-primary, rgba(255, 255, 255, .1)), 0 18px 48px rgba(0, 0, 0, .5);
  transition: left .32s cubic-bezier(.2, .8, .2, 1), top .32s cubic-bezier(.2, .8, .2, 1), opacity .2s; overflow: visible; }
.iq-tour__card.is-wide { width: min(460px, calc(100vw - 24px)); padding: 24px; border-radius: 22px; }
.iq-tour.is-moving .iq-tour__card { opacity: .35; }
.iq-tour__card h2 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 700; }
.iq-tour__card.is-wide h2 { font-size: 21px; margin-bottom: 10px; }
.iq-tour__text { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary, #c9cbd1); }
.iq-tour__card.is-wide .iq-tour__text { font-size: 14.5px; }
.iq-tour__step { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent, #ff7a1a); }
.iq-tour__bar { height: 3px; margin: 0 0 12px; border-radius: 3px; background: var(--surface-secondary, rgba(255, 255, 255, .08)); overflow: hidden; }
.iq-tour__bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent, #ff7a1a); transition: width .32s; }
.iq-tour__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; }
.iq-tour__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 0; border-radius: 11px; cursor: pointer;
  text-decoration: none; font: 600 13.5px var(--font, system-ui, sans-serif); color: var(--text-primary, #f1f1f3); background: var(--surface-secondary, rgba(255, 255, 255, .08)); }
.iq-tour__card.is-wide .iq-tour__btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.iq-tour__btn:hover { background: color-mix(in srgb, var(--text-primary, #fff) 14%, transparent); }
.iq-tour__btn--primary { color: var(--on-accent, #1b1407); background: var(--accent, #ff7a1a); }
.iq-tour__btn--primary:hover { background: color-mix(in srgb, var(--accent, #ff7a1a) 88%, #fff); }
.iq-tour__btn--ghost { margin-right: auto; background: transparent; color: var(--text-muted, #a1a3ab); padding: 0 6px; }
.iq-tour__btn--ghost:hover { background: transparent; color: var(--text-primary, #f1f1f3); text-decoration: underline; }
.iq-tour__btn:focus-visible { outline: 2px solid var(--accent, #ff7a1a); outline-offset: 2px; }
/* the arrow: a small diamond on the card's edge, towards the control */
.iq-tour__arrow { position: absolute; width: 14px; height: 14px; background: var(--surface-primary, #17171a); transform: rotate(45deg);
  box-shadow: -1px -1px 0 0 var(--border-primary, rgba(255, 255, 255, .1)); }
.iq-tour__arrow[hidden] { display: none; }
.iq-tour__arrow--bottom { top: -7px; }
.iq-tour__arrow--top { bottom: -7px; transform: rotate(225deg); }
.iq-tour__arrow--right { left: -7px; transform: rotate(-45deg); }
.iq-tour__arrow--left { right: -7px; transform: rotate(135deg); }
.iq-tour__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .iq-tour__card { width: calc(100vw - 24px); }
  .iq-tour__actions .iq-tour__btn { min-height: 44px; }
  .iq-tour__card.is-wide .iq-tour__actions { justify-content: stretch; }
  .iq-tour__card.is-wide .iq-tour__actions .iq-tour__btn { flex: 1 1 auto; }
}
.iq-tour.is-still .iq-tour__spot, .iq-tour.is-still .iq-tour__card, .iq-tour.is-still .iq-tour__bar span,
.iq-tour.is-opening .iq-tour__spot, .iq-tour.is-opening .iq-tour__card { transition: none; }
@media (prefers-reduced-motion: reduce) { .iq-tour__spot, .iq-tour__card, .iq-tour__bar span { transition: none; } .iq-tour__catch { backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media print { .iq-tour { display: none; } }
