/* ellaride help centre (/support and /support/<slug>). Uses the tokens from site.css. */

.help-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.help-arrow { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }

/* ---------- Hero + search ---------- */
.help-hero { padding: 48px 0 40px; background: var(--tint); border-bottom: 1px solid var(--border); }
.help-hero h1 { font-size: clamp(30px, 6vw, 46px); letter-spacing: -0.025em; max-width: 16em; }
.help-search { position: relative; margin-top: 24px; max-width: 680px; }
.help-search input {
  width: 100%; min-height: 56px; padding: 0 18px 0 50px;
  border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface);
  font: inherit; font-size: 17px; color: var(--text);
  box-shadow: var(--shadow-soft);
  -webkit-appearance: none; appearance: none;
}
.help-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 150, 247, .2); }
.help-search-icon { position: absolute; left: 18px; top: 28px; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.help-results {
  margin-top: 8px; padding: 6px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
}
.help-results .help-link { border: 0; border-radius: 10px; padding: 12px 14px; }
.help-results .help-link:hover, .help-results .help-link:focus-visible { background: var(--tint); }
.help-noresults { margin-top: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
.help-section { padding: 48px 0 0; }
.help-h2 { font-size: clamp(22px, 4vw, 28px); margin-bottom: 18px; }

.help-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-weight: 500; line-height: 1.4;
}
.help-link:hover { color: var(--blue-text); }
.help-link:hover .help-arrow { transform: translateX(3px); opacity: 1; }

.help-popular { display: grid; gap: 0 32px; }
@media (min-width: 768px) { .help-popular { grid-template-columns: 1fr 1fr; } }

.help-cats { display: grid; gap: 14px; }
@media (min-width: 640px) { .help-cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .help-cats { grid-template-columns: 1fr 1fr 1fr; } }
.help-cat {
  display: grid; gap: 6px; height: 100%;
  padding: 22px; border-radius: var(--radius-card);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.help-cat:hover { border-color: var(--blue); box-shadow: var(--shadow-soft); }
.help-cat .help-icon { width: 28px; height: 28px; margin-bottom: 6px; }
.help-cat strong { font-size: 18px; }
.help-cat span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.help-cat em { font-style: normal; font-size: 14px; color: var(--blue-text); font-weight: 600; margin-top: 4px; }

.help-all { padding-bottom: 64px; }
.help-group { padding-top: 36px; scroll-margin-top: calc(var(--header-h) + 16px); }
.help-group h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 6px; }

/* ---------- Contact card ---------- */
.help-stuck {
  display: grid; gap: 16px; align-items: center;
  margin-top: 48px; padding: 28px; border-radius: var(--radius-card);
  background: var(--text); color: #fff;
}
.help-stuck h2 { font-size: 22px; }
.help-stuck p { color: rgba(255, 255, 255, .78); margin-top: 6px; }
.help-stuck .btn { justify-self: start; }
@media (min-width: 768px) { .help-stuck { grid-template-columns: 1fr auto; padding: 32px 36px; } }

/* ---------- Article page ---------- */
.help-article-wrap { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 1024px) {
  .help-article-wrap {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: auto auto;
    gap: 40px 64px;
    padding-top: 48px;
    align-items: start;
  }
  .help-article { grid-column: 1; grid-row: 1; }
  .help-article-foot { grid-column: 1; grid-row: 2; }
  .help-side {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}
.help-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.help-crumbs li + li::before { content: '›'; margin-right: 8px; color: var(--border-strong); }
.help-crumbs a { color: var(--muted); text-decoration: none; }
.help-crumbs a:hover { color: var(--blue-text); text-decoration: underline; }
.help-article h1 { margin-top: 18px; font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; line-height: 1.15; }
.help-answer { margin-top: 24px; max-width: 42em; font-size: 18px; line-height: 1.7; }
.help-answer > * + * { margin-top: 16px; }
.help-answer ol, .help-answer ul { padding-left: 22px; display: grid; gap: 8px; }
.help-answer ol { list-style: decimal; }
.help-answer ul { list-style: disc; }
.help-answer strong { font-weight: 700; }
.help-side h2 { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.help-side .help-link { font-size: 16px; min-height: 52px; }
.help-side .text-link { display: inline-flex; margin-top: 16px; }
.help-article-foot .help-stuck { margin-top: 0; }

@media (pointer: coarse) {
  .help-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
}
