/* ==========================================================================
   South African Unit Trust Navigator - Shared Institutional Stylesheet
   ========================================================================== */

/* 1. Base Typography & Numerical Tabular Alignment */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

/* 2. Interactive Controls & Micro-Interactions */
.sort-btn {
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease-in-out;
}

.house-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.house-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 3. Data Tables & Tabular Matrix Grids */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  background: #f8fafc;
}

tr:hover {
  background: #f8fafc;
}

/* 4. Categorical & Risk Profile Badge System */
.badge {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
}

.badge-conservative {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.badge-cautious {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-moderate {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.badge-mod-agg {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.badge-aggressive {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-neutral {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* 5. Institutional Informational Callouts */
.callout {
  border-left: 3px solid;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
}

.callout-info {
  border-color: #3b82f6;
  background: #eff6ff;
}

.callout-warn {
  border-color: #f59e0b;
  background: #fffbeb;
}

.callout-neutral {
  border-color: #64748b;
  background: #f8fafc;
}

/* 6. Tax Stream Breakdown Progress Indicators */
.bar-interest {
  background: #dc2626;
  height: 8px;
  display: inline-block;
  border-radius: 1px;
}

.bar-dividend {
  background: #16a34a;
  height: 8px;
  display: inline-block;
  border-radius: 1px;
}

.bar-reit {
  background: #d97706;
  height: 8px;
  display: inline-block;
  border-radius: 1px;
}

.bar-capgains {
  background: #2563eb;
  height: 8px;
  display: inline-block;
  border-radius: 1px;
}
