/* Plugin: Kalkulator Estimasi Biaya — memakai token warna tema aktif. */

.est {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.est-panel {
  position: sticky;
  top: calc(var(--hdr-h) + 1.4rem);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
}

.range {
  width: 100%;
  height: 1px;
  margin: 1.5rem 0 .6rem;
  background: var(--line);
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--clay);
  border: 3px solid var(--paper);
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--clay);
  border: 3px solid var(--paper);
  cursor: pointer;
}

.est-out {
  font-family: var(--f-d);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.est-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: .9rem;
}
.est-row:last-of-type { border-bottom: 0 }
.est-row span:first-child { color: var(--on-dark-muted) }
.est-row b { font-family: var(--f-d); font-weight: 400 }

.est-form .field:last-child { margin-bottom: 0 }

.est-area-out {
  display: block;
  font-family: var(--f-d);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 300;
  letter-spacing: -.02em;
}

.chip-wide span { display: flex; flex-direction: column; gap: .2rem; text-align: left }
.chip-wide span b { font-weight: 400 }
.chip-wide span em {
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.chip-wide input:checked + span em { color: inherit; opacity: .75 }

.est-range {
  font-size: .86rem;
  color: var(--on-dark-muted);
  margin-top: .5rem;
}

.est-rows { margin: 1.8rem 0 }

.est-note {
  font-size: .74rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
  margin-top: 1.2rem;
}

/* Panel hasil selalu gelap; pastikan isian di dalamnya tetap terbaca. */
.est-panel .btn { width: 100% ; justify-content: center }
.est-panel .mono { color: var(--on-dark-muted) }
.est-panel .est-out { color: var(--on-dark) }

@media (max-width: 900px) {
  .est { grid-template-columns: 1fr; gap: 2rem }
  .est-panel { position: static }
  .est-area-out { font-size: 1.3rem }
}
