/* Calculator hub + shared tool extras on top of mortgage.css */

.calc-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.calc-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: var(--mc-card);
  box-shadow: var(--mc-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.calc-hub-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--mc-shadow);
  transform: translateY(-2px);
}

.calc-hub-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mc-primary-soft);
  color: var(--mc-primary);
  font-family: var(--mc-display);
  font-weight: 800;
}

.calc-hub-card h2 {
  margin: 0;
  font-family: var(--mc-display);
  font-size: 1.15rem;
  color: var(--mc-ink);
}

.calc-hub-card p {
  margin: 0;
  color: var(--mc-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.calc-unit-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--mc-wash);
  border: 1px solid var(--mc-line);
  margin-bottom: 1rem;
}

.calc-unit-tabs button {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: var(--mc-muted);
  cursor: pointer;
}

.calc-unit-tabs button.is-active {
  background: #fff;
  color: var(--mc-ink);
  box-shadow: var(--mc-shadow-sm);
}

.calc-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
  color: var(--mc-ink);
  font-size: 0.95rem;
}

.calc-check input {
  margin-top: 0.2rem;
}

.calc-schedule-wrap {
  overflow: auto;
  margin-top: 1rem;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-sm);
}

.calc-schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.calc-schedule th,
.calc-schedule td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--mc-line);
  text-align: right;
  white-space: nowrap;
}

.calc-schedule th:first-child,
.calc-schedule td:first-child {
  text-align: left;
}

.calc-schedule thead th {
  background: var(--mc-wash);
  font-weight: 600;
  color: var(--mc-muted);
}

.calc-schedule tr.year-end td {
  background: var(--mc-primary-soft);
  font-weight: 600;
}

.calc-bmi-meter {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #22c55e 35%, #eab308 60%, #ef4444 100%);
  position: relative;
  margin: 1rem 0 0.5rem;
}

.calc-bmi-needle {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 22px;
  background: var(--mc-ink);
  transform: translateX(-50%);
}

.mc-select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  color: var(--mc-ink);
}

.mc-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

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

.calc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.calc-status-pill.is-ok { background: var(--mc-success-soft); color: #15803d; }
.calc-status-pill.is-warn { background: #fff7ed; color: #c2410c; }
.calc-status-pill.is-bad { background: #fef2f2; color: #b91c1c; }
.calc-status-pill.is-info { background: var(--mc-primary-soft); color: var(--mc-primary); }
