/* =====================================================================
   CITRA ENERGI BUMI — Halaman Wawasan & Insight (blog)
   Tambahan kecil di atas design system. HANYA memakai token dari
   style.css (var(--...)) — aman untuk mode terang & gelap.
   ===================================================================== */

/* ---------- Banner halaman (hero kecil) ---------- */
.insight-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 80px));
  padding-bottom: clamp(24px, 4vw, 48px);
  overflow: hidden;
}
.insight-hero .hero-grid-lines,
.insight-hero .hero-orb { z-index: 0; }

/* Catatan kecil mode EN: artikel berbahasa Indonesia */
.insight-lang-note {
  margin-top: 14px; max-width: 60ch;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
  color: var(--faint); font-style: italic;
}

/* ---------- Chip artikel: Audio (biru) & Interaktif (oranye) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.6;
  padding: 3px 11px; border-radius: 100px; white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.chip-audio {
  color: var(--blue);
  background: rgba(61, 169, 252, .12);
  border: 1px solid rgba(61, 169, 252, .35);
}
.chip-calc {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 122, 26, .35);
}

/* ---------- Kartu artikel (list & related) ---------- */
.insight-card { padding: 0; display: flex; flex-direction: column; }
.insight-card .ic-body {
  padding: clamp(18px, 2.4vw, 26px);
  display: flex; flex-direction: column; flex-grow: 1;
}
.insight-card h3 { font-size: 1.12rem; margin: 12px 0 8px; }
.insight-card .ic-body > p { color: var(--muted); font-size: .92rem; line-height: 1.65; flex-grow: 1; }
.insight-card .ic-more {
  margin-top: 16px; display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent); font-weight: 600; font-size: .88rem;
}
.insight-card .ic-more svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform .3s var(--ease); }
.insight-card:hover .ic-more svg { transform: translateX(4px); }

/* Cover 16:9 — foto, atau placeholder gradasi + inisial */
.insight-cover {
  aspect-ratio: 16 / 9; overflow: hidden; flex-shrink: 0;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.insight-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.insight-card:hover .insight-cover img { transform: scale(1.05); }
.insight-cover-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 194, 71, .35), transparent 55%),
    linear-gradient(135deg, var(--surface-3) 0%, var(--surface) 55%, rgba(255, 122, 26, .28) 100%);
}
.insight-cover-ph span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Meta baris: tanggal + chip */
.insight-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: .76rem; color: var(--faint);
}
.insight-meta .im-date { display: inline-flex; align-items: center; gap: .45rem; }
.insight-meta .im-date svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Detail artikel ---------- */
.insight-detail-head { max-width: 820px; }
.insight-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
  transition: color .25s;
}
.insight-back:hover { color: var(--accent); }
.insight-back svg { width: 15px; height: 15px; }
.insight-title { font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: 16px; }
.insight-detail-head .insight-meta { font-size: .8rem; }

.insight-article { max-width: 820px; margin-inline: auto; }
.insight-cover-detail {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  margin-bottom: clamp(24px, 4vw, 36px);
}

/* Tipografi isi artikel (HTML sederhana dari admin: p, h3, ul, a) */
.insight-body { font-size: 1.02rem; line-height: 1.85; color: var(--text); }
.insight-body p { margin-bottom: 1.15em; color: var(--muted); }
.insight-body h3 {
  font-size: clamp(1.18rem, 2vw, 1.4rem); margin: 1.7em 0 .65em;
  color: var(--text);
}
.insight-body ul { margin: 0 0 1.15em; padding-left: 1.5em; list-style: disc; color: var(--muted); }
.insight-body ul li { margin-bottom: .5em; }
.insight-body ul li::marker { color: var(--accent); }
.insight-body a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.insight-body a:hover { color: var(--accent-2); }
.insight-body img { border-radius: var(--r); border: 1px solid var(--border); margin-block: .6em; }

/* ---------- Kotak audio snippet ---------- */
.audio-box {
  background: linear-gradient(120deg, rgba(61, 169, 252, .1), transparent 65%), var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 18px clamp(16px, 2.4vw, 24px);
  margin-bottom: clamp(24px, 4vw, 34px);
}
.audio-box-label {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 12px;
  color: var(--text); font-size: .92rem;
}
.audio-box-label svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.audio-box audio { width: 100%; display: block; }

/* ---------- Kalkulator AC tersemat ---------- */
.calc-box { margin-top: clamp(30px, 5vw, 48px); }
.calc-box:hover { transform: none; }              /* kartu form: tanpa lift */
.calc-box > h3 { margin: 14px 0 8px; }
.calc-box .calc-lead { font-size: .94rem; max-width: 56ch; margin-bottom: 22px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-grid .field { margin-bottom: 0; }
.calc-result {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 22px;
}
.calc-result .cr-item {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 16px 18px;
}
.calc-result .cr-label {
  display: block; font-size: .78rem; color: var(--faint);
  font-family: var(--font-mono); letter-spacing: .03em; margin-bottom: 8px;
}
.calc-result strong {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700; letter-spacing: -.01em;
}
.calc-result .cr-accent { border-color: rgba(255, 122, 26, .4); background: var(--accent-soft); }
.calc-result .cr-accent strong { color: var(--accent); }
.calc-note { margin-top: 16px; font-size: .78rem; color: var(--faint); line-height: 1.6; }

/* ---------- CTA band (halaman ini tidak memuat home.css) ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
}
.cta-band .cta-orb {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  filter: blur(100px); opacity: .4;
  background: radial-gradient(circle, rgba(255, 122, 26, .6), transparent 65%);
  top: -180px; right: -120px; pointer-events: none;
}
:root[data-theme="light"] .cta-band .cta-orb { opacity: .22; }
.cta-band .cta-copy { position: relative; z-index: 2; max-width: 680px; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Responsif ---------- */
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { grid-template-columns: 1fr; }
}
