:root {
    --primary: #153E75;
    --secondary: #2B7A0B;
    --warning: #D9534F;
    --bg: #F8F9FA;
    --surface: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --border: #DDDDDD;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

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

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

.site-header {
    background-color: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 15px 0;
}

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

.logo-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
}

nav a {
    margin-left: 15px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary);
}

.hero {
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    padding: 40px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.ad-container {
    margin: 30px auto;
    text-align: center;
    min-height: 120px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-section {
    background-color: var(--surface);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.tool-instructions {
    margin-bottom: 20px;
    color: var(--text-light);
}

.worksheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media(max-width: 768px) {
    .worksheet-grid {
        grid-template-columns: 1fr;
    }
}

.option-card {
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    background-color: #FAFAFA;
}

.option-card.highlight {
    border-color: var(--primary);
    background-color: #F0F4F8;
}

.option-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.result {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px;
    background: #e9ecef;
    text-align: center;
    border-radius: 4px;
}

.calculation-controls {
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #205c08;
}

#winner-banner {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: bold;
}

.banner-win {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.hidden {
    display: none;
}

.guide-section {
    margin-bottom: 60px;
}

.guide-section h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.guide-content article {
    background-color: var(--surface);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.guide-content h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.site-footer {
    background-color: var(--text);
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

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

.footer-flex a {
    color: #aaa;
    text-decoration: none;
    margin-left: 15px;
}

.footer-flex a:hover {
    color: white;
}


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