/* The blog's lists and articles. The container, the page header and the theme
   are shared (site-shell.css), so these colours are the theme's tokens. */
.eyebrow, .meta { font: 12px/1.6 var(--sans); letter-spacing: .06em; }
.eyebrow { text-transform: uppercase; color: var(--label); }
h1, h2, h3, p { margin-top: 0; }

/* The list of posts */
.post-list { max-width: 820px; margin: 0; padding: 0 0 70px; list-style: none; }
.post-card { padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.reading-guide { margin-bottom: 34px; border: 1px solid var(--line); border-top: 2px solid var(--focus); border-radius: 8px; background: var(--panel); }
.reading-guide-head, .reading-guide-follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px clamp(14px, 3vw, 24px); }
.reading-guide h2, .archive-heading { font: 400 28px/1.2 var(--serif); }
.reading-guide h2 { margin: 0; }
.archive-heading { margin: 0 0 16px; }
.reading-guide-groups { padding-inline: clamp(14px, 3vw, 24px); }
.reading-guide details { border-top: 1px solid var(--line); }
.reading-guide summary { padding-block: 11px; cursor: pointer; font: 600 14px/1.5 var(--sans); }
.reading-guide summary::marker { color: var(--focus); }
.reading-guide ol { margin: 0 0 14px; padding-inline-start: 2.25em; line-height: 1.7; }
.reading-guide-rss, .reading-guide-follow a { font: 600 13px/1.5 var(--sans); text-underline-offset: 3px; }
.reading-guide-follow { border-top: 1px solid var(--line); }
.reading-guide-follow p { margin: 0; color: var(--muted); font: 14px/1.5 var(--sans); }
.reading-guide a:focus-visible, .reading-guide summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.post-list li:first-child .post-card { padding-top: 6px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--muted); letter-spacing: 0; }
.meta .topic { color: var(--label); }
.post-card h2 { margin: 14px 0 12px; font: 400 32px/1.2 var(--serif); letter-spacing: -.015em; }
.post-card h2 a { text-decoration: none; }
.post-card p { max-width: 62ch; margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.read { font: 12px/1.5 var(--sans); text-decoration: none; }
.read span { padding-left: 8px; color: var(--label); }
.empty { padding: 40px 0; color: var(--muted); }

/* The left column, as the manual's (document.css): search, then this post's
   contents, the topics and the feeds, in one block that stays in view. */
.blog-rail .rail-stack { position: sticky; top: var(--head-space); display: flex; flex-direction: column; }
.doc-layout > .blog-rail .doc-search { position: relative; top: auto; }
.doc-layout > .blog-rail nav { position: static; max-height: none; overflow: visible; margin-bottom: 18px; }
.blog-rail nav a { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; }
.blog-rail nav a[aria-current="page"] { background: var(--selected); border-left-color: var(--focus); color: var(--ink); }
.rail-label { padding: 6px 0 8px 12px; color: var(--metadata); font: 10px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.rail-count { color: var(--metadata); }

/* An article */
.article-column { min-width: 0; max-width: 720px; padding: 0 0 80px; }
.article-body { min-width: 0; font: 16px/1.85 var(--sans); }
.article-body p { margin: 0 0 24px; }
.article-body p, .article-body li { color: var(--prose); }
.article-body .lead { color: var(--ink); font-size: inherit; line-height: inherit; }
.article-body h2 { margin: 46px 0 20px; font: 400 32px/1.2 var(--serif); }
.article-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.article-body a:hover { color: var(--focus); text-decoration-color: currentColor; }
.article-body blockquote { margin: 35px 0; padding: 0 0 0 25px; border-left: 2px solid var(--label); font: inherit; }
.article-body blockquote p { margin: 0; color: var(--ink); }
.article-body code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--overlay); font: 13px var(--mono); }
.article-body pre { max-width: 100%; margin: 27px 0; padding: 20px 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); line-height: 1.7; tab-size: 2; }
.article-body pre code { padding: 0; border: 0; border-radius: 0; background: none; font: 13px/1.7 var(--mono); white-space: pre; }
.article-body pre:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.article-body .code-viewer { margin: 27px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--inset); }
.article-body .code-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); background: var(--panel); font: 12px/1.4 var(--mono); }
.article-body .code-viewer__name { color: var(--ink); }
.article-body .code-viewer__language { margin-left: 10px; color: var(--metadata); text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.article-body .code-viewer__copy { padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--overlay); color: var(--muted); font: 11px/1.4 var(--sans); cursor: pointer; }
.article-body .code-viewer__copy:hover { border-color: var(--focus); color: var(--ink); }
.article-body .code-viewer__copy:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.article-body .code-viewer pre { max-height: min(68vh, 560px); margin: 0; padding: 14px 0 16px; border: 0; border-radius: 0; background: transparent; counter-reset: code-line; }
.article-body .code-viewer pre code { display: block; min-width: max-content; font-size: 13px; line-height: 1.65; }
.article-body .code-line { display: block; min-height: 1.65em; padding-right: 24px; white-space: pre; counter-increment: code-line; }
.article-body .code-line::before { content: counter(code-line); display: inline-block; box-sizing: border-box; width: 3.6em; padding-right: 1.1em; color: var(--metadata); text-align: right; user-select: none; }
.article-body .code-token--keyword { color: var(--focus); }
.article-body .code-token--string { color: var(--success); }
.article-body .code-token--comment { color: var(--metadata); }
.article-body .code-token--number { color: var(--active); }
.article-body .code-token--name { color: var(--ink); }
:root[data-theme="terminal-mono"] .article-body .code-token--keyword { color: #ff7890; }
.article-body ul, .article-body ol { margin: 0 0 25px; padding-left: 1.4em; }
.article-body li + li { margin-top: 10px; }
.article-body .callout { margin: 35px 0; padding: 20px 23px; border-left: 2px solid var(--label); background: var(--panel); font-size: inherit; line-height: inherit; }
.article-body .callout strong { color: var(--ink); }
.article-body .further { margin-top: 42px; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.article-video { margin: 36px 0 42px; }
.article-video video { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: var(--inset); }
.article-video figcaption { margin-top: 12px; color: var(--muted); font: 12px/1.65 var(--sans); }
.article-video img { display: block; max-width: 100%; height: auto; }
.article-video figcaption code { font-size: 11px; }
.sequence { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 30px 0; padding: 20px 14px; border: 1px solid var(--line); background: var(--panel); font: 11px/1.5 var(--sans); text-align: center; }
.sequence span { flex: 1; }
.sequence b { color: var(--label); font-weight: 400; }
.related { padding: 33px 0 55px; border-top: 1px solid var(--line); }
.related .eyebrow { margin-bottom: 18px; }
.related a { font: 400 32px/1.2 var(--serif); text-decoration: none; }
.related p { max-width: 62ch; margin: 12px 0 0; color: var(--muted); }

/* On a phone the column sits above the posts: search, then each list as a row. */
@media (max-width: 900px) {
  .doc-layout > .blog-rail { display: block; margin-bottom: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .blog-rail .rail-stack { position: static; max-height: none; overflow: visible; }
  .doc-layout > .blog-rail nav { flex-direction: row; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
  .blog-rail nav a { padding: 6px 10px; border: 1px solid var(--line); border-left-width: 2px; }
  .blog-rail .rail-label { padding-left: 0; }
  .blog-rail .search-results { width: 100%; }
  .doc-layout > .blog-rail nav[aria-label="Article contents"] { display: none; }
  .blog-rail .rail-label:has(+ nav[aria-label="Article contents"]) { display: none; }
  /* An article's text comes first; the column follows it. */
  .doc-layout:has(> .article-column) { display: flex; flex-direction: column; }
  .article-column, .article-column .related { padding-bottom: 24px; }
  .doc-layout:has(> .article-column) > .blog-rail { order: 1; margin: 0; padding: 22px 0 6px; border-top: 1px solid var(--line); border-bottom: 0; }
}
@media (max-width: 480px) {
  .post-card h2 { font-size: 30px; }
  .sequence { gap: 5px; padding: 15px 8px; font-size: 10px; }
}

.article-illustration { margin:32px 0; }
.article-illustration img { display:block; width:100%; height:auto; border-radius:4px; }
