/* Help: the side panel the "?" in the top bar opens on every page
   (components/_app_header.html + help/_panel.html), the Help center
   (/help/) and its article pages. The tour cards borrow the guided tour's
   own look — a dimmed screen with one ringed spot — so "Show me" reads as
   "this lights up the real thing on your screen". */

/* ---- article text: numbered steps, keys, on-screen words ------------- */
.hlp-prose { font-size: 14.5px; line-height: 1.65; color: var(--ds-ink-2); }
.hlp-prose p { margin: 0 0 12px; }
.hlp-steps { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 10px; }
.hlp-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.hlp-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
         background: var(--ds-ink); color: var(--ds-surf); font: 600 12.5px/1 var(--ds-font-mono); }
.hlp-steps li > div { padding-top: 3px; }
.hlp-prose kbd { display: inline-block; min-width: 22px; padding: 1px 7px; border: 1px solid var(--ds-line);
                 border-bottom-width: 2px; border-radius: 6px; background: var(--ds-surf); color: var(--ds-ink);
                 font: 500 12px/1.6 var(--ds-font-mono); text-align: center; box-shadow: none; }
.hlp-prose code { padding: 1px 6px; border-radius: 5px; background: var(--ds-surf-3); color: var(--ds-ink);
                  font: 500 12.5px var(--ds-font-mono); }
.hlp-ui { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--ds-blue-tint); color: var(--ds-blue);
          font-weight: 600; font-size: .94em; line-height: 1.7; white-space: nowrap; }
.hlp-fig { margin: 10px 0 6px; }
.hlp-fig img { display: block; width: 100%; max-width: 420px; height: auto; border: 1px solid var(--ds-line); border-radius: 10px; }
.hlp-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 18px; border-radius: 12px; overflow: hidden; background: #000; }
.hlp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- the tour card: a little screen with one spot ringed ------------- */
.hlp-tour { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border: 1px solid var(--ds-line);
            border-radius: 12px; background: var(--ds-surf); color: inherit; text-decoration: none;
            transition: border-color .15s ease, box-shadow .15s ease; }
.hlp-tour:hover { border-color: var(--ds-ink-5); box-shadow: var(--ds-shadow-float); color: inherit; }
.hlp-tour:focus-visible { outline: 2px solid var(--ds-blue); outline-offset: 2px; }
.hlp-tour-t { font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--ds-ink); }
.hlp-tour-s { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--ds-ink-4); }
.hlp-tour-s strong { margin-left: auto; color: var(--ds-blue); font-weight: 700; }

.hlp-mini { position: relative; flex: none; width: 92px; height: 62px; border-radius: 8px; background: var(--ds-surf-3); overflow: hidden; }
.hlp-mini span { position: absolute; left: 9px; height: 5px; border-radius: 3px; background: var(--ds-line); }
.hlp-mini span:nth-child(1) { top: 10px; width: 36%; }
.hlp-mini span:nth-child(2) { top: 22px; width: 74%; }
.hlp-mini span:nth-child(3) { top: 34px; width: 56%; }
.hlp-mini span:nth-child(4) { top: 46px; width: 66%; }
.hlp-mini b { position: absolute; left: 5px; height: 13px; border-radius: 5px;
              box-shadow: 0 0 0 2px var(--ds-warn), 0 0 0 999px rgba(15, 15, 20, .2);
              transition: top .3s ease, width .3s ease; }
.hlp-mini[data-v="0"] b { top: 18px; width: 80%; }
.hlp-mini[data-v="1"] b { top: 30px; width: 62%; }
.hlp-mini[data-v="2"] b { top: 6px; width: 42%; }
.hlp-mini[data-v="3"] b { top: 42px; width: 72%; }
.hlp-tour:hover .hlp-mini b, .hlp-tour:focus-visible .hlp-mini b { top: 30px; width: 62%; }
.hlp-tour:hover .hlp-mini[data-v="1"] b, .hlp-tour:focus-visible .hlp-mini[data-v="1"] b { top: 42px; width: 72%; }
@media (prefers-reduced-motion: reduce) { .hlp-mini b { transition: none; } }

/* ---- plain article rows ---------------------------------------------- */
.hlp-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--ds-line-2);
           color: inherit; text-decoration: none; }
.hlp-row:first-child { border-top: 0; }
.hlp-row:hover .hlp-row-t { text-decoration: underline; text-underline-offset: 3px; }
.hlp-row:focus-visible { outline: 2px solid var(--ds-blue); outline-offset: 2px; border-radius: 6px; }
.hlp-row-t { font-weight: 600; font-size: 14px; color: var(--ds-ink); }
.hlp-row-x { font-size: 12.5px; color: var(--ds-ink-4); margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 1;
             -webkit-box-orient: vertical; overflow: hidden; }
.hlp-row > svg, .hlp-row > i { flex: none; margin-left: auto; color: var(--ds-ink-5); }
.hlp-tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; vertical-align: 1px;
           font-size: 11px; font-weight: 600; background: var(--ds-surf-3); color: var(--ds-ink-3); }

.hlp-search { position: relative; }
.hlp-search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; color: var(--ds-ink-4); pointer-events: none; }
.hlp-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--ds-line); border-radius: 10px;
                    background: var(--ds-surf); color: var(--ds-ink); font-size: 14.5px; }
.hlp-search input:focus { outline: none; border-color: var(--ds-blue); box-shadow: 0 0 0 3px var(--ds-blue-tint); }
.hlp-label { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ds-ink-4); }
.hlp-empty { padding: 14px 4px; font-size: 13.5px; color: var(--ds-ink-4); }

/* ---- the side panel and its button in the top bar --------------------- */
.ds-topbar-btn.ds-help-btn { width: auto; min-width: 34px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; }
.ds-help-btn-t { font-size: 13px; font-weight: 600; }
@media (max-width: 1199px) { .ds-help-btn-t { display: none; } }
.ds-help-drawer { --bs-offcanvas-width: 400px; background: var(--ds-surf-2); color: var(--ds-ink); border-left: 1px solid var(--ds-line) !important; }
.ds-help-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.ds-help-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.ds-help-x { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px;
             background: transparent; color: var(--ds-ink-3); }
.ds-help-x:hover { background: var(--ds-surf-3); color: var(--ds-ink); }
.ds-help-body { flex: 1; overflow-y: auto; padding: 8px 18px 24px;
                scrollbar-width: thin; scrollbar-color: var(--ds-ink-5) transparent; }
/* More below: a soft fade at the bottom edge (help.js sets .ds-help-more). */
.ds-help-drawer::after { content: ""; position: absolute; left: 0; right: 12px; bottom: 0; height: 56px; pointer-events: none;
                         background: linear-gradient(to bottom, transparent, var(--ds-surf-2)); opacity: 0; transition: opacity .2s ease; }
.ds-help-drawer.ds-help-more::after { opacity: 1; }
.ds-help-loading { padding: 24px 0; font-size: 13px; color: var(--ds-ink-4); }
.ds-help-sec { margin-top: 20px; }
.ds-help-tours { display: grid; gap: 8px; }
.ds-help-list { padding: 0 12px; border: 1px solid var(--ds-line); border-radius: 12px; background: var(--ds-surf); }
.ds-help-news { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px; border-radius: 12px;
                background: var(--ds-ink); color: var(--ds-surf); text-decoration: none; }
.ds-help-news:hover { color: var(--ds-surf); opacity: .92; }
.ds-help-news small { display: block; opacity: .7; font-size: 11.5px; }
.ds-help-news span { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.ds-help-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: 12.5px; color: var(--ds-ink-4); }
.ds-help-foot a { color: var(--ds-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ds-help-foot a.ds-help-wa { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ds-good); }
.ds-help-foot a.ds-help-wa:hover { text-decoration: underline; }
.hlp-wa-ic { background: var(--ds-good-tint) !important; color: var(--ds-good) !important; }
.ds-help-back { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 12px; padding: 0; border: 0; background: none;
                font-size: 13px; font-weight: 600; color: var(--ds-ink-3); cursor: pointer; }
.ds-help-back:hover { color: var(--ds-ink); }
.ds-help-art h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.ds-help-art .hlp-prose { font-size: 14px; }
@media (max-width: 575px) { .ds-help-drawer { --bs-offcanvas-width: 100vw; } }
