/* ===================================================================
   DTF Station Vietnam — blog (/blog and /vi/blog)

   Rides on assets/design.css: the cards are the design system's `.card`
   with a photograph in the media well, and the article body is the one
   place on the site with long-form prose, so it gets its own measure and
   rhythm here rather than borrowing a component that was not built for
   running text.

   Scoped to .gs like everything else.
   =================================================================== */

/* ---------- index grid ---------- */
.gs .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.gs .blog-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--tint-neutral); border-radius: var(--r-card);
  box-shadow: var(--edge);
  transition: transform .22s ease, box-shadow .22s ease;
}
/* The lift must RESTATE the edge — box-shadow is one property, so a hover
   rule that sets only the lift drops the hairline under the cursor. */
.gs .blog-card:hover { transform: translateY(-3px); box-shadow: var(--edge-hover), var(--shadow-lift); }
.gs .bc-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.gs .bc-img img { width: 100%; height: 100%; object-fit: cover; }
.gs .bc-body { padding: 22px 24px 26px; }
.gs .bc-date {
  font-size: 12px; font-weight: 500; letter-spacing: var(--track-eyebrow);
  text-transform: uppercase; color: var(--ink-faint);
}
.gs .bc-body h3 {
  font-size: 19px; line-height: 1.28; letter-spacing: var(--track-heading);
  margin: 8px 0 8px; text-wrap: balance;
}
.gs .bc-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 900px) { .gs .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gs .blog-grid { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.gs .post-body { max-width: 44rem; margin: 0 auto; }
.gs .post-hero { width: 100%; border-radius: var(--r-card); box-shadow: var(--shadow-card); margin-bottom: 36px; }
.gs .post-body h2 {
  font-size: clamp(24px, 3.2vw, 34px); line-height: 1.14;
  letter-spacing: var(--track-display); margin: 44px 0 14px; text-wrap: balance;
}
.gs .post-body h3 {
  font-size: clamp(19px, 2.4vw, 23px); line-height: 1.25;
  letter-spacing: var(--track-heading); margin: 34px 0 10px;
}
/* 17px over a 44rem measure is roughly 70 characters a line, which is the
   band long-form prose reads fastest in. Deliberately larger than the 14px
   card copy — this is the one place on the site anyone reads at length. */
.gs .post-body p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 18px; }
.gs .post-body ul, .gs .post-body ol { margin: 0 0 18px 22px; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.gs .post-body li { margin-bottom: 8px; }
.gs .post-body img { max-width: 100%; border-radius: var(--r-card); box-shadow: var(--shadow-card); margin: 26px 0; }
.gs .post-body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.gs .post-body strong { color: var(--ink); font-weight: 600; }
.gs .post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.gs .post-body th, .gs .post-body td {
  border-bottom: 1px solid var(--line-soft); padding: 12px 14px;
  text-align: left; color: var(--ink-soft); vertical-align: top;
}
.gs .post-body th { color: var(--ink); font-weight: 500; }
/* Comparison tables in 18 imported posts run 6–10 columns, up to 1,660px on
   a 390px phone, and dragged the whole page sideways with them. On narrow
   screens the table scrolls inside its own box; the page stays still. */
@media (max-width: 760px) {
  .gs .post-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gs .post-body th, .gs .post-body td { min-width: 7.5rem; }
}
.gs .post-body blockquote {
  border-left: 2px solid var(--accent); margin: 24px 0;
  padding: 4px 0 4px 20px; color: var(--ink-soft);
}
.gs .post-body iframe { max-width: 100%; border-radius: var(--r-card); }

/* ---------- CTA at the end of each post ----------
   The design system's .cta, narrowed to the article measure so it lands
   as the end of the piece rather than as a new full-width section. */
.gs .post-cta {
  margin-top: 56px; padding: clamp(32px, 4vw, 48px);
  border-radius: var(--r-card); text-align: center;
  background-color: var(--bg); background-image: var(--brand-wash-card);
  box-shadow: var(--edge);
}
.gs .post-cta h3 { font-size: clamp(21px, 2.4vw, 27px); letter-spacing: var(--track-heading); margin-bottom: 10px; }
.gs .post-cta p { font-size: 16px; color: var(--ink-soft); margin-bottom: 24px; }
.gs .post-cta .btn { margin: 0 5px 6px; }
