/* hive-tour.css – the guided tour (assets/js/hive-tour.js, config/tour.php). Both portals, every theme. */
.hive-tour { position: fixed; inset: 0; z-index: 9500; display: none; }
.hive-tour.open { display: block; }
/* the dimmed page: one layer with a hole cut out over the item (clip-path, set by the script) */
.hive-tour .ht-block { position: absolute; inset: 0; background: rgba(5, 6, 8, .62); touch-action: pan-y; }
.hive-tour .ht-spot { position: fixed; display: none; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--accent, #ff8a00), 0 0 24px 4px rgba(255, 138, 0, .25);
  transition: left .25s cubic-bezier(.2,.8,.2,1), top .25s cubic-bezier(.2,.8,.2,1), width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1); }
.hive-tour.ht-no-trans .ht-spot, .hive-tour .ht-spot.ht-no-trans { transition: none !important; }
.hive-tour .ht-card { position: fixed; width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; box-sizing: border-box; padding: 0 18px 14px; border-radius: 16px;
  background: var(--card, #15171b); color: var(--ink, #f3f1ec); border: 1px solid var(--border2, rgba(255,255,255,.18));
  box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: htIn .22s cubic-bezier(.2,.8,.2,1); }
.hive-tour .ht-card.ht-center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(400px, calc(100vw - 24px)); }
.hive-tour .ht-x { position: sticky; top: 10px; float: right; margin: 10px -8px -40px 0; z-index: 15; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--card, #15171b); color: var(--ink3, #a8a29e); border: 1px solid var(--border, rgba(255,255,255,.14)); font-size: .82rem; }
.hive-tour .ht-x:hover { color: var(--accent, #ff8a00); border-color: var(--accent, #ff8a00); }
.hive-tour .ht-count { padding-top: 14px; margin: 0 0 4px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent, #ff8a00); }
.hive-tour .ht-target-jump { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; box-sizing: border-box; margin: 6px 0 10px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--accent, #ff8a00); background: rgba(255, 138, 0, .14); color: var(--accent, #ff8a00); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; text-align: center; transition: background .15s ease, color .15s ease, transform .15s ease; }
.hive-tour .ht-target-jump:hover { background: var(--accent, #ff8a00); color: #1A0E05; transform: translateY(-1px); }
.hive-tour .ht-title { position: sticky; top: 0; z-index: 10; background: var(--card, #15171b); padding: 8px 34px 6px 0; margin: 0 0 6px; font-size: 1.08rem; font-weight: 800; line-height: 1.3; color: inherit; }
.hive-tour .ht-text { margin: 0 0 12px; font-size: .88rem; line-height: 1.55; color: var(--ink2, inherit); }
.hive-tour .ht-never { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .8rem; color: var(--ink3, #a8a29e); cursor: pointer; }
.hive-tour .ht-never input { width: 16px; height: 16px; accent-color: var(--accent, #ff8a00); margin: 0; }
.hive-tour .ht-acts { position: sticky; bottom: -14px; z-index: 10; background: var(--card, #15171b); margin: 0 -18px -14px; padding: 8px 18px 14px; border-top: 1px solid var(--border, rgba(255,255,255,.1)); display: flex; align-items: center; gap: 8px; }
.hive-tour .ht-sp { flex: 1; }
.hive-tour .ht-acts button { min-height: 36px; padding: 6px 14px; border-radius: 10px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.hive-tour .ht-skip { background: transparent; border: 0; color: var(--ink3, #a8a29e); padding-left: 0 !important; text-decoration: underline; text-underline-offset: 3px; }
.hive-tour .ht-back { background: transparent; color: var(--ink, #f3f1ec); border: 1px solid var(--border2, rgba(255,255,255,.2)); }
.hive-tour .ht-next { background: var(--accent, #ff8a00); color: #1A0E05; border: 0; }
.hive-tour :is(button, input):focus-visible { outline: 3px solid var(--accent, #ff8a00); outline-offset: 2px; }
.hive-tour [hidden] { display: none !important; }
@keyframes htIn { from { opacity: 0; transform: translateY(6px); } }
.hive-tour .ht-card.ht-center { animation: none; }
@media (prefers-reduced-motion: reduce) { .hive-tour .ht-spot { transition: none; } .hive-tour .ht-card { animation: none; } }
@media (max-width: 480px) { .hive-tour .ht-acts { flex-wrap: wrap; } }

/* progress bar under the text */
.hive-tour .ht-bar { height: 3px; border-radius: 3px; background: var(--border, rgba(255,255,255,.12)); margin: 0 0 12px; overflow: hidden; }
.hive-tour .ht-bar i { display: block; height: 100%; width: 0; background: var(--accent, #ff8a00); transition: width .25s ease; }
.hive-tour .ht-next:disabled { opacity: .6; cursor: progress; }

/* welcome card and next-step pop-up: buttons in a row that wraps */
.ht-wacts { position: sticky; bottom: -14px; z-index: 10; background: var(--card, #15171b); margin: 4px -18px -14px; padding: 8px 18px 14px; border-top: 1px solid var(--border, rgba(255,255,255,.1)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ht-wacts :is(button, a) { min-height: 38px; padding: 7px 15px; border-radius: 10px; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.ht-wacts .ht-next { background: var(--accent, #ff8a00); color: #1A0E05; border: 0; }
.ht-wacts .ht-back { background: transparent; color: var(--ink, #f3f1ec); border: 1px solid var(--border2, rgba(255,255,255,.2)); }
.ht-wacts .ht-skip { background: transparent; border: 0; color: var(--ink3, #a8a29e); text-decoration: underline; text-underline-offset: 3px; padding-left: 4px; padding-right: 4px; }
.ht-welcome .ht-card { width: min(440px, calc(100vw - 24px)); }
@media (max-width: 480px) { .ht-wacts .ht-next { flex: 1 1 100%; justify-content: center; } }

/* next step after a request was sent, a profile saved… */
.hnext { position: fixed; right: 18px; bottom: 18px; z-index: 9400; width: min(360px, calc(100vw - 24px)); box-sizing: border-box; padding: 16px 18px 14px; border-radius: 16px;
  background: var(--card, #15171b); color: var(--ink, #f3f1ec); border: 1px solid var(--accent, #ff8a00); box-shadow: 0 20px 50px rgba(0,0,0,.45); animation: htIn .25s cubic-bezier(.2,.8,.2,1); }
.hnext .ht-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: transparent; color: var(--ink3, #a8a29e); border: 1px solid var(--border, rgba(255,255,255,.14)); font-size: .82rem; }
.hnext .ht-count { margin: 0 0 4px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent, #ff8a00); }
.hnext .ht-title { margin: 0 34px 6px 0; font-size: 1.02rem; font-weight: 800; color: inherit; }
.hnext .ht-text { margin: 0 0 12px; font-size: .86rem; line-height: 1.5; color: var(--ink2, inherit); }
.hnext :is(button, a):focus-visible, .ht-wacts :is(button, a):focus-visible { outline: 3px solid var(--accent, #ff8a00); outline-offset: 2px; }
@media (max-width: 600px) { .hnext { left: 12px; right: 12px; bottom: 12px; width: auto; } }
html:has(.hnext) .ha-launch { opacity: 0; pointer-events: none; }

/* the small ? beside a button (data-help) and its explanation */
.hhelp, .hhelp-dot { display: inline-grid; place-items: center; flex: 0 0 auto !important; align-self: center; width: 20px !important; height: 20px !important; min-width: 20px !important; min-height: 20px !important; border-radius: 50%; padding: 0; margin: 0 4px; vertical-align: middle;
  font: 800 .7rem/1 system-ui, sans-serif; color: var(--accent, #ff8a00); background: transparent; border: 1.5px solid currentColor; cursor: pointer; }
.hhelp:hover, .hhelp[aria-expanded="true"] { background: var(--accent, #ff8a00); color: #1A0E05; border-color: var(--accent, #ff8a00); }
.hhelp:focus-visible { outline: 3px solid var(--accent, #ff8a00); outline-offset: 2px; }
.hhelp-dot { cursor: default; }
.hhelp-tip { position: fixed; z-index: 9600; width: min(290px, calc(100vw - 16px)); box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
  background: var(--card, #15171b); color: var(--ink, #f3f1ec); border: 1px solid var(--border2, rgba(255,255,255,.2)); box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: htIn .16s ease; }
.hhelp-tip b { display: block; font-size: .88rem; margin-bottom: 4px; }
.hhelp-tip p { margin: 0 0 10px; font-size: .82rem; line-height: 1.5; color: var(--ink2, inherit); text-transform: none; letter-spacing: 0; font-weight: 500; }
.hhelp-ok { min-height: 32px; padding: 4px 12px; border-radius: 9px; border: 0; background: var(--accent, #ff8a00); color: #1A0E05; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .hnext, .hhelp-tip { animation: none; } }

/* while the tour or its welcome card is open, other floating tips step aside (the shortcuts tip, hive-ui.js) */
html.ht-on .hu-keytip, html:has(.ht-welcome) .hu-keytip { display: none !important; }
