/* Laporan Pasaran Kawasan: visual layer for the standard article layout */
:root {
  --report-blue: #1d4ed8;
  --report-blue-light: #bfdbfe;
  --report-blue-soft: #eff6ff;
  --report-teal: #0f766e;
  --report-teal-light: #99f6e4;
  --report-line: #e2e6eb;
  --report-muted: #687383;
}

/* Keep the hero neutral. Colour is reserved for section headings. */
.article-page--laporan-pasaran .article-body__inner > h2 {
  color: var(--report-blue);
}

/* Three compact price cards. Keep the visual treatment restrained. */
.article-page--laporan-pasaran .article-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.5rem 0 2.25rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.article-page--laporan-pasaran .article-stats > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--report-line);
  border-top: 3px solid #64748b;
  border-radius: .75rem;
  background: #fff;
}

.article-page--laporan-pasaran .article-stats > div:nth-child(2) {
  border-top-color: var(--report-blue);
  background: var(--report-blue-soft);
}

.article-page--laporan-pasaran .article-stat__number {
  color: #172033;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.2;
  white-space: normal;
  text-wrap: balance;
}

.article-page--laporan-pasaran .article-stats > div:nth-child(2) .article-stat__number {
  color: var(--report-blue);
}

.article-page--laporan-pasaran .article-stat__label {
  font-size: .76rem;
  line-height: 1.35;
}

.market-chart {
  margin: 1.5rem 0;
  padding: 1.2rem;
  border: 1px solid var(--report-line);
  border-radius: .9rem;
  background: #fff;
}

.market-chart--price {
  border-top: 4px solid var(--report-blue);
}

.market-chart--volume {
  border-top: 4px solid var(--report-teal);
}

.market-chart__head h3 {
  margin: 0 0 .25rem;
}

.market-chart--price .market-chart__head h3 {
  color: var(--report-blue);
}

.market-chart--volume .market-chart__head h3 {
  color: var(--report-teal);
}

.market-chart__head p,
.market-chart__note {
  margin: 0;
  color: var(--report-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.market-chart__note {
  margin-top: .9rem;
}

/* Price chart: one blue theme with a darker highlight. */
.market-bar {
  display: grid;
  grid-template-columns: 190px minmax(120px, 1fr) 34px;
  gap: .7rem;
  align-items: center;
  margin-top: .8rem;
  font-size: .88rem;
}

.market-bar__track {
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.market-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--report-blue-light);
}

.market-bar.is-highlight .market-bar__fill {
  background: var(--report-blue);
}

.market-bar.is-highlight strong {
  color: var(--report-blue);
}

/* Monthly chart: one teal theme with a darker peak month. */
.market-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(28px, 1fr));
  gap: .38rem;
  align-items: end;
  height: 220px;
  margin-top: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--report-line);
}

.market-months > div {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  font-size: .72rem;
}

.market-months i {
  display: block;
  width: 65%;
  height: calc(var(--v) * 30px);
  min-height: var(--min, 0);
  border-radius: .3rem .3rem 0 0;
  background: var(--report-teal-light);
}

.market-months .is-peak i {
  background: var(--report-teal);
}

.market-months .is-peak b {
  color: var(--report-teal);
}

.market-months span {
  margin-top: .35rem;
  color: var(--report-muted);
  white-space: nowrap;
  transform: rotate(-45deg);
  transform-origin: top;
  font-size: .66rem;
}

.article-cta-inline--report {
  border-top: 4px solid var(--report-teal);
}

.article-cta-inline__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

@media (max-width: 760px) {
  .article-page--laporan-pasaran .article-stats {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .article-page--laporan-pasaran .article-stats > div {
    padding: .85rem 1rem;
  }

  .article-page--laporan-pasaran .article-stat__number {
    font-size: 1.08rem;
  }

  .market-bar {
    grid-template-columns: 1fr 36px;
  }

  .market-bar > span:first-child {
    grid-column: 1 / -1;
  }

  .market-months {
    overflow-x: auto;
    grid-template-columns: repeat(12, 34px);
  }

  .article-cta-inline__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .article-cta-inline__actions .btn {
    width: 100%;
    text-align: center;
  }
}
