/* Blog pages (/blog). Uses the design tokens from hc.css, so both themes work. */
/* Grid items default to min-width:auto, which lets a long code line widen the page on phones. */
.hc-article > article, .hc-article > aside { min-width: 0; }
.hc-blog-body { max-width: 72ch; }
.hc-blog-body h2 { scroll-margin-top: 96px; }
.hc-blog-body h3 { font-size: 1.15rem; }
.hc-blog-body img { max-width: 100%; height: auto; }
.hc-blog-body code { font-family: var(--mono); font-size: .88em; padding: .12em .38em; border-radius: 6px; background: var(--s2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.hc-blog-body pre { margin: 1.4em 0; padding: 16px 18px; overflow-x: auto; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line-2); line-height: 1.55; -webkit-overflow-scrolling: touch; }
.hc-blog-body pre code { padding: 0; border: 0; background: none; font-size: .85rem; white-space: pre; overflow-wrap: normal; color: var(--ink); }
.hc-blog-table { margin: 1.4em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.hc-blog-table:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.hc-blog-table table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.45; }
.hc-blog-table th, .hc-blog-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hc-blog-table th { color: var(--ink); background: var(--s1); font-weight: 600; white-space: nowrap; }
.hc-blog-table tr:last-child td { border-bottom: 0; }
.hc-blog-body hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--line); }
.hc-blog-sources { max-width: 72ch; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.hc-blog-sources h2 { font-size: 1.05rem; margin-bottom: 10px; }
.hc-blog-sources ul { margin: 0; padding-left: 1.1em; color: var(--mute); font-size: .92rem; }
.hc-blog-sources li { margin-bottom: .4em; }
.hc-blog-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .9rem; }
.hc-blog-toc a { color: var(--ink-2); text-decoration: none; }
.hc-blog-toc a:hover { color: var(--acc-text); }
.hc-blog-feed { margin: 18px 0 0; font-size: .88rem; color: var(--mute); }
.hc-blog-list .hc-q-meta span { display: inline-flex; gap: 4px; }
/* Hero image under the article header, and figures inside the article body. */
.hc-blog-hero { margin: 4px 0 36px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: #0b0d10; aspect-ratio: 16 / 9; }
.hc-blog-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hc-blog-fig { margin: 1.8em 0; }
.hc-blog-fig img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: #0b0d10; }
.hc-blog-fig figcaption { margin-top: 10px; color: var(--mute); font-size: .86rem; line-height: 1.45; }
/* Blog list cards with a thumbnail on top. */
.hc-blog-card { padding-top: 0; overflow: hidden; }
.hc-blog-thumb { display: block; margin: 0 -24px 8px; aspect-ratio: 16 / 9; background: #0b0d10; border-bottom: 1px solid var(--line); overflow: hidden; }
.hc-blog-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hc-blog-card:hover .hc-blog-thumb img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .hc-blog-thumb img { transition: none; } .hc-blog-card:hover .hc-blog-thumb img { transform: none; } }
@media (max-width: 640px) { .hc-blog-hero { margin-bottom: 24px; border-radius: var(--r); } }
@media (max-width: 960px) { .hc-blog-toc { display: none; } }
