/* Income Projector v2 — rebuilt 2026-10-12. Clean, focused projector styles. */

.ipv2 { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
.ipv2-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ipv2-title h1 { margin: 0 0 4px; font-family: 'Playfair Display', serif; }
.ipv2-subtitle { margin: 0; color: #555; }
.ipv2-title-actions { display: flex; gap: 8px; }

.ipv2-card { background: #fff; border: 1px solid #e2e5ea; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ipv2-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: #8a6d3b; margin: 0 0 6px; font-weight: 700; }
.ipv2-card h2 { margin: 0 0 8px; font-family: 'Playfair Display', serif; }
.ipv2-card h3 { margin: 24px 0 10px; }
.ipv2-help { color: #5b6472; font-size: 14px; margin: 0 0 16px; }
.ipv2-note { background: #f8f6f0; border-left: 3px solid #c9a227; padding: 10px 14px; font-size: 14px; margin: 16px 0 0; }
.ipv2-error { color: #b3261e; font-weight: 600; }

.ipv2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ipv2-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.ipv2-field input, .ipv2-field select { padding: 10px 12px; border: 1px solid #c9ced6; border-radius: 8px; font-size: 16px; font-weight: 400; width: 100%; }
.ipv2-field small { font-weight: 400; color: #6b7280; font-size: 12px; }

.ipv2-derived { margin-top: 20px; padding: 14px 18px; background: #f0f4fa; border-radius: 8px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ipv2-derived strong { font-size: 24px; }
.ipv2-derived small { color: #5b6472; width: 100%; }

.ipv2-actions { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.btn-lg { padding: 14px 32px; font-size: 18px; }

.ipv2-results { border-top: 4px solid #1a5632; }
.ipv2-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 8px; }
.ipv2-hero-col { padding: 20px; border-radius: 10px; text-align: center; }
.ipv2-hero-col span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.ipv2-hero-col strong { display: block; font-size: 40px; margin-bottom: 8px; }
.ipv2-hero-col small { color: inherit; opacity: .8; font-size: 12px; }
.ipv2-hero-ip { background: #1a5632; color: #fff; }
.ipv2-hero-trad { background: #eef1f5; color: #333; border: 1px solid #dfe3ea; }
.ipv2-negative { color: #b3261e !important; }
.ipv2-hero-ip .ipv2-negative { color: #ffb4ab !important; }

.ipv2-table-wrap { overflow-x: auto; margin: 0 0 8px; }
.ipv2-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ipv2-table th, .ipv2-table td { padding: 10px 12px; border-bottom: 1px solid #eef0f3; text-align: left; vertical-align: top; }
.ipv2-table thead th { background: #f7f8fa; font-weight: 700; }
.ipv2-table td:nth-child(2), .ipv2-table td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ipv2-table .ipv2-help { margin: 0; font-size: 12px; }

.ipv2-disclaimers { margin-top: 28px; padding: 20px; background: #fff8e6; border: 1px solid #e8d48b; border-radius: 8px; }
.ipv2-disclaimers h3 { margin-top: 0; }
.ipv2-disclaimers ul { margin: 0; padding-left: 20px; }
.ipv2-disclaimers li { margin-bottom: 8px; font-size: 14px; }

.ipv2-dialog { border: none; border-radius: 12px; padding: 32px; max-width: 560px; width: calc(100% - 32px); }
.ipv2-dialog::backdrop { background: rgba(0,0,0,.5); }
.ipv2-dialog h2 { margin: 0 0 12px; font-family: 'Playfair Display', serif; }
.ipv2-ack-text { max-height: 220px; overflow-y: auto; background: #f7f8fa; padding: 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.ipv2-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; }
.ipv2-name { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.ipv2-name input { padding: 10px 12px; border: 1px solid #c9ced6; border-radius: 8px; font-size: 16px; }

@media (max-width: 640px) {
  .ipv2-hero { grid-template-columns: 1fr; }
  .ipv2-hero-col strong { font-size: 32px; }
}

/* ---- Print: clean projection handout ---- */
@media print {
  .dash-header, .ipv2-title-actions, .ipv2-actions, #ackDialog, #calcStatus { display: none !important; }
  body { background: #fff; }
  .ipv2 { max-width: 100%; padding: 0; }
  .ipv2-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .ipv2-hero-col strong { font-size: 32px; }
  .ipv2-hero-ip { background: #fff !important; color: #000 !important; border: 2px solid #1a5632; }
  .ipv2-field input, .ipv2-field select { border: none; padding: 0; font-weight: 700; }
  .ipv2-field small { display: none; }
  #results { display: block !important; }
}
