/* Help centre (/help) */
.help-hero { padding-bottom: 2rem; }
.help-search { position: relative; max-width: 640px; margin-top: 1.4rem; }
.help-search i { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.15rem; }
.help-search input { width: 100%; border: 1px solid #cbd5e1; border-radius: 14px; padding: .95rem 3rem .95rem 1rem; font-size: 1.08rem; background: #fff; box-shadow: var(--shadow); font-family: inherit; }
.help-search input:focus { outline: 3px solid var(--primary-glow); border-color: var(--primary); }
.help-results { max-width: 640px; margin-top: .6rem; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; }
.help-results a { display: block; padding: .65rem .8rem; border-radius: 10px; text-decoration: none; color: var(--text-main); }
.help-results a:hover, .help-results a:focus { background: #f0f9ff; }
.help-results a span { display: block; font-size: .88rem; color: var(--text-muted); }
.help-results p { padding: .7rem .8rem; }

.help-h2 { font-weight: 800; font-size: 1.4rem; color: #0c4a6e; margin-bottom: 1rem; }
.help-popular { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.help-popular a { display: flex; gap: .6rem; align-items: center; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: .8rem 1rem; text-decoration: none; color: var(--text-main); font-weight: 600; }
.help-popular a:hover { border-color: var(--primary); color: var(--primary); }
.help-popular i { color: var(--primary); }

.help-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.help-cat { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow); padding: 1.3rem; }
.help-cat-title { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: #0c4a6e; font-weight: 800; font-size: 1.12rem; margin-bottom: .6rem; }
.help-cat-title .feature-icon { margin: 0; flex-shrink: 0; }
.help-cat-title small { display: block; font-weight: 500; font-size: .82rem; color: var(--text-muted); }
.help-cat ul { list-style: none; padding: 0; margin: 0; }
.help-cat li { border-top: 1px solid #f1f5f9; }
.help-cat li a { display: block; padding: .5rem 0; text-decoration: none; color: #1e293b; font-size: .97rem; }
.help-cat li a:hover { color: var(--primary); }

/* Layout with sidebar */
.help-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; align-items: start; }
.help-side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: .9rem; font-size: .93rem; }
.help-search-mini input { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: .5rem .7rem; margin-bottom: .6rem; font-family: inherit; }
.help-side details { border-bottom: 1px solid #f1f5f9; }
.help-side summary { cursor: pointer; font-weight: 700; padding: .55rem .2rem; color: #0c4a6e; list-style: none; }
.help-side summary::-webkit-details-marker { display: none; }
.help-side summary i { color: var(--primary); margin-left: .3rem; }
.help-side ul { list-style: none; padding: 0 0 .5rem; margin: 0; }
.help-side li a { display: block; padding: .3rem .6rem; border-radius: 8px; text-decoration: none; color: #334155; line-height: 1.6; }
.help-side li a:hover { background: #f0f9ff; color: var(--primary); }
.help-side li a[aria-current="page"] { background: #e0f2fe; color: #075985; font-weight: 700; }

.help-main { min-width: 0; }
.help-head h1 { font-weight: 800; color: #0c4a6e; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.45; margin: .4rem 0 .6rem; }
.help-head .lead { color: var(--text-muted); }
.help-cat-chip { display: inline-flex; gap: .35rem; align-items: center; background: #e0f2fe; color: #075985; border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; font-weight: 700; text-decoration: none; }
.help-meta { font-size: .88rem; color: var(--text-muted); border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.help-toc { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.2rem 0 .5rem; max-width: 820px; }
.help-toc ul { margin: .5rem 0 0; padding-right: 1.2rem; columns: 2; column-gap: 2rem; }
.help-toc li { margin-bottom: .25rem; break-inside: avoid; }
.help-toc a { text-decoration: none; }
.help-body.prose { margin: 0; max-width: 860px; }
.help-body h2 { scroll-margin-top: 90px; }

.help-fig { margin: 1.4rem 0 1.8rem; }
.help-fig a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(15, 23, 42, .10); background: #fff; }
.help-fig img { display: block; width: 100%; height: auto; border-radius: 0 !important; }
.help-fig figcaption { font-size: .9rem; color: var(--text-muted); text-align: center; margin-top: .6rem; }
.fig-narrow a { max-width: 380px; margin: 0 auto; }

.help-body kbd { display: inline-block; min-width: 1.6em; text-align: center; background: #0f172a; color: #fff; border-radius: 6px; padding: .05rem .4rem; font-size: .85em; font-family: system-ui, sans-serif; direction: ltr; }
.help-body ol.steps { counter-reset: s; list-style: none; padding-right: 0; }
.help-body ol.steps > li { counter-increment: s; position: relative; padding-right: 2.6rem; margin-bottom: .8rem; }
.help-body ol.steps > li::before { content: counter(s); position: absolute; right: 0; top: .1rem; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.help-body .tip, .help-body .warn { border-radius: 12px; padding: .9rem 1.1rem; margin: 1.2rem 0; }
.help-body .tip { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.help-body .warn { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.help-body .note { margin: 1.2rem 0; }
.badge-red, .badge-green { border-radius: 999px; padding: .05rem .6rem; font-size: .85em; font-weight: 700; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-green { background: #dcfce7; color: #166534; }

.help-foot { max-width: 860px; margin-top: 2.5rem; }
.help-feedback { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 1rem 1.2rem; font-weight: 700; }
.help-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.help-pn a { display: block; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: .9rem 1.1rem; text-decoration: none; color: var(--text-main); font-weight: 700; }
.help-pn a:hover { border-color: var(--primary); }
.help-pn small { display: block; color: var(--text-muted); font-weight: 500; }
.help-pn-next { text-align: left; }

.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.help-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text-main); box-shadow: var(--shadow); }
.help-card:hover { border-color: var(--primary); }
.help-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top right; border-bottom: 1px solid var(--border-color); }
.help-card-body { padding: 1rem 1.1rem; display: block; }
.help-card-body strong { display: block; color: #0c4a6e; margin-bottom: .3rem; line-height: 1.5; }
.help-card-body span { color: var(--text-muted); font-size: .93rem; }

@media (max-width: 991px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-side { position: static; max-height: none; order: 2; }
  .help-toc ul { columns: 1; }
}
@media (max-width: 575px) {
  .help-pn { grid-template-columns: 1fr; }
  .help-pn-next { text-align: right; }
}

.help-video { margin: 1.2rem 0 1.4rem; max-width: 860px; }
.help-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #071933; box-shadow: 0 12px 34px rgba(15, 23, 42, .18); }
.help-video figcaption { font-size: .9rem; color: var(--text-muted); margin-top: .55rem; }
.help-video figcaption i { color: var(--primary); }
.help-card-video { position: absolute; top: .6rem; left: .6rem; background: rgba(7, 25, 51, .85); color: #fff; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 700; }
.help-card { position: relative; }
.help-has-video { color: var(--primary); font-size: .85em; }

.help-tools { margin: 2rem 0 0; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 1rem 1.2rem; }
.help-tools strong { color: #166534; }
.help-tools ul { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.help-tools a { display: inline-flex; gap: .35rem; align-items: center; background: #fff; border: 1px solid #bbf7d0; border-radius: 10px; padding: .35rem .75rem; text-decoration: none; font-weight: 600; }
