/* ─── KLIP Report Styles ─── */
/* Matches the mock HTML layout: clean, minimal, document-like */

.report-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: 12px;
}

.report-header {
  border-bottom: 0.5px solid #ddd;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.report-logo {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.report-title {
  font-size: 22px;
  font-weight: 500;
  color: #111;
  margin: 0 0 4px;
}

.report-meta {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* Personal summary box */
.report-summary {
  background: #f5f5f5;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 14px;
  color: #666;
  border-left: 3px solid #ccc;
  line-height: 1.6;
}

/* Score card with dial */
.report-score-card {
  background: #fff;
  border: 0.5px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.report-dial-wrap {
  flex-shrink: 0;
}

.report-score-info {
  flex: 1;
}

.report-band-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #fff;
}

.report-score-message {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Sections */
.report-section {
  margin-bottom: 1.5rem;
}

.report-section-title {
  font-size: 13px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
  padding-bottom: 6px;
  border-bottom: 0.5px solid #ddd;
}

.report-section-body {
  font-size: 14px;
  color: #333;
  line-height: 1.75;
  margin: 0;
}

/* Note box (for MCS disclaimer) */
.report-note {
  background: #FFF8E1;
  border: 0.5px solid #FFE082;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 13px;
  color: #795548;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Comparison bars */
.report-compare-wrap {
  margin-top: 0.75rem;
}

.report-compare-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.report-compare-row.active {
  font-weight: 600;
}

.report-compare-row.active .report-compare-label {
  color: #111;
  font-weight: 600;
}

.report-compare-label {
  font-size: 12px;
  color: #666;
  width: 160px;
  flex-shrink: 0;
}

.report-bar-track {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.report-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.report-bar-val {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* Actions list */
.report-actions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-actions-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 0.5px solid #eee;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.report-actions-list li:last-child {
  border-bottom: none;
}

.report-action-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  flex-shrink: 0;
  margin-top: 1px;
}

/* KLI grid */
.report-kli-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0.75rem;
}

.report-kli-chip {
  background: #f5f5f5;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.4;
  cursor: default;
  transition: all 0.2s ease;
}

.report-kli-chip.completed {
  border-color: #aaa;
  color: #111;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
}

.report-kli-chip.completed:hover {
  border-color: #888;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.report-kli-chip.active {
  border-color: #1D9E75;
  color: #1D9E75;
  background: #E8F5E9;
  font-weight: 600;
}

.report-kli-chip.greyed {
  opacity: 0.5;
}

/* CTA card */
.report-cta-card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.report-cta-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0 0 8px;
}

.report-cta-contact {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.report-cta-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 24px;
  background: #A33893;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease;
}

.report-cta-button:hover {
  background: #8B2E7D;
}

/* Crisis signposting */
.report-crisis {
  background: #FFF3F3;
  border: 1px solid #FFCDD2;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.report-crisis-intro {
  font-size: 14px;
  color: #C62828;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.report-crisis-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.report-crisis-list li {
  font-size: 14px;
  color: #333;
  padding: 6px 0;
  line-height: 1.5;
  border-bottom: 0.5px solid #FFCDD2;
}

.report-crisis-list li:last-child {
  border-bottom: none;
}

.report-crisis-footer {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* Footer */
.report-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 0.5px solid #ddd;
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.5;
}

/* Domain separator */
.report-domain-separator {
  height: 1px;
  background: #ddd;
  margin: 2.5rem 0;
}

/* Download button */
.report-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.report-download-btn:hover {
  border-color: #999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Back to dashboard */
.report-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 1rem;
  font-family: inherit;
}

.report-back-btn:hover {
  color: #111;
}

/* Locked state overlay */
.report-locked-overlay {
  position: relative;
}

.report-locked-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
}

.report-locked-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
}

/* Section subtitle (for dual-section KLIs) */
.report-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #555;
  margin: 0 0 1rem;
}

/* ─── Responsive: Desktop ─── */
@media (min-width: 768px) {
  .report-wrap {
    max-width: 720px;
    padding: 2.5rem 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  }
  .report-title { font-size: 28px; }
  .report-section-body { font-size: 15px; }
  .report-score-card { padding: 2rem; gap: 2rem; }
  .report-compare-label { width: 200px; }
  .report-kli-grid { grid-template-columns: repeat(4, 1fr); }
  .report-actions-list li { font-size: 15px; }
  .report-cta-card { padding: 1.5rem 2rem; }
  .report-cta-button { max-width: 320px; margin-left: auto; margin-right: auto; }
}
