/* ── ACM FHFA Metro HPI Rankings v2.0 ─────────────────────────────────────── */

.acm-fhfa-fullwidth * { box-sizing: border-box; }
.acm-fhfa-fullwidth {
  background: #07080A;
  color: #D1D5DB;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;        /* BASE: was 13px — now legible */
  line-height: 1.6;
  padding-bottom: 56px;
}

/* ── Header ── */
.acm-fhfa-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 28px 22px;
  border-bottom: 1px solid #1F2937;
  gap: 20px;
  flex-wrap: wrap;
}
.acm-fhfa-brand  { font-size: 13px; color: #9CA3AF; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.acm-fhfa-title  { font-size: 26px; font-weight: 700; color: #F9FAFB; letter-spacing: -.01em; line-height: 1.2; }
.acm-fhfa-sub    { font-size: 15px; color: #9CA3AF; margin-top: 6px; }
.acm-fhfa-badge  { text-align: right; min-width: 150px; flex-shrink: 0; }
.acm-fhfa-live   { font-size: 13px; color: #4FC3F7; letter-spacing: .07em; margin-bottom: 6px; }
.acm-fhfa-byline-label { font-size: 12px; color: #6B7280; text-transform: uppercase; letter-spacing: .05em; }
.acm-fhfa-byline-name  { font-size: 18px; font-weight: 700; color: #C9A84C; }
.acm-fhfa-byline-sub   { font-size: 12px; color: #6B7280; }

/* ── Ticker ── */
.acm-fhfa-ticker-wrap {
  overflow: hidden;
  background: #0D1117;
  border-top: 1px solid #1F2937;
  border-bottom: 1px solid #1F2937;
  padding: 10px 0;
}
.acm-fhfa-ticker {
  display: inline-block;
  white-space: nowrap;
  animation: acm-fhfa-scroll 70s linear infinite;
}
.acm-fhfa-ticker:hover { animation-play-state: paused; }
@keyframes acm-fhfa-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.acm-fhfa-tick-item {
  display: inline-block;
  margin: 0 32px;
  font-size: 14px;        /* was 12px */
  color: #9CA3AF;
}
.acm-fhfa-tick-item strong { color: #F9FAFB; font-size: 15px; }
.acm-fhfa-tick-up { color: #34D399; font-size: 14px; }
.acm-fhfa-tick-dn { color: #F87171; font-size: 14px; }

/* ── National Benchmark Bar ── */
.acm-fhfa-nat-bar {
  background: #0D1117;
  border-bottom: 1px solid #1F2937;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.acm-fhfa-nat-label {
  font-size: 13px;        /* was 11px */
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.acm-fhfa-nat-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.acm-fhfa-nat-stat  { text-align: center; }
.acm-fhfa-nat-val   { font-size: 22px; font-weight: 700; color: #C9A84C; line-height: 1.1; }  /* big & bright */
.acm-fhfa-nat-lbl   { font-size: 12px; color: #6B7280; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* ── Meta bar ── */
.acm-fhfa-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 28px;
  background: #0A0C10;
  border-bottom: 1px solid #1F2937;
  font-size: 13px;        /* was 11px */
  color: #9CA3AF;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Summary Pills ── */
.acm-fhfa-summary-bar {
  display: flex;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid #1F2937;
  flex-wrap: wrap;
}
.acm-fhfa-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: default;
}
.acm-fhfa-pill-count {
  font-size: 26px;        /* big count number */
  font-weight: 700;
  line-height: 1;
}
.acm-fhfa-pill-label {
  font-size: 14px;        /* was 12px */
  font-weight: 600;
  letter-spacing: .02em;
}
.acm-fhfa-pill-accel    { background:rgba(52,211,153,.12); color:#34D399; border:1px solid rgba(52,211,153,.28); }
.acm-fhfa-pill-stable   { background:rgba(96,165,250,.10); color:#60A5FA; border:1px solid rgba(96,165,250,.24); }
.acm-fhfa-pill-cooling  { background:rgba(251,191,36,.10); color:#FBB324; border:1px solid rgba(251,191,36,.24); }
.acm-fhfa-pill-declining{ background:rgba(248,113,113,.12);color:#F87171; border:1px solid rgba(248,113,113,.26); }
.acm-fhfa-pill-total    { background:rgba(201,168,76,.08); color:#C9A84C; border:1px solid rgba(201,168,76,.20); }

/* ── Controls ── */
.acm-fhfa-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid #1F2937;
  flex-wrap: wrap;
}
.acm-fhfa-search-input {
  background: #111827;
  border: 1px solid #374151;
  color: #F9FAFB;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 15px;        /* was 13px */
  width: 280px;
  outline: none;
  transition: border-color .2s;
}
.acm-fhfa-search-input::placeholder { color: #6B7280; }
.acm-fhfa-search-input:focus { border-color: #C9A84C; }
.acm-fhfa-filter-wrap { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.acm-fhfa-filter-label { font-size:13px; color:#9CA3AF; text-transform:uppercase; letter-spacing:.05em; font-weight:600; }
.acm-fhfa-filter-btn {
  background: #111827;
  border: 1px solid #374151;
  color: #D1D5DB;         /* brighter than before */
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 14px;        /* was 12px */
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}
.acm-fhfa-filter-btn:hover { border-color:#C9A84C; color:#F9FAFB; }
.acm-fhfa-filter-btn.active { background:#C9A84C; border-color:#C9A84C; color:#07080A; font-weight:700; }
.acm-fhfa-fbtn-accel.active    { background:#34D399; border-color:#34D399; color:#07080A; }
.acm-fhfa-fbtn-stable.active   { background:#60A5FA; border-color:#60A5FA; color:#07080A; }
.acm-fhfa-fbtn-cooling.active  { background:#FBB324; border-color:#FBB324; color:#07080A; }
.acm-fhfa-fbtn-declining.active{ background:#F87171; border-color:#F87171; color:#07080A; }
.acm-fhfa-count-wrap { font-size:14px; color:#9CA3AF; margin-left:auto; }
.acm-fhfa-count-wrap strong { color:#F9FAFB; font-size:16px; }

/* ── Table wrapper ── */
.acm-fhfa-table-wrap {
  padding: 0 28px;
  overflow-x: auto;
}

/* ── Table ── */
.acm-fhfa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;        /* was 13px */
}

/* Main header row */
.acm-fhfa-thead-main th {
  background: #111827;
  color: #D1D5DB;         /* brighter: was #9CA3AF */
  font-size: 13px;        /* was 11px */
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid #374151;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  transition: color .15s;
}
.acm-fhfa-thead-main th:hover { color: #F9FAFB; }
.si { font-size: 11px; opacity: .6; margin-left: 4px; }

/* Column widths */
.acm-fhfa-col-metro { min-width:260px; text-align:left !important; }
.acm-fhfa-col-state { min-width:60px;  text-align:left !important; }
.acm-fhfa-col-num   { min-width:100px; text-align:center !important; }
.acm-fhfa-col-vs    { min-width:110px; text-align:center !important; }
.acm-fhfa-col-heat  { min-width:160px; text-align:center !important; }

/* Sub-header row */
.acm-fhfa-thead-sub td {
  background: #0D1117;
  font-size: 12px;        /* was 10px */
  color: #6B7280;
  font-style: italic;
  padding: 5px 14px;
  border-bottom: 2px solid #1F2937;
  text-align: center;
  white-space: nowrap;
}
.acm-fhfa-thead-sub td:nth-child(1),
.acm-fhfa-thead-sub td:nth-child(2) { text-align: left; }

/* Data rows */
.acm-fhfa-row { border-bottom: 1px solid #111827; transition: background .12s; }
.acm-fhfa-row:hover { background: #0F1520; }
.acm-fhfa-row td { padding: 11px 14px; vertical-align: middle; }

.acm-fhfa-td-metro {
  color: #F3F4F6;         /* very bright — primary identifier */
  font-weight: 500;
  font-size: 15px;
  text-align: left;
}
.acm-fhfa-td-state {
  color: #9CA3AF;
  font-size: 14px;
  text-align: left;
  font-weight: 600;
}
.acm-fhfa-td-num  { text-align: center; }
.acm-fhfa-td-vs   { text-align: center; }
.acm-fhfa-td-heat { text-align: center; }

/* Value colors — bright and clear */
.acm-fhfa-pos { color: #34D399; font-weight: 700; font-size: 15px; }
.acm-fhfa-neg { color: #F87171; font-weight: 700; font-size: 15px; }
.acm-fhfa-na-val { color: #4B5563; font-size: 14px; }
.acm-fhfa-vs-num { font-size: 14px; font-weight: 600; }

/* Heat rating badges */
.acm-fhfa-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 13px;        /* was 11px */
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.acm-fhfa-accelerating { background:rgba(52,211,153,.18); color:#34D399; }
.acm-fhfa-stable       { background:rgba(96,165,250,.15); color:#60A5FA; }
.acm-fhfa-cooling      { background:rgba(251,191,36,.14); color:#FBB324; }
.acm-fhfa-declining    { background:rgba(248,113,113,.18);color:#F87171; }
.acm-fhfa-na           { background:rgba(75,85,99,.15);   color:#6B7280; }

/* ── No data message ── */
.acm-fhfa-no-data {
  text-align: center;
  padding: 60px 28px;
  color: #9CA3AF;
  font-size: 16px;
  line-height: 1.7;
  background: #0D1117;
  border-radius: 8px;
  margin: 24px 0;
}

/* ── Methodology Note ── */
.acm-fhfa-method-note {
  margin: 24px 28px 0;
  padding: 20px 22px;
  background: #0D1117;
  border: 1px solid #1F2937;
  border-radius: 8px;
}
.acm-fhfa-method-title {
  font-size: 15px;        /* was 11px */
  font-weight: 700;
  color: #D1D5DB;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.acm-fhfa-method-body {
  font-size: 14px;        /* was 11px */
  color: #9CA3AF;
  line-height: 1.8;
}
.acm-fhfa-method-body strong { color: #D1D5DB; }
.acm-fhfa-method-body .acm-fhfa-badge { font-size: 12px; padding: 3px 9px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .acm-fhfa-header    { padding: 20px 16px 16px; }
  .acm-fhfa-title     { font-size: 20px; }
  .acm-fhfa-nat-bar   { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .acm-fhfa-meta-bar  { padding: 8px 16px; flex-direction: column; align-items: flex-start; }
  .acm-fhfa-summary-bar { padding: 12px 16px; }
  .acm-fhfa-controls  { padding: 12px 16px; }
  .acm-fhfa-search-input { width: 100%; }
  .acm-fhfa-table-wrap { padding: 0 8px; }
  .acm-fhfa-method-note { margin: 16px 8px 0; }
  .acm-fhfa-count-wrap { width: 100%; }
}
