.ie-zone-hero {
  min-height: 260px;
}

.ie-zone__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.ie-zone__lead {
  max-width: 68ch;
  margin: 0 0 22px;
  color: var(--vs-muted);
  font-size: 16px;
  line-height: 1.65;
}

.ie-zone__lead strong {
  color: var(--vs-ink);
}

.ie-zone-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid #d9d1c2;
  background: #d9d1c2;
}

.ie-zone-stats > div {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px 18px;
  background: #fff;
}

.ie-zone-stats dt {
  color: #8a7658;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ie-zone-stats dd {
  margin: 0;
  color: var(--vs-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ie-zone-stats dd small {
  color: var(--vs-muted);
  font-size: 14px;
  font-weight: 700;
}

.ie-zone-stats .ie-zone-stats__sub {
  color: var(--vs-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ie-zone-stats__note {
  margin: 10px 0 26px;
  color: #8b887f;
  font-size: 13px;
  line-height: 1.5;
}

.ie-zone-filters {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.ie-zone-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ie-zone-filters__label {
  min-width: 92px;
  color: #6d665c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ie-zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #d9d1c2;
  background: #fff;
  color: #5f5b54;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ie-zone-chip b {
  color: #a39d92;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ie-zone-chip:hover,
.ie-zone-chip:focus-visible {
  border-color: var(--vs-ink);
  color: var(--vs-ink);
}

.ie-zone-chip.is-active {
  border-color: var(--vs-ink);
  background: var(--vs-ink);
  color: #fff;
}

.ie-zone-chip.is-active b {
  color: rgba(255, 255, 255, 0.7);
}

.ie-zone-clear {
  color: var(--vs-ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
}

.ie-zone__intro {
  max-width: 72ch;
  margin: 0 0 14px;
  color: var(--vs-ink);
  font-size: 17px;
  line-height: 1.7;
}

.ie-zone-guide__body {
  max-width: 72ch;
  color: var(--vs-muted);
  font-size: 16px;
  line-height: 1.75;
}

.ie-zone-guide__body h3 {
  margin: 30px 0 10px;
  color: var(--vs-ink);
  font-size: 21px;
  line-height: 1.3;
  text-wrap: balance;
}

.ie-zone-guide__body h3:first-child {
  margin-top: 6px;
}

.ie-zone-guide__body p {
  margin: 0 0 14px;
}

.ie-zone-guide__list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 20px;
}

.ie-zone .vs-pagination {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .ie-zone__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ie-zone-stats dd {
    font-size: 20px;
  }

  .ie-zone-stats > div {
    padding: 14px;
  }

  .ie-zone-filters__label {
    flex-basis: 100%;
  }
}

/* ---------- Price index chart ---------- */
.ie-index {
  --ie-rec: #00897b;
  --ie-model: #d4771a;
  --ie-grid: #ebe6dc;
  --ie-axis: #8b887f;
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--vs-border);
}

.ie-index h2 {
  margin: 8px 0 8px;
  font-size: 30px;
  line-height: 1.15;
  text-wrap: balance;
}

.ie-index__dek {
  max-width: 72ch;
  margin: 0 0 16px;
  color: var(--vs-muted);
  line-height: 1.6;
}

.ie-index__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  color: var(--vs-ink);
  font-size: 13px;
  font-weight: 700;
}

.ie-index__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ie-index__key-rec,
.ie-index__key-model {
  stroke-width: 2.5;
  stroke-linecap: round;
}

.ie-index__key-rec { stroke: var(--ie-rec); }
.ie-index__key-model { stroke: var(--ie-model); stroke-dasharray: 5 4; }

.ie-index__swatch {
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ie-model) 16%, transparent);
}

.ie-index__frame {
  position: relative;
}

.ie-index__plot {
  overflow-x: auto;
  border: 1px solid #e3ddd1;
  background: #fff;
}

.ie-index__plot svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
  font-family: inherit;
}

.ie-index__grid line { stroke: var(--ie-grid); stroke-width: 1; }
.ie-index__grid text,
.ie-index__xaxis text {
  fill: var(--ie-axis);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ie-index__divider line { stroke: #cfc8ba; stroke-width: 1; }
.ie-index__divider text {
  fill: var(--ie-axis);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ie-index__band--model { fill: var(--ie-model); fill-opacity: 0.1; }
.ie-index__band--rec { fill: var(--ie-rec); fill-opacity: 0.1; }
.ie-index__whisker { stroke: var(--ie-rec); stroke-opacity: 0.35; stroke-width: 8; stroke-linecap: round; }

.ie-index__line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ie-index__line--rec { stroke: var(--ie-rec); }
.ie-index__line--model { stroke: var(--ie-model); stroke-dasharray: 6 5; }

.ie-index__dot,
.ie-index__focus {
  stroke: #fff;
  stroke-width: 2;
}

.ie-index__dot--rec,
.ie-index__focus--recorded { fill: var(--ie-rec); }
.ie-index__dot--model,
.ie-index__focus--model { fill: var(--ie-model); }

.ie-index__label {
  fill: var(--vs-ink);
  font-size: 15px;
  font-weight: 800;
}

.ie-index__sublabel {
  fill: var(--ie-axis);
  font-size: 12px;
  font-weight: 600;
}

.ie-index__crosshair {
  stroke: #9a9488;
  stroke-width: 1;
  pointer-events: none;
}

.ie-index__hits rect {
  fill: transparent;
  cursor: crosshair;
  outline: none;
}

.ie-index__hits rect:focus-visible {
  fill: rgba(17, 19, 24, 0.05);
}

.ie-index__tip {
  position: absolute;
  z-index: 3;
  min-width: 210px;
  padding: 12px 14px;
  border: 1px solid #e3ddd1;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 19, 24, 0.12);
  pointer-events: none;
  font-size: 13px;
}

.ie-index__tip-month {
  margin-bottom: 8px;
  color: var(--vs-ink);
  font-weight: 800;
}

.ie-index__tip-row {
  display: grid;
  grid-template-columns: 18px auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--vs-muted);
}

.ie-index__tip-row strong {
  color: var(--vs-ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.ie-index__tip-row .ie-index__swatch {
  width: 16px;
}

.ie-index__tip-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #efeae1;
  color: var(--ie-axis);
  font-size: 12px;
  font-weight: 700;
}

.ie-index__method,
.ie-index__table {
  margin-top: 12px;
  color: var(--vs-muted);
  font-size: 14px;
}

.ie-index__method summary,
.ie-index__table summary {
  cursor: pointer;
  color: var(--vs-ink);
  font-weight: 800;
}

.ie-index__method p {
  max-width: 72ch;
  margin: 8px 0 0;
  line-height: 1.65;
}

.ie-index__table-wrap {
  max-height: 360px;
  margin-top: 8px;
  overflow: auto;
  border: 1px solid #e3ddd1;
}

.ie-index__table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-variant-numeric: tabular-nums;
}

.ie-index__table th,
.ie-index__table td {
  padding: 8px 12px;
  border-bottom: 1px solid #efeae1;
  text-align: left;
  white-space: nowrap;
}

.ie-index__table thead th {
  position: sticky;
  top: 0;
  background: #faf8f4;
  color: var(--vs-ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .ie-index__focus { transition: cx 0.08s linear, cy 0.08s linear; }
}

@media (forced-colors: active) {
  .ie-index__line--rec,
  .ie-index__line--model { stroke: CanvasText; }
}
