/* ============================================
   DECILION — Insights Listing Page Styles
   Shared across EN, ES, PT listing pages
   ============================================ */

/* ── Hero ── */
.insights-hero {
  padding: var(--sp-12) 0 60px;
  position: relative;
  overflow: hidden;
}
.insights-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: url('/assets/images/hero-insights.webp') center/cover;
  opacity: 0;
  animation: heroImageIn 0.8s ease-out 0.1s forwards;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.7), transparent 65%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.7), transparent 65%);
  pointer-events: none;
}
.insights-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.insights-hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: var(--sp-5);
  opacity: 0;
  animation: slideUp 0.5s var(--ease) 0.1s forwards;
}
.insights-hero__label::before {
  content: '';
  width: var(--sp-6);
  height: 2px;
  background: var(--teal);
}
.insights-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: slideUp 0.6s var(--ease) 0.2s forwards;
}
.insights-hero__sub {
  font-size: var(--fs-body-xl);
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.75;
}
.insights-hero__sub a {
  color: var(--teal-dark);
  font-weight: 500;
}
@media (max-width: 768px) {
  .insights-hero::before { display: none; }
}

/* ── Article Cards ── */
.articles {
  padding: var(--sp-9) 0 var(--section-py);
}
.articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
.article-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
}
.article-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: inherit;
}
.article-card__body {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-card__series {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: var(--sp-3);
}
.article-card__title {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: var(--sp-3);
}
.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}
.article-card__meta {
  font-size: var(--fs-caption);
  color: var(--ink-3);
  display: flex;
  gap: var(--sp-4);
}
.article-card__lang {
  display: flex;
  gap: 6px;
}
.article-card__lang-tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
  background: var(--cream-dark);
  color: var(--ink-2);
}
.article-card__viz {
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 240px;
  overflow: hidden;
}
.article-card__viz--img {
  padding: 0;
}
.article-card__viz--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.article-card__viz .mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  width: 100%;
  max-width: 240px;
}
.article-card__viz .mini-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.article-card__viz .mini-chart__bar {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.article-card__viz .mini-chart__lbl {
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
}

/* ── Substack CTA ── */
.substack-cta {
  padding: var(--sp-9) 0 var(--section-py);
}
.substack-cta__card {
  background: var(--purple);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--sp-9) var(--sp-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.substack-cta__card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  background: var(--teal);
  opacity: 0.1;
}
.substack-cta__card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: var(--sp-12);
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: var(--orange);
  opacity: 0.1;
}
.substack-cta__text {
  position: relative;
  z-index: 1;
}
.substack-cta__text h3 {
  font-family: var(--serif);
  font-size: var(--fs-heading-xs);
  color: var(--white);
  margin-bottom: 14px;
}
.substack-cta__rule {
  width: var(--sp-12);
  height: 3px;
  border: none;
  margin: 0 0 14px;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--orange), var(--yellow));
  border-radius: 2px;
}
.substack-cta__text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.substack-cta__text em {
  color: rgba(255,255,255,0.9);
}
.substack-cta__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: all 0.2s;
}
.substack-cta__link:hover {
  background: var(--teal);
  color: var(--white);
}

/* ── Content Type Badges ── */
.article-card__type {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: var(--sp-2);
  vertical-align: middle;
}
.article-card__type--viewpoint {
  background: rgba(247,148,29,0.12);
  color: var(--orange);
}
.article-card__type--report {
  background: rgba(27,42,74,0.08);
  color: var(--navy);
}
.article-card--viewpoint {
  border-top: 3px solid var(--orange);
}
.article-card--report {
  border-top: 3px solid var(--navy);
}
.article-card__stats {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-top: var(--sp-2);
  letter-spacing: 0.02em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-card { grid-template-columns: 1fr; }
  .article-card__viz { min-height: 180px; }
  .substack-cta__card { flex-direction: column; text-align: center; }
}
