/* ==========================================================================
   Blog template (posts + blog index). Module 02 tokens. Body components
   (prose, cards, buttons) are styled by sections.css, which now also covers
   pages that carry .post-hero.
   ========================================================================== */
.post-hero { background: #14181C; color: #F6F4EF; font-family: 'Barlow', Arial, sans-serif; padding: 32px 0 40px; }
.post-crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; line-height: 1.4; }
.post-crumbs li { display: inline-flex; align-items: center; gap: 8px; color: #B8C1C8; }
.post-crumbs li + li::before { content: "\203A"; color: #B8C1C8; }
.post-crumbs a { display: inline-block; padding: 6px 0; color: #B8C1C8; text-decoration: underline; text-underline-offset: 3px; }
.post-crumbs a:hover { color: #F6F4EF; }
.post-crumbs li[aria-current="page"] { color: #F6F4EF; }
.post-hero .post-hero__title { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: 0; color: #F6F4EF; margin: 0 0 12px; max-width: 26em; text-wrap: balance; }
.post-meta { margin: 0 0 24px; font-size: 15px; line-height: 1.5; color: #B8C1C8; }
.post-meta a { color: #B8C1C8; text-decoration: underline; text-underline-offset: 3px; }
.post-meta a:hover { color: #F6F4EF; }
.post-hero .bc-hero__cta { display: flex; flex-wrap: wrap; gap: 8px; }
body:has(.post-hero) main .post-hero .bc-btn--outline, body:has(.post-hero) main .post-hero .bc-btn--ghost { color: #F6F4EF; border-color: #F6F4EF; background: transparent; }
body:has(.post-hero) main .post-hero .bc-btn--outline:hover, body:has(.post-hero) main .post-hero .bc-btn--ghost:hover { background: #F6F4EF; color: #14181C; }
body:has(.post-hero) main .post-hero .bc-btn:focus-visible { outline-color: #FFB400; }
@media (min-width: 768px) { .post-hero { padding: 48px 0 56px; } .post-hero .post-hero__title { font-size: 42px; } }
@media (min-width: 1024px) { .post-hero { padding: 56px 0 64px; } .post-hero .post-hero__title { font-size: 48px; } }

.post-image { padding: 24px 0 0; background: #FFFFFF; }
.post-image figure { margin: 0; }
.post-image img { display: block; width: 100%; max-width: none; aspect-ratio: 16 / 9; max-height: 480px; object-fit: cover; border-radius: 8px; }
@media (min-width: 1024px) { .post-image { padding-top: 48px; } }

/* table of contents */
.post-toc { background: #F2F0EB; border: 1px solid #D9D5CB; border-radius: 8px; padding: 24px; margin: 24px 0; max-width: 42rem; font-family: 'Barlow', Arial, sans-serif; }
.post-toc .post-toc__title { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.2; color: #14181C; margin: 0 0 12px; }
.post-toc ol, .post-toc ul { margin: 0; padding-left: 1.3rem; }
.post-toc ul { margin: 4px 0 8px; list-style: disc; }
.post-toc li { margin: 6px 0; font-size: 17px; line-height: 1.5; color: #1E252B; }
.post-toc ul li { font-size: 16px; }
.post-toc a { color: #14181C; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 2px 0; }
.post-toc a:hover { color: #8A5A00; }
.post-toc a:focus-visible { outline: 3px solid #14181C; outline-offset: 2px; }
body:has(.post-hero) main :is(h2, h3)[id] { scroll-margin-top: 96px; }

/* related articles, category chips, cards meta */
.post-related__cat, .post-card__meta { margin: 0 0 8px; font-size: 15px; line-height: 1.4; color: #4A545C; }
.post-cats { padding: 24px 0 0; background: #FFFFFF; }
.post-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-cats a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid #D9D5CB; border-radius: 999px; background: #FFFFFF; color: #14181C; font-family: 'Barlow', Arial, sans-serif; font-size: 17px; font-weight: 600; text-decoration: none; transition: background-color 150ms ease-out, color 150ms ease-out; }
.post-cats a:hover { background: #14181C; color: #F6F4EF; }
.post-cats a:focus-visible { outline: 3px solid #14181C; outline-offset: 2px; }
.post-cat__service { margin: 24px 0 0; font-size: 17px; }
body:has(.post-hero) main .post-cat__service a { font-weight: 600; }
body:has(.post-hero) main .post-related .bc-grid__card h3 { margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .post-cats a { transition: none; } }
