/* Blog: /blog, /blog/category/<id> and the post pages. Mobile first. */
.blog-page { max-width: 760px; }
.kb-lede { font-size: 1.15rem; color: var(--muted); }

.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 0.95rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--muted); }
.crumbs a { display: inline-block; padding: 8px 0; }
.crumbs [aria-current] { color: var(--muted); padding: 8px 0; overflow-wrap: anywhere; }

.draft-tag { color: var(--red-dark); text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.04em; }

.cat-nav ul { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-nav li { margin: 0; }
.cat-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: 1rem;
}
.cat-nav a:hover, .cat-nav a:focus-visible { border-color: var(--navy); }
.cat-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.post-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.post-card { position: relative; margin: 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.post-card h2 { margin: 4px 0 6px; font-size: 1.3rem; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card:hover, .post-card:focus-within { border-color: var(--navy); }
.post-card h2 a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.post-card p:last-child { margin-bottom: 0; color: var(--muted); }
.post-meta { margin: 0; font-size: 0.95rem; color: var(--muted); }
.post-meta a { position: relative; z-index: 1; color: var(--pine); font-weight: 700; padding: 6px 0; display: inline-block; }
.blog-feed { margin-top: 24px; }

/* A post */
.post-head h1 { margin-bottom: 0.25em; }
.post-head .post-meta { margin-bottom: 1.5em; }
.post h2 { scroll-margin-top: 12px; }

.post-help, .author-box, .post-related { margin-top: 32px; }
.post-help h2, .author-box h2, .post-related h2 { font-size: 1.25rem; margin-top: 0; }
.post-help a { display: inline-block; padding: 6px 0; }
.author-box { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.author-name { margin: 0 0 8px; display: grid; }
.author-name span { color: var(--muted); font-size: 0.95rem; }
.author-box > :last-child { margin-bottom: 0; }

.post-cta {
  display: block; margin-top: 32px; padding: 20px 16px; background: var(--navy); color: #fff;
  border-radius: var(--radius); text-decoration: none; font-size: 1.2rem; line-height: 1.35;
}
.post-cta strong { color: var(--gold); }
.post-cta:hover, .post-cta:focus-visible { background: #1b2d49; color: #fff; outline: 3px solid var(--gold); outline-offset: 2px; }

/* Painted covers. Aspect ratio is set by the img's width/height, so nothing jumps. */
.post-cover { display: block; margin: 0 0 24px; }
.post-cover img, .post-card-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--line); }
.post-card-cover { display: block; margin: -4px 0 12px; }

/* Wide screens: the thumbnail sits beside the text so the list stays short. */
@media (min-width: 800px) {
  .post-card.has-cover { display: grid; grid-template-columns: 240px 1fr; column-gap: 20px; align-items: start; }
  .post-card.has-cover > .post-card-cover { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .post-card.has-cover > :not(.post-card-cover) { grid-column: 2; }
}
