/* ============================================================
   P.Thai Capital Journal — Article-page styling (magazine style)
   Loaded AFTER research-pages.css to override for journal pages.
   Body class: rp-body jp-body
   ============================================================ */

/* ---------- Base — slightly warmer dark ---------- */
.jp-body {
  background: #11171f;
  color: #e8edf4;
}

/* ---------- Reading progress bar ---------- */
.jp-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.jp-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5fe0b4, #6ed2ea);
  transition: width 0.1s;
  box-shadow: 0 0 10px rgba(95, 224, 180, 0.6);
}

/* ---------- Topbar override — cleaner for journal ---------- */
.jp-body .rp-top {
  background: rgba(17, 23, 31, 0.95);
  border-bottom: 1px solid rgba(52, 66, 90, 0.6);
  padding: 14px 28px;
}

/* ---------- Article hero — magazine-style header ---------- */
.jp-hero {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 28px 36px;
}
.jp-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: #5fe0b4;
  border-radius: 2px;
}
.jp-hero__category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5fe0b4;
  margin-bottom: 16px;
  padding: 5px 12px;
  background: rgba(95, 224, 180, 0.1);
  border-radius: 20px;
}
.jp-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #f5f8fc;
  margin: 0 0 18px;
}
.jp-hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #c0cad8;
  margin: 0 0 28px;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
}
.jp-hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid #283444;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #8694a8;
}
.jp-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.jp-hero__meta-item b {
  color: #c0cad8;
  font-weight: 600;
}
.jp-hero__author {
  display: flex; align-items: center; gap: 10px;
}
.jp-hero__author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5fe0b4, #6ed2ea);
  display: grid; place-items: center;
  font-weight: 700;
  color: #0c1118;
  font-size: 0.88rem;
}
.jp-hero__author-info { display: flex; flex-direction: column; gap: 2px; }
.jp-hero__author-info b { color: #e8edf4; font-size: 0.9rem; }
.jp-hero__author-info span { color: #8694a8; font-size: 0.74rem; }

/* ---------- Article content — optimized for reading ---------- */
.jp-body .rp-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

.jp-body .rp-content p {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.12rem !important;
  line-height: 1.85 !important;
  color: #dce3ee !important;
  margin: 20px 0 !important;
  letter-spacing: 0.005em;
}

/* Drop cap for first paragraph of each article section */
.jp-body .rp-content > p:first-of-type::first-letter,
.jp-body .rp-content > .jp-tldr + p::first-letter {
  font-family: 'Lora', Georgia, serif;
  float: left;
  font-size: 4rem;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  color: #5fe0b4;
  font-weight: 600;
}

/* ---------- Section headings ---------- */
.jp-body .rp-content h2 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.55rem !important;
  font-weight: 600;
  color: #f5f8fc;
  margin: 52px 0 18px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid #283444;
  position: relative;
  letter-spacing: -0.3px;
}
.jp-body .rp-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 50px; height: 2px;
  background: #5fe0b4;
}
.jp-body .rp-content h3 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.2rem !important;
  color: #e8edf4;
  margin: 32px 0 12px !important;
  font-weight: 600;
}

/* ---------- Emphasized paragraphs (bold lead sentences) ---------- */
.jp-body .rp-content p strong {
  color: #f5f8fc;
  font-weight: 600;
  background: linear-gradient(180deg, transparent 58%, rgba(95, 224, 180, 0.15) 58%);
  padding: 0 2px;
}

/* ---------- Inline number/percentage highlights (e.g. "+22%") ---------- */
.jp-body .rp-content p code,
.jp-body .rp-content li code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95em;
  padding: 2px 7px;
  background: rgba(95, 224, 180, 0.1);
  border: 1px solid rgba(95, 224, 180, 0.25);
  border-radius: 4px;
  color: #5fe0b4;
}

/* ---------- Lists ---------- */
.jp-body .rp-content ul, .jp-body .rp-content ol {
  padding-left: 22px;
  margin: 18px 0;
}
.jp-body .rp-content ul li, .jp-body .rp-content ol li {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #dce3ee;
  margin: 10px 0;
  padding-left: 6px;
}
.jp-body .rp-content ul li::marker { color: #5fe0b4; }
.jp-body .rp-content ol li::marker { color: #e2bf52; font-weight: 600; }

/* ---------- TL;DR / Summary box (for top "Tóm tắt nhanh" section) ---------- */
.jp-body .rp-content > h2:first-of-type + ul,
.jp-body .rp-content > h2:first-of-type + ol {
  background: linear-gradient(135deg, rgba(95, 224, 180, 0.06), rgba(110, 210, 234, 0.04));
  border: 1px solid rgba(95, 224, 180, 0.25);
  border-left: 3px solid #5fe0b4;
  border-radius: 0 10px 10px 0;
  padding: 22px 28px !important;
  margin: 20px 0 40px 0 !important;
}
.jp-body .rp-content > h2:first-of-type {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 8px !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5fe0b4 !important;
  font-weight: 600;
}
.jp-body .rp-content > h2:first-of-type::after { display: none !important; }
.jp-body .rp-content > h2:first-of-type + ul li,
.jp-body .rp-content > h2:first-of-type + ol li {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1rem !important;
  color: #e8edf4 !important;
  margin: 8px 0 !important;
}

/* ---------- Blockquote / Pull-quote ---------- */
.jp-body .rp-content blockquote {
  margin: 32px 0;
  padding: 22px 28px;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #f5f8fc;
  border-left: 4px solid #e2bf52;
  background: rgba(226, 191, 82, 0.04);
  border-radius: 0 8px 8px 0;
  position: relative;
}
.jp-body .rp-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px; left: 12px;
  font-family: Georgia, serif;
  font-size: 4rem;
  color: rgba(226, 191, 82, 0.3);
  line-height: 1;
}

/* ---------- Tables — magazine style ---------- */
.jp-body .rp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: #1a222e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.jp-body .rp-content table th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa1bd;
  padding: 14px 16px;
  background: #243046;
  text-align: left;
  border-bottom: 1px solid #34425a;
}
.jp-body .rp-content table td {
  font-family: 'Lora', serif;
  font-size: 0.98rem;
  padding: 14px 16px;
  color: #dce3ee;
  border-bottom: 1px solid #283444;
}
.jp-body .rp-content table tr:last-child td { border-bottom: none; }
.jp-body .rp-content table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.jp-body .rp-content table tr:hover td { background: rgba(95, 224, 180, 0.04); }
.jp-body .rp-content table td strong { color: #f5f8fc; }

/* ---------- Horizontal rule as decorative divider ---------- */
.jp-body .rp-content hr {
  border: none;
  height: 40px;
  margin: 50px auto;
  position: relative;
  max-width: 200px;
}
.jp-body .rp-content hr::before {
  content: '◆  ◆  ◆';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #34425a;
  font-size: 0.8rem;
  letter-spacing: 1em;
}

/* ---------- Links ---------- */
.jp-body .rp-content a {
  color: #5fe0b4;
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 224, 180, 0.35);
  transition: all 0.15s;
}
.jp-body .rp-content a:hover {
  color: #76e8c4;
  border-bottom-color: #5fe0b4;
  background: rgba(95, 224, 180, 0.05);
}

/* ---------- Share buttons (sticky on desktop, inline on mobile) ---------- */
.jp-share {
  position: fixed;
  left: max(calc(50% - 460px), 20px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}
.jp-share__btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #1a222e;
  border: 1px solid #34425a;
  color: #8fa1bd;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.jp-share__btn:hover {
  background: #5fe0b4;
  color: #0c1118;
  border-color: #5fe0b4;
  transform: scale(1.08);
}
.jp-share__btn svg { width: 18px; height: 18px; }
.jp-share__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8694a8;
  text-align: center;
  margin-top: 6px;
}
@media (max-width: 1100px) {
  .jp-share { display: none; }
}

/* ---------- Mobile share bar (bottom sticky) ---------- */
.jp-share-mobile {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(17, 23, 31, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #283444;
  padding: 12px 20px;
  z-index: 100;
  justify-content: space-around;
}
@media (max-width: 1100px) {
  .jp-share-mobile { display: flex; }
  .jp-body { padding-bottom: 70px; }
}
.jp-share-mobile .jp-share__btn {
  width: 38px; height: 38px;
}

/* ---------- Author bio card (bottom) ---------- */
.jp-author-card {
  margin: 60px 0 40px;
  padding: 26px 28px;
  background: linear-gradient(135deg, #1a222e, #11171f);
  border: 1px solid #34425a;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: center;
}
.jp-author-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5fe0b4, #6ed2ea, #b388ff);
  display: grid; place-items: center;
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0c1118;
  border: 2px solid rgba(255,255,255,0.08);
}
.jp-author-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f5f8fc;
  margin: 0 0 4px;
}
.jp-author-card__role {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: #5fe0b4;
  margin: 0 0 10px;
}
.jp-author-card__bio {
  font-family: 'Lora', serif;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #c0cad8 !important;
  margin: 0 0 10px !important;
}
.jp-author-card__links {
  display: flex; gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.jp-author-card__links a {
  color: #5fe0b4 !important;
  border: none !important;
}
.jp-author-card__links a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .jp-author-card { grid-template-columns: 1fr; text-align: center; }
  .jp-author-card__avatar { margin: 0 auto; }
}

/* ---------- IB Conversion CTA (VN stock + Gold/Forex) ---------- */
.jp-ib-cta {
  margin: 48px 0 32px;
  padding: 32px 28px 26px;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.10), transparent 55%),
    radial-gradient(circle at bottom right, rgba(95, 224, 180, 0.08), transparent 55%),
    linear-gradient(135deg, #161e2a, #11171f);
  border: 1px solid #3a4a64;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.jp-ib-cta__head {
  text-align: center;
  margin-bottom: 24px;
}
.jp-ib-cta__badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #d4af37;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 14px;
}
.jp-ib-cta__head h3 {
  font-family: 'Lora', serif !important;
  font-size: 1.55rem !important;
  color: #f5f8fc !important;
  margin: 0 0 8px !important;
  letter-spacing: -0.01em;
}
.jp-ib-cta__head p {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.98rem !important;
  color: #c0cad8 !important;
  margin: 0 auto !important;
  max-width: 560px;
  line-height: 1.55 !important;
}
.jp-ib-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.jp-ib-cta__card {
  display: block;
  padding: 22px 22px 20px;
  background: rgba(14, 20, 28, 0.65);
  border: 1px solid #34425a;
  border-radius: 12px;
  text-decoration: none !important;
  color: #e8edf4;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.jp-ib-cta__card:hover {
  transform: translateY(-3px);
  border-color: #5fe0b4;
  box-shadow: 0 10px 28px rgba(95, 224, 180, 0.18);
}
.jp-ib-cta__broker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa1bd;
  margin-bottom: 8px;
}
.jp-ib-cta__broker span {
  margin-right: 4px;
  font-size: 0.95rem;
}
.jp-ib-cta__card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f5f8fc;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.jp-ib-cta__card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: #c0cad8;
  line-height: 1.55;
}
.jp-ib-cta__card ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 5px;
}
.jp-ib-cta__card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #5fe0b4;
  font-weight: 700;
}
.jp-ib-cta__card ul li b {
  color: #d4af37;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.jp-ib-cta__btn {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #0c1118 !important;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}
.jp-ib-cta__card:hover .jp-ib-cta__btn {
  background: linear-gradient(135deg, #5fe0b4, #4fd3a4);
}
.jp-ib-cta__note {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.78rem !important;
  color: #8694a8 !important;
  text-align: center;
  margin: 14px 0 0 !important;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .jp-ib-cta { padding: 26px 18px 22px; }
  .jp-ib-cta__grid { grid-template-columns: 1fr; gap: 12px; }
  .jp-ib-cta__head h3 { font-size: 1.3rem !important; }
}

/* ---------- Newsletter CTA ---------- */
.jp-newsletter {
  margin: 40px 0;
  padding: 30px 32px;
  background:
    radial-gradient(circle at top right, rgba(95, 224, 180, 0.08), transparent 60%),
    linear-gradient(135deg, #1a222e, #11171f);
  border: 1px solid #34425a;
  border-radius: 14px;
  text-align: center;
}
.jp-newsletter h3 {
  font-family: 'Lora', serif !important;
  font-size: 1.35rem !important;
  color: #f5f8fc;
  margin: 0 0 8px !important;
}
.jp-newsletter p {
  font-family: 'Lora', serif !important;
  font-size: 1rem !important;
  color: #c0cad8 !important;
  margin: 0 0 18px !important;
  line-height: 1.55 !important;
}
.jp-newsletter__form {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.jp-newsletter__form input {
  padding: 11px 16px;
  background: #0e141c;
  border: 1px solid #34425a;
  border-radius: 8px;
  color: #e8edf4;
  font-family: inherit;
  font-size: 0.95rem;
  min-width: 240px;
}
.jp-newsletter__form input:focus {
  outline: none;
  border-color: #5fe0b4;
}
.jp-newsletter__form button {
  padding: 11px 22px;
  background: linear-gradient(135deg, #5fe0b4, #4fd3a4);
  color: #0c1118;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s;
}
.jp-newsletter__form button:hover { transform: scale(1.03); }

/* ---------- Related articles ---------- */
.jp-body .rp-related h2 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  font-size: 1.3rem !important;
}
.jp-body .rp-related h2::after { display: none; }
.jp-body .rp-related__item {
  background: #1a222e !important;
  border: 1px solid #34425a !important;
}
.jp-body .rp-related__item:hover {
  border-color: #5fe0b4 !important;
  transform: translateY(-3px) !important;
}

/* ---------- Disclaimer (at very bottom) ---------- */
.jp-body .rp-disclaimer {
  background: rgba(226, 191, 82, 0.04) !important;
  border: 1px solid rgba(226, 191, 82, 0.2) !important;
  border-left: 3px solid #e2bf52 !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 18px 24px !important;
  margin-top: 50px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.88rem !important;
  color: #b3bdcc !important;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.jp-body .rp-foot {
  background: #0c1118;
  padding: 40px 24px 30px;
  border-top: 1px solid #283444;
  color: #8694a8;
}

/* ============================================================
   INLINE CHART WIDGETS (used in article bodies via <div class="jp-chart-*">)
   ============================================================ */

/* Bar chart horizontal — compare multiple items */
.jp-barchart {
  margin: 26px 0;
  padding: 22px 26px;
  background: #1a222e;
  border: 1px solid #34425a;
  border-radius: 12px;
}
.jp-barchart__title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa1bd !important;
  margin: 0 0 16px !important;
  font-weight: 600 !important;
}
.jp-barchart__row {
  display: grid;
  grid-template-columns: 120px 1fr 70px;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
}
.jp-barchart__label { color: #dce3ee; font-weight: 500; }
.jp-barchart__track {
  height: 28px;
  background: #0e141c;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.jp-barchart__fill {
  height: 100%;
  background: linear-gradient(90deg, #5fe0b4, #4fd3a4);
  border-radius: 6px;
  transition: width 0.8s ease-out;
}
.jp-barchart__fill--neg { background: linear-gradient(90deg, #ff8899, #e66b7e); }
.jp-barchart__fill--warn { background: linear-gradient(90deg, #ffc566, #e2a43a); }
.jp-barchart__fill--info { background: linear-gradient(90deg, #6ed2ea, #4fb5d0); }
.jp-barchart__value {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #f5f8fc;
  font-size: 0.92rem;
}
.jp-barchart__value.up { color: #5fe0b4; }
.jp-barchart__value.down { color: #ff8899; }
.jp-barchart__note {
  margin-top: 14px;
  font-size: 0.82rem !important;
  color: #8694a8 !important;
  font-style: italic;
}
@media (max-width: 600px) {
  .jp-barchart__row { grid-template-columns: 90px 1fr 60px; font-size: 0.82rem; gap: 8px; }
  .jp-barchart__track { height: 22px; }
}

/* KPI stat cards (inline) */
.jp-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.jp-kpi {
  padding: 16px 18px;
  background: linear-gradient(180deg, #1a222e, #151c27);
  border: 1px solid #34425a;
  border-radius: 10px;
  text-align: center;
}
.jp-kpi__value {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
  color: #5fe0b4;
  margin-bottom: 4px;
}
.jp-kpi__value--up { color: #5fe0b4; }
.jp-kpi__value--down { color: #ff8899; }
.jp-kpi__value--warn { color: #ffc566; }
.jp-kpi__label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: #8fa1bd;
  text-transform: uppercase;
}

/* Line chart — SVG wrapper */
.jp-linechart {
  margin: 28px 0;
  padding: 22px;
  background: #1a222e;
  border: 1px solid #34425a;
  border-radius: 12px;
}
.jp-linechart__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa1bd !important;
  margin: 0 0 10px !important;
  font-weight: 600 !important;
}
.jp-linechart__svg { width: 100%; height: auto; display: block; }
.jp-linechart__axis { fill: #8694a8; font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.jp-linechart__grid { stroke: #283444; stroke-width: 1; stroke-dasharray: 2 3; }
.jp-linechart__line { fill: none; stroke: #5fe0b4; stroke-width: 2.5; stroke-linejoin: round; }
.jp-linechart__area { fill: url(#jpLineGrad); opacity: 0.25; }
.jp-linechart__note {
  margin-top: 12px;
  font-size: 0.82rem !important;
  color: #8694a8 !important;
  font-style: italic;
}

/* Callout boxes */
.jp-callout {
  margin: 26px 0;
  padding: 16px 22px;
  background: #1a222e;
  border-left: 3px solid #5fe0b4;
  border-radius: 0 8px 8px 0;
  border-top: 1px solid #283444;
  border-right: 1px solid #283444;
  border-bottom: 1px solid #283444;
}
.jp-callout__label {
  display: block;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5fe0b4 !important;
  margin-bottom: 6px !important;
}
.jp-callout p {
  margin: 0 !important;
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
  color: #dce3ee !important;
}
.jp-callout--warn { border-left-color: #ffc566; }
.jp-callout--warn .jp-callout__label { color: #ffc566 !important; }
.jp-callout--info { border-left-color: #6ed2ea; }
.jp-callout--info .jp-callout__label { color: #6ed2ea !important; }
.jp-callout--danger { border-left-color: #ff8899; }
.jp-callout--danger .jp-callout__label { color: #ff8899 !important; }

/* Stat comparison (vs benchmark) */
.jp-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 28px 0;
  padding: 24px;
  background: #1a222e;
  border: 1px solid #34425a;
  border-radius: 12px;
}
.jp-vs__side {
  text-align: center;
  padding: 14px;
}
.jp-vs__side--left  { border-right: 1px solid #34425a; }
.jp-vs__side--right { border-left: 1px solid #34425a; margin-left: -1px; }
.jp-vs__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa1bd;
  margin-bottom: 10px;
}
.jp-vs__value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.1;
}
.jp-vs__value--up { color: #5fe0b4; }
.jp-vs__value--down { color: #ff8899; }
.jp-vs__sub {
  font-family: 'Lora', serif;
  font-size: 0.88rem !important;
  color: #b3bdcc !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}
.jp-vs__separator {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #e2bf52;
  letter-spacing: 0.1em;
}
@media (max-width: 600px) {
  .jp-vs { grid-template-columns: 1fr; gap: 10px; }
  .jp-vs__side--left { border-right: none; border-bottom: 1px solid #34425a; }
  .jp-vs__side--right { border-left: none; margin-left: 0; }
  .jp-vs__separator { font-size: 0.9rem; }
}

/* ---------- Mobile refinement ---------- */
@media (max-width: 720px) {
  .jp-hero { padding: 40px 20px 24px; }
  .jp-body .rp-content { padding: 0 20px 60px; }
  .jp-body .rp-content p { font-size: 1.05rem !important; line-height: 1.75 !important; }
  .jp-body .rp-content h2 { font-size: 1.35rem !important; margin-top: 40px !important; }
  .jp-body .rp-content > p:first-of-type::first-letter { font-size: 3rem; }
  .jp-body .rp-content blockquote { font-size: 1.1rem; padding: 18px 22px; }
}

/* ============================================================
   LIGHT MODE — journal pages (kích hoạt qua research-theme.js)
   <html data-rp-theme="light"> + body có cả .rp-body .jp-body
   ============================================================ */
html[data-rp-theme="light"] .jp-body {
  background: #faf8f3;
  color: #1a1f2e;
}
html[data-rp-theme="light"] .jp-body .rp-top {
  background: rgba(250, 248, 243, 0.95);
  border-bottom-color: #d8d2c4;
}

/* ---- Hero ---- */
html[data-rp-theme="light"] .jp-hero::before { background: #067b55; }
html[data-rp-theme="light"] .jp-hero__category {
  color: #067b55;
  background: rgba(6, 123, 85, 0.08);
}
html[data-rp-theme="light"] .jp-hero h1 { color: #111827; }
html[data-rp-theme="light"] .jp-hero__subtitle { color: #4b5563; }
html[data-rp-theme="light"] .jp-hero__meta {
  color: #6b7280;
  border-top-color: #d8d2c4;
}
html[data-rp-theme="light"] .jp-hero__meta-item b { color: #1a1f2e; }
html[data-rp-theme="light"] .jp-hero__author-avatar {
  background: linear-gradient(135deg, #067b55, #2d5d85);
  color: #faf8f3;
}
html[data-rp-theme="light"] .jp-hero__author-info b { color: #1a1f2e; }
html[data-rp-theme="light"] .jp-hero__author-info span { color: #6b7280; }

/* ---- Article body ---- */
html[data-rp-theme="light"] .jp-body .rp-content p { color: #1a1f2e !important; }
html[data-rp-theme="light"] .jp-body .rp-content > p:first-of-type::first-letter,
html[data-rp-theme="light"] .jp-body .rp-content > .jp-tldr + p::first-letter {
  color: #067b55;
}

/* ---- Headings ---- */
html[data-rp-theme="light"] .jp-body .rp-content h2 {
  color: #111827;
  border-bottom-color: #d8d2c4;
}
html[data-rp-theme="light"] .jp-body .rp-content h2::after { background: #067b55; }
html[data-rp-theme="light"] .jp-body .rp-content h3 { color: #1a1f2e; }

/* ---- Inline emphasis ---- */
html[data-rp-theme="light"] .jp-body .rp-content p strong {
  color: #0b1220;
  background: linear-gradient(180deg, transparent 58%, rgba(6, 123, 85, 0.18) 58%);
}
html[data-rp-theme="light"] .jp-body .rp-content p code,
html[data-rp-theme="light"] .jp-body .rp-content li code {
  background: rgba(6, 123, 85, 0.08);
  border-color: rgba(6, 123, 85, 0.25);
  color: #045c3f;
}

/* ---- Lists ---- */
html[data-rp-theme="light"] .jp-body .rp-content ul li,
html[data-rp-theme="light"] .jp-body .rp-content ol li { color: #1a1f2e; }
html[data-rp-theme="light"] .jp-body .rp-content ul li::marker { color: #067b55; }
html[data-rp-theme="light"] .jp-body .rp-content ol li::marker { color: #8a6d1a; }

/* ---- TL;DR / Summary box (first h2 + ul/ol) ---- */
html[data-rp-theme="light"] .jp-body .rp-content > h2:first-of-type + ul,
html[data-rp-theme="light"] .jp-body .rp-content > h2:first-of-type + ol {
  background: linear-gradient(135deg, rgba(6, 123, 85, 0.06), rgba(45, 93, 133, 0.04));
  border-color: rgba(6, 123, 85, 0.25);
  border-left-color: #067b55;
}
html[data-rp-theme="light"] .jp-body .rp-content > h2:first-of-type { color: #067b55 !important; }
html[data-rp-theme="light"] .jp-body .rp-content > h2:first-of-type + ul li,
html[data-rp-theme="light"] .jp-body .rp-content > h2:first-of-type + ol li {
  color: #1a1f2e !important;
}

/* ---- Blockquote ---- */
html[data-rp-theme="light"] .jp-body .rp-content blockquote {
  color: #1a1f2e;
  border-left-color: #8a6d1a;
  background: rgba(138, 109, 26, 0.05);
}
html[data-rp-theme="light"] .jp-body .rp-content blockquote::before {
  color: rgba(138, 109, 26, 0.35);
}

/* ---- Tables ---- */
html[data-rp-theme="light"] .jp-body .rp-content table {
  background: #f4f0e5;
  box-shadow: 0 4px 20px rgba(20, 30, 50, 0.06);
}
html[data-rp-theme="light"] .jp-body .rp-content table th {
  background: #ebe5d3;
  color: #4b5563;
  border-bottom-color: #d8d2c4;
}
html[data-rp-theme="light"] .jp-body .rp-content table td {
  color: #1a1f2e;
  border-bottom-color: #e4dfd1;
}
html[data-rp-theme="light"] .jp-body .rp-content table tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.015);
}
html[data-rp-theme="light"] .jp-body .rp-content table tr:hover td {
  background: rgba(6, 123, 85, 0.05);
}
html[data-rp-theme="light"] .jp-body .rp-content table td strong { color: #0b1220; }

/* ---- Reading-progress accent in light mode ---- */
html[data-rp-theme="light"] .jp-progress__bar {
  background: linear-gradient(90deg, #067b55, #2d5d85);
  box-shadow: 0 0 10px rgba(6, 123, 85, 0.4);
}

/* ============================================================
   SEO BREADCRUMB (added 2026-04-26 for SEO ranking improvement)
   Matches BreadcrumbList JSON-LD in _template.html
   ============================================================ */
.jp-body .jp-breadcrumb {
  max-width: 920px;
  margin: 16px auto 0;
  padding: 0 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.jp-body .jp-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.jp-body .jp-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8fa1bd;
}
.jp-body .jp-breadcrumb li:not(:last-child)::after {
  content: "›";
  color: #4a5a78;
  margin-left: 4px;
}
.jp-body .jp-breadcrumb a {
  color: #8fa1bd;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color 0.2s, border-color 0.2s;
}
.jp-body .jp-breadcrumb a:hover {
  color: #5fe0b4;
  border-bottom-color: #5fe0b4;
}
.jp-body .jp-breadcrumb [aria-current="page"] {
  color: #f0f4fa;
  font-weight: 500;
  /* Truncate long titles */
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .jp-body .jp-breadcrumb { font-size: 11px; padding: 0 16px; }
  .jp-body .jp-breadcrumb [aria-current="page"] { max-width: 100%; }
}
html[data-rp-theme="light"] .jp-body .jp-breadcrumb li,
html[data-rp-theme="light"] .jp-body .jp-breadcrumb a { color: #5a6b82; }
html[data-rp-theme="light"] .jp-body .jp-breadcrumb li:not(:last-child)::after { color: #c0c8d4; }
html[data-rp-theme="light"] .jp-body .jp-breadcrumb a:hover { color: #067b55; border-bottom-color: #067b55; }
html[data-rp-theme="light"] .jp-body .jp-breadcrumb [aria-current="page"] { color: #1a1f2e; }


/* ============================================================
   FEATURED SNIPPET TL;DR BOX (added 2026-04-26)
   Style để tạo visual emphasis cho Google parser detect TL;DR
   ============================================================ */
.jp-body .rp-content .snippet-tldr {
  margin: 24px 0 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(95,224,180,0.08), rgba(255,197,102,0.05));
  border-left: 4px solid #5fe0b4;
  border-radius: 8px;
}
.jp-body .rp-content .snippet-tldr h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  margin: 0 0 12px;
  color: #f0f4fa;
  font-weight: 700;
}
.jp-body .rp-content .snippet-tldr p {
  font-size: 16px;
  line-height: 1.65;
  color: #d8e3f4;
  margin: 0;
}
.jp-body .rp-content .snippet-tldr p strong {
  color: #5fe0b4;
  font-weight: 600;
}
html[data-rp-theme="light"] .jp-body .rp-content .snippet-tldr {
  background: linear-gradient(135deg, rgba(6,123,85,0.06), rgba(212,175,55,0.04));
  border-left-color: #067b55;
}
html[data-rp-theme="light"] .jp-body .rp-content .snippet-tldr h2 { color: #1a1f2e; }
html[data-rp-theme="light"] .jp-body .rp-content .snippet-tldr p { color: #2a3550; }
html[data-rp-theme="light"] .jp-body .rp-content .snippet-tldr p strong { color: #067b55; }

/* ============================================================
   TOOLS CTA WIDGET (internal linking + funnel to tools)
   ============================================================ */
.jp-tools-cta {
  margin: 32px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255,197,102,0.06), rgba(95,224,180,0.04));
  border: 1px solid rgba(255,197,102,0.25);
  border-radius: 10px;
}
.jp-tools-cta__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffc566;
  margin-bottom: 8px;
}
.jp-tools-cta p { color: #8fa1bd; margin: 0 0 12px; font-size: 14px; }
.jp-tools-cta__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.jp-tools-cta__grid a {
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid #34425a;
  border-radius: 6px;
  color: #5fe0b4;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s;
}
.jp-tools-cta__grid a:hover {
  background: rgba(95,224,180,0.1);
  border-color: #5fe0b4;
}
@media (max-width: 600px) { .jp-tools-cta__grid { grid-template-columns: 1fr; } }
html[data-rp-theme="light"] .jp-tools-cta {
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(6,123,85,0.04));
  border-color: rgba(184,134,11,0.3);
}
html[data-rp-theme="light"] .jp-tools-cta__title { color: #b8860b; }
html[data-rp-theme="light"] .jp-tools-cta p { color: #4a5a78; }
html[data-rp-theme="light"] .jp-tools-cta__grid a { background: #fffaeb; color: #067b55; border-color: #d8d2c4; }
html[data-rp-theme="light"] .jp-tools-cta__grid a:hover { background: #f5edc6; border-color: #067b55; }

/* ============================================================
   FRESHNESS BADGE (in hero meta)
   ============================================================ */
.jp-hero__meta-item--fresh {
  background: rgba(95,224,180,0.12);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(95,224,180,0.3);
}
.jp-hero__meta-item--fresh b { color: #5fe0b4; font-weight: 600; }
html[data-rp-theme="light"] .jp-hero__meta-item--fresh {
  background: rgba(6,123,85,0.08);
  border-color: rgba(6,123,85,0.25);
}
html[data-rp-theme="light"] .jp-hero__meta-item--fresh b { color: #067b55; }
