/* After-Action Report - deliberately its own light-theme visual register,
   independent of the app's dark design tokens in main.css. Per
   GRIMLIN_PLATFORM_DIRECTIVE.md Phase 1: "It must look like a document,
   not an app screen." Shown/hidden by renderAAR()/closeAAR() in js/app.js. */

#aar-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #FFFFFF;
  overflow-y: auto;
  display: none; /* toggled to 'block' by renderAAR() */
}

.aar-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 56px 80px;
  color: #1A1D21;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.aar-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.aar-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #D8DCE1;
  background: #F5F6F8;
  color: #1A1D21;
  cursor: pointer;
}
.aar-btn:hover { background: #ECEEF1; }
.aar-btn-primary {
  background: #D9A23C;
  border-color: #D9A23C;
  color: #1A1305;
}
.aar-btn-primary:hover { background: #E4B55E; }

.aar-header {
  border-bottom: 2px solid #D9A23C;
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.aar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.aar-brand-logo { width: 24px; height: 24px; }
.aar-brand-name { font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; color: #6B6250; }
.aar-doc-title { font-size: 28px; font-weight: 800; color: #1A1D21; margin-bottom: 6px; }
.aar-doc-subtitle { font-size: 14px; color: #6B7280; }

.aar-section { margin-bottom: 32px; }
.aar-section-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8A621F;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.aar-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin: 14px 0 6px;
}
.aar-body-text { color: #1A1D21; }
.aar-list { margin: 0 0 0 20px; padding: 0; }
.aar-list li { margin-bottom: 6px; }

.aar-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aar-table th, .aar-table td { text-align: left; padding: 8px 10px; vertical-align: top; }
.aar-table tr { border-bottom: 1px solid #EEF0F2; }
.aar-table th { color: #6B7280; font-weight: 600; width: 160px; }
.aar-table-grid thead th { background: #F5F6F8; font-family: "JetBrains Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; width: auto; border-bottom: 1px solid #D8DCE1; }
.aar-table-compact td, .aar-table-compact th { font-size: 12px; padding: 6px 8px; }

.aar-decision {
  border-left: 3px solid #D9A23C;
  padding: 4px 0 4px 16px;
  margin-bottom: 18px;
}
.aar-decision-header { font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; color: #8A621F; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.aar-decision-prompt { font-size: 13px; color: #374151; font-style: italic; margin-bottom: 6px; }
.aar-decision-choice { font-size: 13.5px; margin-bottom: 4px; }
.aar-decision-consequence { font-size: 13px; color: #4B5563; }

.aar-metric-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.aar-metric-label { width: 220px; flex-shrink: 0; font-size: 13px; }
.aar-metric-bar-track { flex: 1; height: 8px; background: #EEF0F2; border-radius: 4px; overflow: hidden; }
.aar-metric-bar-fill {
  height: 100%;
  background: #D9A23C;
  border-radius: 4px;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.aar-metric-value { width: 44px; text-align: right; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; }
.aar-metric-boolean { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.aar-boolean-good { background: #E7F5EC; color: #1E7A42; }
.aar-boolean-bad { background: #FBEAEA; color: #B3261E; }

.aar-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
  font-size: 11px;
  color: #6B7280;
}
.aar-disclaimer { margin-top: 8px; line-height: 1.5; }

@media print {
  .no-print { display: none !important; }
  #aar-overlay { position: static; overflow: visible; }
  .aar-doc { max-width: 100%; padding: 0; }
  .aar-section, .aar-decision, .aar-table { break-inside: avoid; }
  @page { margin: 0.75in; }
}
