/* Help centre — post list, article shell and CMS-content typography.
   Also loaded in the admin so the editor preview matches the public page. */

.help-page {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto; padding: 26px 22px 74px;
}

.help-hero { padding: 22px 0 18px; }
.help-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid rgba(72, 216, 255, .32);
  background: rgba(72, 216, 255, .09);
  color: var(--brand); font-size: 12.5px; font-weight: 800;
}
.help-hero h1 {
  margin: 14px 0 0; color: #f3f7ff;
  font-size: clamp(27px, 4vw, 40px); font-weight: 800; line-height: 1.45;
}
.help-hero p {
  margin: 9px 0 0; max-width: 640px;
  color: var(--muted); font-size: 14px; line-height: 1.9;
}

.help-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.help-card {
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(120, 165, 255, .14);
  background: linear-gradient(180deg, rgba(17, 29, 52, .95), rgba(10, 18, 34, .96));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1), border-color .26s, box-shadow .26s;
  animation: rise .4s backwards;
}
.help-card:hover, .help-card:focus-visible {
  transform: translateY(-5px); border-color: rgba(72, 216, 255, .42);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .55); outline: none;
}

.help-card-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: radial-gradient(circle at 75% 20%, rgba(29, 140, 255, .2), transparent 60%), #0b1424;
}
.help-card-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.help-card:hover .help-card-cover img { transform: scale(1.045); }
.help-card-cover.empty {
  display: grid; place-items: center;
  aspect-ratio: 16 / 6;
  color: var(--brand); font-size: 26px;
  background:
    radial-gradient(circle at 72% 18%, rgba(29, 140, 255, .24), transparent 58%),
    linear-gradient(135deg, #0b1830, #0a1224);
}
.help-card-cover.empty::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(120, 165, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 165, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 72%);
  pointer-events: none;
}

.help-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.help-card h2 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.7; }
.help-card p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin: 7px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.9;
}
.help-card-more {
  display: flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 13px;
  color: var(--brand); font-size: 12px; font-weight: 700;
}
.help-card-more span { transition: transform .2s; }
.help-card:hover .help-card-more span { transform: translateX(-4px); }

/* ── article ────────────────────────────────────────────────────── */

.help-post-page { max-width: 1000px; }
.help-post { margin-top: 10px; }
.help-post-head { padding: 4px 0 8px; }
.help-post-head h1 {
  margin: 0; font-size: clamp(25px, 3.8vw, 38px);
  font-weight: 800; line-height: 1.5;
}
.help-post-meta { margin-top: 10px; color: var(--muted); font-size: 12px; }
.help-post-lead {
  margin: 14px 0 0; color: var(--muted);
  font-size: 14.5px; line-height: 2;
}
.help-post-cover {
  margin: 18px 0 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #0b1424;
}
.help-post-cover img { display: block; width: 100%; height: auto; }

/* CMS content can contain arbitrary structure; give it the site's typography. */
.post-content {
  margin-top: 24px; color: #dbe6fa;
  font-size: 14.5px; line-height: 2;
  overflow-wrap: anywhere;
}
.post-content > :first-child { margin-top: 0; }
.post-content h2 {
  margin: 30px 0 10px; color: var(--ink);
  font-size: 22px; font-weight: 800; line-height: 1.6;
}
.post-content h3 {
  margin: 24px 0 8px; color: var(--ink);
  font-size: 18px; font-weight: 800; line-height: 1.7;
}
.post-content h4 { margin: 20px 0 8px; color: var(--ink); font-size: 16px; }
.post-content p { margin: 0 0 14px; }
.post-content strong, .post-content b { color: #f2f7ff; }
.post-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--brand); }
.post-content ul, .post-content ol { margin: 0 0 16px; padding-inline-start: 22px; }
.post-content li { margin: 4px 0; }
.post-content img {
  max-width: 100%; height: auto; margin: 12px 0;
  border-radius: 12px; border: 1px solid var(--line);
}
.post-content blockquote {
  margin: 16px 0; padding: 10px 16px;
  border-inline-start: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: rgba(72, 216, 255, .06);
  color: #e7effb;
}
.post-content hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.post-content code {
  padding: 2px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  font-size: .92em;
}
.post-content pre {
  margin: 16px 0; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: #081326;
  overflow-x: auto; direction: ltr; text-align: left;
}
.post-content pre code { padding: 0; background: none; }

.post-content table {
  display: block; max-width: 100%; overflow-x: auto;
  margin: 16px 0; border-collapse: collapse; font-size: 13px;
}
.post-content th, .post-content td {
  padding: 8px 10px; border: 1px solid var(--line); text-align: start;
}
.post-content th { color: var(--brand); background: rgba(72, 216, 255, .05); }

.post-content details {
  margin: 9px 0; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(16, 26, 48, .55);
}
.post-content summary {
  position: relative; padding: 12px 0; padding-inline-end: 24px;
  cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 700;
}
.post-content summary::-webkit-details-marker { display: none; }
.post-content summary::after {
  content: "+"; position: absolute; inset-inline-end: 0;
  color: var(--brand); font-size: 18px; line-height: 1.4;
}
.post-content details[open] > summary::after { content: "−"; }

.post-content nav {
  margin: 16px 0; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(16, 26, 48, .45);
}
.post-content nav a { display: inline-block; margin: 3px 0; }

.help-related {
  margin-top: 42px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.help-related h2 { margin: 0 0 16px; font-size: 18px; font-weight: 800; }

@media (max-width: 640px) {
  .help-page { padding: 14px 14px 50px; }
  .help-hero { padding: 12px 0 14px; }
  .help-hero h1 { font-size: 26px; }
  .help-hero p { font-size: 13px; }
  .help-grid { grid-template-columns: 1fr; gap: 12px; }
  .help-card { border-radius: 14px; }
  .help-post-head h1 { font-size: 25px; }
  .help-post-lead { font-size: 13px; }
  .post-content { font-size: 13.5px; line-height: 1.95; }
  .post-content h2 { font-size: 20px; }
  .post-content h3 { font-size: 17px; }
}
