/* calculator.css · "Run your own numbers" (calculator/index.html)
   Lifted from the retired explainer stylesheet (taxes/style.css, kept in git history):
   the input card, the bill bars, the closure steps and the dividend ladder. */
.muted { color: var(--gray); }
.small { font-size: 0.85rem; }

.calc-card {
  background: var(--white); border: 2px solid #e2d9dc; border-radius: 12px;
  padding: 2rem clamp(1.2rem, 4vw, 2.2rem) 1.6rem; margin: 0 0 1rem; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.calc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--maroon); }
.calc-label { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.9rem; }
.hv-input-wrap { display: inline-flex; align-items: center; border: 2px solid var(--maroon); border-radius: 10px; overflow: hidden; background: var(--white); }
.hv-prefix { padding: 0.7rem 0.5rem 0.7rem 0.9rem; font-family: var(--mono); font-weight: 700; font-size: 1.3rem; color: var(--maroon); }
#hv-input {
  font-family: var(--mono); font-size: 1.3rem; font-weight: 700;
  border: none; outline: none; padding: 0.7rem 0.9rem 0.7rem 0; width: 9ch; color: var(--ink);
  font-variant-numeric: tabular-nums; background: transparent;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0.9rem 0 0.4rem; }
.chip {
  font-family: inherit; font-weight: 600; font-size: 0.82rem; cursor: pointer;
  padding: 0.4rem 0.85rem; border-radius: 5px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--ink); transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--maroon); color: var(--maroon); }
.chip.active { background: var(--maroon); border-color: var(--maroon); color: var(--maroon-on); }
.calc-note { font-size: 0.78rem; color: var(--gray); margin: 0.7rem auto 0; max-width: 52ch; }

.stat-pair { display: grid; gap: 1.2rem; margin: 1.6rem 0; }
@media (min-width: 680px) { .stat-pair { grid-template-columns: 1fr 1fr; } }
.stat-pair .stat-callout { margin: 0; padding: 1.4rem; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.stat-callout .stat-eyebrow { display: block; font-size: 0.85rem; font-weight: 700; color: var(--maroon); margin-bottom: 0.5rem; }
.stat-callout .stat-equation { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--gray); line-height: 1.8; }
.eq-num { font-weight: 700; color: var(--maroon); background: var(--maroon-tint); padding: 0.1rem 0.4rem; border-radius: 4px; }
.eq-op { font-weight: 700; color: var(--maroon); padding: 0 0.05em; }

.bill-rows { margin: 1.2rem 0; }
.bill-row {
  display: grid; grid-template-columns: minmax(7.5rem, 12rem) 1fr auto; gap: 0.7rem; align-items: center;
  padding: 0.45rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem;
}
.bill-row:last-child { border-bottom: none; }
.bill-row .bl { font-weight: 600; line-height: 1.25; }
.bill-row .bl small { display: block; font-weight: 400; color: var(--gray); font-size: 0.76rem; }
.bill-bar { height: 16px; border-radius: 3px; background: var(--maroon-tint); position: relative; overflow: hidden; }
.bill-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--slate); border-radius: 3px; transition: width 0.8s var(--ease); }
.bill-row.tid .bill-bar i { background: var(--maroon); box-shadow: inset 0 0 0 2px var(--gold); }
.bill-row.credit .bill-bar i { background: repeating-linear-gradient(45deg, #b9c6d2 0 6px, #d7e0e8 6px 12px); }
.bill-row .bv { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; min-width: 6.5ch; }
.bill-row.total { border-top: 2px solid var(--ink); font-weight: 700; }
.bill-row.total .bv { font-weight: 700; }
.bill-row.tid .bl, .bill-row.tid .bv { color: var(--maroon); font-weight: 700; }

.close-steps { list-style: none; margin: 1.4rem 0; padding: 0; max-width: none; display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .close-steps { grid-template-columns: repeat(3, 1fr); } }
.close-steps li { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: 10px; padding: 0.8rem 1rem; box-shadow: var(--shadow); margin: 0; }
.close-steps li:last-child { border-top-color: var(--maroon); }
.cs-year { display: block; font-size: 1.5rem; font-weight: 700; color: var(--maroon); line-height: 1.1; }
.cs-what { display: block; font-weight: 600; margin-top: 0.2rem; }
.cs-share { display: block; font-size: 0.85rem; color: var(--gray); }

.dividend-ladder { list-style: none; margin: 1.8rem 0 0; padding: 0; max-width: none; }
.dl-step { position: relative; padding: 1.1rem 1.3rem; margin: 0 0 0.7rem; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.dl-step:last-child { margin-bottom: 0; }
.dl-eyebrow { display: block; font-size: 0.85rem; font-weight: 700; color: var(--maroon); margin-bottom: 0.35rem; }
.dl-num { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(1.6rem, 4.6vw, 2.3rem); line-height: 1.1; color: var(--maroon); letter-spacing: -0.01em; }
.dl-num s { color: var(--gray); text-decoration-thickness: 2px; }
.dl-arrow { color: var(--gray); font-weight: 400; padding: 0 0.15em; }
.dl-note { font-size: 0.95rem; margin: 0.5rem 0 0; max-width: 62ch; }
.dl-cut { border-left: 4px solid var(--gold); }
.dl-land { border-left: 4px solid var(--maroon); background: var(--maroon-tint); }
