/* Blog listing + article styles. Loaded after styles.css on blog pages. */
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* Listing hero */
.blog-hero { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 110px) 0 20px; text-align: center; }
.blog-hero .hero__field::after { display: none; }
.blog-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 18px; }
.blog-hero .lead { margin-inline: auto; }
.blog-list { padding-top: 40px; }

/* Cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .45s var(--bounce), box-shadow .3s, border-color .3s; }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: #BFD0F0; }
.post-card__media { aspect-ratio: 16 / 9; background: var(--mist); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.post-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--slate); font-size: .88rem; }
.post-card__meta .tag { margin: 0; }
.post-card h2 { font-size: 1.35rem; margin: 4px 0 2px; }
.post-card p { color: var(--slate); margin: 0; }
.post-card__more { margin-top: 8px; color: var(--cobalt); font-weight: 700; }
.post-card__more .arrow { display: inline-block; transition: transform .35s var(--bounce); }
.post-card:hover .post-card__more .arrow { transform: translateX(4px); }
.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 100%; }
.post-card--featured .post-card__body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.post-card--featured h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

/* Article */
.wrap--post { width: min(740px, 100% - 48px); margin-inline: auto; }
.wrap--wide { width: min(1000px, 100% - 48px); margin-inline: auto; }
.post__head { padding: clamp(40px, 6vw, 72px) 0 0; background: linear-gradient(var(--mist), #fff 70%); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--slate); margin-bottom: 22px; }
.crumbs a { text-decoration: none; color: var(--cobalt); font-weight: 600; }
.post__head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -.035em; margin-bottom: 18px; }
.post__dek { font-size: 1.22rem; color: var(--slate); }
.byline { display: flex; align-items: center; gap: 14px; margin: 26px 0 36px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline strong { display: block; }
.byline span { color: var(--slate); font-size: .9rem; }
.post__hero { margin: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.post__body { padding: clamp(48px, 6vw, 72px) 0 20px; font-size: 1.12rem; line-height: 1.75; }
.post__body h2 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); margin: 2em 0 .6em; }
.post__body h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
.post__body p, .post__body li { color: #2A3448; }
.post__body ol, .post__body ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.post__body li { margin-bottom: .6em; }
.post__body li::marker { color: var(--cobalt); font-weight: 800; }
.post__body a { color: var(--cobalt); }
.pull { font-size: 1.35rem; font-weight: 800; color: var(--ink) !important; letter-spacing: -.01em; border-left: 4px solid var(--cobalt); padding: 4px 0 4px 20px; margin: 1.4em 0; }
.post__fig, .post__video { margin: 2.2em 0; }
.post__fig img, .post__video video { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
figcaption { font-size: .9rem; color: var(--slate); text-align: center; margin-top: 12px; }
.steps-list { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: var(--mist); border-radius: var(--r-md); margin-bottom: 12px; }
.steps-list li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 10px; background: var(--cobalt); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .95rem; transform: rotate(-6deg); }
.post__cta { margin: 3em 0 2em; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--cobalt), var(--blue)); color: #fff; text-align: center; }
.post__cta h2 { color: #fff; margin: 0 0 .4em; }
.post__cta p { color: #DCE7FF; }
.sources { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2em; }
.sources h2 { font-size: 1rem; margin: 0 0 .5em; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.sources li { font-size: .9rem; line-height: 1.55; color: var(--slate); }
.more { padding: 0 0 70px; }
.back { display: inline-block; font-weight: 700; color: var(--cobalt); text-decoration: none; margin-left: max(0px, calc((100% - 740px) / 2)); }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .post__body { font-size: 1.05rem; }
}

/* Article images: keep the true 16:9 shape (height attribute was stretching them) and keep them compact */
.post__hero img, .post__fig img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.wrap--wide { width: min(860px, 100% - 48px); }
.post__fig { max-width: 600px; margin-inline: auto; }
