/* ============================================================
   Penthos.ai — documentation / reference sub-page styles.
   Loaded AFTER styles.css (reuses its design tokens).
   ============================================================ */

.page { max-width: var(--maxw); margin: 0 auto; padding: 132px 24px 96px; }
.crumbs { font-size: 13.5px; color: var(--text-dim); margin-bottom: 20px; }
.crumbs a { color: var(--text-2); } .crumbs a:hover { color: var(--text); }
.crumbs .sep { margin: 0 8px; opacity: .5; }

.page__head { max-width: 900px; margin: 0 0 8px; }
.page__head .kicker { margin-bottom: 18px; }
.page__head h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.page__head .lead { margin-top: 16px; max-width: 760px; }

/* two-column: content + sticky side rail (collapses on mobile) */
.doc-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
@media (min-width: 960px) { .doc-wrap { grid-template-columns: minmax(0,1fr) 240px; } }

.doc { max-width: 860px; min-width: 0; }
.doc > section { margin-top: 46px; scroll-margin-top: 100px; }
.doc > section:first-child { margin-top: 0; }
.doc h2 { font-size: 23px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.doc h3 { font-size: 16.5px; font-weight: 650; margin: 24px 0 8px; }
.doc p { color: var(--text-2); margin-bottom: 12px; }
.doc ul, .doc ol { color: var(--text-2); margin: 0 0 14px 20px; }
.doc li { margin-bottom: 7px; }
.doc li strong, .doc p strong { color: var(--text); }
.doc a.inline { color: var(--primary-bright); border-bottom: 1px solid rgba(139,130,255,.4); }
.doc a.inline:hover { border-bottom-color: var(--primary-bright); }
.doc code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.8px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: #d9d7ff; }
.doc pre { background: var(--elev); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; overflow-x: auto; margin: 10px 0 16px; }
.doc pre code { background: none; border: 0; padding: 0; color: var(--text); font-size: 12.5px; line-height: 1.75; display: block; white-space: pre; }

/* callout / note */
.callout { border: 1px solid var(--border-2); border-left: 3px solid var(--primary);
  background: rgba(110,99,242,.06); border-radius: var(--radius-sm); padding: 13px 16px; margin: 16px 0; color: var(--text-2); font-size: 14.5px; }
.callout strong { color: var(--text); }

/* side rail (on-page nav) */
.rail { align-self: start; position: sticky; top: 100px; font-size: 13.5px; display: none; }
@media (min-width: 960px) { .rail { display: block; } }
.rail h6 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; font-weight: 600; }
.rail a { display: block; color: var(--text-2); padding: 5px 0; border-left: 2px solid var(--border); padding-left: 12px; transition: color .2s, border-color .2s; }
.rail a:hover { color: var(--text); border-left-color: var(--primary); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 14px 0 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl thead th { background: rgba(255,255,255,.03); color: var(--text); font-weight: 650; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255,255,255,.02); }
.tbl code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.4px; color: #c9c5ff; white-space: nowrap; background: none; border: 0; padding: 0; }
.tbl .meth { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; font-size: 11.5px; color: var(--accent); }

/* coverage / status tags */
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 100px; white-space: nowrap; }
.tag--auto   { color: var(--defended); background: var(--def-bg); border: 1px solid rgba(52,211,153,.32); }
.tag--assess { color: var(--review);   background: var(--rev-bg); border: 1px solid rgba(245,166,35,.32); }
.tag--engine { color: var(--primary-bright); background: rgba(110,99,242,.10); border: 1px solid rgba(110,99,242,.32); }

/* atlas tactic groups + coverage summary */
.tgroup { margin-top: 30px; }
.tgroup > h3 { font-size: 14.5px; color: var(--primary-bright); font-weight: 650; margin: 0 0 10px; letter-spacing: .02em; }
.covbar { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.covstat { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 20px; background: var(--bg-2); }
.covstat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.covstat span { font-size: 12.5px; color: var(--text-dim); }

/* contact strip (reused on the CTA + as a block) */
.contact-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: center; margin-top: 22px; font-size: 15px; color: var(--text-2); }
.contact-strip a { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.contact-strip a:hover { color: var(--primary-bright); }
.contact-strip .ci-ic { color: var(--primary-bright); }

@media (max-width: 720px) { .page { padding-top: 108px; } }
