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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f8f9fa;
}

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

/* Nav */
.navbar {
    background: #1a365d;
    color: white;
    padding: 0.75rem 0;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { color: white; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.nav-links a { color: #cbd5e0; text-decoration: none; margin-left: 1.5rem; font-size: 0.9rem; }
.nav-links a:hover { color: white; }

/* Main */
main { padding: 2rem 0; min-height: 70vh; }
h1 { margin-bottom: 1rem; color: #1a365d; }
h2 { margin: 1.5rem 0 0.75rem; color: #2d3748; }

/* Flash messages */
.flash { padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.flash-info { background: #e2e8f0; color: #2d3748; }
.flash-error { background: #fed7d7; color: #9b2c2c; }
.flash-success { background: #c6f6d5; color: #276749; }

/* Agenda cards */
.agenda-list { display: grid; gap: 1rem; }
.agenda-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
}
.agenda-card h3 a { color: #2b6cb0; text-decoration: none; }
.agenda-card h3 a:hover { text-decoration: underline; }
.agenda-date { color: #718096; font-size: 0.9rem; }
.agenda-meta { color: #a0aec0; font-size: 0.85rem; }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    display: inline-block;
    background: #ebf4ff;
    color: #2b6cb0;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}
.tag-sm { font-size: 0.75rem; padding: 0.15rem 0.5rem; }

/* Tables */
.items-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.9rem;
}
.items-table th {
    background: #f7fafc;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #718096;
}
.items-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #edf2f7; }
.items-table .cost { text-align: right; font-family: monospace; }

/* Forms */
.upload-form { max-width: 500px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.9rem; }
.form-group input, .form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 0.9rem;
}
.btn { padding: 0.5rem 1.5rem; border: none; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
.btn-primary { background: #2b6cb0; color: white; }
.btn-primary:hover { background: #2c5282; }
.btn-outline { background: white; color: #2b6cb0; border: 1px solid #cbd5e0; text-decoration: none; }
.btn-outline:hover { background: #ebf4ff; border-color: #2b6cb0; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin-bottom: 1.5rem; }
.tab {
    padding: 0.5rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #718096;
}
.tab:hover { color: #2d3748; }
.tab.active { color: #2b6cb0; border-bottom-color: #2b6cb0; font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Highlights */
.highlights-section ul { list-style: disc; margin-left: 1.5rem; }
.highlights-section li { margin-bottom: 0.4rem; }

/* Summary */
.summary-section p { background: white; padding: 1rem; border-left: 4px solid #2b6cb0; margin-bottom: 1rem; }

/* Glossary */
.glossary dt { font-weight: 700; margin-top: 0.75rem; }
.glossary dd { margin-left: 1rem; color: #4a5568; }

/* Empty state */
.empty-state { color: #718096; font-size: 1.1rem; padding: 2rem 0; }
.empty-state a { color: #2b6cb0; }

/* Search */
.search-controls { margin-bottom: 1.5rem; }
.search-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0.75rem; }
.result-count { color: #718096; font-size: 0.9rem; margin-bottom: 0.75rem; }
@media (max-width: 768px) { .search-row { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 2rem 0; text-align: center; color: #a0aec0; font-size: 0.85rem; border-top: 1px solid #e2e8f0; margin-top: 3rem; }

/* Jurisdiction list */
.jurisdiction-list { list-style: none; }
.jurisdiction-list li { padding: 0.4rem 0; border-bottom: 1px solid #edf2f7; }

/* Subscribe */
.subscribe-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
.subscribe-form input[type="email"] { padding: 0.5rem; border: 1px solid #cbd5e0; border-radius: 4px; font-size: 0.9rem; }

/* Glossary */
.glossary-entry { border-bottom: 1px solid #edf2f7; padding: 0.5rem 0; }
