/* ──────────────────────────────────────────────────────────────
   Documentation pages — Haus Vajbz. Shared by templates/documentation/*
   (contact, work with us, FAQ, the legal pages). Page layouts live in
   hv/doc-*.css; this sheet holds the primitives they share.
   Tokens only: radius 0, no shadows, no gradients, rules instead of boxes.
   ────────────────────────────────────────────────────────────── */

/* ── Hero: kicker, display title, lead, meta line ────────────── */
.doc-hero { background: var(--bg); color: var(--text); }
.doc-hero__inner { padding-block: 2rem 2.2rem; display: grid; gap: 1rem; }
.doc-hero__kicker { margin: 0; }
.doc-hero__title { font-size: clamp(2.1rem, 9vw, 4.6rem); animation: hv-rise 0.6s var(--ease) both; }
.doc-hero__lead { margin: 0; max-width: 52ch; color: var(--text-dim); font-size: 1.02rem; line-height: 1.55; }
.doc-hero__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; }

/* ── Body layout: optional sticky TOC | prose ────────────────── */
.doc-body { display: grid; gap: 2rem; padding-block: 2rem 3rem; }
.doc-toc { border-top: 2px solid var(--text); }
.doc-toc__head { margin: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.doc-toc ol, .doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-toc a { display: flex; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-sub); font-weight: 600; font-size: 0.9rem; }
.doc-toc a:hover, .doc-toc a.is-active { color: var(--red); }

/* ── Prose: ruled numbered sections ──────────────────────────── */
.doc-prose { min-width: 0; max-width: 74ch; }
.doc-prose section, .doc-section { padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.doc-prose section:first-child, .doc-section:first-child { border-top: 2px solid var(--text); }
.doc-prose h2 { font-family: var(--font-sub); font-weight: 700; font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1.2; margin: 0 0 0.8rem; }
.doc-prose h3 { font-family: var(--font-sub); font-weight: 600; font-size: 1.05rem; margin: 1.2rem 0 0.5rem; }
.doc-prose p, .doc-prose li { color: var(--ink-2); font-size: 0.97rem; line-height: 1.65; }
.doc-prose p { margin: 0 0 0.8rem; }
.doc-prose ul, .doc-prose ol { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.doc-prose li { margin-bottom: 0.35rem; }
.doc-prose ul > li::marker { content: '→  '; color: var(--red); font-family: var(--font-mono); }
.doc-prose a { color: var(--red); font-weight: 600; text-decoration: none; }
.doc-prose a:hover { text-decoration: underline; }
.doc-prose strong { color: var(--ink); }

/* callout: ink or red block for the one thing to remember */
.doc-note { margin: 1rem 0; padding: 0.9rem 1rem; background: var(--paper-2); border-left: 3px solid var(--red); font-size: 0.95rem; }
.doc-note[data-surface='ink'], .doc-note[data-surface='red'] { background: var(--bg); color: var(--text); border-left: 0; }

/* icon tile: FontAwesome in a square block */
.doc-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; background: var(--red); color: var(--paper); font-size: 1rem; }
.doc-icon--ink { background: var(--ink); }

/* ── Forms: hv-form primitives, laid out ─────────────────────── */
.doc-form { display: grid; gap: 1rem; }
.doc-form__row { display: grid; gap: 1rem; }
.doc-form textarea.hv-input { min-height: 9rem; resize: vertical; }
.doc-form select.hv-input { appearance: none; background-image: none; }
.doc-form .hv-btn { justify-self: start; width: auto; }
.doc-msg { padding: 0.8rem 1rem; font-size: 0.95rem; }
.doc-msg--ok { background: var(--ink); color: var(--paper); border-left: 3px solid var(--green); }
.doc-msg--err { background: var(--red); color: var(--paper); }

/* ── Tablet / desktop ────────────────────────────────────────── */
@media (min-width: 768px) {
  .doc-hero__inner { padding-block: 3rem 3.2rem; }
  .doc-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .doc-body--toc { grid-template-columns: 260px minmax(0, 1fr); gap: calc(var(--gutter) * 1.5); align-items: start; }
  .doc-body--toc .doc-toc { position: sticky; top: 1rem; }
}
