/* ══════════════════════════════════════════════════════════════
   NEWS ARTICLE — halaman baca artikel penuh (mis. "Kabar Sains")
   Reusable untuk artikel berita/kurasi. Prefix: .art-
   ══════════════════════════════════════════════════════════════ */

.art-main { background: #fff; color: var(--neutral-800, #1f2937); }

/* ── HERO (gradient, gaya sains) ── */
.art-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-900, #0b1f3a) 0%, var(--primary-700, #16407a) 100%);
  color: #fff;
  padding: 56px 0 60px;
}
.art-hero::after {
  content: "🧬";
  position: absolute;
  right: -6px; bottom: -34px;
  font-size: 220px;
  opacity: 0.08;
  transform: rotate(-10deg);
  pointer-events: none;
}
.art-hero-inner { position: relative; max-width: 820px; margin: 0 auto; padding: 0 20px; }
.art-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 22px; flex-wrap: wrap; }
.art-breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.art-breadcrumb a:hover { color: #fff; }
.art-breadcrumb .sep { color: rgba(255,255,255,0.35); }

.art-cat {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full, 999px);
  background: #0e7a55;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.art-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  line-height: 1.18;
  margin-bottom: 16px;
}
.art-meta { font-size: 14px; color: rgba(255,255,255,0.75); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.art-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.5); }

/* ── BODY ── */
.art-body { max-width: 760px; margin: 0 auto; padding: 56px 20px 40px; }
.art-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--neutral-700, #374151);
  font-weight: 500;
  margin-bottom: 28px;
}
.art-body p { font-size: 17px; line-height: 1.8; color: var(--neutral-700, #374151); margin-bottom: 22px; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.art-body li { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
/* di layar sempit, rata kiri lebih enak dibaca (hindari celah antar kata) */
@media (max-width: 600px) { .art-body p, .art-body li { text-align: left; -webkit-hyphens: none; hyphens: none; } }
.art-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  line-height: 1.3;
  color: var(--primary-900, #0b1f3a);
  margin: 40px 0 16px;
}

/* ── Source / citation ── */
.art-source {
  margin-top: 36px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent-500, #14b8a6);
  background: var(--neutral-50, #f8fafc);
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
  color: var(--neutral-600, #475569);
}
.art-source strong { color: var(--neutral-800, #1f2937); }

/* ── Disclaimer kecil ── */
.art-note { margin-top: 18px; font-size: 13.5px; color: var(--neutral-500, #64748b); font-style: italic; }

/* ── Kotak seri artikel (multi-bagian) ── */
.art-series {
  margin: 0 0 30px; padding: 18px 22px;
  background: var(--neutral-50, #f8fafc); border: 1px solid var(--neutral-200, #e5e7eb);
  border-left: 4px solid var(--accent-500, #14b8a6); border-radius: 0 12px 12px 0;
}
.art-series-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-600, #0d9488); margin: 0 0 10px;
}
.art-series-list { list-style: none; counter-reset: part; margin: 0; padding: 0; }
.art-series-list li {
  counter-increment: part; position: relative; padding: 5px 0 5px 30px;
  font-size: 14.5px; line-height: 1.5; text-align: left;
}
.art-series-list li::before {
  content: counter(part); position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--neutral-200, #e5e7eb); color: var(--neutral-600, #475569);
}
.art-series-list li.is-current::before { background: var(--accent-500, #14b8a6); color: #fff; }
.art-series-list li.is-current { font-weight: 700; color: var(--primary-900, #0b1f3a); }
.art-series-list a { color: var(--neutral-700, #374151); text-decoration: none; }
.art-series-list a:hover { color: var(--accent-600, #0d9488); text-decoration: underline; }

/* ── Daftar referensi ── */
.art-refs { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--neutral-200, #e5e7eb); }
.art-refs h3 {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--neutral-500, #64748b); margin: 0 0 6px;
}
.art-refs h4 {
  font-size: 13px; font-weight: 700; color: var(--primary-900, #0b1f3a); margin: 16px 0 6px;
}
.art-refs ol { margin: 0; padding-left: 20px; }
.art-refs li {
  font-size: 13.5px; line-height: 1.65; color: var(--neutral-600, #475569);
  margin-bottom: 7px; text-align: left;
}
.art-refs-note { font-size: 12.5px; font-style: italic; color: var(--neutral-500, #64748b); margin: 14px 0 0; }

/* ── Navigasi antar artikel (prev / next) ── */
.art-nav {
  max-width: 760px; margin: 20px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.art-nav-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; border: 1px solid var(--neutral-200, #e5e7eb); border-radius: 14px;
  text-decoration: none; background: #fff;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.art-nav-item--prev { align-items: flex-start; text-align: left; }
.art-nav-item--next { align-items: flex-end; text-align: right; }
.art-nav-item--empty { border: none; background: transparent; }
.art-nav-item:hover {
  border-color: var(--accent-500, #14b8a6); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11,31,58,0.08);
}
.art-nav-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-600, #0d9488);
}
.art-nav-title {
  font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--primary-900, #0b1f3a);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 600px) {
  .art-nav { grid-template-columns: 1fr; gap: 12px; }
  .art-nav-item--next { align-items: flex-start; text-align: left; }
  .art-nav-item--empty { display: none; }
  .art-nav-title { font-size: 14.5px; -webkit-line-clamp: 2; }
}

/* ── Back to news ── */
.art-back { max-width: 760px; margin: 0 auto; padding: 0 20px 72px; }
.art-back a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--neutral-300, #d1d5db);
  border-radius: var(--radius-full, 999px);
  color: var(--primary-900, #0b1f3a);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.art-back a:hover { border-color: var(--primary-700, #16407a); background: var(--neutral-50, #f8fafc); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .art-hero { padding: 40px 0 44px; }
  .art-hero h1 { font-size: 28px; }
  .art-body { padding: 40px 20px 30px; }
  .art-lead { font-size: 18px; }
  .art-body p { font-size: 16px; }
  .art-body h2 { font-size: 22px; }
}

/* ── Tabel simulasi (untuk artikel data/longform) ── */
.art-table { width:100%; border-collapse:collapse; margin:16px 0 26px; font-size:15px; }
.art-table caption { text-align:left; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--accent-600,#0d9488); padding-bottom:8px; }
.art-table th, .art-table td { padding:10px 14px; border-bottom:1px solid var(--neutral-200,#e5e7eb); vertical-align:top; }
.art-table th { text-align:left; width:66%; font-weight:500; color:var(--neutral-600,#475569); }
.art-table td { text-align:right; font-weight:700; color:var(--primary-900,#0b1f3a); }
.art-table tr:last-child th, .art-table tr:last-child td { border-bottom:none; }

/* ── Callout (catatan visi/konsep) ── */
.art-callout { margin:22px 0; padding:16px 20px; border-left:4px solid #a855f7; background:#faf5ff; border-radius:0 10px 10px 0; font-size:15px; line-height:1.6; color:#6b21a8; }

/* ── Eyebrow sub-skema ── */
.art-scheme { font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--accent-600,#0d9488); margin:0 0 4px; }

/* ── Embed video responsif (YouTube) ── */
.art-video { position:relative; padding-bottom:56.25%; height:0; margin:26px 0; border-radius:14px; overflow:hidden; box-shadow:0 12px 30px rgba(11,31,58,0.14); background:#000; }
.art-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* ══════════════════════════════════════════════════════════════ */
/*  SERI INVESTOR — tabel data lebar & kotak "what this means"     */
/* ══════════════════════════════════════════════════════════════ */

/* Sub-judul di dalam badan artikel (h3). Pakai '>' supaya tidak
   menimpa .art-refs h3 yang sudah ada di atas. */
.art-body > h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18.5px; line-height: 1.4; font-weight: 700;
  color: var(--accent-700, #0f766e);
  margin: 28px 0 10px;
}

/* Tabel lebar: bisa digeser mendatar di layar kecil */
.art-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0 10px; }
.art-datatable { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14.5px; }
.art-datatable caption {
  text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-600, #0d9488); padding-bottom: 8px;
}
.art-datatable thead th {
  background: var(--primary-900, #0b1f3a); color: #fff; text-align: left;
  padding: 10px 12px; font-weight: 600; font-size: 13.5px;
}
.art-datatable td {
  padding: 10px 12px; border-bottom: 1px solid var(--neutral-200, #e5e7eb);
  vertical-align: top; color: var(--neutral-700, #374151); line-height: 1.55;
}
.art-datatable tbody tr:nth-child(even) { background: #f8fafc; }
.art-datatable tbody tr:last-child td { border-bottom: none; }

/* Kotak ringkasan investor di akhir tiap bagian */
.art-investorbox {
  margin: 24px 0; padding: 18px 22px;
  background: #f0fdfa; border: 1px solid #ccfbf1;
  border-left: 4px solid var(--accent-600, #0d9488);
  border-radius: 0 12px 12px 0;
}
.art-body .art-investorbox-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: #0f766e; margin: 0 0 12px; text-align: left;
}
.art-investorbox dl { margin: 0; }
.art-investorbox dt {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-600, #0d9488); margin-top: 12px;
}
.art-investorbox dl > dt:first-child { margin-top: 0; }
.art-investorbox dd { margin: 3px 0 0; font-size: 15.5px; line-height: 1.65; color: #134e4a; }

@media (max-width: 600px) {
  .art-body > h3 { font-size: 17px; }
  .art-investorbox { padding: 14px 16px; }
  .art-investorbox dd { font-size: 15px; }
}

/* ── Kartu sektor (Artikel 3: peta sektor) ── */
.art-sector {
  margin: 26px 0; padding: 0;
  border: 1px solid var(--neutral-200, #e5e7eb); border-radius: 14px;
  overflow: hidden; background: #fff;
  scroll-margin-top: 90px;
}
.art-body .art-sector-head {
  display: flex; align-items: center; gap: 12px; margin: 0;
  padding: 14px 20px;
  background: var(--primary-900, #0b1f3a); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 17.5px; font-weight: 700; line-height: 1.3;
}
.art-sector-num {
  flex: 0 0 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-500, #14b8a6); color: #0b1f3a;
  font-size: 14px; font-weight: 700;
}
.art-sector dl { margin: 0; padding: 6px 20px 18px; }
.art-sector dt {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-600, #0d9488); margin-top: 15px;
}
.art-sector dd {
  margin: 4px 0 0; font-size: 15.5px; line-height: 1.7;
  color: var(--neutral-700, #374151); text-align: justify;
  -webkit-hyphens: auto; hyphens: auto;
}
.art-sector dt.is-gap { color: #b45309; }
.art-sector dd.is-gap {
  background: #fffbeb; border-left: 3px solid #f59e0b;
  padding: 10px 14px; border-radius: 0 8px 8px 0; color: #78350f;
}

/* Lencana besar/sedang di tabel heatmap */
.art-gap {
  display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.art-gap--high { background: #fee2e2; color: #991b1b; }
.art-gap--mod  { background: #fef3c7; color: #92400e; }
.art-datatable a { color: var(--primary-900, #0b1f3a); text-decoration: none; border-bottom: 1px dotted #94a3b8; }
.art-datatable a:hover { color: var(--accent-600, #0d9488); border-bottom-color: currentColor; }

@media (max-width: 600px) {
  .art-body .art-sector-head { font-size: 15.5px; padding: 12px 15px; gap: 10px; }
  .art-sector dl { padding: 4px 15px 15px; }
  .art-sector dd { font-size: 15px; text-align: left; -webkit-hyphens: none; hyphens: none; }
}
