/* ============================================================
   INSIGHTS POST PAGE
   ============================================================ */

/* ── Banner ──────────────────────────────────────────────── */

.insight-banner {
  width: 100%;
  height: 380px;
  position: relative;
  overflow: hidden;
  background-color: var(--secondary-dark);
}

.insight-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 54, 57, 0.5);
  z-index: 1;
}

.insight-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.insight-banner__placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--secondary-dark);
}

.insight-banner__tag-strip {
  position: absolute;
  bottom: 18px;
  left: 28px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  z-index: 2;
}

/* ── Reading column ──────────────────────────────────────── */

.insight-post-outer {
  padding: 0 20px;
}

.insight-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.75rem 0 5rem;
}

/* Back link */
.insight-back {
  display: inline-block;
  font-size: 12px;
  color: var(--secondary-gray);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color 0.2s ease;
}

.insight-back:hover {
  color: var(--primary-green);
}

/* Title */
.insight-post-title {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--secondary-black);
  margin: 0 0 0.85rem;
}

/* Subtitle */
.insight-post-subtitle {
  font-size: 1.05rem;
  color: var(--secondary-gray);
  line-height: 1.65;
  margin: 0 0 1.5rem;
  font-style: italic;
}

/* Meta strip */
.insight-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0.9rem 0;
  border-top: 0.5px solid #e0e0e0;
  border-bottom: 0.5px solid #e0e0e0;
  margin-bottom: 2.25rem;
  font-size: 11px;
  color: var(--secondary-gray);
}

.insight-meta-dot {
  color: #d0d0d0;
}

.insight-meta-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Body content (Markdown output) ─────────────────────── */

.insight-post-body {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--secondary-black);
}

.insight-post-body p {
  margin: 0 0 1.2rem;
}

.insight-post-body h2 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--secondary-black);
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 0.5px solid #e8e8e8;
}

.insight-post-body h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary-black);
  margin: 1.75rem 0 0.5rem;
}

.insight-post-body ul,
.insight-post-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.insight-post-body li {
  margin-bottom: 0.55rem;
  line-height: 1.75;
}

.insight-post-body strong {
  font-weight: 500;
}

.insight-post-body em {
  font-style: italic;
}

/* In-text links */
.insight-post-body a {
  color: var(--primary-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 181, 74, 0.35);
  transition: border-color 0.2s ease;
}

.insight-post-body a:hover {
  border-bottom-color: var(--primary-green);
}

/* Superscript citations */
.insight-post-body sup {
  color: var(--primary-green);
  font-size: 10px;
  font-weight: 500;
  line-height: 0;
  vertical-align: super;
}

/* Images */
.insight-post-body img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 1.75rem 0 0.5rem;
}

/* Image captions — write as *Italic text* on the line after an image */
.insight-post-body p > em:only-child {
  display: block;
  font-size: 11px;
  color: var(--secondary-gray);
  text-align: center;
  font-style: italic;
  margin-top: 0.3rem;
  margin-bottom: 1.5rem;
}

/* Tables */
.insight-post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 1.75rem 0;
}

.insight-post-body th {
  text-align: left;
  padding: 8px 10px;
  font-weight: 500;
  color: var(--secondary-black);
  border-bottom: 1px solid #c8c8c8;
}

.insight-post-body td {
  padding: 8px 10px;
  color: var(--secondary-black);
  border-bottom: 0.5px solid #e8e8e8;
}

/* ── Bibliography ────────────────────────────────────────── */

.insight-post-bib {
  border-top: 0.5px solid #e0e0e0;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.insight-bib-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--secondary-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.insight-bib-list {
  margin: 0;
  padding-left: 1.2rem;
}

.insight-bib-item {
  font-size: 12px;
  color: var(--secondary-gray);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

/* ── Post footer ─────────────────────────────────────────── */

.insight-post-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid #e0e0e0;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .insight-banner {
    height: 240px;
  }

  .insight-post-title {
    font-size: 1.4rem;
  }

  .insight-post-subtitle {
    font-size: 0.95rem;
  }

  .insight-post-body {
    font-size: 14px;
  }
}