/* ============================================
   GHOSTWIRE — Responsive Breakpoints
   ============================================ */

/* ---- Tablet (max-width: 900px) ---- */
@media (max-width: 900px) {
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

  .dossier-card--featured {
    grid-template-columns: 1fr;
  }

  .dossier-card--featured .dossier-card-image {
    height: 250px;
    min-height: unset;
  }

  .reports-grid,
  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .stat-row {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 calc(50% - 2px);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-md);
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .about-principles {
    grid-template-columns: 1fr;
  }

  .report-issue-date {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ---- Mobile (max-width: 640px) ---- */
@media (max-width: 640px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --gutter: 1rem;
  }

  /* Mobile Navigation */
  .main-nav {
    position: relative;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-lg);
    gap: var(--space-md);
    z-index: var(--z-overlay);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    justify-content: space-between;
    padding: var(--space-md) var(--gutter);
  }

  .nav-brand {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: var(--text-bright);
    letter-spacing: var(--tracking-wider);
  }

  /* Hero */
  .hero {
    padding: var(--space-3xl) var(--gutter) var(--space-2xl);
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  /* Cards */
  .reports-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .notes-preview-grid {
    grid-template-columns: 1fr;
  }

  .dossier-card-image {
    height: 180px;
  }

  /* Report Page */
  .report-title {
    font-size: var(--text-3xl);
  }

  .report-cover img {
    max-height: 300px;
  }

  .pdf-viewer-frame {
    height: 50vh;
    min-height: 400px;
  }

  .report-actions {
    flex-direction: column;
  }

  .report-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Metadata Panel */
  .metadata-row {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .metadata-value {
    text-align: left;
  }

  /* Stat Row */
  .stat-row {
    flex-direction: column;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-sm) var(--space-md);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  /* Share Buttons */
  .share-buttons {
    flex-wrap: wrap;
  }

  /* Torn Paper */
  .torn-paper {
    padding: var(--space-lg) var(--space-md);
    margin: var(--space-lg) 0;
  }

  /* Contact */
  .contact-channels {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: var(--space-lg);
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* ---- Very Small Screens ---- */
@media (max-width: 380px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
  }

  .hero-barbed-wire {
    max-width: 280px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Large Screens ---- */
@media (min-width: 1200px) {
  .reports-grid,
  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
