/* PPPHP public docs — matches the marketing site, but tuned for long reading.
   Self-contained: the in-app help uses a handful of Bootstrap classes, so the
   ones it actually relies on are reimplemented here rather than pulling in the
   whole framework for a static page. */
*,*::before,*::after{box-sizing:border-box}
:root{
  --ink:#0f172a;--ink-2:#475569;--ink-3:#64748b;--bg:#fff;--bg-2:#f7f8fc;--line:#e6e9f2;
  --brand:#4f46e5;--brand-2:#6d28d9;--code-bg:#f4f5fb;--max:1140px;
}
@media (prefers-color-scheme:dark){
  :root{--ink:#e8edf7;--ink-2:#a9b6cc;--ink-3:#8b98b0;--bg:#0b1020;--bg-2:#111830;
        --line:#222c48;--code-bg:#0f1730}
}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);
  font:16px/1.7 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.dwrap{max-width:var(--max);margin:0 auto;padding:0 22px}

/* nav */
.dnav{position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.dnav-in{display:flex;align-items:center;height:62px;gap:1rem}
.dbrand{display:flex;align-items:center;gap:.55rem;font-weight:800;color:var(--ink);font-size:1.05rem}
.dnav nav{margin-left:auto;display:flex;gap:1.3rem}
.dnav nav a{color:var(--ink-2);font-size:.9rem;font-weight:600}
.dnav nav a:hover{color:var(--ink);text-decoration:none}

/* layout */
.dlayout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:2.6rem;padding-top:2.2rem;padding-bottom:3.5rem}
@media (max-width:900px){.dlayout{grid-template-columns:1fr;gap:1.6rem}}
/* landing page: no sidebar, the cards are the index */
.dlayout.solo{grid-template-columns:minmax(0,1fr);padding-top:3rem}
.dback{display:inline-flex;align-items:center;gap:.4rem;font-size:.84rem;font-weight:650;
  color:var(--ink-3);margin-bottom:1.3rem}
.dback:hover{color:var(--brand);text-decoration:none}
.dside li a.cur{background:color-mix(in srgb,var(--brand) 12%,transparent);color:var(--brand);
  box-shadow:inset 2px 0 0 var(--brand)}
.dside{position:sticky;top:86px;align-self:start;max-height:calc(100vh - 110px);overflow-y:auto}
@media (max-width:900px){.dside{position:static;max-height:none;border-bottom:1px solid var(--line);padding-bottom:1rem}}
.dside-h{font-size:.68rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-3);margin-bottom:.6rem}
.dside ul{list-style:none;margin:0;padding:0}
.dside li a{display:block;padding:.36rem .65rem;border-radius:8px;color:var(--ink-2);font-size:.89rem;font-weight:600}
.dside li a:hover{background:var(--bg-2);color:var(--ink);text-decoration:none}

/* content */
.dmain{min-width:0}
.dmain h1{font-size:clamp(1.7rem,3.6vw,2.3rem);font-weight:830;letter-spacing:-.025em;margin:0 0 .7rem;line-height:1.18}
.dmain h2{font-size:1.4rem;font-weight:800;letter-spacing:-.02em;margin:2.4rem 0 .8rem;
  padding-top:1.4rem;border-top:1px solid var(--line)}
.dmain h3{font-size:1.08rem;font-weight:750;margin:1.7rem 0 .5rem}
.dmain h4{font-size:.98rem;font-weight:700;margin:1.3rem 0 .4rem}
.dmain p,.dmain li{color:var(--ink-2)}
.dmain p{margin:0 0 1rem}
.dmain ul,.dmain ol{margin:0 0 1.1rem;padding-left:1.35rem}
.dmain li{margin-bottom:.35rem}
.lead{font-size:1.08rem;color:var(--ink-2)}
hr{border:0;border-top:1px solid var(--line);margin:2.2rem 0}
strong,b{color:var(--ink)}

/* code */
code{background:var(--code-bg);border:1px solid var(--line);border-radius:5px;padding:1px 6px;
  font-size:.86em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--ink)}
pre{background:var(--code-bg);border:1px solid var(--line);border-radius:12px;padding:1rem 1.1rem;
  overflow-x:auto;margin:0 0 1.2rem}
pre code{background:none;border:0;padding:0;font-size:.85rem;line-height:1.6}

/* tables */
table{width:100%;border-collapse:collapse;margin:0 0 1.3rem;font-size:.92rem;display:block;overflow-x:auto}
th,td{text-align:left;padding:.6rem .8rem;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-3);font-weight:800;
  background:var(--bg-2);white-space:nowrap}
td{color:var(--ink-2)}

/* alerts (the in-app help leans on these) */
.alert{border-radius:12px;padding:.9rem 1.1rem;margin:0 0 1.3rem;font-size:.93rem;
  border:1px solid var(--line);background:var(--bg-2);color:var(--ink-2)}
.alert strong,.alert b{color:var(--ink)}
.alert-info{background:color-mix(in srgb,#3b82f6 10%,var(--bg));border-color:color-mix(in srgb,#3b82f6 32%,var(--line))}
.alert-warning{background:color-mix(in srgb,#f59e0b 12%,var(--bg));border-color:color-mix(in srgb,#f59e0b 36%,var(--line))}
.alert-danger{background:color-mix(in srgb,#ef4444 10%,var(--bg));border-color:color-mix(in srgb,#ef4444 32%,var(--line))}
.alert-success{background:color-mix(in srgb,#16a34a 10%,var(--bg));border-color:color-mix(in srgb,#16a34a 32%,var(--line))}
.alert-secondary{background:var(--bg-2)}
.text-muted{color:var(--ink-3)}

/* docs landing grid */
.dgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-top:1.8rem}
.dcard{border:1px solid var(--line);border-radius:14px;padding:1.3rem;background:var(--bg);transition:.18s}
.dcard:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--brand) 34%,var(--line));
  box-shadow:0 16px 44px rgba(15,23,42,.10);text-decoration:none}
.dcard h3{margin:0 0 .35rem;font-size:1rem;font-weight:750;color:var(--ink)}
.dcard p{margin:0;font-size:.86rem;color:var(--ink-3)}

.dfoot{border-top:1px solid var(--line);padding:2rem 0;color:var(--ink-3);font-size:.86rem}
