.planner-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(11, 19, 38, 0.08);
  margin-bottom: 18px;
  font-weight: 600;
}

.calc-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.calc-title-row h1 {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.back-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  position: relative;
  top: 10px;
}

.planner-tabs button {
  background: transparent;
  border: none;
  padding: 10px 4px 12px;
  cursor: pointer;
  color: #1d4ed8;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  border-bottom: 3px solid transparent;
}

.planner-tabs button.active {
  color: #0b1326;
  border-color: #0b1326;
}

.planner-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 26, 55, 0.08);
  box-shadow: 0 14px 30px rgba(11, 19, 38, 0.08);
  padding: 24px;
}

.planner-section {
  display: none;
}

.planner-section.is-active {
  display: block;
}
.calc-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 26, 55, 0.08);
  box-shadow: 0 14px 30px rgba(11, 19, 38, 0.08);
  padding: 24px;
}

.planner-insights {
  margin-top: 28px;
  display: grid;
  gap: 22px;
}

.planner-insights .results-wrap {
  display: flex;
  justify-content: center;
}

.planner-insights .chart-card {
  max-width: 420px;
  margin: 0 auto;
}


.planner-insights .retirement-insights-row {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.planner-insights .retirement-insights-row .results-wrap {
  display: block;
}

.planner-insights .retirement-insights-row .chart-card {
  max-width: 360px;
  margin: 0 auto;
}

.planner-insights .retirement-insights-row .results {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  justify-content: start;
  justify-items: stretch;
}

.planner-insights .retirement-insights-row .result-card {
  max-width: none;
}

.planner-table {
  width: 100%;
  border-collapse: collapse;
}

.planner-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(11, 19, 38, 0.08);
  vertical-align: middle;
}

.planner-table td:nth-child(1) {
  width: 40px;
  color: #5b6577;
}

.planner-table td:nth-child(2) {
  width: 65%;
}

.planner-table td:nth-child(3) {
  width: 35%;
  text-align: right;
  vertical-align: middle;
}

.asset-allocation-card h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.asset-allocation-card p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 16px;
}

.asset-allocation-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.asset-sidebar {
  border-right: 1px solid rgba(11, 19, 38, 0.08);
  padding-right: 18px;
}

.asset-sidebar .field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.asset-sidebar label {
  font-weight: 600;
  color: #0b1326;
}

.asset-sidebar .value-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  padding: 6px 10px;
}

.asset-sidebar select,
.asset-sidebar input {
  border: none;
  outline: none;
  width: 100%;
  font-weight: 600;
  background: transparent;
}

.asset-sidebar .summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(11, 19, 38, 0.08);
  font-weight: 600;
}

.asset-sidebar .summary-line strong {
  color: #0b1326;
}

.asset-sidebar .vaa-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

.asset-table-wrap {
  width: 100%;
}

.asset-table {
  table-layout: fixed;
  width: 100%;
}

.asset-table th,
.asset-table td {
  text-align: center;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(11, 19, 38, 0.08);
  font-size: 0.88rem;
}

.asset-table th {
  font-weight: 600;
  color: #0b1326;
  white-space: normal;
}

.asset-table td {
  color: #1f2937;
}

.asset-table .input-box {
  min-width: 0;
  width: 100%;
  justify-content: center;
}

.asset-table .input-box input {
  text-align: center;
}

.asset-table .output {
  font-weight: 600;
}

.cashflow-simple {
  margin-top: 16px;
}

.cashflow-simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cashflow-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0b1326;
}

.cashflow-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 19, 38, 0.08);
}

.cashflow-summary span {
  color: #5b6577;
  font-size: 0.95rem;
}

.cashflow-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  color: #0b1326;
}

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

  .cashflow-summary {
    grid-template-columns: 1fr;
  }
}

.other-goals-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.goals-table {
  table-layout: fixed;
  width: 100%;
}

.goals-table td {
  text-align: center;
  padding: 10px 8px;
  width: auto;
}

.goals-table td:first-child {
  text-align: left;
  width: 32%;
  color: #0b1326;
}

.goals-table td:first-child,
.goals-table td:first-child * {
  word-break: break-word;
}

.goals-table td:not(:first-child) {
  width: 13.6%;
}

.goals-table-wrap {
  overflow-x: visible;
}

.goals-table .input-box {
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.goals-table .input-box input {
  text-align: center;
}

.goals-table .output {
  font-weight: 600;
}

#otherGoalsSchedule .yearly-chart-canvas {
  height: 280px;
}

.input-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 140px;
  justify-content: flex-end;
}

.input-box input {
  border: none;
  outline: none;
  width: 100%;
  text-align: right;
  font-weight: 600;
}

.input-box .suffix {
  margin-left: 6px;
}

.output {
  font-weight: 700;
}

.fv-col {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px);
  gap: 8px 16px;
  align-items: center;
  justify-items: end;
}

.fv-col .label {
  color: #5b6577;
}

.fv-col span:first-child {
  justify-self: center;
}

.planner-table td.fv-header {
  text-align: left;
}

.fv-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px);
  gap: 8px 16px;
  align-items: end;
}

.fv-header-left {
  justify-self: center;
  text-align: center;
}

.fv-header-right {
  justify-self: end;
  text-align: right;
}

.calculate-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.calc-btn {
  width: 160px;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: #d81b60;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(216, 27, 96, 0.25);
}

.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(216, 27, 96, 0.28);
}

.section-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}



.faq-list {
  display: block;
}

.faq-item {
  border-bottom: 1px solid rgba(11, 19, 38, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-size: 1.1rem;
  color: #0b1326;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0b1326;
  border-bottom: 2px solid #0b1326;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(-135deg);
}

.faq-body {
  padding: 0 0 14px 0;
}

.faq-body p {
  font-size: 1.02rem;
  color: #1f2a4a;
  line-height: 1.9;
  margin: 0;
  letter-spacing: 0.01em;
}

.note {
  font-size: 0.9rem;
  color: #4b5563;
}

@media (max-width: 900px) {
  .planner-table td:nth-child(2) {
    width: auto;
  }

  .planner-table td:nth-child(3) {
    width: auto;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .asset-allocation-grid {
    grid-template-columns: 1fr;
  }

  .asset-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(11, 19, 38, 0.08);
    padding-right: 0;
    padding-bottom: 16px;
  }

  .planner-insights .retirement-insights-row {
    grid-template-columns: 1fr;
  }

  .planner-insights .retirement-insights-row .chart-card {
    max-width: 320px;
  }

  .asset-table-wrap {
    overflow-x: auto;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .calc-notes,
  .calc-faq,
  #retirementDisclaimer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .calc-notes,
  .calc-faq,
  #retirementDisclaimer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 768px) {
  .calc-title-row {
    gap: 10px;
    margin-bottom: 4px;
  }

  .back-link {
    width: 24px;
    height: 24px;
  }

  .calc-page {
    margin: 110px 16px 48px;
  }

  .planner-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .calc-notes,
  .calc-faq,
  #retirementDisclaimer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 18px;
    padding-right: 18px;
  }
}