/* Blog index, archives, and search. */
.blog-index { padding: 82px 0 96px; background: var(--paper); }
.blog-index-head { max-width: 720px; margin-bottom: 48px; }
.blog-index-head h1 { max-width: 14ch; }
.blog-index-intro { max-width: 58ch; font-size: 1.12rem; line-height: 1.65; color: var(--body); }
.blog-index-intro p { margin: 0; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.blog-card:hover { border-color: var(--cyan); }
.blog-card-media {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--paper);
}
.blog-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 12px; color: var(--teal); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.blog-card h2 { max-width: none; margin: 0 0 10px; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.03em; }
.blog-card-body > p { margin: 0 0 18px; color: var(--body); }
.blog-card-more { margin-top: auto; color: var(--navy); font-weight: 750; }
.blog-card-more::after { content: " →"; }
.blog-card:hover .blog-card-more { color: var(--teal); }
.blog-empty { margin: 0; color: var(--muted); }

.blog-pagination { margin-top: 48px; }
.blog-pagination .page-numbers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.blog-pagination .page-numbers li { margin: 0; }
.blog-pagination a.page-numbers,
.blog-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.blog-pagination a.page-numbers:hover { color: var(--white); background: var(--teal); border-color: var(--teal); }
.blog-pagination span.page-numbers.current { color: var(--white); background: var(--navy); border-color: var(--navy); }

@media (max-width: 960px) {
  .blog-index { padding-top: 66px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

.blog-index.is-align-center .blog-index-head,
.blog-feed.is-align-center .blog-index-head { margin-left: auto; margin-right: auto; text-align: center; }
.blog-index.is-align-center .blog-index-head h1,
.blog-feed.is-align-center .blog-index-head h2,
.blog-index.is-align-center .blog-index-intro,
.blog-feed.is-align-center .blog-index-head .eyebrow { margin-left: auto; margin-right: auto; }
.blog-index-intro p + p { margin-top: 12px; }
.blog-card-meta > * + *::before { content: "·"; margin: 0 10px; color: var(--rule); font-weight: 500; }
.blog-badge { position: absolute; top: 14px; left: 14px; padding: 6px 10px; color: var(--white); background: var(--navy); border-radius: 999px; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.blog-rows { display: flex; flex-direction: column; }
.blog-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.blog-row-media { position: relative; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--paper); border-radius: 18px; }
.blog-row-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; }
.blog-row.is-stacked { grid-template-columns: 1fr; gap: 20px; align-items: start; }
.blog-row h2 { max-width: none; margin: 0 0 12px; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.15; }
.blog-row-body > p { margin: 0 0 16px; color: var(--body); }

.has-sidebar .blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.blog-main { min-width: 0; }
.blog-index.is-cards.has-sidebar .blog-grid,
.blog-feed.is-cards.has-sidebar .blog-grid { grid-template-columns: 1fr 1fr; }

.blog-sidebar { position: static; }
.blog-sidebar.is-sticky { position: sticky; top: 96px; }
.blog-side-block { margin: 0 0 22px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.blog-side-block h2 { margin: 0 0 14px; color: var(--teal); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.blog-search { display: flex; gap: 8px; }
.blog-search label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.blog-search input[type="search"] { flex: 1; min-width: 0; height: 44px; padding: 0 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.blog-search .btn { width: auto; flex: 0 0 auto; }
.blog-side-cats { list-style: none; margin: 0; padding: 0; }
.blog-side-cats li { border-top: 1px solid var(--line); }
.blog-side-cats a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--ink); text-decoration: none; }
.blog-side-cats a span { color: var(--muted); }
.blog-side-cats a:hover { color: var(--teal); }
.blog-side-post { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.blog-side-thumb { display: block; position: relative; width: 84px; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--paper); border-radius: 8px; }
.blog-side-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; }
.blog-side-post strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.blog-side-post small { color: var(--muted); font-size: .78rem; }
.blog-side-post:hover strong { color: var(--teal); }

.post-editorial { padding: 72px 0 12px; }
.post-editorial h1 { max-width: 18ch; margin-bottom: 0; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.post-editorial-copy .eyebrow { margin: 0 0 12px; }
.post-editorial-lead { max-width: 62ch; margin: 16px 0 0; font-size: 1.08rem; line-height: 1.65; }
.post-editorial.is-focused .post-editorial-inner { max-width: 760px; }
.post-editorial-figure { margin: 28px 0 0; overflow: hidden; border-radius: var(--radius); }
.post-editorial-inner > .post-editorial-figure:first-child,
.post-editorial.is-in-column > .post-editorial-figure:first-child { margin-top: 0; }
.post-editorial-figure + .post-editorial-copy { margin-top: 28px; }
.post-editorial-figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.post-editorial.is-in-column { padding: 0 0 12px; }
.blog-single-body.has-sidebar { padding: 28px 0 48px; }
.blog-single-body:not(.has-sidebar) { padding: 0; }
.blog-single-body.has-sidebar .blog-main .shell { width: 100%; }
.blog-single-body.has-sidebar .blog-main .article-body { max-width: none; }
.blog-single-body .article-section { padding-top: 28px; padding-bottom: 8px; }
.blog-single-body.has-sidebar .article-section { padding-top: 12px; }
.blog-single-body .article-body h2 { max-width: 28em; }
.article-table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-body th,
.article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body th { background: var(--cyan-soft); color: var(--navy); }

.blog-related h2 { max-width: 16ch; }
.blog-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 88px; }
.blog-pager-link { display: flex; flex-direction: column; gap: 8px; min-height: 100%; padding: 22px; color: inherit; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.blog-pager-link span { color: var(--teal); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.blog-pager-link strong { color: var(--ink); font-size: 1.15rem; line-height: 1.3; }
.blog-pager-link.is-next { text-align: right; }
.blog-pager-link:hover { border-color: var(--cyan); }

@media (max-width: 960px) {
  .has-sidebar .blog-layout,
  .blog-index.is-cards.has-sidebar .blog-grid,
  .blog-feed.is-cards.has-sidebar .blog-grid,
  .blog-row { grid-template-columns: 1fr; }
  .blog-sidebar,
  .blog-sidebar.is-sticky { position: static; }
  .blog-row { gap: 18px; }
}

@media (max-width: 700px) {
  .blog-index { padding: 50px 0 72px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-index-head h1,
  .post-editorial h1 { max-width: none; }
  .blog-pager { grid-template-columns: 1fr; }
  .blog-pager-link.is-next { text-align: left; }
  .post-editorial { padding-top: 48px; }
  .blog-search { flex-direction: column; }
  .blog-search .btn { width: 100%; }
}
