/* ==========================================================================
   type.css — layout that is not a size. The reading scale itself lives in
   style.css / startrails.css / sky-pages.css and is the scale the site shipped
   with (the one at openrsi.foundation); the larger overrides that used to sit
   here were taken out on 2026-09-20 because the site read too big.
   ========================================================================== */

/* ---------------- blog post: the heading at the left, its text at the right (the home thesis layout) ---------------- */
body.skypage .article .post-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; padding: clamp(40px, 5vw, 68px) 0; border-top: 1px solid var(--line-2); }
body.skypage .article .post-sec:first-of-type { border-top: 0; padding-top: 0; }
body.skypage .article .post-sec h2 { margin: 0; }
/* the kicker's class name collides with the home page's section rule; no padding here, so heading and text start level */
body.skypage .article h2 .sec { padding: 0; margin: 0 0 12px; }
body.skypage .article .post-head { position: sticky; top: 88px; grid-row: 1; grid-column: 1; align-self: start; }
body.skypage .article .post-body { grid-row: 1; grid-column: 2; }
/* FAQ: a question stays put until the next question pushes it out. The space between sections lives inside the answer's grid row (padding on .post-body, not on the section), so a question's sticky range reaches the next question's top edge and the push is contact, not a jump across empty space. */
body.skypage .article.faq .post-sec { position: relative; padding: 0; border-top: 0; }
body.skypage .article.faq .post-sec::after { content: ""; position: absolute; left: 0; right: 0; bottom: clamp(40px, 5vw, 68px); border-top: 1px solid var(--line-2); }
body.skypage .article.faq .post-sec:last-of-type::after { display: none; }
body.skypage .article.faq .post-body { padding-bottom: calc(2 * clamp(40px, 5vw, 68px)); }
body.skypage .article.faq .post-sec:last-of-type .post-body { padding-bottom: 0; }
body.skypage .article .post-sec-wide { display: block; border-top: 0; padding-top: 0; }
body.skypage .article .post-body > :first-child { margin-top: 0; }
body.skypage .article .post-body > :last-child { margin-bottom: 0; }
body.skypage .article .post-wide { grid-column: 1 / -1; }
body.skypage .article .post-wide > figure { margin-top: 8px; }
@media (max-width: 860px) {
  body.skypage .article .post-sec { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.skypage .article .post-head { position: static; grid-column: 1; grid-row: 1; }
  body.skypage .article .post-body { grid-column: 1; grid-row: 2; }   /* one column on a phone: heading above its text */
}
body.skypage .article .post-body > p, body.skypage .article .post-body > ul > li, body.skypage .article .post-body > ol > li { font-family: var(--font-serif); color: var(--text); }
body.skypage .article .post-body .pipeline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
body.skypage .article .post-body .pipeline .step { min-width: 0; padding: 14px 14px; }
body.skypage .article .post-body .pipeline .v { font-size: 17px; overflow-wrap: anywhere; }
@media (max-width: 860px) { body.skypage .article .post-body .pipeline { grid-template-columns: minmax(0, 1fr); } }
body.skypage .article .formula .note { margin-top: 16px; }
/* the harness figure: full column width, on a light plate with a hairline instead of a black rule */
body.skypage .article .post-wide { margin-top: 12px; }
body.skypage .article .post-wide figure.runflow-figure { width: 100%; max-width: none; margin: 0; padding: 18px; background: #fff; border: 1px solid var(--line-2) !important; }
body.skypage .article .post-wide .runflow-img { border: 0; }
