/* OmnibusAI — omnibusai.info */

:root {
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-light: #78716c;
  --border: #e7e5e4;
  --border-light: #f5f5f4;
  --accent: #0369a1;
  --accent-hover: #0284c7;
  --dollar: #15803d;
  --dollar-bg: #f0fdf4;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --header-bg: #1c1917;
  --header-text: #fafaf9;
  --max-width: 1100px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

/* Header */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 3px solid var(--accent);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--header-text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.site-logo:hover { color: var(--header-text); text-decoration: none; }

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--header-text);
  opacity: 0.8;
  font-size: 0.95rem;
}

.nav-links a:hover { opacity: 1; text-decoration: none; }

.rss-link {
  font-size: 0.8rem !important;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
}

/* Main content */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Bill card grid */
.bill-list { margin: 2rem 0; }
.bill-list h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.bill-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.bill-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
}

.card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-divisions {
  background: var(--border-light);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.card-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

.empty-state h2 { color: var(--text); margin-bottom: 1rem; }

/* How it works */
.how-it-works {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Bill detail page */
.bill-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.bill-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.bill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-item {
  padding: 0.2rem 0.6rem;
  background: var(--border-light);
  border-radius: 4px;
}

.meta-provider { font-style: italic; }

/* Summary content */
.bill-summary, .division-overview {
  margin-bottom: 2.5rem;
}

.summary-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}

.summary-content h1, .summary-content h2, .summary-content h3 {
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
}

.summary-content h2 { font-size: 1.25rem; }
.summary-content h3 { font-size: 1.1rem; }

.summary-content p {
  margin-bottom: 0.75rem;
}

.summary-content ul, .summary-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.summary-content li {
  margin-bottom: 0.4rem;
}

.summary-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.summary-content th, .summary-content td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.summary-content th {
  background: var(--border-light);
  font-weight: 600;
}

/* Dollar amounts */
.dollar {
  color: var(--dollar);
  font-weight: 600;
  background: var(--dollar-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* Division list */
.bill-divisions { margin-bottom: 2rem; }

.divisions-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.division-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.division-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.division-header h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.division-header h3 a { color: var(--text); }
.division-header h3 a:hover { color: var(--accent); }

.title-count {
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  background: var(--border-light);
  border-radius: 4px;
}

.division-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

.division-summary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg-card));
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Division detail page */
.division-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.division-page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* Title accordion */
.title-list h2 {
  margin-bottom: 1rem;
}

.title-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.title-card.title-error {
  border-color: var(--warning);
  background: var(--warning-bg);
}

.title-heading {
  margin: 0;
}

.title-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.title-toggle:hover { background: var(--border-light); }

.toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  background: var(--border-light);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.title-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
}

.title-content {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.title-content[hidden] { display: none; }

/* Back link */
.back-link {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* About page */
.about-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-section {
  margin-bottom: 2rem;
}

.about-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.about-section p, .about-section li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.about-section ol, .about-section ul {
  padding-left: 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--border-light);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-container p { margin-bottom: 0.3rem; }
.footer-container a { color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bill-header h1 { font-size: 1.35rem; }
  .summary-content { padding: 1rem; }
  .division-header { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-links, .back-link { display: none; }
  .main-content { max-width: 100%; padding: 0; }
  .summary-content { border: none; padding: 0; }
  .dollar { background: none; font-weight: bold; }
}
