/* Blog: article typography, cards and pager. Loaded only by /blog/ pages. */
.post a{color:inherit;text-decoration:none}
.post h3 a:hover{color:var(--primary)}
.post img{display:block}
/* Card text padding: site.min.css has the .post card but not its body (that rule is only in the
   unused inner.css), so without this the text sat flush against the card border. */
.post__body{padding:24px;display:flex;flex-direction:column;gap:10px;flex:1}
.post__body .ptag{align-self:flex-start}
.post__date{margin-top:auto;font-size:13px;color:var(--muted,#5b6670)}
.blog-empty{text-align:center;font-size:17px}
.blog-more{text-align:center;margin:0 0 28px}

/* Article: the guide itself plus a sticky "On this page" rail. The rail drops below the
   article once there is no room for two columns. */
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:34px;align-items:start;max-width:1180px;margin:0 auto}
.article{min-width:0;padding:36px 40px}
.article__side{position:sticky;top:100px;min-width:0}
.widget{border:1px solid var(--line);border-radius:20px;background:#fff;padding:18px 20px;box-shadow:var(--shadow)}
.widget__title{margin:0 0 12px;font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3,#868c91)}
.toc{list-style:none;counter-reset:toc;margin:0;padding:0;display:grid;gap:2px}
.toc li{counter-increment:toc}
.toc a{display:flex;gap:10px;align-items:flex-start;padding:7px 8px;border-radius:10px;font-size:14.5px;line-height:1.4;color:var(--ink-2,#4a5055);text-decoration:none}
.toc a::before{content:counter(toc);flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#eaf1fe;color:var(--primary);font-size:11.5px;font-weight:800}
.toc a:hover,.toc a.is-active{background:#f1f7ff;color:var(--primary)}
.toc a.is-active::before{background:var(--primary);color:#fff}
/* guides that number their own headings get dots, so the rail never contradicts the article */
.toc--plain li{counter-increment:none}
.toc--plain a::before{content:"";align-self:center;width:7px;height:7px;background:#b9cdea}
.toc--plain a.is-active::before{background:var(--primary)}
/* jumping to an anchor has to clear the sticky 76px header */
.article__body h2,.article__body h3{scroll-margin-top:110px}
.byline{display:inline-flex;align-items:center;gap:8px}
.byline__avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none}
.byline__avatar--initials{display:grid;place-items:center;background:var(--primary);color:#fff;font-size:11px;font-weight:800}
.article:hover{translate:none!important;box-shadow:var(--shadow)}
.article__meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 22px;font-size:14px;color:var(--muted,#5b6670)}
.article__cover{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:18px;margin:0 0 26px}
.article__body{font-size:17px;line-height:1.75}
.article__body>*+*{margin-top:1em}
.article__body h2{font-size:26px;line-height:1.25;margin-top:1.6em}
.article__body h3{font-size:20px;line-height:1.3;margin-top:1.4em}
.article__body ul,.article__body ol{padding-left:1.3em}
.article__body li+li{margin-top:.45em}
.article__body a{color:var(--primary);text-decoration:underline;text-underline-offset:2px}
.article__body img{border-radius:14px;height:auto}
.article__body blockquote{margin:1.2em 0;padding:4px 0 4px 18px;border-left:4px solid var(--primary)}
.article__body code{font-size:.9em;background:#f1f4f8;padding:2px 6px;border-radius:6px}
.article__body pre{overflow-x:auto;background:#16191a;color:#f1f4f8;padding:16px 18px;border-radius:12px;font-size:14px}
.article__body pre code{background:none;padding:0}
.article__body table{width:100%;border-collapse:collapse;font-size:15px}
.article__body th,.article__body td{border:1px solid var(--line);padding:8px 10px;text-align:left}
/* Comparison tables and source lists in the guides moved from static pages: wide tables scroll
   sideways on a phone instead of pushing the page out. */
.article__body .post-tbl{overflow-x:auto;-webkit-overflow-scrolling:touch}
.article__body .post-tbl table{min-width:560px}
.article__body .post-sources{font-size:15px;color:var(--muted,#5b6670)}
.article__body .callout{padding:14px 16px;border-radius:14px;background:#f1f7ff;border:1px solid #d6e6ff;font-size:15.5px}

/* Tag list and author box at the end of an article */
.article__tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.article__tags .ptag{text-transform:none;letter-spacing:0;font-weight:700;background:#eef1f5;color:var(--ink-2,#4a5055)}
.authorbox{display:flex;gap:16px;align-items:flex-start;margin-top:26px;padding:20px;border:1px solid var(--line);border-radius:18px;background:#f7fbff}
.authorbox__avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:none}
.authorbox p{margin:0;font-size:15px;color:var(--ink-2,#4a5055)}
.authorbox p+p{margin-top:8px}
.authorbox__name{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;font-weight:800;color:var(--ink)}
.authorbox__name span{font-weight:600;font-size:13px;color:var(--ink-3,#868c91)}
@media (max-width:640px){.authorbox{flex-direction:column;gap:12px}}

.pager{display:flex;justify-content:center;gap:8px;margin-top:40px}.pager a,.pager span{min-width:42px;height:42px;display:grid;place-items:center;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:700;text-decoration:none;color:inherit}
.pager span{background:var(--primary);border-color:var(--primary);color:#fff}

@media (max-width:1000px){
  .article-layout{grid-template-columns:1fr;gap:22px}
  .article__side{position:static}
}
@media (max-width:640px){
  .article{padding:24px 20px}
  .article__body{font-size:16px}
  .posts{grid-template-columns:1fr}
}
.crumbs a+a::before{content:"/";margin-right:8px;opacity:.5}
/* The site title-cases every heading; post titles are already written in the right case (".pk" must not become ".Pk") */
.page-banner h1,.post h3,.blog-more,.article__body h2,.article__body h3{text-transform:none}
.article__body ul{list-style:disc}
.article__body ol{list-style:decimal}
.article__body li::marker{color:var(--primary);font-weight:700}
