/* MTC Watch site styles. Minimal, readable, advocacy-toned. */
:root {
  --ink: #111827;
  --muted: #4b5563;
  --bg: #f9fafb;
  --line: #e5e7eb;
  --negative: #b91c1c;
  --positive: #059669;
  --flagship: #991b1b;
  --link: #1d4ed8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--link); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.site-header { background: #111827; color: #f9fafb; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
.site-title { color: #f9fafb; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: #d1d5db; text-decoration: none; }
.site-header nav a.cta { color: #fef2f2; border: 1px solid #7f1d1d; padding: 4px 10px; border-radius: 4px; }
.site-header nav a:hover { color: #fff; }

main { padding: 32px 0 64px; }

.hero { background: #fff; border-bottom: 1px solid var(--line); padding: 48px 0; }
.hero h1 { font-size: 2.2rem; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; max-width: 800px; }
.lede { font-size: 1.1rem; color: #1f2937; max-width: 760px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 24px 0; }
.hero-stats div { font-size: 0.95rem; color: var(--muted); }
.hero-stats strong { color: var(--ink); font-size: 1.6rem; display: block; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-block; padding: 10px 18px; background: #fff; border: 1px solid #1f2937; color: #1f2937; text-decoration: none; border-radius: 4px; font-weight: 500; }
.btn:hover { background: #1f2937; color: #fff; }
.btn-primary { background: var(--flagship); border-color: var(--flagship); color: #fff; }
.btn-primary:hover { background: #7f1d1d; color: #fff; }

.flagship { background: #fef2f2; padding: 32px 0; border-bottom: 1px solid #fecaca; }
.flagship h2 { margin: 0 0 16px; color: var(--flagship); }
.flagship-summary { max-width: 720px; }
.flagship-summary p { margin: 0 0 14px; line-height: 1.55; }
.flagship-summary p:last-child { margin-bottom: 0; }
.flagship-cta { margin: 18px 0 0; }
.flagship-cta a { font-weight: 600; }

.recent, .methodology { padding: 40px 0; }
.recent h2, .methodology h2 { margin-top: 0; }

.incident-list { list-style: none; padding: 0; margin: 0; }
.incident { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--muted); padding: 16px 20px; margin-bottom: 14px; border-radius: 4px; }
.incident.polarity-negative { border-left-color: var(--negative); }
.incident.polarity-positive { border-left-color: var(--positive); }
.incident h3 { margin: 0 0 6px; font-size: 1.05rem; }
.incident-meta { color: var(--muted); font-size: 0.9em; margin-bottom: 4px; }
.incident .source { font-size: 0.9em; color: var(--muted); margin-bottom: 0; }
.claim-type { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75em; color: #6b7280; font-weight: 600; }

.facility-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.facility-table th, .facility-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.facility-table th { background: #f3f4f6; font-size: 0.9em; }
.flagship-row td { background: #fff7ed; }
.flagship-tag { display: inline-block; margin-left: 8px; font-size: 0.7em; color: #fff; background: var(--flagship); padding: 2px 6px; border-radius: 3px; }

.facility-page h1 { margin-bottom: 4px; }
.facility-meta { color: var(--muted); margin-bottom: 16px; }
.flagship-banner { background: var(--flagship); color: #fff; padding: 8px 14px; border-radius: 4px; display: inline-block; font-weight: 600; margin-bottom: 12px; font-size: 0.9em; }
.summary { background: #fff; border: 1px solid var(--line); padding: 14px 18px; border-radius: 4px; }

.yesbut { background: #fff; border: 1px solid #fde68a; padding: 20px 24px; border-radius: 6px; margin: 28px 0; }
.yesbut h2 { margin-top: 0; color: #92400e; }
.yesbut-card { margin-bottom: 16px; }
.yesbut-positive { font-weight: 600; }
.yesbut-framing { margin: 8px 0; color: var(--muted); font-style: italic; }
.badge { display: inline-block; font-size: 0.75em; padding: 2px 8px; border-radius: 3px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-right: 6px; }
.badge-positive { background: #d1fae5; color: #065f46; }
.badge-negative { background: #fee2e2; color: #991b1b; }

.incidents-section { margin: 32px 0; }
.cta-section { margin: 40px 0 0; text-align: center; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 28px; }
.prose ol, .prose ul { padding-left: 22px; }

.report-form { display: flex; flex-direction: column; gap: 16px; max-width: 680px; background: #fff; padding: 24px; border: 1px solid var(--line); border-radius: 6px; }
.report-form label { display: flex; flex-direction: column; font-weight: 500; gap: 4px; }
.report-form label.checkbox { flex-direction: row; align-items: center; font-weight: 400; gap: 8px; }
.report-form input, .report-form textarea, .report-form select { padding: 8px 10px; font: inherit; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; }
.report-form fieldset { border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.report-form legend { font-weight: 500; padding: 0 6px; color: var(--muted); }
.required { color: var(--negative); }

.flash { padding: 10px 14px; margin: 12px 0; border-radius: 4px; }
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error { background: #fee2e2; color: #991b1b; }

.muted { color: var(--muted); }
.small { font-size: 0.88em; }

/* Timeline. Center axis, alternating cards, year banners, mobile-friendly. */
.timeline {
  position: relative;
  max-width: 1080px;
  margin: 32px auto;
  padding: 12px 0 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--line);
}

.timeline-year-banner {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 28px 0 8px;
}
.timeline-year-banner span {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 6px 18px;
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 14px 36px;
  box-sizing: border-box;
}
.timeline-item.side-left  { margin-left: 0;   padding-right: 44px; text-align: right; }
.timeline-item.side-right { margin-left: 50%; padding-left: 44px;  text-align: left;  }

.timeline-marker {
  position: absolute;
  top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--muted);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--muted);
  z-index: 1;
}
.timeline-item.side-left  .timeline-marker { right: -8px; }
.timeline-item.side-right .timeline-marker { left:  -8px; }
.timeline-item.polarity-negative .timeline-marker { background: var(--negative); box-shadow: 0 0 0 2px var(--negative); }
.timeline-item.polarity-positive .timeline-marker { background: var(--positive); box-shadow: 0 0 0 2px var(--positive); }
.timeline-item.polarity-neutral  .timeline-marker { background: #6b7280; box-shadow: 0 0 0 2px #6b7280; }

.timeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.timeline-item.polarity-negative .timeline-card { border-top: 3px solid var(--negative); }
.timeline-item.polarity-positive .timeline-card { border-top: 3px solid var(--positive); }
.timeline-item.polarity-neutral  .timeline-card { border-top: 3px solid #6b7280; }

.timeline-date {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85em;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.timeline-card h3 { margin: 0 0 6px; font-size: 1rem; }
.timeline-card h3 a { color: var(--ink); text-decoration: none; }
.timeline-card h3 a:hover { text-decoration: underline; }
.timeline-headline { margin: 8px 0; }
.timeline-source { margin: 6px 0 0; font-size: 0.88em; }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.timeline-item.side-left .timeline-tags { justify-content: flex-end; }
.tag {
  display: inline-block;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 0.72em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.tag-state { background: #e0e7ff; color: #3730a3; }
.tag-pos { background: #d1fae5; color: #065f46; }

@media (max-width: 768px) {
  .timeline::before { left: 20px; transform: none; }
  .timeline-item,
  .timeline-item.side-left,
  .timeline-item.side-right {
    width: 100%;
    margin-left: 0;
    padding: 14px 14px 14px 48px;
    text-align: left;
  }
  .timeline-item .timeline-marker { left: 12px; right: auto; }
  .timeline-item.side-left .timeline-tags { justify-content: flex-start; }
  .timeline-year-banner { text-align: left; padding-left: 8px; }
}

.site-footer { background: #1f2937; color: #d1d5db; padding: 32px 0; margin-top: 64px; }
.site-footer p { margin: 4px 0; font-size: 0.9em; }
.site-footer a { color: #93c5fd; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 18px; }
  .hero-stats strong { font-size: 1.25rem; }
}
