/* =====================================================
   Daily Aviation Brief — Report Stylesheet
   Used by templates/report.php and print/PDF output
   ===================================================== */

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f1f5f9;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
}

/* =====================================================
   Report Container
   ===================================================== */
.report-container {
  max-width: 740px;
  margin: 2rem auto;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

/* =====================================================
   Header
   ===================================================== */
.report-header {
  background: #1e40af;
  color: #ffffff;
  padding: 2rem 2.5rem 1.75rem;
}

.report-header .profile-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.5rem;
}

.report-header h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.report-header .report-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  color: #bfdbfe;
  margin-bottom: 0;
}

.report-header .report-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  color: #bfdbfe;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}

/* =====================================================
   Editorial Note
   ===================================================== */
.editorial-note {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  margin: 0 2.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  margin-top: 1.75rem;
}

.editorial-note p {
  font-style: italic;
  color: #1e40af;
  font-size: 0.95rem;
  line-height: 1.6;
}

.editorial-note .note-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3b82f6;
  display: block;
  margin-bottom: 0.3rem;
}

/* =====================================================
   Report Body
   ===================================================== */
.report-body {
  padding: 1.75rem 2.5rem 2rem;
}

/* =====================================================
   Report Sections
   ===================================================== */
.report-section {
  margin-bottom: 2.25rem;
}

.report-section:last-child {
  margin-bottom: 0;
}

.report-section h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e40af;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dbeafe;
  margin-bottom: 1.25rem;
}

/* =====================================================
   Articles
   ===================================================== */
.report-article {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.report-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.report-article h3 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.report-article h3 a {
  color: #0f172a;
  text-decoration: none;
}

.report-article h3 a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.article-source {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.55rem;
}

.article-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 0.6rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-pill {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

a.tag-pill:hover {
  color: #1e40af;
  border-color: #93c5fd;
}

/* =====================================================
   Footer
   ===================================================== */
.report-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.25rem 2.5rem;
  text-align: center;
}

.report-footer p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.5;
}

.report-footer a {
  color: #94a3b8;
  text-decoration: none;
}

.report-footer a:hover {
  color: #64748b;
  text-decoration: underline;
}

.report-nav {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.report-nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
}

.report-nav a:hover {
  color: #1e40af;
  border-color: #93c5fd;
}

@media print {
  .report-nav { display: none; }
}

/* =====================================================
   Responsive — narrow screens
   ===================================================== */
@media (max-width: 780px) {
  .report-container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .report-header {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .report-header h1 {
    font-size: 1.4rem;
  }

  .editorial-note {
    margin: 0 1.25rem;
    margin-top: 1.25rem;
  }

  .report-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .report-footer {
    padding: 1rem 1.25rem;
  }
}

/* =====================================================
   Print / PDF
   ===================================================== */
@media print {
  body {
    background: #ffffff;
    font-size: 11pt;
  }

  .report-container {
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .report-header {
    background: #1e40af !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 1.25rem 1.5rem 1rem;
  }

  .report-header h1 {
    font-size: 1.4rem;
  }

  .editorial-note {
    margin: 0.75rem 1.5rem 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .report-section {
    page-break-inside: avoid;
  }

  .report-article {
    page-break-inside: avoid;
  }

  .report-article h3 a {
    color: #0f172a !important;
    text-decoration: none !important;
  }

  .report-footer {
    padding: 0.75rem 1.5rem;
  }

  /* Hide URL after links in print */
  a[href]::after {
    content: none !important;
  }
}
