/* ========== Help Center Styles ========== */
.help-layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:40px;
  max-width:1280px;margin:0 auto;
  padding:32px 24px 80px;
  align-items:start;
}

/* ===== Sidebar ===== */
.help-sidebar{
  position:sticky;top:88px;
  max-height:calc(100vh - 110px);
  overflow-y:auto;
  padding-right:8px;
}
.help-search{position:relative;margin-bottom:18px}
.help-search input{
  width:100%;padding:12px 16px 12px 42px;
  border:1px solid var(--border);border-radius:12px;
  font-size:14px;font-family:inherit;color:var(--ink);
  background:#fff;outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.help-search input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(69,80,230,.12)}
.help-search svg{position:absolute;top:50%;left:14px;transform:translateY(-50%);width:18px;height:18px;color:var(--muted);pointer-events:none}
.help-search .clear{
  position:absolute;top:50%;right:8px;transform:translateY(-50%);
  width:28px;height:28px;border:0;background:transparent;
  border-radius:50%;cursor:pointer;color:var(--muted);
  display:none;align-items:center;justify-content:center;
}
.help-search.has-value .clear{display:inline-flex}
.help-search .clear:hover{background:var(--brand-light);color:var(--brand)}

.help-nav{font-size:14px}
.help-nav__group{margin-bottom:18px}
.help-nav__title{
  font-size:11px;font-weight:700;letter-spacing:1.5px;
  color:var(--muted);text-transform:uppercase;
  padding:6px 12px;margin:0 0 4px;
}
.help-nav__list{list-style:none;padding:0;margin:0}
.help-nav__list a{
  display:block;padding:8px 12px;border-radius:8px;
  color:var(--ink-2);text-decoration:none;
  border-left:2px solid transparent;
  transition:background .15s, color .15s, border-color .15s;
}
.help-nav__list a:hover{background:var(--brand-light);color:var(--brand)}
.help-nav__list a.is-active{
  background:var(--brand-light);color:var(--brand);
  border-left-color:var(--brand);font-weight:600;
}
.help-nav__hidden{display:none}
.help-nav__empty{
  padding:20px 12px;text-align:center;font-size:13px;color:var(--muted);
}

/* mobile sidebar trigger */
.help-mobile-bar{
  display:none;
  position:sticky;top:60px;z-index:50;
  background:rgba(255,255,255,.92);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  padding:10px 18px;
}
.help-mobile-bar button{
  display:flex;align-items:center;gap:8px;
  background:#fff;border:1px solid var(--border);border-radius:10px;
  padding:8px 14px;font-size:14px;color:var(--ink-2);font-family:inherit;
  cursor:pointer;
}
.help-mobile-bar button svg{width:16px;height:16px}

/* ===== Article ===== */
.help-article{
  background:#fff;border:1px solid var(--border);border-radius:18px;
  padding:48px 56px;min-height:60vh;
  box-shadow:var(--shadow-sm);
  font-size:15.5px;line-height:1.85;color:var(--ink-2);
}
.help-article__crumb{
  font-size:12px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;
  color:var(--brand);margin:0 0 10px;
}
.help-article h1{
  font-size:36px;line-height:1.2;font-weight:800;color:var(--ink);
  margin:0 0 24px;letter-spacing:-.5px;
}
.help-article h2{
  font-size:24px;line-height:1.3;font-weight:700;color:var(--ink);
  margin:40px 0 14px;padding-top:10px;
  border-top:1px solid var(--border);
}
.help-article h2:first-of-type{border-top:0;padding-top:0;margin-top:30px}
.help-article h3{font-size:18px;font-weight:700;color:var(--ink);margin:28px 0 10px}
.help-article p{margin:0 0 16px}
.help-article ul,.help-article ol{margin:0 0 18px;padding-left:24px}
.help-article li{margin-bottom:8px}
.help-article a{color:var(--brand);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.help-article a:hover{color:var(--brand-dark)}
.help-article strong{color:var(--ink)}
.help-article code{
  background:#f3f4f9;color:#c92a6e;
  padding:2px 7px;border-radius:5px;font-size:.92em;
  font-family:"SFMono-Regular",Menlo,Consolas,monospace;
}
.help-article pre{
  background:#f7f8fb;border:1px solid var(--border);border-radius:10px;
  padding:16px 18px;overflow-x:auto;
  font-family:"SFMono-Regular",Menlo,Consolas,monospace;
  font-size:13.5px;line-height:1.7;color:var(--ink);
  margin:0 0 18px;
}
.help-article pre code{background:transparent;color:inherit;padding:0;font-size:inherit}
.help-article img{
  max-width:100%;height:auto;border:1px solid var(--border);border-radius:10px;
  margin:14px 0 24px;display:block;
}
.help-article table{
  width:100%;border-collapse:collapse;margin:0 0 24px;font-size:14px;
  border:1px solid var(--border);border-radius:10px;overflow:hidden;
}
.help-article th,.help-article td{
  padding:10px 14px;text-align:left;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.help-article th{background:var(--bg-soft);font-weight:600;color:var(--ink)}
.help-article tr:last-child td{border-bottom:0}

.help-callout{
  background:#fff8e6;border-left:4px solid #f0b400;
  border-radius:8px;padding:14px 18px;margin:18px 0;
  font-size:14.5px;line-height:1.8;color:#7a5d00;
}
.help-callout strong{color:#5d4500}
.help-callout--info{background:#eef0ff;border-color:var(--brand);color:#3540c9}
.help-callout--info strong{color:#252930}

.help-article__footer{
  margin-top:48px;padding-top:28px;border-top:1px solid var(--border);
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;
  font-size:14px;color:var(--muted);
}
.help-article__footer a{color:var(--brand);font-weight:600;text-decoration:none}
.help-article__footer a:hover{text-decoration:underline}

/* ===== Search highlight ===== */
mark.help-hl{background:#fff2a8;color:inherit;padding:0 2px;border-radius:3px}

/* ===== Responsive ===== */
@media (max-width:1024px){
  .help-layout{grid-template-columns:240px 1fr;gap:28px}
  .help-article{padding:36px 32px}
}
@media (max-width:820px){
  .help-mobile-bar{display:block}
  .help-layout{grid-template-columns:1fr;padding:0 18px 60px;gap:0}
  .help-sidebar{
    position:fixed;top:0;left:0;bottom:0;
    width:300px;max-width:84vw;
    background:#fff;z-index:200;
    padding:74px 18px 24px;
    transform:translateX(-100%);transition:transform .25s ease;
    box-shadow:6px 0 30px rgba(0,0,0,.15);
    max-height:none;
  }
  .help-sidebar.is-open{transform:translateX(0)}
  .help-backdrop{
    display:none;position:fixed;inset:0;background:rgba(37,41,48,.5);z-index:150;
  }
  .help-backdrop.is-open{display:block}
  .help-article{margin-top:18px;padding:28px 22px;border-radius:14px}
  .help-article h1{font-size:26px}
  .help-article h2{font-size:20px}
}
