/* The blog: the article page, and the two pieces of the list that site.css does not have. Linked only from the
   pages the server draws for the blog (platform/routes/blog.ts). Colours are the tokens of site.css, never raw. */

/* ---- the list */
.card.post, .card.post-lead { padding: 0; } /* the cover runs to the card's edge at every width */
.post-foot { gap: 8px 16px; flex-wrap: wrap; }
.post-foot .more { padding: 0; font-size: 14px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }

/* ---- an article: its heading */
.art-head { padding-bottom: 40px; }
.art-head .eyebrow > span { margin: 0 4px; color: var(--faint); }
.art-head h1 { max-width: 920px; font-size: 44px; line-height: 50px; overflow-wrap: break-word; }
.art-head .lead { max-width: 760px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 14px; line-height: 22px; color: var(--muted); }
.art-meta > span:first-child { color: var(--text-2); font-weight: 500; }

/* ---- its text: the long-text layout of the legal pages (the list of sections on the left, 760px of text) */
.art-main { padding: 0 0 72px; }
.art-main > .wrap::before { content: ''; grid-column: 1 / -1; display: block; height: 1px; margin-bottom: 40px; background: var(--line); }
.art-main > .wrap.legal { row-gap: 0; }
.art-body { max-width: 760px; min-width: 0; color: var(--text-2); overflow-wrap: break-word; }
.art-body > * + * { margin-top: 16px; }
.art-body h2, .art-body h3 { color: var(--text); scroll-margin-top: 24px; }
.art-body h2 { margin-top: 44px; font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
.art-body h3 { margin-top: 32px; font-size: 18px; line-height: 26px; }
.art-body h2 + *, .art-body h3 + * { margin-top: 10px; }
.art-body > :first-child { margin-top: 0; }
.art-body ul, .art-body ol { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; }
.art-body ul { list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body li { padding-left: 4px; }
.art-body li::marker { color: var(--muted); }
.art-body strong { color: var(--text); font-weight: 600; }
.art-body a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- what follows it */
.art-more { padding-top: 0; }
.art-more .more { padding-bottom: 0; }

@media (max-width: 900px) {
  .art-head h1 { font-size: 36px; line-height: 42px; }
  .art-main { padding-bottom: 56px; }
  .art-main > .wrap::before { margin-bottom: 32px; }
  .art-main > .wrap.legal { gap: 0; }
  .art-main .toc { margin-bottom: 32px; }
}
@media (max-width: 640px) {
  .art-head { padding-bottom: 28px; }
  .art-head h1 { font-size: 30px; line-height: 36px; }
  .art-main { padding-bottom: 40px; }
  .art-main > .wrap::before { margin-bottom: 24px; }
  .art-main .toc { margin-bottom: 24px; padding: 16px 20px; }
  .art-body h2 { margin-top: 36px; font-size: 22px; line-height: 30px; }
}
