/* Blog */
.blog-hero { padding-bottom: 24px; }
.blog-hero h1 { max-width: 22ch; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.blog-cats a { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; }
.blog-cats a:hover { border-color: var(--ink); color: var(--ink); }
.blog-cats a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.post-media:hover img { transform: scale(1.03); }
.post-ph { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(80% 90% at 80% 0%, #1B3B6B 0%, var(--ink) 70%); }
.post-ph .logo { width: 46%; height: auto; opacity: .9; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .86rem; margin-bottom: 10px; }
.post-meta a.tag { text-decoration: none; }

.post-lead { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 28px; }
@media (min-width: 900px) { .post-lead { grid-template-columns: 1.15fr 1fr; } .post-lead .post-media { aspect-ratio: auto; min-height: 340px; } }
.post-lead-body { padding: 26px; align-self: center; }
@media (min-width: 900px) { .post-lead-body { padding: 36px; } }
.post-lead h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.post-lead h2 a, .post-card h3 a { text-decoration: none; }
.post-lead h2 a:hover, .post-card h3 a:hover { color: var(--accent); }

.post-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.15rem; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-date { margin: auto 0 0; font-size: .82rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; color: var(--muted); }
.empty-blog { text-align: center; max-width: 620px; margin: 0 auto; }

/* Article */
.preview-bar { background: #FFF2CC; color: #6B4A00; padding: 10px 0; font-size: .92rem; }
.post-head { max-width: 860px; padding-top: 28px; }
.post-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.post-cover { max-width: 1100px; margin: 8px auto 0; }
.post-cover img { width: 100%; border-radius: 20px; aspect-ratio: 16 / 8; object-fit: cover; box-shadow: var(--shadow); }
.post-layout { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 64px; max-width: 1100px; }
@media (min-width: 1000px) { .post-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; } .post-aside { position: sticky; top: 90px; align-self: start; } }
.post-toc { margin: 0 0 16px; font-size: .92rem; }
.post-toc li { margin-bottom: 6px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share strong { width: 100%; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.share a, .share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.share button { width: auto; display: inline-flex; gap: 6px; padding: 0 12px; font: 600 .85rem/1 var(--body); }
.post-body { max-width: 720px; min-width: 0; }
.post-body h2 { scroll-margin-top: 90px; }
.post-body h3, .post-body h4 { scroll-margin-top: 90px; }
.post-body img { border-radius: 14px; margin: 1.2em auto; }
.post-body figure { margin: 1.4em 0; }
.post-body blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--green); background: var(--accent-soft); border-radius: 0 12px 12px 0; font-size: 1.08rem; }
.post-body blockquote p { margin: 0; }
.post-body code { background: #EEF1EC; padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-body a { color: var(--accent); }
.post-tags { margin-top: 2em; }
.post-cta { margin-top: 2.4em; padding: 26px; border-radius: 18px; background: var(--ink); color: #fff; display: grid; gap: 16px; }
.post-cta h2 { color: #fff; margin: 0 0 .3em; font-size: 1.5rem; }
.post-cta p { color: #C7D3E2; margin: 0; }
