/* SIP & Lumpsum Calculator - front-end styles
   Accent color is set per-instance via the --slc-accent CSS variable
   (see the shortcode's "accent" attribute), defaulting to #2a72a4. */

.slc-wrap {
  --slc-accent: #2a72a4;
  --slc-accent-deep: #1d5278;
  --slc-paper: #F5F7F9;
  --slc-panel: #FFFFFF;
  --slc-line: #DCE3E8;
  --slc-ink: #16232C;
  --slc-muted: #64707A;
  --slc-gold: #D9A441;
  --slc-returns: #3F9C6D;

  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slc-ink);
  background: var(--slc-paper);
  border: 1px solid var(--slc-line);
  border-radius: 14px;
  padding: 24px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.5;
}

.slc-wrap *, .slc-wrap *::before, .slc-wrap *::after {
  box-sizing: border-box;
}

.slc-tabs {
  display: flex;
  margin-bottom: 20px;
  background: var(--slc-panel);
  border: 1px solid var(--slc-line);
  border-radius: 10px;
  overflow: hidden;
}

.slc-tabs .slc-tab {
  -webkit-appearance: none !important;
  appearance: none !important;
  flex: 1;
  padding: 14px 18px;
  margin: 0;
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: none;
  border-right: 1px solid var(--slc-line);
  box-shadow: none !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--slc-muted) !important;
  text-align: center;
  transition: background-color .15s ease, color .15s ease;
}

.slc-tabs .slc-tab:focus-visible {
  outline: 2px solid var(--slc-accent-deep);
  outline-offset: -2px;
}

.slc-tabs .slc-tab:last-child {
  border-right: none;
}

.slc-tabs .slc-tab.active {
  background-color: var(--slc-accent) !important;
  color: #FFFFFF !important;
}

.slc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .slc-grid {
    grid-template-columns: 1fr;
  }
}

.slc-panel {
  background: var(--slc-panel);
  border: 1px solid var(--slc-line);
  border-radius: 14px;
  padding: 22px;
}

.slc-field {
  margin-bottom: 22px;
}

.slc-field:last-child {
  margin-bottom: 0;
}

.slc-field-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.slc-field-top label {
  font-size: 14px;
  font-weight: 600;
  color: var(--slc-ink);
}

.slc-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--slc-accent-deep);
  font-variant-numeric: tabular-nums;
}

.slc-range {
  width: 100%;
  accent-color: var(--slc-accent);
  height: 6px;
}

.slc-num {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--slc-line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--slc-ink);
  background: #fff;
}

.slc-num:focus,
.slc-range:focus {
  outline: 2px solid var(--slc-accent);
  outline-offset: 2px;
}

.slc-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slc-muted);
  margin-top: 4px;
}

.slc-result {
  background: var(--slc-accent-deep);
  color: #F2F6F8;
  border-radius: 14px;
  padding: 26px;
}

.slc-result-title {
  font-size: 13px;
  color: #C9DCE7;
  margin-bottom: 4px;
}

.slc-result-amount {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin: 0 0 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.slc-bar {
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 10px;
}

.slc-bar-invest {
  background: var(--slc-gold);
}

.slc-bar-returns {
  background: var(--slc-returns);
}

.slc-legend {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: #DCE8EE;
  margin-bottom: 20px;
}

.slc-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

.slc-dot-invest {
  background: var(--slc-gold);
}

.slc-dot-returns {
  background: var(--slc-returns);
}

.slc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slc-bd-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 12px;
}

.slc-bd-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.slc-bd-row span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.slc-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--slc-muted);
  text-align: center;
}
