/* Help center + article typography */
:root {
  --help-ink: #0f172a;
  --help-muted: #64748b;
  --help-line: #e2e8f0;
  --help-bg: #f4f7f8;
  --help-card: #ffffff;
  --help-accent: #0f766e;
  --help-font: "Noto Sans SC", "Manrope", sans-serif;
  --help-display: "Manrope", "Noto Sans SC", sans-serif;
  --help-serif: "Source Serif 4", "Noto Serif SC", Georgia, serif;
}

.help-site {
  min-height: 100vh;
  background:
    radial-gradient(900px 280px at 12% -10%, rgba(15,118,110,.08), transparent 55%),
    radial-gradient(700px 240px at 90% 0%, rgba(14,165,233,.06), transparent 50%),
    var(--help-bg);
  font-family: var(--help-font);
  color: var(--help-ink);
}

.help-topnav {
  min-height: 64px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 28px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--help-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.help-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--help-ink);
  font-family: var(--help-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.03em;
  min-width: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.help-brand-text {
  white-space: nowrap;
}
.help-brand img, .help-brand .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
}
.help-brand .mark {
  background: linear-gradient(145deg, #14b8a6, #0369a1);
  color: #fff; display: grid; place-items: center; font-size: 13px;
}
.help-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
  position: relative;
  z-index: 2;
}
.help-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #0f172a;
  transition: transform .18s, opacity .18s;
}
.help-topnav.is-open .help-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.help-topnav.is-open .help-nav-toggle span:nth-child(2) { opacity: 0; }
.help-topnav.is-open .help-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.help-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.help-nav a {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--help-muted);
  font-weight: 600;
  font-size: 13px;
}
.help-nav a:hover, .help-nav a.is-on {
  color: var(--help-accent);
  background: rgba(15,118,110,.08);
}

.help-wrap { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 64px; }
.help-pagehead { margin-bottom: 22px; }
.help-pagehead h1 {
  margin: 0 0 8px; font-size: 28px; font-weight: 800;
  letter-spacing: -.03em; font-family: var(--help-display);
}
.help-pagehead p { margin: 0; color: var(--help-muted); line-height: 1.6; max-width: 52ch; }

.help-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.help-list.compact { grid-template-columns: repeat(2, 1fr); }
.help-list-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--help-card);
  border: 1px solid var(--help-line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  position: relative;
}
.help-list-card:hover {
  border-color: #99f6e4;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
  color: inherit;
}
.help-list-card h2 {
  margin: 0 0 8px; font-size: 17px; font-weight: 750; letter-spacing: -.02em;
}
.help-list-card p {
  margin: 0 0 10px; color: var(--help-muted); font-size: 13.5px; line-height: 1.65;
}
.help-list-card .meta { font-size: 12px; color: #94a3b8; font-weight: 600; }
.help-list-card .tag,
.help-article-head .tag {
  display: inline-flex; height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(15,118,110,.1); color: var(--help-accent);
  font-size: 11px; font-weight: 700; margin-bottom: 8px; align-items: center;
}
.help-empty {
  padding: 48px 20px; text-align: center; color: var(--help-muted);
  background: #fff; border: 1px dashed var(--help-line); border-radius: 14px;
}

.help-article {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 40px;
}
.help-back {
  display: inline-flex; margin-bottom: 18px;
  color: var(--help-muted); text-decoration: none; font-weight: 600; font-size: 13px;
}
.help-back:hover { color: var(--help-accent); }
.help-article-head h1 {
  margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2; letter-spacing: -.03em; font-family: var(--help-display); font-weight: 800;
}
.help-article-head .lede {
  margin: 0 0 12px; color: var(--help-muted); font-size: 16px; line-height: 1.7;
}
.help-article-head .meta { color: #94a3b8; font-size: 13px; font-weight: 600; margin-bottom: 28px; }

.prose {
  font-size: 16px;
  line-height: 1.8;
  color: #1e293b;
}
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3 {
  font-family: var(--help-display);
  letter-spacing: -.02em;
  color: var(--help-ink);
  margin: 1.6em 0 .7em;
}
.prose h2 { font-size: 1.35em; }
.prose h3 { font-size: 1.15em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--help-accent); font-weight: 650; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; background: #f1f5f9; padding: .1em .35em; border-radius: 4px;
}
.prose pre {
  background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 12px;
  overflow: auto; margin: 0 0 1.2em;
}
.prose pre code { background: transparent; color: inherit; padding: 0; }
.prose blockquote {
  margin: 0 0 1.2em; padding: 10px 16px; border-left: 3px solid #99f6e4;
  background: #f0fdfa; color: #334155; border-radius: 0 10px 10px 0;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 16px 0;
}

.help-related {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto 56px;
}
.help-related h3 {
  margin: 0 0 12px; font-size: 15px; font-weight: 750;
}

.console-help-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.console-help-article .help-article-head h1 { font-size: 26px; }

@media (max-width: 980px) {
  .help-list.compact,
  .console-help-list { grid-template-columns: 1fr; }
  .help-topnav {
    padding: 10px 16px;
    flex-wrap: nowrap;
  }
  .help-brand-text { display: none; }
  .help-nav-toggle { display: inline-flex; }
  .help-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 6px);
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    margin: 0;
    border: 1px solid var(--help-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
  }
  .help-topnav.is-open .help-nav { display: flex; }
  .help-nav a {
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    justify-content: flex-start;
    border-radius: 10px;
  }
  .help-article, .help-wrap, .help-related { width: calc(100% - 28px); }
}
@media (max-width: 768px) {
  .help-list.compact,
  .console-help-list { grid-template-columns: 1fr; }
}

/* Superadmin article form */
.sa-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}
.sa-article-body {
  min-height: 420px;
  height: auto;
  padding: 14px 16px;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  resize: vertical;
}
@media (max-width: 960px) {
  .sa-article-layout { grid-template-columns: 1fr; }
}
