/* Free calculators (routes/marketing/calculator_tools.py). Uses the marketing theme
   variables when present; the fallbacks style the standalone /embed pages. */
.fc-page { max-width: 880px; margin: 0 auto; padding: 48px 20px 64px; color: var(--text, #0d1320); }
.fc-page--embed { padding: 16px; max-width: none; }
.fc-embed-body { margin: 0; background: var(--bg, #ffffff); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
.fc-embed-title { font-size: 1.3rem; margin: 0 0 12px; }
.fc-page h1 { margin: 0 0 12px; }
.fc-lede { font-size: 1.08rem; color: var(--text-muted, #475569); margin: 0 0 24px; }
.fc-muted, .fc-hint { color: var(--text-muted, #475569); }
.fc-hint { display: block; font-size: 0.8rem; margin-top: 4px; }
.fc-card { background: var(--bg-card, #f7f8fb); border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 24px; margin: 0 0 32px; }
.fc-page--embed .fc-card { padding: 16px; }
.fc-section { margin: 40px 0; }
.fc-section h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.fc-form fieldset { border: 1px solid var(--border, #e2e8f0); border-radius: 10px; padding: 14px 16px 6px; margin: 0 0 16px; }
.fc-form legend { font-weight: 700; padding: 0 6px; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 18px; }
.fc-field { margin: 0 0 10px; }
.fc-field--currency { max-width: 260px; }
.fc-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.fc-field input, .fc-field select {
  width: 100%; box-sizing: border-box; padding: 9px 12px; font-size: 1rem;
  border: 1px solid var(--border, #cbd5e1); border-radius: 8px;
  background: var(--bg, #ffffff); color: var(--text, #0d1320);
}
.fc-field input:focus, .fc-field select:focus { outline: 2px solid var(--brand, #4f46e5); outline-offset: 1px; }
.fc-check { display: flex; gap: 8px; align-items: center; margin: 4px 0 12px; }
.fc-error { color: #b91c1c; font-weight: 600; min-height: 1.2em; margin: 8px 0; }
.fc-results { border-top: 1px solid var(--border, #e2e8f0); padding-top: 16px; }
.fc-results-title { font-size: 1.2rem; margin: 0 0 12px; }
.fc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fc-stat { background: var(--bg, #ffffff); border: 1px solid var(--border, #e2e8f0); border-radius: 10px; padding: 12px 14px; }
.fc-stat-value { display: block; font-size: 1.45rem; font-weight: 700; color: var(--brand-text, var(--brand-dark, #4338ca)); }
.fc-stat-label { display: block; font-size: 0.85rem; color: var(--text-muted, #475569); }
.fc-note { margin: 14px 0; }
.fc-table-wrap { overflow-x: auto; }
.fc-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.fc-table th, .fc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border, #e2e8f0); }
.fc-table td { text-align: right; white-space: nowrap; }
.fc-table thead th:not(:first-child) { text-align: right; }
.fc-table tr.fc-row-strong th, .fc-table tr.fc-row-strong td { font-weight: 700; }
.fc-inline-cta { margin: -12px 0 32px; }
.fc-embed-code { width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; padding: 10px; border: 1px solid var(--border, #cbd5e1); border-radius: 8px; background: var(--bg-card, #f7f8fb); color: var(--text, #0d1320); }
.fc-button { display: inline-block; padding: 9px 16px; border-radius: 8px; border: 0; background: var(--brand-dark, #4338ca); color: #ffffff; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; }
.fc-button:hover { filter: brightness(1.08); }
.fc-cta .fc-button { margin-right: 12px; }
.fc-credit { font-size: 0.85rem; color: var(--text-muted, #475569); margin: 16px 0 0; }
.fc-credit a { color: inherit; }
.fc-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
