/* Blog pages share the homepage header, footer, closing band, palette and type (home.css).
   Index: featured card plus a two-column list. Articles: one 720px reading column. */
.blog-hero { padding-block: 84px 52px; border-bottom: 1px solid var(--line); }
.blog-hero h1 { max-width: 1040px; margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
.blog-hero h1 span { color: var(--forest); }
.blog-hero p { max-width: 560px; margin: 24px 0 0; color: var(--body); font-size: 17px; line-height: 1.7; }

.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 0; padding: 56px 0 104px; list-style: none; }
.post-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 30px; background: var(--paper); border: 1px solid var(--card-line); border-radius: var(--radius-card); transition: transform 160ms ease, border-color 160ms ease; }
.post-card:hover { transform: translateY(-3px); border-color: var(--forest); }
.post-card:focus-within { border-color: var(--forest); }
.post-card :is(h2, h3) { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.post-card :is(h2, h3) a { color: inherit; text-decoration: none; }
/* The whole card opens the article; the heading link stays the only tab stop. */
.post-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card :is(h2, h3) a:focus-visible { outline: none; box-shadow: none; }
.post-card:has(:is(h2, h3) a:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 3px var(--forest); }
.post-card p { margin: 0; color: var(--body); font-size: 15px; line-height: 1.75; }
.post-card .read-more { margin-top: auto; padding-top: 10px; color: var(--forest); font-size: 14px; font-weight: 700; }
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 48px; padding: 44px; background: var(--yellow-pale); border-color: transparent; }
.post-card.featured h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.post-card.featured > div { display: flex; flex-direction: column; gap: 16px; }
.post-card.featured .post-meta { color: var(--body); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 12px; }
.post-meta time { font-variant-numeric: tabular-nums; }
.post-tag { color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Example forecast panel on the featured card. Decorative; the article explains it. */
.mini-forecast { padding: 22px; background: var(--paper); border-radius: var(--radius-card); }
.mini-forecast small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.mini-forecast strong { display: block; margin-top: 4px; color: var(--ink); font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mini-forecast strong span { margin-inline-start: 8px; color: var(--muted); font-family: var(--font-ui); font-size: 13px; font-weight: 500; letter-spacing: 0; }

.range-rows { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.range-rows li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 64px; align-items: center; gap: 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.range-rows li > span:last-child { color: var(--muted); text-align: end; }
.range-track { position: relative; height: 12px; background: var(--forest-wash); border-radius: 6px; }
.range-track i { position: absolute; inset-block: 0; inset-inline-start: var(--low); width: calc(var(--high) - var(--low)); background: var(--yellow); border-radius: 6px; }
.range-track b { position: absolute; top: -3px; inset-inline-start: var(--mid); width: 3px; height: 18px; background: var(--forest); border-radius: 2px; transform: translateX(-50%); }

.article-shell { width: min(720px, calc(100% - 64px)); margin-inline: auto; padding-block: 60px 88px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--forest); font-size: 14px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-header { margin-top: 18px; }
.article-header h1 { margin: 14px 0 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; }
.article-lead { margin: 24px 0 0; color: var(--body); font-size: 19px; line-height: 1.7; }
.article-header .post-meta { margin-top: 28px; padding-block: 16px; border-block: 1px solid var(--line); font-size: 13px; }
.article-body { margin-top: 40px; color: var(--body); font-size: 17px; line-height: 1.8; }
.article-body h2 { margin: 52px 0 14px; color: var(--ink); font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-inline-start: 22px; }
.article-body li + li { margin-top: 8px; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a { color: var(--forest); text-underline-offset: 3px; }
.callout { margin: 32px 0; padding: 22px 24px; background: var(--yellow-soft); border-inline-start: 4px solid var(--yellow); border-radius: 0 var(--radius-control) var(--radius-control) 0; }
[dir="rtl"] .callout { border-radius: var(--radius-control) 0 0 var(--radius-control); }
.callout p:last-child { margin: 0; }
.article-figure { margin: 32px 0; padding: 24px; background: var(--paper); border: 1px solid var(--card-line); border-radius: var(--radius-card); }
.article-figure figcaption { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.table-scroll { overflow-x: auto; }
.article-figure table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.article-figure th, .article-figure td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.article-figure thead th { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.article-figure td { text-align: end; }
.article-figure tbody th { color: var(--ink); font-weight: 500; white-space: normal; }
.article-figure tr.highlight td, .article-figure tr.highlight th { color: var(--forest); font-weight: 700; }
.article-figure .range-rows li { grid-template-columns: 40px minmax(0, 1fr) 96px; font-size: 13px; }

.more-posts { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.more-posts h2 { margin: 0 0 20px; color: var(--ink); font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.more-posts .post-list { padding: 0; }
.more-posts .post-card { padding: 24px; }
.more-posts .post-card h3 { margin: 0; font-size: 20px; }

/* Scripts other than Latin fall back to system fonts and need more line height. */
html:is(:lang(ar), :lang(ml), :lang(kn)) :is(.blog-hero h1, .article-header h1, .post-card :is(h2, h3), .article-body h2, .more-posts h2) { font-weight: 700; line-height: 1.35; }

@media (max-width: 767px) {
  .blog-hero { padding-block: 52px 36px; }
  .post-list { grid-template-columns: 1fr; gap: 18px; padding-block: 36px 64px; }
  .post-card { padding: 24px; }
  .post-card.featured { grid-template-columns: 1fr; gap: 28px; padding: 26px; }
  .article-shell { width: min(720px, calc(100% - 40px)); padding-block: 32px 64px; }
  .article-lead { font-size: 17px; }
  .article-body h2 { margin-top: 40px; font-size: 24px; }
  .article-figure { padding: 18px; }
}
@media (max-width: 560px) {
  .article-shell { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card:hover { transition: none; transform: none; }
}
