/* Snowfall Tracker Styles */
:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-secondary: #475569;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-accent: #0891b2;
    --color-accent-light: #e0f2fe;
    --color-border: #e2e8f0;
    --color-snow: #f1f5f9;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo svg {
    color: var(--color-accent);
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.site-nav a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

main {
    flex: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
}

.calculator-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-row {
    display: flex;
    gap: 12px;
}

.input-row input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-row input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.btn-primary {
    padding: 12px 24px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

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

.btn-primary:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 6px;
    min-height: 20px;
}

.result-area {
    min-height: 120px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    padding: 24px 0;
}

.result-content {
    background: var(--color-accent-light);
    border-radius: 10px;
    padding: 20px;
    margin-top: 8px;
}

.result-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.result-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--color-snow);
}

.activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.activity-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 14px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.activity-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-accent);
}

.activity-card.selected {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.supporting-content {
    margin-bottom: 48px;
}

.supporting-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.info-card p, .info-card li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.info-card ul {
    padding-left: 20px;
    margin-top: 8px;
}

.info-card li {
    margin-bottom: 6px;
}

.faq-section {
    margin-bottom: 48px;
}

.faq-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item dt button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item dt button::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    transition: transform 0.2s;
}

.faq-item dt button[aria-expanded="true"]::after {
    content: '\2212';
    transform: rotate(180deg);
}

.faq-item dd {
    padding: 0 0 16px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    display: none;
    line-height: 1.6;
}

.faq-item dd.open {
    display: block;
}

.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 24px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.footer-note {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 12px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

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

.footer-ecosystem {
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-ecosystem a {
    color: #94a3b8;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .input-row {
        flex-direction: column;
    }
    .btn-primary {
        width: 100%;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .site-nav ul {
        gap: 12px;
    }
}

@media print {
    .site-header, .site-footer, .btn-primary, .btn-secondary, .result-actions {
        display: none;
    }
    body {
        background: #fff;
    }
    .calculator-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}



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