/* Blog list, blog posts and the About page. Posts and About reuse the docs layout (protocol.css);
   this file adds the list page and the parts of an article the docs pages do not have. */

/* List page */
.blog { padding-bottom: 24px; }
.blog-hero { padding: 48px 0 28px; max-width: 760px; }
.blog-hero h1 { margin-top: 10px; }
.blog-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; font-size: .95rem; }
.blog-links a { color: var(--ink); text-decoration-color: var(--lime); text-decoration-thickness: 3px; }

.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.post-card:hover { border-color: #c9c6bd; box-shadow: 0 10px 30px rgba(22, 24, 29, .06); }
.post-card-body { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.post-card h2 { margin: 0; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.02em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card h2 a:focus-visible { outline: none; }
.post-card:focus-within { box-shadow: 0 0 0 3px var(--link-soft), 0 0 0 1px var(--link); }
.post-desc { margin: 0; color: #3b3f47; }
.post-tags { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.post-tags span { font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.post-tags span + span::before { content: "· "; }
.post-meta { margin: auto 0 0; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }

.post-card.is-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 18px; }
.post-card.is-featured:not(:has(.post-cover)) { grid-template-columns: 1fr; }
.post-card.is-featured .post-card-body { padding: 30px 32px; justify-content: center; }
.post-card.is-featured h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.post-cover { display: block; background: #ecebe5; }
.post-cover img { display: block; width: 100%; height: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.blog-empty { background: var(--card); border: 1px dashed #cfccc3; border-radius: var(--r); padding: 28px; max-width: 760px; }
.blog-empty p { margin: 0 0 10px; }
.blog-empty a { margin-right: 18px; }
@media (max-width: 760px) {
  .post-card.is-featured { grid-template-columns: 1fr; }
  .post-card.is-featured .post-card-body { padding: 22px 22px 20px; }
}

/* Article details */
.docs-crumb a { color: inherit; text-decoration: none; }
.docs-crumb a:hover { text-decoration: underline; background: none; }
.post-byline { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: #5b626b; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.post-byline .post-meta { margin: 0; padding: 0; }
.post-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; background: var(--info-soft); color: var(--info); font-size: 14px; }
.post-body h2 { color: #18242d; margin: 36px 0 11px; font: 660 clamp(23px, 2vw, 28px)/1.32 var(--sans); letter-spacing: -.035em; scroll-margin-top: 84px; }
.post-body h3 { color: #1e2b36; margin: 26px 0 8px; font-size: 1.12rem; scroll-margin-top: 84px; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 14px; }
.post-body li { margin: 4px 0; }
.post-body blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--lime); color: #465363; }
.post-body figure { margin: 22px 0; }
.post-body img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.post-body figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.post-back { margin-top: 18px; font-size: 14px; }

/* Tables in posts and the About facts */
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.docs-article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.docs-article th, .docs-article td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.docs-article tr:last-child th, .docs-article tr:last-child td { border-bottom: 0; }
.docs-article thead th { background: #f4f3ee; font-size: 13px; color: #465363; font-weight: 650; }
table.facts th { width: 34%; color: #465363; font-weight: 600; background: #faf9f6; }
