/* ── HospitalObserver — facility page styles ─────────────────────────────── */
.ho-wrap { max-width: 860px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1c1c1e; line-height: 1.6; }

/* Hero */
.ho-hero { border-bottom: 1px solid #e8e8e8; padding-bottom: 1.25rem; margin-bottom: 0; }
.ho-hero-top { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ho-hosp-icon { width: 52px; height: 52px; border-radius: 10px; background: #e8f2fd; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #1a7adb; }
.ho-hero-info { flex: 1; min-width: 200px; }
.ho-facility-name { font-size: 1.6rem; font-weight: 600; margin: 0 0 .4rem; line-height: 1.2; }
.ho-hero-meta { font-size: .85rem; color: #666; margin-bottom: .6rem; }
.ho-hero-meta a { color: #1a7adb; text-decoration: none; }
.ho-sep { margin: 0 4px; }
.ho-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ho-badge { font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.ho-badge-type { background: #e8f2fd; color: #0a4a8c; }
.ho-badge-er   { background: #eaf3de; color: #2a5a10; }
.ho-badge-bf   { background: #faeeda; color: #6a3800; }

/* Score bar */
.ho-score-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; background: #f5f7fa; border-radius: 10px; padding: .9rem 1.2rem; }
.ho-obs-score { text-align: center; min-width: 74px; }
.ho-obs-num { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.ho-obs-sub { font-size: .7rem; color: #888; margin-top: 1px; }
.ho-obs-label { font-size: .7rem; color: #888; }
.ho-score-divider { width: 1px; background: #d8d8d8; align-self: stretch; min-height: 48px; }
.ho-rank-pills { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.ho-rank-pill { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 6px 14px; text-align: center; min-width: 88px; }
.ho-rank-num { font-size: 1.2rem; font-weight: 600; color: #1a7adb; }
.ho-rank-lbl { font-size: .7rem; color: #888; }
.ho-cms-wrap { text-align: center; }
.ho-cms-stars { display: flex; gap: 2px; justify-content: center; }
.ho-star { font-size: 1.1rem; }
.ho-star-filled { color: #e07b00; }
.ho-star-empty  { color: #d0d0d0; }
.ho-cms-label { font-size: .7rem; color: #888; margin-top: 2px; }

/* Sections */
.ho-section { padding: 1.5rem 0; border-bottom: 1px solid #ebebeb; }
.ho-section:last-child { border-bottom: none; }
.ho-section-title { font-size: .75rem; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 1rem; }

/* HCAHPS */
.ho-hcahps-summary { font-size: .9rem; margin-bottom: .75rem; }
.ho-summary-stars .ho-star { font-size: 1.2rem; }
.ho-survey-info { font-size: .8rem; color: #888; margin-top: 3px; }
.ho-chart-wrap { position: relative; width: 100%; margin: 1rem 0; }
.ho-chart-hvbp { max-width: 360px; }
.ho-chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: #555; margin-bottom: .75rem; }
.ho-leg { display: flex; align-items: center; gap: 5px; }
.ho-leg::before { content: ''; width: 10px; height: 10px; border-radius: 2px; }
.ho-leg-hosp::before  { background: rgba(26,122,219,.85); }
.ho-leg-state::before { background: rgba(136,135,128,.7); }
.ho-leg-nat::before   { background: rgba(212,83,126,.7); }

/* HCAHPS table */
.ho-table-wrap { overflow-x: auto; margin-top: .75rem; }
.ho-hcahps-table { width: 100%; font-size: .82rem; border-collapse: collapse; }
.ho-hcahps-table thead th { font-weight: 600; color: #888; font-size: .73rem; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid #e8e8e8; white-space: nowrap; }
.ho-hcahps-table tbody tr:hover { background: #f8f8fb; }
.ho-hcahps-table td { padding: 7px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.ho-td-label { color: #333; }
.ho-td-score { font-weight: 600; }
.ho-td-state, .ho-td-nat { color: #888; }
.ho-td-arrow { font-size: .75rem; white-space: nowrap; }

/* ER */
.ho-er-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: .75rem; }
.ho-er-card { background: #f5f7fa; border-radius: 8px; padding: .75rem 1rem; }
.ho-er-label { font-size: .78rem; color: #888; margin-bottom: 4px; }
.ho-er-value { font-size: 1.4rem; font-weight: 600; }
.ho-er-compare { font-size: .75rem; color: #888; margin-top: 2px; }
.ho-er-arrow { font-size: .75rem; margin-top: 3px; }

/* Color states */
.ho-better  { color: #2a6e10; }
.ho-worse   { color: #b02020; }
.ho-similar { color: #555; }
.ho-nodata  { color: #aaa; font-style: italic; }
.ho-nodata-msg { color: #888; font-size: .9rem; }

/* Outcome pills */
.ho-outcome-table { display: flex; flex-direction: column; gap: 0; }
.ho-outcome-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0f0f0; }
.ho-outcome-row:last-child { border-bottom: none; }
.ho-outcome-name { font-size: .9rem; }
.ho-outcome-pills { display: flex; gap: 8px; }
.ho-pill { font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.ho-pill-better { background: #eaf3de; color: #2a5a10; }
.ho-pill-worse  { background: #fdeaea; color: #8a2020; }

/* HVBP */
.ho-hvbp-total { font-size: .9rem; color: #555; margin-bottom: .75rem; }
.ho-hvbp-total strong { color: #1c1c1e; font-weight: 600; }

/* Info table */
.ho-info-table { width: 100%; font-size: .88rem; border-collapse: collapse; }
.ho-info-table tr td { padding: 7px 0; border-bottom: 1px solid #f0f0f0; }
.ho-info-table tr:last-child td { border-bottom: none; }
.ho-info-table tr td:first-child { color: #888; width: 40%; }
.ho-info-table tr td:last-child { font-weight: 500; }

/* Nearby */
.ho-nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ho-nearby-card { background: #fff; border: 1px solid #e4e4e4; border-radius: 10px; padding: .75rem 1rem; transition: border-color .15s; }
.ho-nearby-card:hover { border-color: #1a7adb; }
.ho-nearby-name { font-size: .88rem; font-weight: 500; margin-bottom: 4px; }
.ho-nearby-name a { color: #1a7adb; text-decoration: none; }
.ho-nearby-meta { font-size: .78rem; color: #888; }
.ho-nearby-more { background: #f5f7fa; }
.ho-nearby-more a { color: #1a7adb; font-size: .88rem; font-weight: 500; text-decoration: none; }

/* Responsive */
@media (max-width: 600px) {
  .ho-facility-name { font-size: 1.3rem; }
  .ho-score-bar { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .ho-score-divider { display: none; }
  .ho-er-grid { grid-template-columns: 1fr 1fr; }
}
