/* Help center (/help, /es/help), generated by scripts/build-help.mjs. Articles reuse the legal-page
   reading style from site.css (.legal-main, .legal-doc, .legal-toc); this file adds the index and the
   article extras. Variables only, so both themes just work. */

.help-main { max-width: 980px; margin: 0 auto; padding: 36px 20px 56px; }
.help-main > .legal-doc, .help-main > .help-crumbs, .help-main > .help-related, .help-main > .help-stuck, .help-main > .help-back { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- index ---------- */
.help-hero { position: relative; max-width: 680px; margin: 0 auto 28px; text-align: center; }
.help-hero h1 { margin: 10px 0 10px; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.02em; }
.help-hero .lead { margin: 0 auto 22px; }
.help-search input[type="search"] { padding: 14px 20px; border-radius: 999px; font-size: 16px; box-shadow: var(--shadow); }
.help-topics-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 8px; }
.help-topics-nav .type-pill { padding: 6px 14px; font-size: 13px; }
.help-topics-nav .type-pill:hover { background: var(--primary); color: #fff; }
.help-topic { padding: 22px 0 6px; scroll-margin-top: 84px; }
.help-topic-head h2 { margin: 0 0 4px; font-size: 22px; }
.help-topic-head p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.help-card { display: grid; align-content: start; gap: 6px; padding: 18px 20px; color: var(--text); border-top: 4px solid var(--primary); transition: transform .15s, box-shadow .15s; }
.help-card:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.help-grid .help-card:nth-child(4n + 2) { border-top-color: var(--lemon); }
.help-grid .help-card:nth-child(4n + 3) { border-top-color: var(--mint); }
.help-grid .help-card:nth-child(4n + 4) { border-top-color: var(--pink); }
.help-card strong { font: 700 16px/1.3 var(--font-display); }
.help-card span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.help-results { padding-top: 6px; }
.help-results h2 { margin: 0 0 14px; font-size: 20px; }

/* ---------- language switch, breadcrumbs ---------- */
.help-lang { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 700; }
.help-article .help-lang { float: right; margin: 4px 0 8px 12px; }
.help-crumbs { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.help-crumbs a { font-weight: 700; }

/* ---------- article ---------- */
.help-lead { color: var(--muted); font-size: 17px; line-height: 1.55; }
.help-body h2 { clear: both; }
.help-body a { text-decoration: underline; text-underline-offset: 2px; }
.help-body code { padding: 1px 6px; border-radius: 6px; background: var(--tint); font-size: .92em; overflow-wrap: anywhere; }
.help-body ol { margin: 0 0 12px; padding-left: 24px; }
.help-body .legal-note, .help-body .legal-summary { margin: 16px 0; }
.help-body table { margin: 8px 0 16px; }
.help-body th { white-space: nowrap; }
.help-body td { white-space: normal; vertical-align: top; line-height: 1.5; }
.help-body td:first-child { font-weight: 700; }
/* numbered steps: violet counters on the left */
.help-steps { list-style: none; counter-reset: step; padding-left: 0 !important; }
.help-steps li { position: relative; margin: 0 0 14px; padding-left: 44px; counter-increment: step; scroll-margin-top: 84px; }
.help-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
  font: 800 14px/1 var(--font-display);
}
.help-steps li strong:first-child { display: block; margin-bottom: 2px; }

.help-related { margin-top: 28px; }
.help-related h2 { margin: 0 0 12px; font-size: 20px; }
.help-stuck { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 22px 26px; background: radial-gradient(300px 200px at 110% -10%, var(--card-glow-1) 0%, transparent 70%), var(--surface); }
.help-stuck img { flex: none; }
.help-stuck h2 { margin: 0 0 4px; font-size: 20px; }
.help-stuck p { margin: 0; color: var(--muted); }
.help-back { margin: 22px auto 0; font-weight: 700; }

@media (max-width: 560px) {
  .help-main { padding: 22px 12px 40px; }
  .help-article .help-lang { float: none; margin: 0 0 10px; }
  .help-stuck { flex-direction: column; align-items: flex-start; padding: 20px; }
  .help-stuck img { width: 56px; height: 56px; }
  .help-grid { grid-template-columns: 1fr; }
}
