/* pages.css: the reference pages (layout "doc") and, later, the product pages (layout "feature").
   It adds to site.css and changes none of its rules: the same tokens, type and components, so every
   page reads as one site. Status colours keep their meaning only; Signal Violet stays an accent. */

/* ---------------- page hero */
.doc-hero { padding: 64px 0 52px; position: relative; overflow: hidden; }
.doc-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(111,141,181,.16) .9px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 30%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 80% 30%, #000 15%, transparent 70%); pointer-events: none; }
.doc-hero .orb.a { width: 460px; height: 460px; right: -80px; top: -160px; }
.doc-hero .wrap { position: relative; }
.crumbs { font: 400 13px var(--mono); color: var(--faint); margin-bottom: 26px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.doc-hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; max-width: 900px; }
.doc-hero .lead { margin-top: 22px; max-width: 780px; }
.doc-hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.doc-hero .facts span { font: 500 12.5px var(--body); color: var(--muted); border: 1px solid var(--line); background: rgba(14,21,34,.7); border-radius: 999px; padding: 5px 12px; }

/* ---------------- product page hero: the words on the left, the area's console on the right */
.feat-hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.feat-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(111,141,181,.16) .9px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 65% 70% at 75% 40%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 65% 70% at 75% 40%, #000 15%, transparent 72%); pointer-events: none; }
.feat-hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.feat-hero .wrap > * { min-width: 0; }
.feat-hero h1 { font-size: clamp(34px, 4.3vw, 52px); line-height: 1.06; }
.feat-hero .lead { margin-top: 20px; font-size: 18px; }
.feat-hero .cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.feat-hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.feat-hero .facts span { font: 500 12.5px var(--body); color: var(--muted); border: 1px solid var(--line); background: rgba(14,21,34,.7); border-radius: 999px; padding: 5px 12px; }
.feat-hero .orb.a { width: 480px; height: 480px; right: -80px; top: -140px; }
.feat-hero .orb.b { width: 320px; height: 320px; right: 360px; top: 260px; }
.feat-stage { position: relative; }
.feat-stage::after { content: ""; position: absolute; inset: 10% 5% -6%; background: radial-gradient(closest-side, rgba(90,169,255,.26), transparent); filter: blur(30px); z-index: -1; }
html:not(.js) .feat-stage { display: none; }

/* ---------------- body: contents on the left, the text on the right */
.doc-body { padding: 64px 0 96px; border-top: 1px solid var(--line); }
.doc-grid { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; }
.toc-h { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc li a:hover { color: var(--text); }
.toc li a.on { color: var(--text); border-left-color: var(--accent); }

/* ---------------- prose */
.prose { max-width: 820px; min-width: 0; }
.prose > section { padding: 0; }  /* site.css pads every <section>; the text's own blocks need none */
.prose > section + section { margin-top: 72px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; scroll-margin-top: 92px; margin-bottom: 18px; }
.prose h3 { font-size: 19px; margin: 34px 0 10px; scroll-margin-top: 92px; }
.prose p { color: var(--muted); margin: 0 0 16px; }
.prose p strong, .prose li strong, .prose td strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(90,169,255,.35); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--muted); }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 500 12px var(--mono); color: var(--accent); background: rgba(90,169,255,.12); }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text); white-space: nowrap; }
.prose pre { margin: 0 0 18px; background: #070B14; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; overflow-x: auto; font: 400 13.5px/1.7 var(--mono); color: var(--text); }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; white-space: pre; }
.prose pre .c { color: var(--faint); }
.prose pre .ok { color: var(--ok); }
.prose pre .ac { color: var(--accent); }
.prose pre .t { color: var(--violet); }
.prose .lede { font-size: 18px; color: var(--text); }

/* tables */
.tbl { overflow-x: auto; margin: 4px 0 22px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.prose th { text-align: left; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 12px 16px; background: #0C1320; border-bottom: 1px solid var(--line); }
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); }

/* callouts and grids */
.callout { border: 1px solid rgba(90,169,255,.3); background: rgba(90,169,255,.06); border-radius: 12px; padding: 16px 20px; margin: 4px 0 22px; }
.callout p { margin: 0; color: var(--text); }
.callout p + p { margin-top: 8px; color: var(--muted); }
.callout .k { display: block; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 6px; }
.callout.not { border-color: var(--line-strong); background: rgba(14,21,34,.7); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 22px; }
.pgrid .card { padding: 20px; }
.pgrid .card h3 { margin: 0 0 8px; font-size: 17px; }
.pgrid .card p { margin: 0; font-size: 15px; }
.pgrid .card .tag { display: inline-block; font: 500 11px var(--mono); color: var(--violet); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.prose .flow { margin: 40px 0 28px; }

/* ---------------- related pages and the closing call */
.next { padding: 80px 0; border-top: 1px solid var(--line); }
.next .tiles { grid-template-columns: repeat(3, 1fr); }
.next .tile b { font-size: 17px; }
.close { padding: 96px 0; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.close .orb.a { left: 50%; top: 50%; right: auto; transform: translate(-50%, -50%); animation: none; width: 520px; height: 520px; }
.close h2 { position: relative; }
.close .lead { margin: 16px auto 0; position: relative; }
.close .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

@media (max-width: 1000px) {
  .feat-hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .doc-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--panel); }
  .next .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .doc-hero { padding: 44px 0 40px; }
  .doc-body { padding: 44px 0 72px; }
  .pgrid, .next .tiles { grid-template-columns: 1fr; }
  .prose > section + section { margin-top: 56px; }
  /* tables wrap on a phone; only a .wide table (four columns) keeps its width and scrolls */
  .prose table { min-width: 0; font-size: 14px; }
  .tbl.wide table { min-width: 560px; }
  .prose th, .prose td { padding: 10px 12px; }
  .prose td code { white-space: normal; overflow-wrap: anywhere; }
}

/* the header link of the page being read (nav.html sets aria-current) */
nav.links a[aria-current="page"] { color: var(--text); }
