/* Minimal local styles; relies on global styles.css */

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 16px;
}

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

.panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.field {
  margin: 12px 0;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface, rgba(255, 255, 255, 0.04));
  color: var(--text);
  font-size: 14px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field .help-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
}

.toggle input {
  width: auto;
  margin-top: 3px;
}

.toggle label {
  margin: 0;
  font-size: 14px;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.result-row .label {
  opacity: 0.85;
  font-size: 14px;
}

.result-row .value {
  font-weight: 700;
  font-size: 14px;
}

.result-row.highlight {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.result-row .value.highlight-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.reset-button {
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}

.reset-button:hover {
  background: var(--surface2);
  border-color: var(--accent);
}

.explainer-box {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--accentSoft);
  font-size: 13px;
  line-height: 1.5;
}

.explainer-box p {
  margin: 0 0 8px;
}

.explainer-box p:last-child {
  margin-bottom: 0;
}

.faq-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  margin: 0 0 20px;
  font-size: 20px;
  color: var(--text);
}

.faq-item {
  margin-bottom: 24px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--accent2);
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.disclaimer {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--muted);
}

/* TFSA limits table in FAQ */
.tfsa-limits-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}

.tfsa-limits-table thead {
  background: var(--surface2);
}

.tfsa-limits-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  border-bottom: 2px solid var(--border);
}

.tfsa-limits-table th:last-child {
  text-align: right;
}

.tfsa-limits-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.tfsa-limits-table tbody tr:last-child {
  border-bottom: none;
}

.tfsa-limits-table td {
  padding: 8px 12px;
}

.tfsa-limits-table td:last-child {
  text-align: right;
  font-weight: 600;
}

@media (max-width: 600px) {
  .tfsa-limits-table {
    font-size: 13px;
  }
  .tfsa-limits-table th,
  .tfsa-limits-table td {
    padding: 6px 8px;
  }
}
