:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #dbe3ec;
  --accent: #1f6feb;
  --accent-dark: #1551b5;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a:hover { text-decoration: underline; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: 42vh;
  background:
    linear-gradient(rgba(15, 25, 45, 0.62), rgba(15, 25, 45, 0.78)),
    url("https://github.com/RFNajera/vaccine-news-monitor/blob/main/assets/images/vaccine_news_social_image.jpeg") center/cover no-repeat;
  color: #fff;
  display: grid;
  align-items: end;
}

.hero-overlay { padding: 4rem 0 2.5rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.hero-eyebrow,
.hero .lede,
.hero-meta,
.hero h1 { color: #fff; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.lede {
  max-width: 760px;
  font-size: 1.08rem;
  margin: 0 0 1rem;
}

.hero-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.button:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.sidebar .panel { margin-bottom: 1.5rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-head h2,
.sidebar h2 {
  margin: 0;
  font-size: 1.4rem;
}

.small-note {
  color: var(--muted);
  max-width: 320px;
  font-size: 0.9rem;
}

.toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.toolbar input,
.toolbar select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
}

.toolbar input { flex: 1 1 240px; }
.toolbar select { flex: 0 1 auto; }

/* Vaccine jump nav */
.vaccine-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.vaccine-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: #eef4ff;
}

.vaccine-chip:hover { text-decoration: none; background: #e0ebff; }

.vaccine-chip span {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 0.4rem;
  font-size: 0.72rem;
  line-height: 1.5;
}

.status {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Vaccine groups */
.vaccine-group { margin-bottom: 1.75rem; scroll-margin-top: 1rem; }

.group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.group-count {
  background: #eef4ff;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.news-grid {
  display: grid;
  gap: 1rem;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
}

.news-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.news-card p { margin: 0.4rem 0 0; }

.news-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Source badges */
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: #dbeafe;
  color: var(--accent-dark);
}

.badge.academic {
  background: #e0ecff;
  color: #1d4ed8;
}

.badge.news {
  background: #ecfccb;
  color: #3f6212;
}

/* Article-type badges (subtler, outlined) */
.badge.type {
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
}

.badge.type.opinion {
  background: #fef3c7;
  color: #92400e;
}

.badge.type.research {
  background: #ede9fe;
  color: #5b21b6;
}

.fact-list,
.link-list {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
}

.fact-list li,
.link-list li { margin-bottom: 0.4rem; }

.site-footer {
  background: #111827;
  color: #fff;
  padding: 1.25rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p { margin: 0.2rem 0; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .section-head {
    flex-direction: column;
    align-items: start;
  }
}
