/* ===== BLOG ===== */
.blog-hero {
  background: linear-gradient(135deg, rgba(232,112,90,0.92) 0%, rgba(26,26,46,0.92) 65%, rgba(45,45,68,0.92) 100%);
  padding: calc(72px + var(--space-12)) var(--space-6) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 0.9rem + 3.5vw, 3.2rem);
  font-weight: 700; color: #fff; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.blog-hero__subtitle {
  font-size: var(--text-base); color: rgba(255,255,255,0.72);
  max-width: 620px; margin: 0 auto; line-height: 1.6;
}

.blog-wrap { max-width: 1140px; margin: 0 auto; padding: var(--space-16) var(--space-6); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: var(--space-8);
}

.post-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(26,26,46,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0; transform: translateY(28px);
}
.post-card.visible { opacity: 1; transform: translateY(0); }
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,26,46,0.12);
  border-color: var(--coral-light);
}
.post-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--grey-100); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__tag {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: var(--coral); color: #fff;
  font-size: 0.75rem; font-weight: 600;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
}
.post-card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.post-card__title {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700;
  color: var(--grey-900); line-height: 1.25; margin-bottom: var(--space-3);
}
.post-card__excerpt { font-size: var(--text-sm); color: var(--grey-700); line-height: 1.6; flex: 1; }
.post-card__meta {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-5); font-size: 0.8rem; color: var(--grey-500);
}
.post-card__more { margin-left: auto; color: var(--coral); font-weight: 600; }

/* ===== ARTICLE ===== */
.article-hero {
  background: linear-gradient(135deg, rgba(232,112,90,0.92) 0%, rgba(26,26,46,0.94) 70%);
  padding: calc(72px + var(--space-12)) var(--space-6) var(--space-12);
  position: relative;
}
.article-hero__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.article-hero__tag {
  display: inline-block; background: rgba(255,255,255,0.16); color: #fff;
  font-size: 0.78rem; font-weight: 600; padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full); margin-bottom: var(--space-4);
}
.article-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 0.9rem + 2.8vw, 2.6rem);
  font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: var(--space-4);
}
.article-hero__meta { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.article-wrap { max-width: 760px; margin: 0 auto; padding: var(--space-10) var(--space-6) var(--space-16); }
.back-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--grey-500); text-decoration: none; font-size: var(--text-sm);
  margin-bottom: var(--space-8); transition: color 0.2s;
}
.back-link:hover { color: var(--coral); }

.article-body p { font-size: var(--text-base); line-height: 1.8; color: var(--grey-700); margin-bottom: var(--space-5); }
.article-body h2 {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700;
  color: var(--grey-900); margin-top: var(--space-12); margin-bottom: var(--space-5);
  padding-bottom: var(--space-3); border-bottom: 2px solid var(--coral-pale);
}
.article-body ul { margin: 0 0 var(--space-6) 0; padding: 0; list-style: none; }
.article-body li {
  position: relative; padding-left: var(--space-6); margin-bottom: var(--space-3);
  font-size: var(--text-base); line-height: 1.7; color: var(--grey-700);
}
.article-body li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
}

.article-cta {
  margin-top: var(--space-12); padding: var(--space-8);
  background: var(--coral-pale); border-radius: var(--radius-xl); text-align: center;
}
.article-cta h3 { font-family: var(--font-display); font-size: var(--text-lg); color: var(--grey-900); margin-bottom: var(--space-3); }
.article-cta p { color: var(--grey-700); margin-bottom: var(--space-5); }

.more-posts { max-width: 1140px; margin: 0 auto; padding: 0 var(--space-6) var(--space-16); }
.more-posts__title { font-family: var(--font-display); font-size: var(--text-lg); color: var(--grey-900); margin-bottom: var(--space-6); }

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

.article-image {
  margin: var(--space-8) 0 var(--space-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  box-shadow: 0 18px 40px rgba(26,26,46,0.08);
}
.article-image img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ABA article answer blocks */
.article-summary {
  margin: 0 0 var(--space-7);
  padding: var(--space-5) var(--space-6);
  border: 1px solid rgba(221, 107, 79, .28);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-lg);
  background: var(--coral-light);
  color: var(--grey-800);
  font-size: var(--text-base);
  line-height: 1.75;
}
.article-summary strong { color: var(--grey-900); }
.article-body h3 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  color: var(--grey-900);
  font-size: var(--text-lg);
}
.article-body a:not(.btn) {
  color: var(--coral-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.abc-example {
  margin: var(--space-7) 0 var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.abc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.abc-grid div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--grey-50);
}
.abc-grid strong { color: var(--coral-dark); }
.abc-grid span {
  color: var(--grey-700);
  line-height: 1.6;
}
.abc-example > p:last-child { margin-bottom: 0; }
.article-author {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: var(--space-10) 0 var(--space-8);
  padding: var(--space-5);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: #fff;
}
.article-author img {
  width: 84px;
  height: 108px;
  flex: none;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.article-author span {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--grey-500);
  font-size: var(--text-sm);
}
.article-author strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--grey-900);
  font-family: var(--font-display);
}
.article-author p { margin-bottom: var(--space-2); }
.article-cta .btn {
  white-space: normal;
  height: auto;
  min-height: 48px;
  padding-top: .8rem;
  padding-bottom: .8rem;
  line-height: 1.45;
  text-align: center;
}
@media (max-width: 720px) {
  .abc-grid { grid-template-columns: 1fr; }
  .article-author { align-items: flex-start; }
}
@media (max-width: 480px) {
  .article-author { flex-direction: column; }
}

/* tables in articles (added 2026-10-08) */
.article-body .table-wrap{overflow-x:auto;margin:1.5rem 0;-webkit-overflow-scrolling:touch}
.article-body table{width:100%;border-collapse:collapse;font-size:.95rem;line-height:1.45;margin:1.5rem 0}
.article-body .table-wrap table{margin:0}
.article-body th,.article-body td{padding:.7rem .9rem;text-align:left;vertical-align:top;border-bottom:1px solid rgba(0,0,0,.09)}
.article-body thead th{font-weight:600;background:rgba(0,0,0,.045);border-bottom:2px solid rgba(0,0,0,.14);white-space:normal}
.article-body tbody tr:nth-child(even){background:rgba(0,0,0,.02)}
.article-body td:first-child,.article-body th:first-child{width:46%}
.article-body td:not(:first-child){font-weight:500}
@media (max-width:640px){.article-body table{font-size:.88rem}.article-body th,.article-body td{padding:.55rem .6rem}}
