/* /public/hea_audit/hea_audit.css
   App-compatible styling for HEA Feasibility Audit report.
   (Updated: remove “red fail” vibe; keep warn-only for negative signals.)
*/

.hw-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 980px){
  .hw-grid{ grid-template-columns: 1fr 1fr; }
  .hw-grid .hw-card:first-child{ grid-column: 1 / -1; }
}

.hw-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.hw-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.hw-kicker{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.hw-title{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hw-muted{ color: var(--muted); }

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.hw-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 720px){
  .hw-split{ grid-template-columns: 1fr; }
}

.hw-metric{ margin: 8px 0; }
.hw-metric-label{ font-size: 12px; color: var(--muted); }
.hw-metric-value{ font-size: 16px; font-weight: 700; margin-top: 2px; color: var(--ink); }

.hw-section{ margin-top: 12px; }
.hw-section-title{ font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.hw-hint{ margin-top: 8px; font-size: 12px; color: var(--muted); }

.hw-inline{ display:flex; gap: 8px; align-items:center; }
.hw-wrap{ flex-wrap: wrap; }

.hw-list{ margin: 8px 0 0; padding-left: 18px; }
.hw-list li{ margin: 4px 0; }

/* Pills/badges — subtle, token-based */
.hw-badge,
.hw-pill{
  display:inline-flex;
  align-items:center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.hw-badge{ font-weight: 800; padding: 4px 10px; }

/* Gentle tints */
.hw-badge.ok, .hw-pill.ok{ background: rgba(0,200,120,.10); }
.hw-badge.warn, .hw-pill.warn{ background: rgba(255,170,0,.12); }

/* 🚫 remove “red fail” vibe entirely for audit UI */
.hw-badge.bad, .hw-pill.bad{
  background: rgba(255,170,0,.12);
  color: var(--ink);
}

/* Muted */
.hw-badge.muted, .hw-pill.muted{
  background: rgba(120,120,120,.10);
  color: var(--muted);
}

/* Table styling aligned with app */
.hw-table{
  width:100%;
  border-collapse: collapse;
  margin-top: 8px;
  overflow:hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.hw-table th, .hw-table td{
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
  color: var(--ink);
}

.hw-table th{
  text-align:left;
  font-size: 12px;
  color: var(--muted);
  background: rgba(0,0,0,.02);
}

.hw-table tr:last-child td{ border-bottom: none; }

.hw-table a{
  color: var(--brand1);
  text-decoration: none;
}
.hw-table a:hover{ text-decoration: underline; }

/* Primary CTA button */
.hw-btn{
  appearance:none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  color: #fff;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .15s ease, transform .12s ease;
  text-decoration: none; /* anchor looks like button */
  display: inline-flex;
  justify-content: center;
}

.hw-btn:hover{ box-shadow: var(--shadow-md); }
.hw-btn:disabled{ opacity: .55; cursor:not-allowed; }

.hw-cta-row{
  margin-top: 12px;
  display:flex;
  flex-direction: column;
  gap: 8px;
}