*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--color-bg: #faf7f2;
--color-surface: #ffffff;
--color-text: #2c2416;
--color-text-muted: #6b5e4a;
--color-accent: #d97706;
--color-accent-light: #fef3c7;
--color-border: #e5d9c5;
--color-success: #15803d;
--color-success-bg: #dcfce7;
--font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--radius: 10px;
--shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
--shadow-md: 0 4px 12px rgba(0,0,0,0.07);
}

body {
font-family: var(--font-sans);
background: var(--color-bg);
color: var(--color-text);
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
background: var(--color-surface);
border-bottom: 1px solid var(--color-border);
padding: 0.75rem 1.25rem;
position: sticky;
top: 0;
z-index: 10;
}
.header-inner {
max-width: 1100px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
}
.logo {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--color-text);
font-weight: 700;
text-decoration: none;
}
.logo-text { font-size: 1.1rem; }
.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }

.page-main { flex: 1; max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; width: 100%; }

.hero { text-align: center; margin-bottom: 2rem; }
.hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; color: #1a140a; }
.hero-sub { font-size: 1.1rem; color: var(--color-text-muted); margin-top: 0.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.layout-split {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
align-items: start;
}

.panel-interactive {
background: var(--color-surface);
border-radius: var(--radius);
box-shadow: var(--shadow-md);
padding: 1.75rem;
border: 1px solid var(--color-border);
}
.panel-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.25rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--color-text-muted); }
.form-group input, .form-group select {
width: 100%;
padding: 0.6rem 0.75rem;
border: 1px solid var(--color-border);
border-radius: 6px;
font-size: 1rem;
background: var(--color-bg);
color: var(--color-text);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.results-card {
background: var(--color-accent-light);
border-radius: var(--radius);
padding: 1.25rem;
margin: 1.25rem 0 1rem;
display: flex;
flex-wrap: wrap;
gap: 1rem;
border: 1px solid #fcd34d;
}
.result-item { flex: 1; min-width: 120px; text-align: center; }
.result-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: #92400e; margin-bottom: 0.2rem; }
.result-value { font-size: 1.6rem; font-weight: 800; color: #78350f; }

.action-bar { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.btn-secondary {
padding: 0.5rem 1rem;
border: 1px solid var(--color-border);
background: var(--color-surface);
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
color: var(--color-text);
transition: background 0.15s;
}
.btn-secondary:hover { background: var(--color-accent-light); }

.assumptions-note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.5rem; }

.panel-support { font-size: 0.95rem; color: #3d3525; }
.panel-support h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; color: #1a140a; }
.panel-support h3 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 0.5rem; color: #4a3f2a; }
.panel-support p { margin-bottom: 0.75rem; }
.panel-support ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.panel-support li { margin-bottom: 0.5rem; }

.site-footer {
background: var(--color-surface);
border-top: 1px solid var(--color-border);
padding: 1.25rem;
text-align: center;
font-size: 0.85rem;
color: var(--color-text-muted);
margin-top: 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-ecosystem { margin-bottom: 0.5rem; }
.footer-links { display: flex; gap: 1.25rem; justify-content: center; margin-bottom: 0.5rem; }
.footer-note { font-size: 0.8rem; }

@media (max-width: 750px) {
.layout-split { grid-template-columns: 1fr; }
.hero h1 { font-size: 1.6rem; }
.form-row { grid-template-columns: 1fr; }
}

@media print {
.site-header, .site-footer, .action-bar { display: none; }
.panel-interactive { box-shadow: none; border: 1px solid #ccc; }
body { background: #fff; }
}



/* 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;
}
