/* GoVietnamGlobal — Blog stylesheet (Tropical Warm palette)
 * Shared by all 5 P1 pillar HTML wrappers (per locale)
 * MSG-005 + MSG-007 (Option B static HTML wrappers approved by Cowork 2026-05-13)
 */
:root {
  --terracotta: #C8553D;
  --jade: #2D7D6F;
  --sunset: #E8985E;
  --cream: #FAF6EE;
  --warm-gray-700: #4A4A4A;
  --warm-gray-900: #1F1F1F;
  --warm-gray-300: #D9D2C6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--warm-gray-900);
  line-height: 1.75;
  font-size: 17px;
}
.topbar {
  background: white;
  border-bottom: 1px solid #E5DDD0;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--terracotta);
  text-decoration: none;
}
.topbar-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.topbar-actions a {
  color: var(--jade);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.topbar-actions a:hover { text-decoration: underline; }
.cta-button {
  background: var(--terracotta);
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none !important;
}
.cta-button:hover { background: #b04a35; text-decoration: none !important; }
.lang-switcher {
  display: flex;
  gap: 6px;
  font-size: 13px;
}
.lang-switcher a {
  padding: 2px 6px;
  color: var(--warm-gray-700);
}
.lang-switcher a.active {
  background: var(--jade);
  color: white !important;
  border-radius: 3px;
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.content h1 {
  color: var(--terracotta);
  font-size: 34px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--sunset);
  line-height: 1.3;
}
.content h2 {
  color: var(--jade);
  font-size: 24px;
  margin: 40px 0 14px;
  line-height: 1.35;
}
.content h3 {
  color: var(--warm-gray-900);
  font-size: 19px;
  margin: 24px 0 10px;
  line-height: 1.4;
}
.content p { margin: 14px 0; }
.content ul, .content ol { margin: 14px 0; padding-left: 32px; }
.content li { margin: 7px 0; }
.content strong { color: var(--warm-gray-900); font-weight: 600; }
.content em { color: var(--warm-gray-700); }
.content blockquote {
  border-left: 4px solid var(--sunset);
  padding: 14px 18px;
  margin: 20px 0;
  background: #FFF8EE;
  border-radius: 4px;
  font-style: italic;
}
.content blockquote p:first-child { margin-top: 0; }
.content blockquote p:last-child { margin-bottom: 0; }
.content table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-size: 15px;
}
.content table th {
  background: var(--jade);
  color: white;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}
.content table td {
  padding: 12px 14px;
  border-top: 1px solid #E5DDD0;
}
.content table tr:nth-child(even) td { background: #FBFAF6; }
.content hr {
  border: 0;
  border-top: 1px solid #E5DDD0;
  margin: 32px 0;
}
.content code {
  background: #F3EDE0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 15px;
  color: var(--terracotta);
}
.content a {
  color: var(--jade);
  text-decoration: underline;
  font-weight: 500;
}
.content a:hover { color: var(--terracotta); }

/* Mid-article CTA component — pre-rendered after Section 6 heading (Cowork refinement #1) */
.mid-cta {
  margin: 36px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--sunset) 0%, var(--terracotta) 100%);
  color: white;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(200, 85, 61, 0.25);
}
.mid-cta-text {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 16px;
  color: white;
}
.mid-cta-button {
  display: inline-block;
  background: white;
  color: var(--terracotta);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s;
}
.mid-cta-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--terracotta);
}

/* Related articles section (silent skip Phase 1B per Cowork refinement #5) */
.related-articles {
  margin-top: 48px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid #E5DDD0;
}
.related-articles h3 {
  margin-top: 0;
  color: var(--jade);
}
.related-articles ul {
  list-style: none;
  padding-left: 0;
}
.related-articles li {
  padding: 6px 0;
  border-bottom: 1px solid #F0E9DC;
}
.related-articles li:last-child { border-bottom: 0; }

.article-footer {
  margin-top: 48px;
  padding: 24px;
  background: white;
  border-radius: 8px;
  font-size: 14px;
  color: var(--warm-gray-700);
}
.article-footer a { color: var(--jade); }
.article-footer .footer-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E5DDD0;
  text-align: center;
}
.article-footer .footer-cta a {
  display: inline-block;
  background: var(--terracotta);
  color: white !important;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.loading {
  text-align: center;
  padding: 80px 0;
  color: var(--warm-gray-700);
  font-size: 16px;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .content h1 { font-size: 26px; }
  .content h2 { font-size: 20px; }
  .content h3 { font-size: 17px; }
  main { padding: 24px 16px 48px; }
  .mid-cta { padding: 20px; }
  .mid-cta-text { font-size: 15px; }
  .topbar-actions { gap: 10px; }
  .lang-switcher { display: none; }
}
