/* blog.css — blog list + article styles */

/* ── Blog Index ───────────────────────────────────────────── */
.bpt-blog-hero {
  padding: calc(64px + 72px) 0 56px;
  background: var(--bpt-bg-light);
}

.bpt-blog-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--bpt-fg-light-primary);
  margin-bottom: 12px;
}

.bpt-blog-hero__sub {
  font-size: 1.0625rem;
  color: var(--bpt-fg-light-secondary);
  max-width: 580px;
}

.bpt-blog-grid {
  padding: 56px 0 96px;
  background: var(--bpt-bg-white);
}

.bpt-blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bpt-blog-card {
  background: var(--bpt-bg-white);
  border-radius: var(--bpt-r-lg);
  border: 1px solid rgba(11,37,69,0.07);
  overflow: hidden;
  transition: box-shadow var(--bpt-transition), transform var(--bpt-transition);
  display: flex;
  flex-direction: column;
}

.bpt-blog-card:hover {
  box-shadow: 0 8px 32px rgba(11,37,69,0.1);
  transform: translateY(-3px);
}

/* List card cover — 16:9, cover crop */
.bpt-blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  height: auto;
  display: block;
}

.bpt-blog-card__body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bpt-blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.bpt-blog-tag {
  padding: 2px 8px;
  background: rgba(13,148,136,0.08);
  color: var(--bpt-teal-aa-light);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.bpt-blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bpt-fg-light-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.bpt-blog-card__summary {
  font-size: 0.875rem;
  color: var(--bpt-fg-light-secondary);
  line-height: 1.65;
  flex: 1;
}

.bpt-blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(11,37,69,0.06);
}

.bpt-blog-card__meta {
  font-size: 0.8rem;
  color: var(--bpt-fg-light-muted);
}

.bpt-blog-card__read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bpt-teal-aa-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Blog Article Structural BEM ──────────────────────────── */
/* article wrapper */
.bpt-blog-article {
  display: block;
}

/* article header section */
.bpt-blog-article__header {
  padding: calc(64px + 72px) 0 0;
  background: var(--bpt-bg-light);
}

.bpt-blog-article__header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}

/* breadcrumb */
.bpt-blog-article__breadcrumb {
  font-size: 0.8rem;
  color: var(--bpt-fg-light-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bpt-blog-article__breadcrumb a {
  color: var(--bpt-teal-aa-light);
  text-decoration: none;
}

/* h1 inside __header-inner handled by parent specificity */
.bpt-blog-article__header h1 {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  color: var(--bpt-fg-light-primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

/* byline */
.bpt-blog-article__byline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--bpt-fg-light-muted);
  margin: 12px 0 28px;
  flex-wrap: wrap;
}

.bpt-blog-article__author {
  font-weight: 600;
  color: var(--bpt-fg-light-secondary);
}

.bpt-blog-article__date {
  color: var(--bpt-fg-light-muted);
}

/* article body wrapper */
.bpt-blog-article__body-wrapper {
  background: var(--bpt-bg-white);
  padding: 24px 0 80px;
}

.bpt-blog-article__body-wrapper .bpt-article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}

/* related section (new naming) */
.bpt-blog-related {
  padding: 56px 0 80px;
  background: var(--bpt-bg-light);
}

.bpt-blog-related__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--bpt-fg-light-primary);
  margin-bottom: 28px;
}

.bpt-blog-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* small card variant for related section */
.bpt-blog-card--small .bpt-blog-card__img {
  aspect-ratio: 16/9;
  object-fit: cover;
  height: auto;
}

/* img-link wrapper */
.bpt-blog-card__img-link {
  display: block;
  overflow: hidden;
}

/* blog index card extras */
.bpt-blog-card__author {
  font-weight: 600;
  color: var(--bpt-fg-light-secondary);
}

.bpt-blog-card__date {
  color: var(--bpt-fg-light-muted);
}

.bpt-blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--bpt-fg-light-secondary);
  line-height: 1.65;
  margin: 8px 0 12px;
  flex: 1;
}

.bpt-blog-card__readmore {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bpt-teal-aa-light);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  margin-top: auto;
}

/* ── Blog Article Page (legacy naming kept for compat) ────── */
.bpt-blog-article-header {
  padding: calc(64px + 72px) 0 40px;
  background: var(--bpt-bg-light);
}

.bpt-blog-article-header .bpt-container {
  max-width: 860px;
}

.bpt-article-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bpt-article-eyebrow .bpt-blog-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
}

.bpt-blog-article-header h1 {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  color: var(--bpt-fg-light-primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.bpt-article-summary {
  font-size: 1.0625rem;
  color: var(--bpt-fg-light-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 720px;
}

.bpt-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--bpt-fg-light-muted);
  flex-wrap: wrap;
}

.bpt-article-meta__author {
  font-weight: 600;
  color: var(--bpt-fg-light-secondary);
}

/* Article cover — natural ratio, no crop */
.bpt-blog-article__cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  max-width: 860px;
  margin: 0 auto;
}

.bpt-article-cover-wrapper {
  background: var(--bpt-bg-white);
  padding: 0 0 40px;
}

.bpt-article-cover-wrapper .bpt-container {
  max-width: 860px;
}

/* Article body */
.bpt-article-layout {
  background: var(--bpt-bg-white);
  padding: 16px 0 80px;
}

.bpt-article-layout .bpt-container {
  max-width: 860px;
}

/* bpt-article-body — shared container, light-top only for blog */
body.bpt-page--light-top .bpt-article-body h2 {
  font-size: 1.4375rem;
  font-weight: 700;
  color: var(--bpt-fg-light-primary);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bpt-bg-science);
}

body.bpt-page--light-top .bpt-article-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bpt-fg-light-primary);
  margin: 28px 0 10px;
}

body.bpt-page--light-top .bpt-article-body p {
  color: var(--bpt-fg-light-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1.0rem;
}

body.bpt-page--light-top .bpt-article-body ul,
body.bpt-page--light-top .bpt-article-body ol {
  margin: 12px 0 16px 24px;
}

body.bpt-page--light-top .bpt-article-body li {
  color: var(--bpt-fg-light-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

body.bpt-page--light-top .bpt-article-body a {
  color: var(--bpt-teal-aa-light);
  text-decoration: underline;
}

body.bpt-page--light-top .bpt-article-body strong {
  color: var(--bpt-fg-light-primary);
  font-weight: 600;
}

body.bpt-page--light-top .bpt-article-body code {
  font-family: var(--bpt-font-mono);
  font-size: 0.875rem;
  background: var(--bpt-bg-science);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--bpt-teal-aa-light);
}

/* Related articles */
.bpt-related-articles {
  padding: 56px 0 80px;
  background: var(--bpt-bg-light);
}

.bpt-related-articles h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--bpt-fg-light-primary);
  margin-bottom: 28px;
}

.bpt-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bpt-related-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bpt-bg-white);
  border-radius: var(--bpt-r-md);
  border: 1px solid rgba(11,37,69,0.07);
  text-decoration: none;
  transition: box-shadow var(--bpt-transition);
}

.bpt-related-card:hover { box-shadow: 0 4px 16px rgba(11,37,69,0.08); }

.bpt-related-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--bpt-r-sm);
  flex-shrink: 0;
}

.bpt-related-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bpt-fg-light-primary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.bpt-related-card__meta {
  font-size: 0.8rem;
  color: var(--bpt-fg-light-muted);
}

@media (max-width: 768px) {
  .bpt-blog-cards { grid-template-columns: 1fr; }
  .bpt-related-grid { grid-template-columns: 1fr; }
  .bpt-blog-article-header { padding: calc(64px + 56px) 0 32px; }
}

@media (max-width: 480px) {
  .bpt-blog-cards { grid-template-columns: 1fr; }
}
