/* Long-form pages (/evaluate, /for-security-leaders).
 *
 * Kept out of styles.css so the homepage is untouched by anything here. Inherits every
 * token from styles.css :root — this file adds layout and a few document-specific
 * components only, and defines no colours of its own beyond those tokens.
 */

/* ---- page shell ---- */
.doc-main { max-width: 860px; margin: 0 auto; padding: 0 20px 96px; }
.doc-head { padding: 56px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 16px; }
.doc-head .lede { color: var(--muted); font-size: 1.1rem; line-height: 1.65; max-width: 68ch; }
.crumb { font-size: 0.85rem; color: var(--muted-2); display: flex; gap: 8px; align-items: center; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }

/* ---- prose ---- */
.doc-main h2 { font-size: 1.6rem; letter-spacing: -0.01em; margin: 56px 0 14px; }
.doc-main h3 { font-size: 1.12rem; margin: 32px 0 10px; }
.doc-main p, .doc-main li { color: var(--muted); line-height: 1.7; }
.doc-main p { margin: 0 0 16px; }
.doc-main strong { color: var(--text); font-weight: 600; }
.doc-main a { color: var(--accent); text-decoration: none; }
.doc-main a:hover { text-decoration: underline; }
.doc-main ul, .doc-main ol { margin: 0 0 18px; padding-left: 22px; }
.doc-main li { margin-bottom: 8px; }
.doc-main li::marker { color: var(--muted-2); }
.doc-main code { background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 5px; font-size: 0.875em; color: var(--text); }
.doc-main pre.code { margin: 0 0 20px; white-space: pre-wrap; word-break: break-word; }
.doc-main pre.code code { background: none; border: 0; padding: 0; font-size: inherit; }

/* ---- table of contents ---- */
.toc { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin: 0 0 8px; }
.toc p { color: var(--muted-2); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }

/* ---- callouts ---- */
.note { border-left: 3px solid var(--border-2); background: var(--panel-2); border-radius: 0 10px 10px 0;
  padding: 16px 20px; margin: 0 0 22px; }
.note.good { border-left-color: var(--ok); }
.note.warn { border-left-color: var(--no); }
.note p:last-child { margin-bottom: 0; }
.note .note-label { display: block; font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 6px; }

/* ---- two-column fact table (owns / limits) ---- */
.facts { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 0.94rem; }
.facts th, .facts td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border);
  vertical-align: top; }
.facts th { color: var(--muted-2); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; border-bottom-color: var(--border-2); }
.facts td { color: var(--muted); }
.facts td:first-child { color: var(--text); width: 38%; font-weight: 500; }
.facts tr:last-child td { border-bottom: 0; }
.facts-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 8px; margin-bottom: 24px; }

/* status pills for the limits table */
.pill { display: inline-block; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted);
  white-space: nowrap; }
.pill.ships { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill.absent { color: var(--no); border-color: color-mix(in srgb, var(--no) 40%, transparent); }
.pill.partial { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---- numbered steps ---- */
.doc-step { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px;
  margin: 0 0 18px; background: var(--panel-2); }
.doc-step > h3 { margin-top: 0; display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.doc-step .n { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 8px; background: var(--panel); border: 1px solid var(--border-2);
  font-size: 0.8rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.doc-step .time { margin-left: auto; font-size: 0.75rem; color: var(--muted-2); font-weight: 400;
  letter-spacing: 0.04em; white-space: nowrap; }
.doc-step > *:last-child { margin-bottom: 0; }

/* ---- "expected result" line inside a step ---- */
.expect { display: flex; gap: 10px; align-items: flex-start; border-top: 1px dashed var(--border-2);
  margin-top: 16px; padding-top: 14px; font-size: 0.92rem; }
.expect b { color: var(--ok); flex: 0 0 auto; font-weight: 600; }
.expect span { color: var(--muted); }

/* ---- page footer nav ---- */
.doc-next { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 16px; }
.doc-next a { display: block; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; background: var(--panel-2); }
.doc-next a:hover { border-color: var(--border-2); text-decoration: none; }
.doc-next b { display: block; color: var(--text); margin-bottom: 4px; }
.doc-next span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 640px) {
  .doc-main { padding: 0 16px 72px; }
  .doc-head { padding-top: 36px; }
  .doc-step { padding: 20px 18px; }
  .facts td:first-child { width: auto; }
}
