:root {
  --bg-color: #ffffff;
  --bg-alt: #f8f9fa;
  --text-main: #202124;
  --text-muted: #5f6368;
  --border-color: #dadce0;
  
  --accent-red: #b31b1b;
  --accent-teal: #005b9f;
  --accent-gold: #b08d43;

  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Source Sans 3', Helvetica, Arial, sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--accent-red);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 900;
  padding: 12px 20px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 14px;
}

.header-brand {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-date {
  color: var(--text-muted);
}

.text-column {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.media-column {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.story-hero {
  padding: 12vh 0 8vh;
}

.headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-main);
}

.subheadline {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 40px;
}

.byline-block {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  font-size: 15px;
}

.byline-name strong {
  font-weight: 600;
}

.byline-date {
  color: var(--text-muted);
}

.stat-punches {
  background-color: var(--bg-alt);
  padding: 80px 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
}

.stat-block {
  flex: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 15px;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

#stat-arrests .stat-number { color: var(--accent-red); }
#stat-treatment .stat-number { color: var(--accent-teal); }
#stat-ratio .stat-number { color: var(--accent-gold); }

.stat-label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.stat-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

.findings-section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.findings-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.finding-item {
  display: flex;
  gap: 24px;
}

.finding-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-red);
  font-weight: 500;
  line-height: 1.2;
}

.finding-text h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.finding-text p {
  color: var(--text-muted);
}

.story-segment {
  padding: 60px 0;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-red);
  margin-bottom: 10px;
}

.segment-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 700;
}

.prose {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 40px;
}

.drop-cap {
  float: left;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 0.8;
  padding-top: 8px;
  padding-right: 8px;
  font-weight: 900;
}

.chart-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  border: 1px solid var(--border-color);
  background-color: var(--bg-alt);
}

.chart-caption {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.caption-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.caption-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.caption-source {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.btn-download {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-teal);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 8px 0;
}

.btn-download:hover {
  color: var(--text-main);
}

.rule-divider {
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 40px;
}

.end-segment {
  padding-bottom: 20px;
}

.methodology-section {
  padding: 40px 0 80px;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
}

.methodology-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.methodology-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.dataset-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-color);
  border: 1px solid var(--text-main);
}

.btn-primary:hover {
  background-color: var(--text-muted);
  border-color: var(--text-muted);
}

.btn-secondary, .btn-copy {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover, .btn-copy:hover {
  border-color: var(--text-main);
}

.source-list-title, .citation-title {
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.source-list {
  list-style: none;
  margin-bottom: 40px;
}

.source-list li {
  margin-bottom: 10px;
  font-size: 15px;
}

.source-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}

.source-list a:hover {
  border-bottom-color: var(--accent-red);
}

.citation-box {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 4px;
}

.citation-text {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--text-main);
}

.footer-desc {
  margin-bottom: 20px;
}

.footer-meta {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-meta a {
  color: var(--text-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  width: 100%;
  max-width: 1400px;
  max-height: 90vh;
  overflow: auto;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2001;
}

.lightbox-close::before, .lightbox-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
}

.lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--text-main);
  color: var(--bg-color);
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3000;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  .stat-container {
    flex-direction: column;
    gap: 40px;
  }
  .stat-block {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
  }
  .stat-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .caption-tools {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .dataset-actions {
    flex-direction: column;
  }
  .btn-primary, .btn-secondary, .btn-copy {
    width: 100%;
  }
  .finding-item {
    flex-direction: column;
    gap: 10px;
  }
}