/* ===== REPORT-SPECIFIC STYLES ===== */

/* Quote blocks from respondents */
blockquote.pullquote {
  border-left: 4px solid var(--accent-yellow, #ffd60a);
  background: #141414;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #ddd;
  line-height: 1.55;
}
blockquote.pullquote p { margin: 0 0 0.5rem 0; }
blockquote.pullquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--accent-yellow, #ffd60a);
  letter-spacing: 0.2px;
}

/* Prevalence badges */
.prevalence-badge {
  display: inline-block;
  background: #1e3a1e;
  color: #a5d6a5;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}
.prevalence-badge.high { background: #1e3a1e; color: #a5d6a5; }
.prevalence-badge.mid  { background: #2e2a12; color: #ffe066; }

/* Requirement / outcome cards */
.requirement-card {
  background: #141414;
  border: 1px solid #282828;
  border-left: 4px solid var(--accent-cyan, #00f0ff);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.requirement-card h3 { margin-top: 0; color: var(--accent-cyan, #00f0ff); }
.requirement-card.rejected {
  border-left-color: var(--accent-red, #ff4444);
}
.requirement-card.rejected h3 { color: var(--accent-red, #ff4444); }

/* Gunning limbs */
.gunning-limb {
  background: #0a0a0a;
  border: 1px solid #333;
  border-left: 3px solid var(--accent-cyan, #00f0ff);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.gunning-limb h4 {
  margin-top: 0;
  color: var(--accent-cyan, #00f0ff);
  font-size: 1rem;
  letter-spacing: 0.3px;
}

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.data-table th {
  background: #1a1a1a;
  color: var(--accent-yellow, #ffd60a);
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid #282828;
  font-weight: 600;
}
.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #222;
  color: #ccc;
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }

/* Page navigation (prev/next) */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #282828;
  flex-wrap: wrap;
}
.page-nav a {
  color: var(--accent-yellow, #ffd60a);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
}
.page-nav a:hover { text-decoration: underline; }

/* TOC on executive summary */
.toc-list { list-style: none; padding: 0; margin: 1rem 0; }
.toc-list li { padding: 0.7rem 0; border-bottom: 1px solid #222; }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  color: var(--accent-cyan, #00f0ff);
  text-decoration: none;
  font-weight: 500;
  display: block;
}
.toc-list a:hover { color: var(--accent-yellow, #ffd60a); }
.toc-list .toc-sub { color: #888; font-size: 0.85rem; font-weight: normal; display: block; margin-top: 0.15rem; }

/* Sidebar sub-headers */
.nav-subheader {
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #282828;
}

/* Alert variants */
.alert-box.red { border-left-color: #ff4444; }
.alert-box.yellow { border-left-color: var(--accent-yellow, #ffd60a); }

/* Stat grid for exec summary */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-tile {
  background: #0a0a0a;
  border: 1px solid #282828;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}
.stat-tile .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-yellow, #ffd60a);
  line-height: 1.1;
}
.stat-tile .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #888;
  margin-top: 0.4rem;
}

/* Timeline */
.timeline { position: relative; margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid #282828; }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.35rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan, #00f0ff);
}
.timeline-item .date { color: var(--accent-yellow, #ffd60a); font-weight: bold; font-size: 0.9rem; }
.timeline-item .desc { color: #ccc; font-size: 0.92rem; margin-top: 0.2rem; }

/* Sequence flow (five outcomes) */
.flow-steps { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.5rem 0; }
.flow-step {
  display: flex; align-items: center; gap: 0.75rem;
  background: #141414; border: 1px solid #282828; border-radius: 6px; padding: 0.75rem 1rem;
}
.flow-step .stepnum {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-cyan, #00f0ff); color: #000;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem;
}
.flow-step .steptext { color: #ddd; font-size: 0.92rem; }

/* Interstitial report banner */
.report-banner {
  background: #1a1a1a; border: 1px solid #282828; border-left: 4px solid var(--accent-yellow, #ffd60a);
  border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1.5rem 0; font-size: 0.9rem; color: #ccc;
}
.report-banner strong { color: var(--accent-yellow, #ffd60a); }

/* Footnotes */
.footnotes { font-size: 0.85rem; color: #999; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #222; }
.footnotes ol { padding-left: 1.25rem; }
.footnotes li { margin-bottom: 0.5rem; }

/* Details/accordion for appendices */
details.doc-accordion {
  background: #0a0a0a; border: 1px solid #282828; border-radius: 6px;
  padding: 0.75rem 1rem; margin: 1rem 0;
}
details.doc-accordion summary {
  cursor: pointer; color: var(--accent-cyan, #00f0ff); font-weight: 600;
}
details.doc-accordion summary:hover { color: var(--accent-yellow, #ffd60a); }
details.doc-accordion[open] summary { margin-bottom: 0.75rem; border-bottom: 1px solid #222; padding-bottom: 0.5rem; }

@media print {
  .sidebar, .emergency-banner, .page-nav, footer { display: none !important; }
  .main-content { max-width: 100%; }
  body { background: #fff; color: #000; }
  blockquote.pullquote, .requirement-card, .gunning-limb, .data-table th { background: #f5f5f5 !important; color: #000 !important; }
}