/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; color: #1a1a1a; background: #f9f9f9; }
img, canvas { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Layout */
.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { background: #003366; color: #fff; padding: 1rem 0; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 500; }
.main-nav a:hover { text-decoration: underline; }

/* Hero */
.hero { background: #e6f0ff; padding: 2rem 0; text-align: center; }
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.1rem; color: #333; max-width: 600px; margin: 0 auto; }

/* Calculator Section */
.calculator { padding: 2rem 0; }
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 700px) { .calculator-grid { grid-template-columns: 1fr; } }

.inputs-panel { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.input-group input[type="number"], .input-group select { width: 100%; padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.slider-group { display: flex; gap: 1rem; align-items: center; }
.slider-group input[type="range"] { flex: 1; }
.slider-group input[type="number"] { width: 70px; }
.btn-secondary { background: #003366; color: #fff; border: none; padding: 0.6rem 1.2rem; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.btn-secondary:hover { background: #002244; }

.results-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.result-card { background: #fff; padding: 1.2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.result-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #555; }
.result-number { font-size: 2rem; font-weight: 700; color: #003366; }
.result-note { font-size: 0.85rem; color: #666; margin-top: 0.3rem; }
.chart-container canvas { width: 100%; height: auto; background: #f0f4ff; border-radius: 4px; padding: 0.5rem; }

/* Supporting Content */
.supporting-content { padding: 2rem 0; background: #fff; }
.supporting-content h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.supporting-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.supporting-content p, .supporting-content li { margin-bottom: 1rem; color: #333; }
.supporting-content ul { padding-left: 1.5rem; }
.last-updated { font-style: italic; color: #777; font-size: 0.9rem; }

/* Footer */
.site-footer { background: #003366; color: #fff; padding: 1.5rem 0; text-align: center; font-size: 0.9rem; }
.site-footer a { color: #cce0ff; }
.site-footer a:hover { text-decoration: underline; }

/* Utility */
@media (max-width: 500px) {
  .hero h1 { font-size: 1.5rem; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
