:root{
    --primary: #0f4c81;
    --primary-light: #2c6ca8;
    --secondary: #e6b800;
    --bg: #ffffff;
    --bg-light: #f4f7f9;
    --text: #333333;
    --text-muted: #666666;
    --border: #e1e8ed;
    --safe: #2e7d32;
    --caution: #f57c00;
    --danger: #d32f2f;
    --font-sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-sys);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.site-header nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
}

.site-header nav a:hover {
    text-decoration: underline;
}

/* Sections */
.content-section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Hero */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 800px;
}

/* Calculator */
.calculator-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}

.calculator-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-sys);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-light);
}

/* Results */
.results-pane {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.results-pane.hidden {
    display: none;
}

.results-pane h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.timeline-event {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 4px solid var(--border);
    background: var(--bg-light);
    border-radius: 0 4px 4px 0;
}

.timeline-event.warning {
    border-left-color: var(--danger);
}
.timeline-event.safe {
    border-left-color: var(--safe);
}
.timeline-event.caution {
    border-left-color: var(--caution);
}

.timeline-event strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.timeline-event span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.timeline-event .note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.content-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-section p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Ad Container */
.ad-container {
    margin: 2rem auto;
    text-align: center;
    min-height: 120px;
}

/* Footer */
.site-footer {
    background: var(--text);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.8rem;
    color: #aaaaaa;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .site-header nav {
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    .site-header nav a {
        margin-left: 0;
    }
}



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