/* Loaded last: the wider footer, and the parts shared by one kind of page (docs, use cases, articles, comparisons, sign-in). */

/* ---------- footer: five columns now ---------- */
footer.site .inner { grid-template-columns: 1.25fr repeat(4, 1fr); }
@media (max-width: 1000px) { footer.site .inner { grid-template-columns: repeat(3, 1fr); } footer.site .inner > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 620px) { footer.site .inner { grid-template-columns: 1fr 1fr; } }

/* ---------- docs pages: short sections, one after another ---------- */
.doc section { padding: 0 0 30px; margin: 0 0 30px; }
.doc-head { margin-bottom: 26px; }
.doc pre { font-size: 14px; }
.doc .codewrap pre { max-height: 460px; }
@media (max-width: 700px) { .doc th, .doc td { padding-left: 10px; padding-right: 10px; min-width: 104px; } .doc .tablewrap table th:first-child, .doc .tablewrap table td:first-child { padding-left: 12px; } .doc td code { overflow-wrap: anywhere; } }
.doc .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.doc .langs [role="tabpanel"] > p { margin: 12px 0 0; }
.docnav-h { margin-top: 14px; }

/* ---------- use-case pages ---------- */
.uc .lead { margin-bottom: 22px; }
.uc .crumbs { margin-bottom: 16px; }
.uc #products h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 22px; }
.uc-limit { margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 46em; }
.uc .snip pre { margin: 0; min-width: 0; overflow-x: auto; }
/* the drawings */
.art .p { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.art .l { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.art .d { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 5; }
.art .q, .art .v, .art .o { fill: var(--surface-2); } .art .k { fill: var(--accent); }
.art text { font: 500 15px var(--font); fill: var(--ink); } .art .m { fill: var(--muted); } .art .b { font-weight: 650; } .art .w { fill: var(--accent-ink); font-weight: 650; }
.art .s rect { fill: var(--surface); stroke: currentColor; } .art .s text { font: 760 19px var(--display); fill: currentColor; }
.art .allow { color: var(--ok); } .art .review { color: var(--warn); } .art .deny { color: var(--seal); }
/* two small prints side by side */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 420px; }
.pair figure { margin: 0; text-align: center; } .pair figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }

/* ---------- articles ---------- */
.learn article h2 { margin-top: 30px; }
.learn article li { margin: 6px 0; }
.learn .byline, .learn .reviewed { color: var(--muted); font-size: 15px; }
.learn .does { margin: 34px 0 0; padding: 20px 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.learn .does h2 { margin: 0 0 6px; }
.learn .does p { margin: 0 0 8px; }

/* ---------- comparison pages ---------- */
main.cmp h2 { margin-top: 40px; }
main.cmp .tablewrap + .note { margin-top: 12px; }
main.cmp td:first-child { font-weight: 600; }

/* ---------- sign-in with a provider (log in, sign up) ---------- */
.oauth-list { display: grid; gap: 10px; margin: 18px 0 0; }
.oauth-list a.btn { justify-content: center; gap: 10px; }
.oauth-list svg { width: 18px; height: 18px; flex: none; }
.oauth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--muted); font: 600 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
