/* Calculators (rendered by tooling/build.py, calculated by mb-calc.js). Builds on mb-site.css. */
.mbc-hero { padding-block: clamp(40px, 6vw, 72px); }
.mbc-hero .mb-hero__content { max-width: 900px; }
.mbc-section { padding-block-start: clamp(36px, 6vw, 64px); }
.mbc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px;
  align-items: start;
}
.mbc-form, .mbc-results {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--mb-line);
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.mbc-results { position: sticky; inset-block-start: 96px; background: var(--mb-panel); }
.mbc-results:focus { outline: none; }
.mbc-results:focus-visible { outline: 3px solid var(--mb-gold-soft); outline-offset: 3px; }
.mbc-title { margin: 0 0 20px; font-family: var(--mb-serif); font-size: clamp(24px, 3vw, 30px); }
.mbc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.mbc-field { min-width: 0; }
.mbc-field label { display: block; margin-block-end: 7px; font-weight: 800; line-height: 1.35; }
.mbc-field--check { grid-column: 1 / -1; }
.mbc-field--check label { display: inline-flex; font-weight: 600; }
.mbc-field input[type="number"], .mbc-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(244,241,232,.3);
  border-radius: 0;
  color: var(--mb-text);
  background: #0b0d11;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.mbc-field select option { color: #111; background: #fff; }
.mbc-field input:focus-visible, .mbc-field select:focus-visible { border-color: var(--mb-gold); }
.mbc-input { position: relative; display: block; }
.mbc-input input[type="number"] { padding-inline-end: 52px; }
.mbc-unit {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  padding-inline: 14px;
  color: var(--mb-gold-soft);
  font-weight: 800;
  pointer-events: none;
}
.mbc-hint { margin: 6px 0 0; color: var(--mb-muted); font-size: 14px; line-height: 1.5; }
.mbc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-block-start: 26px; }
.mbc-reset {
  padding: 0;
  border: 0;
  color: var(--mb-gold-soft);
  background: none;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.mbc-privacy { margin: 18px 0 0; color: var(--mb-muted); font-size: 14px; line-height: 1.55; }
.mbc-list { margin: 0; }
.mbc-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 11px;
  border-block-end: 1px solid rgba(215, 179, 62, .14);
}
.mbc-row dt { flex: 1 1 12em; color: var(--mb-muted); line-height: 1.4; }
.mbc-row dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; text-align: end; }
.mbc-row--primary {
  margin-block-end: 8px;
  padding: 16px 18px;
  border: 1px solid var(--mb-gold);
  background: rgba(215, 179, 62, .1);
}
.mbc-row--primary dt { color: var(--mb-text); font-weight: 800; }
.mbc-row--primary dd { color: var(--mb-gold-soft); font-family: var(--mb-serif); font-size: clamp(26px, 3.4vw, 34px); }
.mbc-error { margin: 0 0 16px; padding: 14px 16px; border-inline-start: 4px solid var(--mb-danger); color: var(--mb-danger); background: rgba(255, 181, 181, .08); font-weight: 700; }
.mbc-note { margin-block-start: 18px; font-size: 15px; }
.mbc-table { margin-block-start: 28px; border: 1px solid var(--mb-line); }
.mbc-table summary { padding: 16px 20px; font-weight: 800; cursor: pointer; }
.mbc-table__scroll { overflow-x: auto; }
.mbc-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mbc-table th, .mbc-table td { padding: 10px 16px; border-block-start: 1px solid rgba(215, 179, 62, .14); text-align: end; white-space: nowrap; }
.mbc-table thead th { color: var(--mb-gold-soft); }
.mbc-table th:first-child { text-align: start; }
.mbc-disclaimer { margin-block-start: 28px; }
.mbc-card { display: flex; flex-direction: column; }
.mbc-card h3 a { text-decoration: none; }
.mbc-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mbc-card__link { margin-block-start: auto; padding-block-start: 18px; }

@media (max-width: 980px) {
  .mbc { grid-template-columns: minmax(0, 1fr); }
  .mbc-results { position: static; }
}
@media (max-width: 560px) {
  .mbc-fields { grid-template-columns: minmax(0, 1fr); }
  .mbc-form, .mbc-results { padding: 18px; }
  .mbc-table th, .mbc-table td { padding: 9px 10px; }
}
