/* Shared prose for the docs and the use-case pages: headings, text, lists, code,
   tables, buttons, call-to-action rows, closing block. Area-specific components
   live in docs.css / use-cases.css. Header, footer and page title are chrome.css. */
:root { --col: 1120px; }
main { width: 100%; padding: 0 0 var(--s7); }
main h1 { max-width: 22ch; }
main :is(p, ul, ol, dd) { max-width: 48em; }
main ol.steps, main .cta, main .closing p, main .close p { max-width: none; }

h2 { font: 600 1.35rem/1.35 var(--sans); letter-spacing: -.005em; margin: var(--s7) 0 var(--s3); padding-top: var(--s5); border-top: 1px solid var(--border); }
h3 { font: 600 1.05rem/1.4 var(--sans); margin: var(--s5) 0 var(--s1); }
h1, h2, h3, .cta span { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
p, li { margin: 0 0 var(--s3); }
ul, ol { padding-left: 22px; margin: 0 0 var(--s3); }
strong { font-weight: 600; }
.lede { color: var(--text-dim); font-size: 1.2rem; line-height: 1.55; max-width: 38em; margin: var(--s4) 0 0; }
.note { color: var(--text-dim); font-size: .94rem; }
code { font: .9em var(--mono); color: var(--accent); }
pre { font: .9rem/1.6 var(--mono); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; margin: 0 0 var(--s4); }
pre code { color: var(--text); font-size: 1em; }

table { width: 100%; border-collapse: collapse; margin: var(--s2) 0 var(--s5); font-size: .95rem; }
th, td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
tr:last-child > td { border-bottom: 0; }
td:last-child, th:last-child { padding-right: 0; }
td a { display: inline-block; padding: 4px 0; margin: -4px 0; }

.btn { display: inline-block; background: var(--accent); color: #04140b; font: 600 .95rem var(--sans); letter-spacing: .02em; text-decoration: none; padding: 13px 22px; border-radius: 10px; transition: background .15s; }
.btn:hover { background: var(--accent-hi); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin: var(--s6) 0 var(--s2); }
.cta span { color: var(--text-faint); font: .85rem var(--mono); }

.closing, .close { text-align: center; margin-top: 88px; }
.closing h2, .close h2 { border: 0; padding: 0; margin: 0 auto var(--s3); max-width: 20ch; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.12; letter-spacing: -.02em; }
.closing p, .close p { color: var(--text-dim); font-size: 1.1rem; margin: 0 auto; }
.closing .cta, .close .cta { justify-content: center; margin-top: var(--s5); }

/* short copy wraps by whole sentence (.s); hyphenated words stay together (.nw) */
.s { display: inline-block; text-wrap: pretty; }
.nw { white-space: nowrap; }

@media (max-width: 640px) {
  .lede { font-size: 1.1rem; }
  h2 { font-size: 1.2rem; margin-top: var(--s7); }
  th, td { padding-right: 10px; font-size: .92rem; }
  .btn { width: 100%; text-align: center; }
}
