/* Docs pages: the services catalog and the per-service setup guides.
   Reuses style.css's tokens and nav; everything here is additive. */

.docs-head { max-width: 780px; margin: 0 auto; padding: 72px 24px 24px; }
.docs-head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 10px 0 14px; }
.docs-head .sub { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.docs-head .eyebrow a { color: inherit; }
.docs-head--service { padding-bottom: 8px; }

/* ── Catalog ───────────────────────────────────────────────────────────── */
.svc-grid-wrap { max-width: 1060px; margin: 0 auto; padding: 24px 24px 80px; }
.svc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.svc {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s;
}
.svc:hover { border-color: var(--text); transform: translateY(-1px); }
.svc-mark {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--text); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.svc-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.svc-name { font-weight: 700; font-size: 16px; }
.svc-sum { font-size: 14px; line-height: 1.55; color: var(--muted); }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--text); color: var(--white);
}
.pill-quiet { background: transparent; color: var(--muted); border: 1px solid var(--border); text-transform: none; letter-spacing: 0; font-weight: 500; }
.docs-note { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* ── Service page ──────────────────────────────────────────────────────── */
.docs-agent-cta {
  margin-top: 18px; padding: 12px 16px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--border); font-size: 14px;
}
.docs-body {
  max-width: 1060px; margin: 0 auto; padding: 32px 24px 96px;
  display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start;
}
.docs-main h2 { font-size: 21px; letter-spacing: -0.01em; margin: 38px 0 12px; }
.docs-main h2:first-child { margin-top: 0; }
.docs-main p { font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; max-width: 68ch; }
.docs-main ul, .docs-main ol { margin: 0 0 16px; padding-left: 22px; }
.docs-main li { font-size: 15.5px; line-height: 1.7; margin-bottom: 8px; max-width: 66ch; }
.docs-main code { font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace; font-size: 13.5px; background: rgba(17,17,17,.06); padding: 2px 5px; border-radius: 5px; }
pre.code {
  background: var(--text); color: var(--white); padding: 16px 18px; border-radius: 11px;
  overflow-x: auto; margin: 0 0 18px; font-size: 13px; line-height: 1.6;
}
pre.code code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ── Aside: the grant / do-not-grant pair ──────────────────────────────── */
.docs-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; }
.docs-aside .card { background: var(--white); border: 1px solid var(--border); border-radius: 13px; padding: 18px; }
.docs-aside .card--warn { background: var(--red-bg); border-color: var(--red-border); }
.docs-aside h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.aside-note { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: -4px 0 12px; }
.grants { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.grants li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.55; }
.grants code { font-size: 12.5px; font-weight: 600; background: rgba(17,17,17,.06); padding: 3px 7px; border-radius: 6px; align-self: flex-start; }
.grants span { color: var(--muted); }
.grants--yes code { background: var(--green-bg); color: #065F46; }
.grants--no code { background: rgba(220,38,38,.1); color: var(--red); }
.checks { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; }
.checks li { font-size: 13px; line-height: 1.55; color: var(--muted); }
.checks code { font-size: 12.5px; }

/* ── Screenshots: a slot that reads as pending, never as broken ────────── */
.shot { margin: 0 0 26px; }
.shot-slot { position: relative; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; background: var(--white); }
.shot-slot img { display: block; width: 100%; height: auto; }
.shot-missing { display: none; }
.shot-slot.missing { background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 10px, var(--white) 10px, var(--white) 20px); }
.shot-slot.missing img { display: none; }
.shot-slot.missing .shot-missing {
  display: grid; place-items: center; min-height: 128px; padding: 20px;
  font-size: 13px; color: var(--muted); text-align: center;
}
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 9px; line-height: 1.55; }

.foot { max-width: 1060px; margin: 0 auto; padding: 32px 24px 64px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 6px; }

@media (max-width: 880px) {
  .docs-body { grid-template-columns: 1fr; }
  .docs-aside { position: static; }
}

/* ── Legal pages ──────────────────────────────────────────────────────────
   Prose column, same measure as the docs header above it. */
.legal { max-width: 780px; margin: 0 auto; padding: 8px 24px 80px; }
.legal h2 { font-size: 19px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal p { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin-bottom: 12px; }
.legal p strong { color: var(--text); font-weight: 600; }
.legal ul { margin: 0 0 12px 20px; }
.legal li { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin-bottom: 6px; }
.legal a { color: var(--text); text-underline-offset: 3px; }
.legal-date { margin-top: 40px; font-size: 13px; color: var(--light); }
