/* SnapCalc core theme (v2) */
:root {
  --sc-primary: #2563eb;
  --sc-primary-dark: #1d4ed8;
  --sc-soft: #eaf0f8;
  --sc-ink: #172033;
  --sc-navy: #102a43;
  --sc-border: #cbd5e1;
}

header#site-header { margin-bottom: 16px !important; }
header#site-header .logo img { mix-blend-mode: multiply !important; border-radius: 8px !important; }
footer { margin-top: 40px !important; padding-top: 26px !important; padding-bottom: 26px !important; }

.enforce-original-theme { font-family: inherit; color: var(--sc-ink); width: 100%; max-width: 100%; }
.enforce-original-theme * { box-sizing: border-box; }
.enforce-original-theme label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--sc-ink); }
.enforce-original-theme input, .enforce-original-theme select {
  width: 100% !important; min-height: 45px !important; padding: 10px 12px !important;
  border: 1px solid var(--sc-border) !important; border-radius: 8px !important;
  background: #fff !important; color: var(--sc-ink) !important; font: inherit !important;
}
.enforce-original-theme input:focus, .enforce-original-theme select:focus { outline: 2px solid #93c5fd !important; border-color: var(--sc-primary) !important; }

/* ONE button system for every calculator (overrides page-level red/green/dark buttons) */
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style) {
  background: var(--sc-primary) !important; color: #fff !important; border: 0 !important;
  border-radius: 8px !important; padding: 12px 18px !important;
  font: inherit !important; font-weight: 700 !important; cursor: pointer !important;
  box-shadow: none !important; text-align: center;
}
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style):hover { background: var(--sc-primary-dark) !important; }
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style).secondary,
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style).mc-secondary,
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style).sc-btn-secondary,
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style).sc-unified-share-btn,
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style)[type="reset"] {
  background: var(--sc-soft) !important; color: var(--sc-ink) !important;
}
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style).secondary:hover,
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style).mc-secondary:hover,
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style).sc-btn-secondary:hover,
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style).sc-unified-share-btn:hover,
.enforce-original-theme button:not([aria-expanded]):not(.sc-keep-style)[type="reset"]:hover {
  background: #dbe5f3 !important;
}
.enforce-original-theme .fha-primary { background: var(--sc-primary) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; padding: 12px 18px !important; font-weight: 700 !important; cursor: pointer !important; }
.enforce-original-theme .fha-secondary { background: var(--sc-soft) !important; color: var(--sc-ink) !important; border: 0 !important; border-radius: 8px !important; padding: 12px 18px !important; font-weight: 700 !important; cursor: pointer !important; }

/* Unified result pattern */
.sc-unified-hero {
  background: var(--sc-navy) !important; color: #fff !important; padding: 24px !important;
  border-radius: 13px !important; text-align: center !important; margin-bottom: 16px !important;
  -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important;
}
.sc-unified-hero small { display: block; opacity: 0.85; font-size: 14px; color: #e2e8f0; }
.sc-unified-hero strong { display: block; font-size: clamp(30px, 5vw, 42px); margin-top: 6px; color: #fff; }
.sc-unified-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.sc-unified-table td { padding: 12px 6px; border-bottom: 1px solid #e2e8f0; font-size: 14.5px; color: var(--sc-ink); }
.sc-unified-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.sc-unified-table tr:last-child td { border-bottom: 0; font-weight: 800; }
.sc-unified-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; width: 100%; }
.sc-unified-pdf-btn { flex: 1; min-width: 200px; }
.sc-pdf-header, .sc-pdf-footer { display: none; }

/* Printing is handled by /sc-theme.js (clean iframe), so no visibility:hidden print rules are needed here. */
