/* ============================================================
   article.css — Vietnam Unlock
   Single-column article with sticky TOC sidebar.
   ============================================================ */


/* ── ARTICLE CONTAINER ──────────────────────────────────────── */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}


/* ── ARTICLE HEADER ─────────────────────────────────────────── */
.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 48px);
  color: var(--near-black);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.byline a {
  color: var(--near-black);
  text-decoration: none;
  font-weight: 600;
}

.byline .sep { opacity: 0.3; }


/* ── TL;DR BOX ──────────────────────────────────────────────── */
.tldr-box {
  background: var(--cream-light);
  border: 1.5px solid rgba(61,74,45,0.2);
  border-left: 4px solid var(--olive);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 32px;
}

.tldr-box h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 12px;
}

.tldr-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tldr-box ul li {
  font-size: 15px;
  color: var(--near-black);
  padding: 5px 0 5px 20px;
  position: relative;
  line-height: 1.55;
}

.tldr-box ul li::before {
  content: '→';
  color: var(--olive);
  position: absolute;
  left: 0;
  font-size: 12px;
  top: 7px;
  font-weight: 700;
}


/* ── HERO IMAGE ─────────────────────────────────────────────── */
.hero-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.img-caption {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 40px;
  text-align: center;
}


/* ── TOC WRAP (inline, above article body) ──────────────────── */
.toc-wrap {
  margin-bottom: 36px;
}


/* ── TABLE OF CONTENTS ──────────────────────────────────────── */
.toc-nav {
  background: var(--cream-light);
  border: 1px solid rgba(61,74,45,0.15);
  border-left: 4px solid var(--olive);
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(61,74,45,0.07);
  border-bottom: 1px solid rgba(61,74,45,0.1);
}

.toc-header span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.toc-toggle {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--olive);
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.7;
}
.toc-toggle:hover { opacity: 1; }

.toc-list {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
}

.toc-link {
  display: block;
  padding: 7px 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  margin-left: -4px;
  transition: all 0.15s;
}

.toc-link:hover,
.toc-link.toc-active {
  color: var(--olive);
  background: rgba(61,74,45,0.07);
  border-left-color: var(--gold);
  padding-left: 20px;
}


/* ── ARTICLE BODY ───────────────────────────────────────────── */
.article-body > *:first-child { margin-top: 0 !important; }

.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--near-black);
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--near-black);
  line-height: 1.2;
  margin-top: 52px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(61,74,45,0.1);
}

.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--near-black);
  margin-top: 36px;
  margin-bottom: 14px;
}

.article-body h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive);
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--near-black);
  margin-bottom: 8px;
}

.article-body a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--amber); }

.article-body strong { font-weight: 700; }

.article-body blockquote {
  border-left: 4px solid var(--gold);
  margin: 36px 0;
  padding: 18px 24px;
  background: var(--cream-light);
  border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}


/* ── INFOGRAPHIC FIGURES ────────────────────────────────────── */
.article-body figure.vu-image {
  width: 100%;
  margin: 36px 0;
  border-radius: 10px;
  overflow: hidden;
}
.article-body figure.vu-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(31,26,20,0.1);
}
.article-body figure.vu-image figcaption {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 8px;
}
.article-body .vu-photo-placeholder {
  margin: 36px 0;
  padding: 48px 24px;
  border: 2px dashed rgba(61,74,45,0.25);
  border-radius: 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}


/* ── TABLE SCROLL WRAPPER (injected by toc.js) ──────────────── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0 36px;
  border-radius: 8px;
}
.table-scroll table { margin: 0; }


/* ── TABLES ─────────────────────────────────────────────────── */
.article-body table,
.vu-price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: var(--white);
  border: 1px solid rgba(61,74,45,0.18);
  border-radius: 8px;
  overflow: hidden;
  margin: 28px 0 36px;
}

.article-body table thead th,
.article-body table > thead > tr > th,
.vu-price-table thead th {
  background: var(--olive) !important;
  color: var(--white) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 13px 16px;
  text-align: left;
  border: none;
}

/* First column label */
.article-body table tbody tr td:first-child,
.article-body table tbody tr th:first-child,
.vu-price-table tbody tr td:first-child,
.vu-price-table tbody tr th:first-child {
  background: #e8e2d5;
  font-weight: 600;
  color: var(--near-black);
}

.article-body table tbody td,
.article-body table tbody th,
.vu-price-table tbody td,
.vu-price-table tbody th {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(61,74,45,0.1);
  border-right: 1px solid rgba(61,74,45,0.1);
  color: var(--near-black);
  line-height: 1.5;
  vertical-align: top;
}

.article-body table tr td:last-child,
.article-body table tr th:last-child,
.vu-price-table tr td:last-child,
.vu-price-table tr th:last-child { border-right: none; }

.article-body table tbody tr:last-child td,
.vu-price-table tbody tr:last-child td { border-bottom: none; }

.article-body table tbody tr:nth-child(even) td,
.vu-price-table tbody tr:nth-child(even) td { background: #f5f2ec; }

.article-body table tbody tr:nth-child(even) td:first-child,
.vu-price-table tbody tr:nth-child(even) td:first-child { background: #ddd8cc; }

/* Hover row highlight */
.article-body table tbody tr:hover td { background: rgba(61,74,45,0.05); }
.article-body table tbody tr:hover td:first-child { background: rgba(61,74,45,0.12); }


/* ── CALLOUT BOXES ──────────────────────────────────────────── */

/* [real_talk] — amber warning box */
.vu-real-talk {
  border-left: 5px solid var(--amber);
  background: #FEF9EE;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.vu-real-talk__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.vu-real-talk__icon {
  font-size: 18px;
  color: var(--amber);
  line-height: 1;
}
.vu-real-talk__header strong {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.vu-real-talk__body,
.vu-real-talk__body p {
  font-size: 15px;
  color: var(--near-black);
  line-height: 1.7;
  margin: 0;
}
.vu-real-talk__body p + p { margin-top: 10px; }

/* Tip box (green / olive) */
.vu-tip {
  border-left: 5px solid var(--olive);
  background: #F0F4EB;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.vu-tip::before {
  content: '✓  TIP';
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--olive);
  margin-bottom: 8px;
}
.vu-tip p {
  font-size: 15px;
  color: var(--near-black);
  margin: 0;
  line-height: 1.7;
}

/* Info box (gold) */
.vu-info {
  border-left: 5px solid var(--gold);
  background: #FBF5E0;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.vu-info::before {
  content: 'ℹ  NOTE';
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #8A6800;
  margin-bottom: 8px;
}
.vu-info p {
  font-size: 15px;
  color: var(--near-black);
  margin: 0;
  line-height: 1.7;
}


/* ── [price_table] SHORTCODE ────────────────────────────────── */
.vu-price-table-wrap {
  margin: 28px 0 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(61,74,45,0.18);
}
.vu-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
}
.vu-price-table thead th {
  background: var(--olive);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 13px 16px;
  text-align: left;
}
.vu-price-table tbody th {
  background: #e8e2d5;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(61,74,45,0.1);
  color: var(--near-black);
  text-align: left;
  white-space: nowrap;
}
.vu-price-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(61,74,45,0.1);
  color: var(--near-black);
  line-height: 1.5;
}
.vu-price-table tbody tr:nth-child(even) td,
.vu-price-table tbody tr:nth-child(even) th { background: #f5f2ec; }
.vu-price-table tbody tr:last-child th,
.vu-price-table tbody tr:last-child td { border-bottom: none; }


/* ── BOTTOM META (Cheat Sheet + Related) ────────────────────── */
.bottom-meta {
  margin-top: 72px;
  background: var(--cream-light);
  padding: 36px 40px;
  border-radius: 12px;
  border: 1px solid rgba(61,74,45,0.1);
}
.bottom-meta h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--near-black);
  margin-bottom: 28px;
}
.bm-content {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* Planning Cheat Sheet */
.cheat-sheet-wrap { flex: 1; min-width: 0; }
.cheat-table-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(61,74,45,0.2);
}
.cheat-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  font-size: 14px;
}
.cheat-table th,
.cheat-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(61,74,45,0.12);
  line-height: 1.5;
  vertical-align: top;
}
.cheat-table tr:last-child th,
.cheat-table tr:last-child td { border-bottom: none; }
.cheat-table th {
  background: #E2DCCF;
  font-weight: 700;
  width: 38%;
  text-align: left;
  color: var(--near-black);
  white-space: nowrap;
}
.cheat-table td { color: rgba(31,26,20,0.75); }

/* Related cards */
.related-wrap {
  flex: 1.6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  min-width: 0;
}
.related-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  display: block;
  background: var(--near-black);
}
.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.related-card:hover img { transform: scale(1.05); }
.rc-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.88), transparent);
}
.rc-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}


/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .article-container { padding: 28px 18px 64px; }
  .article-header h1  { font-size: 26px; }
  .article-body p     { font-size: 16px; }
  .article-body h2    { font-size: 22px; margin-top: 40px; }
  .article-body h3    { font-size: 18px; }
  .bottom-meta        { padding: 24px 18px; margin-top: 52px; }
  .bm-content         { flex-direction: column; gap: 28px; }
  .related-wrap       { grid-template-columns: repeat(2, 1fr); }
  .related-card       { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
  .related-wrap { grid-template-columns: 1fr; }
  .related-card { aspect-ratio: 16 / 9; }
}


/* ── AUTHOR BIO ─────────────────────────────────────────────── */
.author-bio {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 56px;
  padding: 36px 40px;
  background: #F2F5EE;
  border-radius: 14px;
  border: 1px solid rgba(61,74,45,0.12);
}

.author-bio-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-bio-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 3px solid rgba(61,74,45,0.18);
}

.author-bio-content { min-width: 0; }

.author-bio-tag {
  display: block;
  font-size: 10px;
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--olive);
  margin-bottom: 8px;
}

.author-bio-name {
  margin-bottom: 4px;
}

.author-bio-name a {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #2C3E50;
  text-decoration: none;
  display: block;
}
.author-bio-name a:hover { color: var(--olive); }

.author-bio-role {
  font-size: 11px;
  color: #8A9B7A;
  font-family: -apple-system, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.author-bio-quote {
  border-left: 3px solid var(--olive);
  padding-left: 18px;
  margin: 0 0 18px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: #4A5568;
  line-height: 1.75;
}

.author-bio-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 20px;
  margin-bottom: 18px;
}

.author-cred-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-family: -apple-system, sans-serif;
  color: #6B7B5E;
}
.author-cred-item::before {
  content: '✓';
  color: var(--olive);
  font-weight: 700;
  flex-shrink: 0;
}

.author-bio-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--olive);
  text-decoration: none;
  font-family: -apple-system, sans-serif;
  transition: gap 0.15s;
}
.author-bio-link:hover { gap: 9px; }

@media (max-width: 600px) {
  .author-bio {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 20px;
  }
  .author-bio-photo { flex-direction: row; align-items: center; gap: 16px; }
  .author-bio-photo img { width: 72px; height: 72px; }
  .author-bio-creds { grid-template-columns: 1fr; gap: 6px; }
}
