/*
 * Help-center styles.
 *
 * Loaded globally from nuxt.config.ts so the cascade is guaranteed to
 * be present regardless of which page-level SFC happens to be mounted.
 * The previous setup kept each block in an un-scoped `<style>` inside
 * the relevant .vue file; during SPA navigation between two help
 * pages, Vite's dev-mode CSS chunk swap could leave a brief gap where
 * the next page mounted before its CSS injected, which read as
 * "styles lost until reload".
 *
 * Everything in this file is namespaced with `.help-shell` so it
 * cannot bleed into the rest of the app — the class is only present
 * on layouts/help.vue and inside components/HelpDrawer.vue, both of
 * which add it explicitly.
 */

/* ==========================================================================
 * 1. Layout shell — tokens + base reset
 * ========================================================================== */

.help-shell {
  --help-bg: #f5f7fb;
  --help-surface: #ffffff;
  --help-surface-2: #fafbfd;
  --help-text: #111827;
  --help-text-soft: #374151;
  --help-muted: #6b7280;
  --help-border: #e5e7eb;
  --help-border-soft: #f3f4f6;
  --help-accent: #2563eb;
  --help-accent-strong: #1d4ed8;
  --help-accent-soft: #eff6ff;
  --help-radius: 12px;
  --help-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 1px 3px rgba(15, 23, 42, 0.06);
  --help-shadow-lg:
    0 8px 16px rgba(15, 23, 42, 0.06),
    0 16px 40px rgba(15, 23, 42, 0.08);

  min-height: 100vh;
  background: var(--help-bg);
  color: var(--help-text);
  font-family:
    'Inter', 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Reset typography defaults inside the help shell so Bootstrap's
   loose `h1 { font-size: 2.5rem }` and similar can't bleed in. */
.help-shell h1,
.help-shell h2,
.help-shell h3,
.help-shell h4,
.help-shell p,
.help-shell ul,
.help-shell ol {
  margin: 0;
}
.help-shell *,
.help-shell *::before,
.help-shell *::after {
  box-sizing: border-box;
}
.help-shell a {
  color: var(--help-accent);
  text-decoration: none;
}
.help-shell a:hover {
  text-decoration: underline;
}

/* -------------------- Header -------------------- */
.help-shell .help-header {
  background: var(--help-surface);
  border-bottom: 1px solid var(--help-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.help-shell .help-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.help-shell .help-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--help-text);
  text-decoration: none;
}
.help-shell .help-brand:hover {
  text-decoration: none;
}
.help-shell .help-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: white;
  font-size: 13px;
  letter-spacing: -0.02em;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.help-shell .help-role-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
  margin-inline-end: auto;
}
.help-shell .help-role-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--help-muted);
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}
.help-shell .help-role-tab:hover {
  color: var(--help-text);
  background: var(--help-border-soft);
}
.help-shell .help-role-tab.active,
.help-shell .help-role-tab.router-link-active {
  color: var(--help-accent-strong);
  background: var(--help-accent-soft);
}
.help-shell .help-back-link {
  color: var(--help-muted);
  text-decoration: none !important;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.help-shell .help-back-link:hover {
  color: var(--help-text);
}

/* -------------------- Main + Footer -------------------- */
.help-shell .help-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}
.help-shell .help-footer {
  border-top: 1px solid var(--help-border);
  background: var(--help-surface);
  text-align: center;
  padding: 22px;
  font-size: 14px;
  color: var(--help-muted);
}
.help-shell .help-footer p {
  margin: 0;
}
.help-shell .help-footer a {
  color: var(--help-accent);
}

@media (max-width: 720px) {
  .help-shell .help-header-inner {
    gap: 12px;
  }
  .help-shell .help-role-tabs {
    order: 3;
    width: 100%;
    margin-inline: 0;
    overflow-x: auto;
  }
  .help-shell .help-back-link {
    font-size: 13px;
  }
}

/* ==========================================================================
 * 2. Landing page ( /help )
 * ========================================================================== */

.help-shell .help-landing {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.help-shell .help-hero {
  position: relative;
  text-align: center;
  padding: 56px 24px 40px;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 60%);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  overflow: hidden;
  box-shadow: var(--help-shadow);
}
.help-shell .help-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(37, 99, 235, 0.12),
      transparent 50%
    ),
    radial-gradient(circle at 80% 30%, rgba(79, 70, 229, 0.1), transparent 50%);
  pointer-events: none;
}
.help-shell .help-hero > * {
  position: relative;
}
.help-shell .help-hero h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--help-text);
  line-height: 1.15;
}
.help-shell .help-hero p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--help-muted);
  font-size: 17px;
  line-height: 1.55;
}

.help-shell .help-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.help-shell .help-role-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 22px;
  text-decoration: none !important;
  color: var(--help-text);
  box-shadow: var(--help-shadow);
  transition: transform 0.15s ease, border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.help-shell .help-role-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent, var(--help-accent));
  opacity: 0;
  transition: opacity 0.15s;
}
.help-shell .help-role-card[href*='site-owner'] {
  --accent: #2563eb;
}
.help-shell .help-role-card[href*='teacher'] {
  --accent: #059669;
}
.help-shell .help-role-card[href*='student'] {
  --accent: #d97706;
}
.help-shell .help-role-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--help-shadow-lg);
}
.help-shell .help-role-card:hover::before {
  opacity: 1;
}
.help-shell .help-role-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}
.help-shell .help-role-card-body {
  flex: 1;
  min-width: 0;
}
.help-shell .help-role-card-body h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
  color: var(--help-text);
  letter-spacing: -0.01em;
}
.help-shell .help-role-card-body p {
  margin: 0;
  font-size: 14px;
  color: var(--help-muted);
  line-height: 1.5;
}
.help-shell .help-role-card-count {
  margin-top: 8px !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--help-muted);
  font-weight: 600;
}
.help-shell .help-role-card-arrow {
  font-size: 22px;
  color: var(--help-muted);
  transition: transform 0.15s, color 0.15s;
}
.help-shell .help-role-card:hover .help-role-card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.help-shell .help-meta-note {
  text-align: center;
  font-size: 14px;
  color: var(--help-muted);
}
.help-shell .help-meta-note a {
  color: var(--help-accent);
}

/* ==========================================================================
 * 3. Role TOC page ( /help/<role> )
 * ========================================================================== */

.help-shell .help-role-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.help-shell .help-role-hero {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 32px;
  box-shadow: var(--help-shadow);
}
.help-shell .help-breadcrumb {
  font-size: 13px;
  color: var(--help-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.help-shell .help-breadcrumb a {
  color: var(--help-accent);
}
.help-shell .help-role-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--help-text);
}
.help-shell .help-role-hero > p {
  color: var(--help-muted);
  margin: 0 0 22px;
  max-width: 640px;
  font-size: 16px;
}
.help-shell .help-search-wrap {
  position: relative;
}
.help-shell .help-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  font-size: 15px;
  background: var(--help-surface-2);
  color: var(--help-text);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.help-shell .help-search:focus {
  outline: none;
  border-color: var(--help-accent);
  background: var(--help-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.help-shell .help-section {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  overflow: hidden;
  box-shadow: var(--help-shadow);
}
.help-shell .help-section-heading {
  margin: 0;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--help-muted);
  background: var(--help-surface-2);
  border-bottom: 1px solid var(--help-border);
}
.help-shell .help-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.help-shell .help-article-list li + li {
  border-top: 1px solid var(--help-border-soft);
}
.help-shell .help-article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  text-decoration: none !important;
  color: var(--help-text);
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
}
.help-shell .help-article-link-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.help-shell .help-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #a16207;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.help-shell .help-video-badge i {
  font-size: 9px;
}
.help-shell .help-article-link:hover {
  background: var(--help-accent-soft);
  color: var(--help-accent-strong);
}
.help-shell .help-article-link-arrow {
  color: var(--help-muted);
  transition: transform 0.15s, color 0.15s;
}
.help-shell .help-article-link:hover .help-article-link-arrow {
  color: var(--help-accent);
  transform: translateX(3px);
}

.help-shell .help-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--help-surface);
  border: 1px dashed var(--help-border);
  border-radius: var(--help-radius);
  color: var(--help-muted);
}
.help-shell .help-clear-button {
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--help-border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--help-text-soft);
  font-family: inherit;
}
.help-shell .help-clear-button:hover {
  background: var(--help-surface-2);
}

.help-shell .help-not-found {
  padding: 80px 20px;
  text-align: center;
}
.help-shell .help-not-found a {
  color: var(--help-accent);
}

/* ==========================================================================
 * 4. Article page ( /help/<role>/<slug> )
 * ========================================================================== */

.help-shell .help-article-page {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.help-shell .help-aside {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 20px;
  box-shadow: var(--help-shadow);
  font-size: 14px;
}
.help-shell .help-aside-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--help-accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
.help-shell .help-aside-section + .help-aside-section {
  margin-top: 18px;
}
.help-shell .help-aside-section-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--help-muted);
  margin-bottom: 6px;
}
.help-shell .help-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.help-shell .help-aside-link {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--help-text-soft);
  text-decoration: none !important;
  font-size: 13.5px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.help-shell .help-aside-link:hover {
  background: var(--help-surface-2);
  color: var(--help-text);
}
.help-shell .help-aside-link.active,
.help-shell .help-aside-link.router-link-active {
  background: var(--help-accent-soft);
  color: var(--help-accent-strong);
  font-weight: 600;
}

.help-shell .help-article {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 40px 48px 48px;
  box-shadow: var(--help-shadow);
  max-width: 800px;
}
.help-shell .help-article .help-breadcrumb {
  font-size: 13px;
  color: var(--help-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.help-shell .help-article .help-breadcrumb a {
  color: var(--help-accent);
}

/* Media block — hero image or embedded video — sits between the
   breadcrumb and the article body. */
.help-shell .help-media {
  margin: 4px 0 24px;
}
.help-shell .help-media--hero {
  background: var(--help-bg);
  border: 1px solid var(--help-border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
}
.help-shell .help-hero-image {
  display: block;
  width: 100%;
  height: auto;
}
.help-shell .help-video-frame {
  position: relative;
  width: 100%;
  /* 16:9 box that stretches to fill the column; the iframe inside
     positions absolutely to honour the aspect ratio. */
  padding-bottom: 56.25%;
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.help-shell .help-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.help-shell .help-media-caption {
  margin: 8px 0 0 !important;
  font-size: 13px;
  color: var(--help-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Per-step inline screenshot injected by useHelpArticle when a
   matching step-NN.png is found in the slug's directory. */
.help-shell .help-article-body .help-step-figure {
  margin: 12px 0 4px;
  padding: 0;
}
.help-shell .help-article-body .help-step-figure img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border: 1px solid var(--help-border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Markdown content. The h1 is rendered by marked (the article's own
   `# Title`), so we don't add a separate page heading. */
.help-shell .help-article-body h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  line-height: 1.2;
  color: var(--help-text);
}
.help-shell .help-article-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
  color: var(--help-text);
  padding-top: 8px;
}
.help-shell .help-article-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--help-text);
}
.help-shell .help-article-body p,
.help-shell .help-article-body li {
  font-size: 16px;
  color: var(--help-text-soft);
  line-height: 1.65;
}
.help-shell .help-article-body p {
  margin: 12px 0;
}
.help-shell .help-article-body ul,
.help-shell .help-article-body ol {
  padding-inline-start: 24px;
  margin: 12px 0;
}
.help-shell .help-article-body li {
  margin: 8px 0;
}
.help-shell .help-article-body ol li::marker {
  font-weight: 700;
  color: var(--help-accent);
}
.help-shell .help-article-body code {
  font-family:
    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  background: var(--help-accent-soft);
  border: 1px solid #dbeafe;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13.5px;
  color: var(--help-accent-strong);
}
.help-shell .help-article-body a {
  color: var(--help-accent);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 2px;
}
.help-shell .help-article-body a:hover {
  text-decoration-color: var(--help-accent);
}
.help-shell .help-article-body strong {
  color: var(--help-text);
  font-weight: 600;
}
.help-shell .help-article-body em {
  font-style: italic;
  color: var(--help-text);
}
.help-shell .help-article-body hr {
  border: 0;
  border-top: 1px solid var(--help-border);
  margin: 32px 0;
}
.help-shell .help-article-body blockquote {
  border-inline-start: 3px solid var(--help-accent);
  padding-inline-start: 16px;
  color: var(--help-muted);
  margin: 16px 0;
  font-style: italic;
}

.help-shell .help-article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--help-border);
}
.help-shell .help-nav-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--help-text);
  background: var(--help-surface-2);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.help-shell .help-nav-card:hover {
  border-color: var(--help-accent);
  background: var(--help-accent-soft);
  transform: translateY(-1px);
}
.help-shell .help-nav-card.next {
  text-align: end;
}
.help-shell .help-nav-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--help-muted);
  font-weight: 700;
}
.help-shell .help-nav-card-title {
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 920px) {
  .help-shell .help-article-page {
    grid-template-columns: 1fr;
  }
  .help-shell .help-aside {
    position: static;
    max-height: none;
  }
  .help-shell .help-article {
    padding: 28px 24px;
  }
  .help-shell .help-article-body h1 {
    font-size: 26px;
  }
}

/* ==========================================================================
 * 5. Drawer (HelpDrawer.vue)
 *
 * Mounted globally in app.vue. Reachable from any layout via <HelpLink>,
 * so its styles live in the global stylesheet alongside the rest of the
 * help center.
 * ========================================================================== */

.help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1050;
  backdrop-filter: blur(2px);
}

.help-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(520px, 100vw);
  background: var(--help-surface);
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.12);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  outline: none;
  font-family:
    'Inter', 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
  color: var(--help-text);
}

/* Reset typography in the drawer so the host layout's CSS can't bleed
   into the article body. */
.help-drawer h1,
.help-drawer h2,
.help-drawer h3,
.help-drawer p,
.help-drawer ul,
.help-drawer ol {
  margin: 0;
}

.help-drawer-header {
  position: relative;
  padding: 22px 60px 18px 28px;
  border-bottom: 1px solid var(--help-border);
  background: var(--help-surface);
}
.help-drawer-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--help-accent);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.help-drawer-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--help-text);
}
.help-drawer-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--help-muted);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}
.help-drawer-close:hover,
.help-drawer-close:focus-visible {
  background: var(--help-border-soft);
  color: var(--help-text);
  outline: none;
}

.help-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 28px;
}

/* Media block inside the drawer — narrower than the standalone page
   since the drawer is capped at 520px. */
.help-drawer .help-media {
  margin: 0 0 18px;
}
.help-drawer .help-media--hero {
  background: var(--help-bg);
  border: 1px solid var(--help-border);
  border-radius: 8px;
  overflow: hidden;
}
.help-drawer .help-hero-image {
  display: block;
  width: 100%;
  height: auto;
}
.help-drawer .help-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
}
.help-drawer .help-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.help-drawer .help-media-caption {
  margin: 6px 0 0 !important;
  font-size: 12px;
  color: var(--help-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.help-drawer .help-article-body .help-step-figure {
  margin: 8px 0 4px;
  padding: 0;
}
.help-drawer .help-article-body .help-step-figure img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  border: 1px solid var(--help-border);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* Hide the article's own H1 — the drawer header shows the title. */
.help-drawer .help-article-body h1 {
  display: none;
}
.help-drawer .help-article-body h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--help-text);
  letter-spacing: -0.005em;
}
.help-drawer .help-article-body h2:first-of-type {
  margin-top: 0;
}
.help-drawer .help-article-body p,
.help-drawer .help-article-body li {
  font-size: 14.5px;
  color: var(--help-text-soft);
  line-height: 1.6;
}
.help-drawer .help-article-body p {
  margin: 10px 0;
}
.help-drawer .help-article-body ul,
.help-drawer .help-article-body ol {
  padding-inline-start: 22px;
  margin: 10px 0;
}
.help-drawer .help-article-body li {
  margin: 6px 0;
}
.help-drawer .help-article-body ol li::marker {
  font-weight: 700;
  color: var(--help-accent);
}
.help-drawer .help-article-body code {
  font-family:
    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  background: var(--help-accent-soft);
  border: 1px solid #dbeafe;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12.5px;
  color: var(--help-accent-strong);
}
.help-drawer .help-article-body a {
  color: var(--help-accent);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 2px;
}
.help-drawer .help-article-body a:hover {
  text-decoration-color: var(--help-accent);
}
.help-drawer .help-article-body strong {
  color: var(--help-text);
  font-weight: 600;
}
.help-drawer .help-article-body em {
  font-style: italic;
  color: var(--help-text);
}
.help-drawer .help-article-body hr {
  border: 0;
  border-top: 1px solid var(--help-border);
  margin: 24px 0;
}

.help-drawer-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--help-muted);
}
.help-drawer-empty a {
  color: var(--help-accent);
}

.help-drawer-footer {
  border-top: 1px solid var(--help-border);
  padding: 14px 28px;
  background: var(--help-surface-2);
}
.help-drawer-full-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--help-accent-strong);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.help-drawer-full-link:hover {
  text-decoration: underline;
}

/* Drawer transitions */
.help-fade-enter-active,
.help-fade-leave-active {
  transition: opacity 0.18s ease;
}
.help-fade-enter-from,
.help-fade-leave-to {
  opacity: 0;
}
.help-slide-enter-active,
.help-slide-leave-active {
  transition: transform 0.22s ease;
}
.help-slide-enter-from,
.help-slide-leave-to {
  transform: translateX(100%);
}
[dir='rtl'] .help-slide-enter-from,
[dir='rtl'] .help-slide-leave-to {
  transform: translateX(-100%);
}

@media (max-width: 600px) {
  .help-drawer {
    width: 100vw;
  }
  .help-drawer-header {
    padding-inline-start: 20px;
    padding-inline-end: 56px;
  }
  .help-drawer-body {
    padding-inline: 20px;
  }
  .help-drawer-footer {
    padding-inline: 20px;
  }
}
