/* ============================================================================
   hub-prose.css — the shared prose kit for every Lab Hub template.
   ONE scale for H1/H2/H3, one code block, one separator, one quote, one table.
   Content-type templates and resource file-type panels all inherit from here,
   so an article, a whitepaper, a video page and a feed post read as the same
   publication with different furniture.
   ============================================================================ */

/* --- the writing surface ------------------------------------------------- */
.hp-body{
    max-width:72ch;
    color:#c3c8d0;
    font-size:16px;
    line-height:1.9;
    font-weight:300;
    counter-reset:h2 h3;
}
.hp-body > *:first-child{margin-top:0}

/* --- headings: one scale, everywhere -------------------------------------- */
.hp-h1,.hp-body h1{
    color:#fff;font-weight:800;letter-spacing:-.012em;line-height:1.15;
    font-size:30px;margin:1.2em 0 .5em;scroll-margin-top:112px;position:relative;
}
.hp-h2,.hp-body h2{
    color:#fff;font-weight:800;letter-spacing:-.01em;line-height:1.25;
    font-size:23px;margin:1.6em 0 .55em;scroll-margin-top:112px;position:relative;
    counter-increment:h2;counter-reset:h3;
}
.hp-h3,.hp-body h3{
    color:#fff;font-weight:700;letter-spacing:-.005em;line-height:1.35;
    font-size:18px;margin:1.4em 0 .5em;scroll-margin-top:112px;position:relative;
    counter-increment:h3;
}
/* The section number is the subtle detail: a quiet mono index, never a badge. */
.hp-body h2::before{
    content:counter(h2,decimal-leading-zero) " ";
    color:#CBD2DC;font-family:var(--font-mono);font-size:.52em;font-weight:700;
    letter-spacing:.14em;margin-right:.6em;vertical-align:middle;
}
.hp-body h3::before{
    content:counter(h2,decimal-leading-zero) "." counter(h3) " ";
    color:#8E939C;font-family:var(--font-mono);font-size:.58em;font-weight:700;
    margin-right:.55em;vertical-align:middle;
}
/* the anchor glyph that appears on hover */
.hp-body .ha{
    color:#CBD2DC;text-decoration:none;font-family:var(--font-mono);
    font-size:.5em;font-weight:700;margin-right:.5em;vertical-align:middle;opacity:0;
    transition:opacity .12s ease;
}
.hp-body h2:hover .ha,.hp-body h3:hover .ha,.hp-body .ha:focus-visible{opacity:.8}

/* --- lead paragraph ------------------------------------------------------ */
.hp-lead{
    color:#d7dbe1;font-size:18.5px;line-height:1.65;font-weight:300;
    margin:0 0 1.4em;max-width:62ch;
}
.hp-lead + .hp-body p:first-of-type{font-size:17px}

/* --- body copy ----------------------------------------------------------- */
.hp-body p{margin:0 0 1.15em}
.hp-body strong{color:#fff;font-weight:700}
.hp-body em{color:#d7dbe1;font-style:italic}
.hp-body a{color:#CBD2DC;text-decoration:underline;text-decoration-color:rgba(201,169,106,.4);text-underline-offset:3px}
.hp-body a:hover{color:#fff;text-decoration-color:rgba(201,169,106,.85)}
.hp-body ul,.hp-body ol{margin:0 0 1.15em;padding-left:1.35em}
.hp-body li{margin:.35em 0}
.hp-body li::marker{color:#CBD2DC}
.hp-body small{color:#8E939C;font-size:13px}

/* --- separator: the hairline that carries a label ------------------------ */
.hp-sep{
    display:flex;align-items:center;gap:16px;
    margin:2.4em 0;border:0;height:1px;background:rgba(255,255,255,.09);
    position:relative;
}
.hp-sep::before{
    content:"";flex:1;height:1px;
    background:linear-gradient(90deg,transparent,rgba(201,169,106,.55),transparent);
}
.hp-sep-label{
    flex:none;font-family:var(--font-mono);font-size:9.5px;font-weight:700;
    letter-spacing:.3em;text-transform:uppercase;color:#8E939C;
}
.hp-sep.is-plain::before{background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent)}

/* --- quote --------------------------------------------------------------- */
.hp-body blockquote,.hp-quote{
    margin:1.6em 0;padding:18px 22px;
    border-left:3px solid #c9a96a;border-radius:0 14px 14px 0;
    background:rgba(201,169,106,.06);color:#e5e7eb;
    font-size:18px;line-height:1.65;font-weight:500;
}
.hp-body blockquote p:last-child,.hp-quote p:last-child{margin-bottom:0}
.hp-body blockquote cite,.hp-quote cite{
    display:block;margin-top:10px;font-style:normal;
    font-family:var(--font-mono);font-size:10px;letter-spacing:.18em;
    text-transform:uppercase;color:#8E939C;
}

/* --- callout: note / warn / good ----------------------------------------- */
.hp-callout{
    margin:1.6em 0;padding:15px 18px;border-radius:12px;
    border:1px solid rgba(255,255,255,.1);border-left:3px solid #8E939C;
    background:rgba(255,255,255,.035);color:#d7dbe1;
    font-size:14.5px;line-height:1.7;font-weight:300;
}
.hp-callout > b,.hp-callout > strong{
    display:block;margin-bottom:5px;color:#fff;
    font-family:var(--font-mono);font-size:10px;font-weight:700;
    letter-spacing:.22em;text-transform:uppercase;
}
.hp-callout.is-note{border-left-color:#8fa3b6}
.hp-callout.is-warn{border-left-color:#c9a96a;background:rgba(201,169,106,.06)}
.hp-callout.is-good{border-left-color:#34d399;background:rgba(52,211,153,.055)}

/* --- code: inline + block ------------------------------------------------ */
.hp-body code,.hp-code{
    font-family:var(--font-mono);font-size:.86em;
    background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);
    border-radius:6px;padding:2px 6px;color:#e5e7eb;
}
.hp-codeblock{
    margin:1.4em 0;border:1px solid rgba(255,255,255,.11);border-radius:14px;
    background:#0a0a0d;overflow:hidden;
}
.hp-codehead{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:9px 14px;border-bottom:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    font-family:var(--font-mono);font-size:9.5px;font-weight:700;
    letter-spacing:.2em;text-transform:uppercase;color:#8E939C;
}
.hp-codehead .dotsep{width:3px;height:3px;border-radius:50%;background:#4b5563}
.hp-codeblock pre{
    margin:0;padding:16px 18px;overflow:auto;white-space:pre-wrap;word-break:break-word;
}
.hp-codeblock pre code{
    background:transparent;border:0;padding:0;color:#d4d4d8;font-size:13.5px;line-height:1.75;
}

/* --- table --------------------------------------------------------------- */
.hp-table-wrap{margin:1.4em 0;overflow-x:auto;border:1px solid rgba(255,255,255,.09);border-radius:12px}
.hp-body table,.hp-table{width:100%;border-collapse:collapse}
.hp-body th,.hp-table th{
    font-family:var(--font-mono);font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;
    color:#CBD2DC;text-align:left;padding:11px 14px;
    border-bottom:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.025);
    white-space:nowrap;
}
.hp-body td,.hp-table td{
    padding:11px 14px;border-bottom:1px solid rgba(255,255,255,.07);
    font-size:14px;color:#c3c8d0;
}
.hp-body tr:last-child td,.hp-table tr:last-child td{border-bottom:0}
.hp-body td:first-child,.hp-table td:first-child{color:#fff;font-weight:600}

/* --- figure -------------------------------------------------------------- */
.hp-figure{margin:1.6em 0}
.hp-figure img,.hp-figure svg{width:100%;height:auto;display:block;border-radius:12px;border:1px solid rgba(255,255,255,.1)}
.hp-figcap{
    margin-top:9px;font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;
    color:#8E939C;text-transform:uppercase;
}

/* --- keyline: the one-line takeaway -------------------------------------- */
.hp-keyline{
    margin:1.6em 0;padding:14px 0;border-top:1px solid rgba(255,255,255,.1);
    border-bottom:1px solid rgba(255,255,255,.1);
    color:#fff;font-size:15.5px;line-height:1.6;font-weight:500;
}
.hp-keyline b{color:#CBD2DC}

/* --- drop cap (articles only) -------------------------------------------- */
.hp-body--dropcap > p:first-of-type::first-letter{
    float:left;margin:6px 10px 0 0;color:#fff;font-size:54px;line-height:.9;font-weight:800;
}

/* --- media --------------------------------------------------------------- */
.hp-body img{max-width:100%;height:auto;border-radius:12px;border:1px solid rgba(255,255,255,.1);display:block}
.hp-body hr{border:0;height:1px;margin:2em 0;background:linear-gradient(90deg,rgba(201,169,106,.6),rgba(255,255,255,.07))}
