/* ===========================================================================
   Content & category landing pages (about, terms, refunds, host-guide, faq,
   category/{slug}). Shared document layout — dark hero + prose, aligned with
   the design system (radii 4/8/12, spacing in multiples of 4, no hover motion,
   letter-spacing:0).
   =========================================================================== */

.doc-hero{
  background:linear-gradient(135deg, var(--ink), #2E3133);
  color:#fff; border-radius:var(--r-lg);
  padding:32px 24px; margin-bottom:24px; position:relative; overflow:hidden;
}
@media (min-width:768px){ .doc-hero{ padding:44px 40px; } }
.doc-hero::before{
  content:""; position:absolute; inset-inline-end:-70px; top:-80px;
  width:280px; height:280px; border-radius:50%;
  background:radial-gradient(circle, rgba(31,184,122,.20), transparent);
  pointer-events:none;
}
.doc-hero .eyebrow{
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(31,184,122,.16); color:#7FE6B7;
  font-size:12px; font-weight:800; padding:6px 14px;
  border-radius:var(--r-pill); margin-bottom:16px;
  border:1px solid rgba(31,184,122,.22);
}
.doc-hero .eyebrow svg{ width:13px; height:13px; }
.doc-hero h1{ font-size:26px; font-weight:800; line-height:1.35; letter-spacing:-.02em; margin:0; position:relative; }
@media (min-width:768px){ .doc-hero h1{ font-size:34px; } }
.doc-hero .lead{ font-size:14px; line-height:1.9; opacity:.82; margin:12px 0 0; max-width:620px; position:relative; }
@media (min-width:768px){ .doc-hero .lead{ font-size:15px; } }

/* Prose card */
.doc-prose{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:24px;
}
@media (min-width:768px){ .doc-prose{ padding:36px; } }
.doc-prose section + section{ margin-top:28px; padding-top:28px; border-top:1px solid var(--line); }
.doc-prose h2{ font-size:18px; font-weight:800; margin:0 0 12px; letter-spacing:-.01em; }
.doc-prose h3{ font-size:15px; font-weight:800; margin:20px 0 8px; }
.doc-prose p{ font-size:14px; line-height:2; color:var(--ink-2); margin:0 0 12px; }
.doc-prose p:last-child{ margin-bottom:0; }
.doc-prose ul{ list-style:none; padding:0; margin:8px 0 12px; }
.doc-prose ul li{
  position:relative; padding-inline-start:24px; margin-bottom:10px;
  font-size:14px; line-height:1.95; color:var(--ink-2);
}
.doc-prose ul li::before{
  content:""; position:absolute; inset-inline-start:4px; top:11px;
  width:7px; height:7px; border-radius:50%; background:var(--accent);
}
.doc-prose strong{ font-weight:800; color:var(--ink); }
.doc-prose a{ color:var(--accent-deep); font-weight:700; }

/* Callout box (deposit example, key rule) */
.doc-note{
  background:var(--accent-tint); border:1px solid var(--accent-soft);
  border-radius:var(--r-md); padding:16px 18px; margin:16px 0;
  font-size:13px; line-height:1.9; color:var(--ink-2);
}
.doc-note .t{ font-weight:800; color:var(--accent-deep); margin-bottom:4px; display:block; }

/* FAQ */
.faq-list{ display:flex; flex-direction:column; gap:12px; }
.faq-item{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; }
.faq-q{
  width:100%; text-align:start; background:none; border:none; cursor:pointer;
  font-family:inherit; font-size:15px; font-weight:800; color:var(--ink);
  padding:18px 20px; display:flex; align-items:center; gap:12px;
}
.faq-q .chev{ margin-inline-start:auto; flex-shrink:0; color:var(--muted); }
.faq-q .chev svg{ width:18px; height:18px; display:block; }
.faq-item.is-open .faq-q .chev{ transform:none; color:var(--accent-deep); }
.faq-a{ display:none; padding:0 20px 20px; font-size:14px; line-height:2; color:var(--ink-2); }
.faq-item.is-open .faq-a{ display:block; }

/* Category landing */
.cat-groups{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.cat-chip{
  font-size:13px; font-weight:700; padding:8px 16px; border-radius:var(--r-pill);
  background:var(--surface); border:1px solid var(--line); color:var(--ink-2);
  text-decoration:none;
}
.cat-chip.is-active{ background:var(--ink); color:#fff; border-color:var(--ink); }

/* ---------- Blog post ---------- */
.post-cover{
  border-radius:var(--r-lg); overflow:hidden; margin-bottom:24px;
  background:var(--bg); aspect-ratio:16/9;
}
.post-cover img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Markdown output inside .doc-prose: the converter emits bare h2/h3/p/ul/ol,
   so give the list and quote shapes the prose rules don't already cover. */
.doc-prose ol{ padding-inline-start:22px; margin:8px 0 12px; }
.doc-prose ol li{ font-size:14px; line-height:1.95; color:var(--ink-2); margin-bottom:8px; }
.doc-prose blockquote{
  margin:16px 0; padding:12px 16px;
  border-inline-start:3px solid var(--accent);
  background:var(--surface-2); border-radius:var(--r-sm);
  font-size:14px; line-height:1.95; color:var(--ink-2);
}
.doc-prose blockquote p:last-child{ margin-bottom:0; }
.doc-prose code{
  background:var(--surface-2); border:1px solid var(--line);
  border-radius:4px; padding:1px 6px; font-size:13px;
}
.doc-prose img{ max-width:100%; height:auto; border-radius:var(--r-md); margin:16px 0; }
.doc-prose hr{ border:none; border-top:1px solid var(--line); margin:24px 0; }
