/* Blog index and article pages. */
.blog { background: var(--white); }

/* index hero */
.blog-hero {
  padding: 64px 20px 40px; text-align: center; color: var(--white);
  background:
    radial-gradient(circle at 30% 50%, #60dbe0 0%, 17.5%, rgba(96,219,224,0) 35%),
    radial-gradient(circle at 73% 48%, #08b4ba 0%, 17.5%, rgba(8,180,186,0) 35%),
    radial-gradient(circle at 70% 7%, #007b80 0%, 17.5%, rgba(0,123,128,0) 35%),
    var(--teal);
}
.blog-hero .section-title { margin-top: 8px; }
.blog-hero p { margin-top: 12px; font-family: var(--f-text); font-size: 18px; }
/* same number of topics in every row: 4 + 4 on desktop, 2 per row on phones */
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 900px; margin: 24px auto 0; }
.chips a {
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.18);
  color: var(--white); font-family: var(--f-button); font-size: 14px; text-decoration: none;
}
.chips a:hover { background: rgba(255,255,255,.3); }

.blog-cluster { max-width: 1180px; margin: 0 auto; padding: 48px 20px 8px; scroll-margin-top: 16px; }
.blog-cluster h2 { font-family: var(--f-display); font-size: clamp(26px, 2.4vw, 34px); color: var(--teal); margin-bottom: 20px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: 16px; color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 10px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.post-card__img {
  display: block; aspect-ratio: 16 / 7; background-size: cover; background-position: center;
  position: relative;
}
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.post-card__title { font-family: var(--f-title); font-size: 18px; line-height: 1.35; }
.post-card__desc { font-family: var(--f-body); font-size: 14px; line-height: 1.5; color: #6b6f71; }
.post-card__meta { margin-top: auto; font-family: var(--f-text); font-size: 13px; color: var(--teal); }
.blog-disclaimer { max-width: 1180px; margin: 40px auto 0; padding: 0 20px 56px; font-size: 13px; color: #909496; text-align: center; }

/* article hero: title on the right, illustration on the left */
.post-hero { background: var(--soft); border-bottom: 1px solid #e6eaec; }
.post-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center; gap: 40px;
  max-width: 1180px; margin: 0 auto; padding: 40px 20px;
}
.post-hero__art { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 8px 30px rgba(10,79,82,.08); }
.crumbs { font-family: var(--f-text); font-size: 14px; color: #6b6f71; }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-hero h1 { margin-top: 12px; font-family: var(--f-display); font-size: clamp(26px, 3vw, 40px); line-height: 1.25; color: var(--ink); }
.post-hero__meta { margin-top: 12px; font-family: var(--f-text); font-size: 14px; color: #6b6f71; }

/* article body */
.post { max-width: 820px; margin: 0 auto; padding: 32px 20px 24px; }
.notice {
  margin-bottom: 28px; padding: 16px 18px; border-radius: 12px;
  background: #fff8db; border: 1px solid #ffde59; font-family: var(--f-body); font-size: 15px; line-height: 1.6;
}
.notice__title { font-family: var(--f-title); font-size: 16px; margin-bottom: 6px; }
.notice ul { margin: 0; padding-right: 20px; list-style: disc; }
.notice li + li { margin-top: 6px; }

.prose { font-family: var(--f-body); font-size: 17px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 36px; font-family: var(--f-title); font-size: 24px; line-height: 1.3; color: var(--teal); }
.prose h3 { margin-top: 26px; font-family: var(--f-title); font-size: 19px; }
.prose ul, .prose ol { padding-right: 22px; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--teal); text-underline-offset: 2px; }
.prose strong { font-family: var(--f-title); font-weight: 400; }
.prose blockquote {
  margin: 28px 0 0; padding: 14px 18px; border-right: 4px solid var(--teal); background: var(--soft);
  border-radius: 8px; font-size: 14px; color: #6b6f71;
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid #e3e6e8; text-align: right; vertical-align: top; }
.prose th { background: var(--soft); font-family: var(--f-title); font-weight: 400; }

.related { max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; }
.related h2 { font-family: var(--f-display); font-size: 26px; color: var(--teal); margin-bottom: 18px; }

@media (max-width: 750px) {
  .post-hero__inner { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px; }
  .post-hero__art { order: -1; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips a { font-size: 13px; padding: 6px 8px; }
  .prose { font-size: 16px; }
  .post { padding-top: 24px; }
  .prose th, .prose td { padding: 8px; font-size: 14px; }
}
