
/* IKC Interactive Tools: Compound Interest Calculator */
.ikc-tool-trigger {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 4px 8px;
  padding: 7px 11px;
  border: 1px solid #c9a96e;
  border-radius: 7px;
  background: #fbf7ef;
  color: #594421;
  font: inherit;
  font-size: 0.88em;
  font-weight: 600;
  cursor: pointer;
}
.ikc-tool-trigger:hover { background: #f4ead8; }
.ikc-calculator-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 18px; overflow-y: auto;
  background: rgba(16, 24, 40, 0.58);
}
.ikc-calculator-modal {
  position: relative; display: flex; flex-direction: column; width: min(760px, 100%); max-height: calc(100vh - 36px);
  overflow: hidden; padding: 0;
  border: 1px solid #e5e7eb; border-radius: 16px;
  background: #fff; color: #202938;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.ikc-calc-modal-head { display: contents; }
.ikc-calc-modal-title { display: none; }
.ikc-calc-content { box-sizing: border-box; min-height: 0; overflow-y: auto; padding: 28px; }
.ikc-calc-close {
  position: absolute; top: 12px; right: 16px; z-index: 2; width: 36px; height: 36px;
  border: 0; border-radius: 8px; background: transparent; color: #344054;
  font-size: 28px; cursor: pointer;
}
.ikc-calc-kicker { color: #8a6a35; font-size: 11px; font-weight: 750; letter-spacing: .1em; }
.ikc-calculator-modal h2 { margin: 8px 38px 8px 0; font-size: clamp(20px, 3vw, 26px); line-height: 1.35; }
.ikc-calc-intro { margin: 0 0 22px; color: #667085; line-height: 1.6; }
.ikc-calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.ikc-calc-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 650; }
.ikc-calc-form input, .ikc-calc-form select {
  box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 11px;
  border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: #202938;
  font: inherit; font-weight: 450;
}
.ikc-calc-form input:focus, .ikc-calc-form select:focus { outline: 2px solid #d8c094; outline-offset: 1px; }
.ikc-calc-input-wrap { display: flex; align-items: center; border: 1px solid #d0d5dd; border-radius: 8px; padding-left: 10px; color: #667085; }
.ikc-calc-input-wrap input { border: 0; }
.ikc-calc-full { grid-column: 1 / -1; }
.ikc-calc-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: #f8f9fb; color: #667085; font-size: 12px; line-height: 1.55; font-weight: 400; }
.ikc-calc-results { margin-top: 20px; padding: 17px; border-radius: 12px; background: #f8f7f4; }
.ikc-calc-total { display: flex; flex-direction: column; gap: 5px; padding-bottom: 14px; border-bottom: 1px solid #e5e1d8; }
.ikc-calc-total span, .ikc-calc-result-grid span { color: #667085; font-size: 12px; }
.ikc-calc-total strong { font-size: clamp(25px, 4vw, 34px); color: #34452f; font-variant-numeric: tabular-nums; }
.ikc-calc-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 13px; }
.ikc-calc-result-grid div { display: flex; flex-direction: column; gap: 5px; }
.ikc-calc-result-grid strong { font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ikc-calc-chart-heading { margin: 20px 0 10px; font-size: 13px; font-weight: 700; }
.ikc-calc-chart { display: flex; flex-direction: column; gap: 7px; }
.ikc-calc-chart-row { display: grid; grid-template-columns: 58px minmax(40px, 1fr) minmax(88px, auto); align-items: center; gap: 8px; font-size: 11px; }
.ikc-calc-chart-year { color: #667085; }
.ikc-calc-chart-track { height: 9px; overflow: hidden; border-radius: 99px; background: #e8e5de; }
.ikc-calc-chart-bar { height: 100%; min-width: 2px; border-radius: 99px; background: #9b8356; transition: width .15s ease; }
.ikc-calc-chart-value { text-align: right; color: #344054; font-variant-numeric: tabular-nums; }
.ikc-calc-disclaimer { margin: 14px 0 0; color: #667085; font-size: 11px; line-height: 1.6; }
@media (max-width: 560px) {
  .ikc-calculator-overlay { align-items: stretch; justify-content: stretch; padding: 0; overflow: hidden; }
  .ikc-calculator-modal { width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border: 0; border-radius: 0; }
  .ikc-calc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; padding: 10px 14px; border-bottom: 1px solid #e2e7ed; background: #fff; }
  .ikc-calc-modal-title { display: block; margin: 0; padding-right: 8px; font-size: 15px; line-height: 1.35; font-weight: 750; color: #202938; }
  .ikc-calc-close { position: static; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; font-size: 30px; line-height: 1; }
  .ikc-calc-content { flex: 1 1 auto; width: 100%; overflow-y: auto; padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .ikc-calc-form { grid-template-columns: 1fr; }
  .ikc-calc-full { grid-column: auto; }
  .ikc-calc-chart-row { grid-template-columns: 48px minmax(25px, 1fr) minmax(78px, auto); gap: 5px; font-size: 10px; }
}


/* PDF export actions */
.ikc-calc-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.ikc-calc-pdf,
.ikc-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid #c9a96e;
  border-radius: 7px;
  background: #fbf7ef;
  color: #594421;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.ikc-calc-pdf:hover,
.ikc-export-button:hover {
  background: #f4ead8;
}
.ikc-export-button {
  align-self: center;
  margin: 0;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
