/* ============================================================
   VybeScript Help Center
   Built on the site tokens in /styles.css (--palladian, --soft-surface,
   --oatmeal, --abyssal, --blue-fantastic, --burning-flame, --rust ...).
   Only those variables are used for colour, so if the site ever adds a dark
   theme by redefining them, the Help Center follows without changes here.
   ============================================================ */

.help {
  --help-card: #fff;
  --help-quick-bg: #FFF3E1;
  --help-quick-line: var(--burning-flame);
  --help-radius: 14px;
  color: var(--blue-fantastic);
}
.help [hidden] { display: none !important; }

/* ---------------- search ---------------- */
.help-hero { padding: 56px 0 8px; text-align: center; }
.help-hero .eyebrow { display: block; }
.help-hero h1 { margin-top: 12px; font-size: clamp(32px, 5vw, 46px); line-height: 1.08; }
.help-hero .dek { margin: 14px auto 0; font-size: 17px; line-height: 1.55; color: var(--blue-fantastic); max-width: 34rem; }

.help-search { margin: 26px auto 0; max-width: 640px; text-align: left; }
.help-search-box {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--help-card); border: 1px solid var(--oatmeal); border-radius: 16px;
  padding: 6px 6px 6px 14px;
  box-shadow: 0 10px 28px -16px rgba(27, 38, 50, .35);
}
.help-search-box:focus-within { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(163, 81, 57, .18); }
.help-search-icon { flex: none; color: var(--muted-text); }
.help-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 17px; color: var(--abyssal); padding: 12px 4px;
  -webkit-appearance: none; appearance: none;
}
.help-search input[type="search"]:focus-visible { outline: none; }
.help-search input::placeholder { color: var(--muted-text); opacity: 1; }
.help-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.help-search-btn { flex: none; padding: 11px 20px; font-size: 15px; border-radius: 11px; width: auto; }
.help-search-compact { margin: 24px 0 0; max-width: none; }
.help-search-compact input[type="search"] { font-size: 16px; padding: 10px 4px; }
.help-search-compact .help-search-btn { padding: 9px 16px; font-size: 14px; }

@media (max-width: 480px) {
  .help-search-box { padding-left: 12px; }
  .help-search-icon { display: none; }
  .help-search-btn { padding: 11px 14px; }
}

/* ---------------- index body ---------------- */
.help-body { padding: 36px 0 96px; }
.help-body h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin: 0 0 14px; }
.help-body h2.visually-hidden { margin: 0; }
.help-body > section, .help-body > div > section { margin-bottom: 44px; }

.help-result-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.help-result {
  display: block; background: var(--help-card); border: 1px solid var(--border-card); border-radius: var(--help-radius);
  padding: 16px 18px; color: inherit; text-decoration: none;
}
.help-result:hover { border-color: var(--oatmeal); box-shadow: 0 10px 24px -18px rgba(27, 38, 50, .5); }
.help-result:focus-visible { border-color: var(--rust); }
.help-result-cat { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.help-result-title { display: block; margin-top: 4px; font-size: 17.5px; font-weight: 650; color: var(--abyssal); letter-spacing: -.01em; }
.help-result-snippet { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--blue-fantastic); }
.help-result mark { background: #FFD9A8; color: inherit; border-radius: 3px; padding: 0 1px; }

.help-empty { background: var(--help-card); border: 1px dashed var(--oatmeal); border-radius: var(--help-radius); padding: 22px 20px; text-align: center; }
.help-empty h3 { font-size: 18px; color: var(--abyssal); margin-bottom: 6px; }
.help-empty p { margin: 0 0 14px; font-size: 15px; }
.help-empty .btn { padding: 11px 20px; font-size: 15px; width: auto; }
.help-empty-browse { margin-top: 18px; }

.help-most-list, .help-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help-related ul { grid-template-columns: 1fr; }
.help-most-list a, .help-related a {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  background: var(--help-card); border: 1px solid var(--border-card); border-radius: var(--help-radius);
  padding: 14px 16px; text-decoration: none; color: inherit;
}
.help-most-list a:hover, .help-related a:hover { border-color: var(--oatmeal); box-shadow: 0 10px 24px -18px rgba(27, 38, 50, .5); }
.help-rel-title { font-weight: 650; font-size: 16px; color: var(--abyssal); }
.help-rel-cat { font-size: 12.5px; color: var(--muted-text); }

.help-cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help-cat { background: var(--help-card); border: 1px solid var(--border-card); border-radius: 18px; padding: 22px 22px 18px; scroll-margin-top: 80px; }
.help-cat h3 { font-size: 20px; color: var(--abyssal); letter-spacing: -.015em; }
.help-cat-desc { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; }
.help-cat-count { margin: 8px 0 12px; font-size: 12.5px; color: var(--muted-text); }
.help-cat ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-faq); }
.help-cat li { border-bottom: 1px solid var(--border-faq); }
.help-cat li:last-child { border-bottom: 0; }
.help-cat li a { display: block; padding: 10px 2px; font-size: 15px; font-weight: 500; color: var(--abyssal); text-decoration: none; }
.help-cat li a:hover { color: var(--rust); text-decoration: underline; }

@media (max-width: 720px) {
  .help-most-list, .help-cat-grid { grid-template-columns: 1fr; }
}

/* ---------------- "still stuck" ---------------- */
.help-stuck {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #F2ECE0; border: 1px solid var(--border-warm); border-radius: 18px; padding: 20px 22px; margin-top: 28px;
}
.help-stuck h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; text-transform: none; color: var(--abyssal); font-weight: 700; }
.help-body .help-stuck h2 { font-size: 18px; letter-spacing: -.01em; text-transform: none; color: var(--abyssal); font-weight: 700; margin-bottom: 4px; }
.help-stuck p { margin: 0; font-size: 15px; }
.help-stuck-btn { width: auto; flex: none; padding: 11px 20px; font-size: 15px; }
.help-stuck-strong { background: #FFF3E1; border-color: var(--burning-flame); margin-top: 16px; }
.help-stuck-strong .help-stuck-btn { background: var(--burning-flame); border-color: var(--burning-flame); color: var(--abyssal); }
@media (max-width: 480px) { .help-stuck-btn { width: 100%; } }

/* ---------------- article ---------------- */
.help-article { padding-bottom: 96px; }
.help-breadcrumb { margin: 22px 0 0; font-size: 13.5px; }
.help-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted-text); }
.help-breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--oatmeal); }
.help-breadcrumb a { color: var(--blue-fantastic); text-decoration: underline; text-decoration-color: rgba(44, 59, 77, .3); }
.help-breadcrumb a:hover { color: var(--rust); }

.help-article-head { margin: 26px 0 22px; }
.help-chip {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--rust); background: #F2ECE0; border: 1px solid var(--border-warm); border-radius: 999px; padding: 4px 12px;
  text-decoration: none;
}
.help-chip:hover { background: #EBE2D0; }
.help-article-head h1 { margin-top: 14px; font-size: clamp(28px, 4.6vw, 38px); line-height: 1.12; color: var(--abyssal); }

.help-article-body { font-size: 16.5px; line-height: 1.65; }
.help-article-body h2 { font-size: 22px; color: var(--abyssal); letter-spacing: -.015em; margin: 0 0 12px; }
.help-article-body h3 { font-size: 17.5px; color: var(--abyssal); margin: 26px 0 8px; }
.help-article-body p { margin: 0 0 14px; }
.help-article-body ul { margin: 0 0 16px; padding-left: 22px; }
.help-article-body ul ul, .help-article-body ol ul { margin: 8px 0 0; }
.help-article-body li { margin-bottom: 8px; }
.help-article-body a { color: var(--rust); text-decoration: underline; text-decoration-color: rgba(163, 81, 57, .4); text-underline-offset: 2px; }
.help-article-body a:hover { text-decoration-color: currentColor; }
.help-article-body strong { color: var(--abyssal); }
.help-article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--soft-surface); border: 1px solid var(--border-card); border-radius: 6px; padding: 1px 6px; }
.help-article-body pre { background: var(--soft-surface); border: 1px solid var(--border-card); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 0 0 16px; }
.help-article-body pre code { background: none; border: 0; padding: 0; }
.help-article-body blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--oatmeal); color: var(--muted-text); }
.help-article-body hr { border: 0; border-top: 1px solid var(--border-faq); margin: 28px 0; }
.help-article-body > section { margin-bottom: 32px; }

.help-quick {
  background: var(--help-quick-bg); border: 1px solid var(--border-warm); border-left: 5px solid var(--help-quick-line);
  border-radius: var(--help-radius); padding: 18px 22px 8px;
}
.help-quick h2 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin-bottom: 8px; }
.help-quick p, .help-quick li { color: var(--abyssal); }

.help-ol { counter-reset: helpstep; list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.help-ol > li {
  counter-increment: helpstep; position: relative; background: var(--help-card); border: 1px solid var(--border-card);
  border-radius: var(--help-radius); padding: 14px 18px 14px 58px; margin: 0; overflow-wrap: anywhere;
}
.help-ol > li::before {
  content: counter(helpstep); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 8px;
  background: #F2ECE0; border: 1px solid var(--border-warm); color: var(--rust); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.help-ol > li > ul, .help-ol > li > ol { margin-top: 8px; }

/* video slot */
.help-video { margin: 0 0 32px; }
.help-video-facade, .help-video-player {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-card); padding: 0; margin: 0;
  background: linear-gradient(145deg, #2C3B4D, #1B2632 70%);
}
.help-video-facade { cursor: pointer; color: #fff; font: inherit; text-align: left; }
.help-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.help-video-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--abyssal);
  background: var(--burning-flame); box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .55); transition: transform .15s ease;
}
.help-video-play svg { margin-left: 3px; }
.help-video-facade:hover .help-video-play { transform: scale(1.06); }
.help-video-meta {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 28px 16px 12px; color: #fff; background: linear-gradient(to top, rgba(27, 38, 50, .88), rgba(27, 38, 50, 0));
}
.help-video-title { font-weight: 650; font-size: 15px; }
.help-video-dur, .help-video-lang { font-size: 13px; opacity: .85; }
.help-video-player iframe, .help-video-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.help-video-player:focus-visible { outline-offset: 4px; }

/* FAQ in article */
.help-faq-item { background: var(--help-card); border: 1px solid var(--border-card); border-radius: var(--help-radius); padding: 0 18px; margin-bottom: 10px; }
.help-faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 650; color: var(--abyssal); }
.help-faq-item p { margin: 0 0 14px; }

/* related, feedback */
.help-related { margin-top: 40px; }
.help-related h2, .help-feedback h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin: 0 0 12px; }
.help-feedback { margin-top: 36px; padding: 22px; background: var(--help-card); border: 1px solid var(--border-card); border-radius: 18px; text-align: center; }
.help-fb-buttons { display: inline-flex; gap: 10px; }
.help-feedback .btn { width: auto; min-width: 96px; padding: 10px 22px; font-size: 15px; }
.help-feedback .btn[aria-pressed="true"] { background: var(--burning-flame); border-color: var(--burning-flame); color: var(--abyssal); }
.help-fb-result { margin: 12px 0 0; min-height: 1.5em; font-size: 15px; color: var(--abyssal); }
.help-fb-no { text-align: left; }
.help-fb-form { margin-top: 18px; display: grid; gap: 8px; }
.help-fb-form label { font-size: 14.5px; font-weight: 600; color: var(--abyssal); }
.help-fb-form textarea, .help-fb-form input[type="email"] { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border-card); border-radius: 12px; background: #fff; color: var(--abyssal); }
.help-fb-form textarea { resize: vertical; min-height: 96px; }
.help-fb-form textarea:focus-visible, .help-fb-form input[type="email"]:focus-visible { outline: 2px solid var(--burning-flame); outline-offset: 1px; }
.help-fb-form .btn { justify-self: start; margin-top: 4px; }
.help-fb-hint { margin: 0; font-size: 13.5px; color: var(--muted-text); }
.help-fb-status { margin: 0; min-height: 1.4em; font-size: 14.5px; color: var(--abyssal); }
.help-fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.help-updated { margin: 24px 0 0; font-size: 13.5px; color: var(--muted-text); }

@media (max-width: 480px) {
  .help-article-body { font-size: 16px; }
  .help-ol > li { padding-left: 54px; }
  .help-cat { padding: 18px; }
  .help-video-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
}

@media (prefers-reduced-motion: reduce) {
  .help-video-play { transition: none; }
}

@media print {
  .help-search, .help-feedback, .help-stuck, .help-video, .help-related { display: none !important; }
}

/* current section in the site nav */
.site-nav .nav-link[aria-current="page"] { color: var(--abyssal); font-weight: 600; }
