/* ===== Blog ===== */
.blog-hero { text-align: center; padding-block: 4rem 2.5rem; }
.blog-hero .lead { margin-inline: auto; }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(74, 82, 35, .35); }
.post-card__img { overflow: hidden; aspect-ratio: 16 / 9; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.post-card:hover .post-card__img img { transform: scale(1.06); }
.post-card__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.6rem 1.75rem 1.75rem; flex-grow: 1; }
.post-card__tag { align-self: flex-start; padding: .3rem .75rem; border-radius: 999px; background: var(--sage); color: var(--olive); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.post-card h2, .post-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.25; color: var(--ink); margin: 0; }
.post-card p { font-size: .95rem; flex-grow: 1; }
.post-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .82rem; color: var(--text); }
.post-card__more { color: var(--olive); font-weight: 500; }

.blog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; padding-bottom: 5rem; }
.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card--featured .post-card__img { aspect-ratio: auto; min-height: 340px; }
.post-card--featured .post-card__body { justify-content: center; padding: 2.5rem; }
.post-card--featured h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }

/* Single post */
.post__head { max-width: 820px; text-align: center; padding-block: 3.5rem 2.25rem; }
.post__back { display: inline-flex; gap: .4rem; margin-bottom: 1.75rem; font-size: .88rem; color: var(--olive); }
.post__back:hover { text-decoration: underline; }
.post__head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.post__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .7rem; font-size: .88rem; color: var(--text); }
.post__meta span + span::before { content: "·"; margin-right: .7rem; color: var(--olive); }

.post__cover { max-width: 1000px; }
.post__cover-img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; }
.post__cover-img img { width: 100%; height: 100%; object-fit: cover; }

.post__body { max-width: 720px; padding-block: 3rem 1rem; font-size: 1.06rem; line-height: 1.8; }
.post__body > * + * { margin-top: 1.15rem; }
.post__lead { font-size: 1.22rem; line-height: 1.7; color: var(--ink); }
.post__body h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 2.75rem; }
.post__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink); margin-top: 1.75rem; }
.post__body ul, .post__body ol { padding-left: 1.4rem; display: grid; gap: .6rem; }
.post__body li::marker { color: var(--olive); font-weight: 500; }
.post__body strong { color: var(--ink); font-weight: 500; }
.post__body blockquote { margin-block: 2.25rem; padding: 1.5rem 1.75rem; background: var(--sage); border-left: 3px solid var(--olive); border-radius: 0 16px 16px 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; color: var(--ink); }
.post__note { margin-top: 2.5rem !important; padding: 1rem 1.25rem; border: 1px dashed var(--line); border-radius: 12px; font-size: .88rem; line-height: 1.6; }

.post__cta { max-width: 820px; margin-block: 3rem; padding: 2.75rem 2rem; text-align: center; background: var(--olive); color: #eef0e2; border-radius: var(--radius); }
.post__cta h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.post__cta p { max-width: 30rem; margin: 0 auto 1.75rem; }
.post__cta .btn-row { justify-content: center; }
.post__cta .btn--solid { background: var(--cream); color: var(--olive); }
.post__cta .btn--solid:hover { background: #fff; }
.post__cta .btn--outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.post__cta .btn--outline:hover { background: rgba(255, 255, 255, .12); }

.post__more { padding-block: 1rem 5rem; }
.post__more > h2 { text-align: center; margin-bottom: 2rem; }
.post__more .blog-list { padding-bottom: 0; }

@media (max-width: 860px) {
  .blog-list { grid-template-columns: 1fr; }
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__img { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card--featured .post-card__body { padding: 1.6rem 1.75rem 1.75rem; }
}
@media (max-width: 560px) {
  .post__body { font-size: 1rem; }
  .post__lead { font-size: 1.1rem; }
  .post__meta { font-size: .8rem; }
  .post__cta { padding: 2.25rem 1.25rem; }
}
.anim .post-card.is-in:hover { transform: translateY(-6px); }

/* Category filter */
.blog-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; }
.blog-filter button { padding: .6rem 1.2rem; font: inherit; font-size: .9rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: .25s; }
.blog-filter button:hover { border-color: var(--olive); }
.blog-filter button.is-active { background: var(--olive); border-color: var(--olive); color: #fff; }
.blog-empty { text-align: center; padding-block: 2rem; }
.post-card[hidden] { display: none !important; }
.post-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.blog-list.is-filtered .post-card--featured { grid-column: auto; display: flex; }
.blog-list.is-filtered .post-card--featured .post-card__img { min-height: 0; aspect-ratio: 16 / 9; }
.blog-list.is-filtered .post-card--featured .post-card__body { padding: 1.6rem 1.75rem 1.75rem; }
.blog-list.is-filtered .post-card--featured h2 { font-size: 1.5rem; }

/* Article tables */
.post__table { overflow-x: auto; margin-block: 1.75rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.post__table table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.post__table th { text-align: left; padding: .9rem 1rem; background: var(--sage); color: var(--ink); font-weight: 500; }
.post__table td { padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.post__table tr:nth-child(even) td { background: #fbf9f5; }

/* Article FAQ + sources */
.post__faq { margin-top: 1.5rem; }
.post__faq .faq__item summary { font-size: 1rem; }
.post__faq .faq__item p { font-size: .98rem; line-height: 1.7; }
.post__sources { margin-top: 2.75rem !important; padding: 1.5rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.post__sources h2 { font-size: 1.3rem; margin: 0 0 .75rem; }
.post__sources ol { font-size: .88rem; line-height: 1.55; gap: .45rem; }
.post__sources a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.post__body p a, .post__body li a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .post__table table { font-size: .85rem; } .post__table th, .post__table td { padding: .7rem; } }
