/* Blog index (/blog) and posts (/post/<slug>/). Desktop at 1440px, mobile at 390px. */

.js [data-anim="rise"] { transform: translateY(34px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0s), transform 1s cubic-bezier(.16, 1, .3, 1) var(--d, 0s); }
.js [data-anim="rise"].is-in { transform: none; }

.bl-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 100px; background: var(--yellow); font-size: 13.5px; line-height: 1; white-space: nowrap; }
a.bl-chip:hover { background: var(--peach); }

/* ---------- Index hero ---------- */
.bl-hero { position: relative; overflow: clip; }
.bl-hero__stage { height: auto; padding: 160px 101px 70px; text-align: center; }
.bl-hero__script { display: inline-block; }
.bl-hero h1 { margin-top: 10px; }
.bl-hero__lead { margin: 18px auto 0; max-width: 600px; }
.bl-hero__clover { position: absolute; width: 170px; right: 90px; top: 110px; }
.bl-hero__dome { position: absolute; width: 300px; left: -40px; bottom: -40px; }

/* ---------- Featured ---------- */
.bl-featured__stage { height: auto; padding: 20px 101px 70px; }
.bl-feat { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; padding: 22px; border-radius: 36px; background: var(--white); box-shadow: 0 30px 60px -45px rgba(40, 71, 52, .5); }
.bl-feat__img { display: block; height: 440px; border-radius: 26px; overflow: hidden; }
.bl-feat__img img, .bl-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.bl-feat:hover .bl-feat__img img, .bl-card:hover .bl-card__img img { transform: scale(1.05); }
.bl-feat__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-right: 34px; }
.bl-feat__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.bl-feat__title { font-size: 44px; line-height: 52px; }
.btn.bl-feat__btn { margin-top: 8px; height: 48px; padding: 0 28px; }

/* ---------- Filters + grid ---------- */
.bl-list__stage, .bl-related__stage { height: auto; padding: 10px 101px 110px; }
.bl-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.bl-filter { height: 42px; padding: 0 18px; border-radius: 100px; background: var(--white); font-size: 15px; transition: background-color .25s ease, color .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
.bl-filter:hover { transform: translateY(-2px); }
.bl-filter.is-on { background: var(--green); color: var(--cream); }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.bl-card { display: flex; flex-direction: column; gap: 14px; }
.bl-card[hidden] { display: none; }
.bl-card.is-filtered-in { animation: bl-in .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes bl-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bl-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: var(--peach); }
.bl-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; opacity: .9; }
.bl-card__title { font-size: 26px; line-height: 33px; }
.bl-card__excerpt { font-size: 16.2px; line-height: 25.92px; opacity: .85; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bl-card__more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.bl-card__more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.bl-card:hover .bl-card__more svg { transform: translateX(5px); }
.bl-empty { margin-top: 20px; font-size: 18px; }

/* ---------- CTA ---------- */
.bl-cta { background: var(--green); color: var(--cream); }
.bl-cta__stage { height: auto; padding: 100px 101px 110px; text-align: center; }
.bl-cta .t-script { color: var(--peach); display: inline-block; }
.bl-cta h2 { margin-top: 10px; }
.bl-cta .btn { margin-top: 34px; }

/* ---------- Post ---------- */
.bp { position: relative; overflow-x: clip; }
.bp-head { position: relative; }
.bp-s, .bp-g, .bp-cover__dome, .bp-cover__ring { position: absolute; pointer-events: none; }
.bp-s img, .bp-g img, .bp-cover__dome img, .bp-cover__ring img { display: block; width: 100%; height: auto; }
.bp-s--clover { width: 150px; right: 7%; top: 120px; }
.bp-s--half { width: 120px; left: 9%; top: 300px; }
.bp-s--arch { width: 80px; left: 16%; top: 150px; }
.bp-cover__dome { z-index: 0; width: 340px; left: -110px; bottom: -70px; }
.bp-cover__ring { z-index: 2; width: 150px; right: -40px; top: -48px; }
/* Shapes drifting down the gap between the article and the sidebar */
.bp-gutter { position: absolute; top: 0; bottom: 0; left: 760px; width: 150px; pointer-events: none; }
.bp-g { left: 50%; transform: translateX(-50%); }
.bp-g--1 { top: 9%; width: 78px; }
.bp-g--2 { top: 27%; width: 64px; margin-left: -34px; }
.bp-g--3 { top: 46%; width: 92px; }
.bp-g--4 { top: 65%; width: 52px; margin-left: 24px; }
.bp-g--5 { top: 84%; width: 70px; margin-left: -20px; }

.bp-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 4px; pointer-events: none; }
.bp-progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.bp-head__stage { height: auto; max-width: 940px; padding: 150px 0 40px; text-align: center; }
.bp-back { margin-bottom: 22px; }
.bp-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.bp-title { margin-top: 20px; font-size: 58px; line-height: 68px; }
.bp-meta { margin-top: 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 15px; opacity: .8; }
.bp-cover { height: auto; max-width: 1238px; }
.bp-cover { position: relative; }
.bp-cover__img { position: relative; z-index: 1; width: 100%; height: 560px; object-fit: cover; border-radius: 36px; }
.bp-body-wrap { position: relative; height: auto; max-width: 1238px; display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; padding: 70px 0 100px; }
.bp-body { font-size: 18.9px; line-height: 31px; }
.bp-body > * + * { margin-top: 20px; }
.bp-body h2, .bp-body h3 { margin-top: 46px; font-size: 30px; line-height: 38px; }
.bp-body h4 { margin-top: 30px; font-size: 22.5px; line-height: 29px; }
.bp-body h2 + *, .bp-body h3 + *, .bp-body h4 + * { margin-top: 14px; }
.bp-body ul, .bp-body ol { padding-left: 26px; }
.bp-body ul { list-style: disc; }
.bp-body ol { list-style: decimal; }
.bp-body li + li { margin-top: 8px; }
.bp-body li::marker { color: var(--gold); }
.bp-body strong { font-weight: 600; }
.bp-body a { text-decoration: underline; text-decoration-color: rgba(40, 71, 52, .35); text-underline-offset: 4px; }
.bp-body a:hover { text-decoration-color: currentColor; }
.bp-body blockquote { padding: 24px 30px; border-radius: 24px; background: var(--yellow); }
.bp-fig { margin: 36px 0; }
.bp-fig img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 28px; }
.bp-table { margin: 36px 0; overflow-x: auto; border-radius: 24px; border: 1px solid rgba(40, 71, 52, .18); -webkit-overflow-scrolling: touch; }
.bp-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; line-height: 23px; }
.bp-table th, .bp-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid rgba(40, 71, 52, .12); }
.bp-table thead th { border-top: 0; background: var(--green); color: var(--cream); font-weight: 600; }
.bp-table tbody th { font-weight: 600; background: rgba(233, 219, 156, .35); }
.bp-table tbody tr:nth-child(even) td { background: rgba(147, 187, 194, .10); }
.bp-aside { position: relative; }
.bp-rail { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - 130px); transition: top .3s linear; }
.header-hidden .bp-rail { top: 30px; max-height: calc(100vh - 50px); }
.bp-toc { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 24px 22px 20px; border-radius: 26px; background: var(--white); }
.bp-toc__label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.bp-toc__time { letter-spacing: 0; text-transform: none; font-size: 13px; }
.bp-toc__progress { display: block; flex: none; margin-top: 12px; height: 3px; border-radius: 3px; background: rgba(40, 71, 52, .1); overflow: hidden; }
.bp-toc__progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.bp-toc ol { position: relative; min-height: 0; overflow-y: auto; margin: 14px 0 0; padding: 0 0 0 1px; list-style: none; border-left: 1px solid rgba(40, 71, 52, .15); scrollbar-width: none; }
.bp-toc ol::-webkit-scrollbar { display: none; }
.bp-toc__bar { position: absolute; left: -1.5px; top: 0; width: 3px; height: 0; border-radius: 3px; background: var(--green); opacity: 0; transition: transform .45s cubic-bezier(.16, 1, .3, 1), height .45s cubic-bezier(.16, 1, .3, 1), opacity .3s ease; }
.bp-toc__bar.is-on { opacity: 1; }
.bp-toc li a { display: block; padding: 6px 0 6px 14px; font-size: 14.5px; line-height: 19px; opacity: .6; transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1); }
.bp-toc li.bp-toc__h3 a { padding-left: 14px; }
.bp-toc li a:hover { opacity: 1; }
.bp-toc li a.is-current { opacity: 1; transform: translateX(3px); }
.bp-aside__card { position: relative; flex: none; padding: 22px 24px 24px; border-radius: 26px; background: var(--peach); overflow: hidden; }
.bp-aside__clover { position: absolute; right: -24px; top: -24px; width: 84px; animation: lx-spin 40s linear infinite; }
.bp-aside__card .t-script { position: relative; display: inline-block; font-size: 22px; line-height: 28px; }
.bp-aside__title { margin-top: 6px; font-size: 22px; line-height: 28px; }
.bp-aside__text { margin-top: 8px; font-size: 14.5px; line-height: 22px; }
.btn.bp-aside__btn { margin-top: 14px; width: 100%; height: 44px; }
.bp-body h2, .bp-body h3 { scroll-margin-top: 110px; }
.bl-related { background: var(--cream); }
.bl-related__stage { padding-top: 90px; }
.bl-related h2 { margin-bottom: 40px; }

@media (prefers-reduced-motion: reduce) { .bp-aside__clover { animation: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 1023px) {
  .bl-hero__stage { padding: 50px 30px 36px; }
  .bl-hero__clover { width: 90px; right: -20px; top: 20px; }
  .bl-hero__dome { width: 160px; left: -40px; bottom: -30px; }
  .bl-featured__stage { padding: 10px 30px 44px; }
  .bl-feat { grid-template-columns: 1fr; gap: 20px; padding: 14px; border-radius: 28px; }
  .bl-feat__img { height: 230px; border-radius: 20px; }
  .bl-feat__body { padding: 0 8px 12px; gap: 12px; }
  .bl-feat__title { font-size: 28px; line-height: 34px; }
  .bl-list__stage, .bl-related__stage { padding: 0 30px 70px; }
  .bl-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -30px 28px; padding: 0 30px 4px; scrollbar-width: none; }
  .bl-filters::-webkit-scrollbar { display: none; }
  .bl-filter { flex: none; }
  .bl-grid { grid-template-columns: 1fr; gap: 36px; }
  .bl-card__title { font-size: 23px; line-height: 29px; }
  .bl-cta__stage { padding: 64px 30px 70px; }
  .bl-cta .btn { width: 330px; }
  .bp-head__stage { padding: 40px 30px 26px; }
  .bp-title { font-size: 34px; line-height: 41px; }
  .bp-cover { padding: 0 30px; }
  .bp-s--clover { width: 80px; right: -18px; top: 16px; }
  .bp-s--half { width: 64px; left: -8px; top: auto; bottom: 10px; }
  .bp-s--arch { display: none; }
  .bp-cover__dome { width: 170px; left: -50px; bottom: -40px; }
  .bp-cover__ring { width: 80px; right: 10px; top: -26px; }
  .bp-gutter { display: none; }
  .bp-cover__img { height: 240px; border-radius: 24px; }
  .bp-body-wrap { display: block; padding: 36px 30px 60px; }
  .bp-body { font-size: 16.5px; line-height: 27px; }
  .bp-body h2, .bp-body h3 { font-size: 24px; line-height: 30px; margin-top: 36px; }
  .bp-fig img { border-radius: 20px; }
  .bp-aside { margin-top: 44px; }
  .bp-rail { position: static; max-height: none; }
  .bp-toc { display: none; }
  .bl-related__stage { padding-top: 56px; }
}
