/* ── Card hero for the public role pages (workforce_role.html, ``hero_card``)
   The Financial Analyst's split hero frames a screenshot of its report; the
   other roles get the same frame filled with an HTML card built from their
   real sample data (ataski.web.role_hero_cards) — the homepage ``.dash``
   family: navy→teal cover band, KPI tiles, one small chart or list, and a
   green row naming the role's real control. Loaded only on pages that render
   the card. Layout of the left column is new-format.css's ``.nf-hx-*``. */

/* Left column: the price line + the role's secondary links under the CTAs. */
.rh-price { margin-top: 18px; }
.rh-price .nf-price { font-size: 19px; }
.rh-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 600; }
.rh-links a { color: var(--c); }
.rh-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The long description, unchanged, under the split. */
.rh-desc { margin-top: 28px; max-width: 86ch; font-size: 15px; line-height: 1.65; color: var(--ink2); }
.nf-hx-grid ~ .rh-desc + .nf-fp { margin-top: 20px; }

/* The card. */
.rhc { position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 16px; background: #fff;
  box-shadow: 0 2px 4px rgba(20,19,15,.04), 0 40px 80px -36px rgba(22,49,78,.45); }
.rhc-cover { padding: 18px 20px 16px; color: #fff;
  background: radial-gradient(420px 180px at 100% 0, rgba(127,214,198,.25), transparent 60%),
              linear-gradient(135deg, #0F2A47, #0B4A6E 65%, #0B6A74); }
.rhc-k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7FD6C6; }
.rhc-t { margin-top: 7px; font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; }
.rhc-m { margin-top: 5px; font-size: 12.5px; color: #B9CCE0; }

.rhc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 12px 0; }
.rhc-kpi { min-width: 0; border: 1px solid var(--rule); border-radius: 11px; padding: 10px 11px 9px; background: #fff; }
.rhc-kl { min-height: 2.5em; font-size: 10px; line-height: 1.25; font-weight: 700; letter-spacing: .06em; overflow-wrap: break-word; hyphens: auto; text-transform: uppercase; color: var(--ink3); }
.rhc-kv { margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--accent); white-space: nowrap; }
.rhc-ks { margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--ink3); }
.rhc-kpi.is-good .rhc-kv { color: #0E8A72; }
.rhc-kpi.is-bad .rhc-kv { color: #B42318; }
.rhc-kpi.is-warn .rhc-kv { color: #9A5B00; }
.rhc-spk { display: block; width: 100%; height: 28px; margin-top: 6px; color: var(--blue); }
.rhc-bar { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: #EEF1F4; overflow: hidden; }
.rhc-bar i { display: block; height: 100%; border-radius: 3px; background: #0E8A72; }

.rhc-block { margin: 10px 12px 0; padding: 11px 12px 12px; border: 1px solid var(--rule); border-radius: 11px; background: #fff; }
.rhc-bh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.rhc-bt { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.rhc-lg { display: flex; gap: 12px; font-size: 11px; color: var(--ink3); }
.rhc-lg span { display: inline-flex; align-items: center; gap: 5px; }
.rhc-lg i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.rhc-lg i.a, .rhc-pair i.a { background: var(--blue); }
.rhc-lg i.b, .rhc-pair i.b { background: #0E8A72; }
.rhc-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin-top: 10px; padding-bottom: 1px; border-bottom: 1px solid var(--rule); }
.rhc-pair { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.rhc-pair i { display: block; width: 42%; max-width: 16px; min-height: 2px; border-radius: 3px 3px 0 0; }

.rhc-list { margin-top: 6px; }
.rhc-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); }
.rhc-list li:first-child { border-top: 0; }
.rhc-ln { min-width: 0; flex: 1; }
.rhc-ln b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 650; color: var(--ink); }
.rhc-ln small { display: block; font-size: 11.5px; color: var(--ink3); }
.rhc-chip { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #EEF1F4; color: var(--ink2); }
.rhc-chip.is-bad { background: #FDECEA; color: #B42318; }
.rhc-chip.is-warn { background: #FFF4E0; color: #9A5B00; }
.rhc-chip.is-good { background: #E7F6F1; color: #0E6B57; }
.rhc-lv { flex: none; min-width: 64px; text-align: right; font-size: 13px; font-weight: 700; color: var(--accent); }
.rhc-lv small { font-size: 11px; font-weight: 500; color: var(--ink3); }

.rhc-stack { display: flex; height: 10px; margin-top: 9px; border-radius: 5px; overflow: hidden; gap: 2px; }
.rhc-stack i { display: block; height: 100%; }
.rhc-stl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 22px; margin-top: 10px; }
.rhc-stl li { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; color: var(--ink3); }
.rhc-stl li i { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.rhc-stl li span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rhc-stl li b { margin-left: 2px; font-weight: 650; color: var(--ink2); }
.rhc .s1 { background: #A8D8C9; }
.rhc .s2 { background: #3FA48A; }
.rhc .s3 { background: #E2B98E; }
.rhc .s4 { background: #C7743A; }
.rhc .s5 { background: #C2392D; }

.rhc-check { display: flex; align-items: flex-start; gap: 9px; margin: 10px 12px 12px; padding: 10px 12px; border: 1px solid #CFEDE3; border-radius: 10px; background: #F2FAF7; font-size: 13px; line-height: 1.45; color: #14533F; }
.rhc-check svg { flex: none; margin-top: 1px; color: #0E8A72; }
.rhc-check b { font-weight: 700; }

@media (max-width: 639px) {
  .rhc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhc-t { font-size: 16.5px; }
  .rh-desc { font-size: 14.5px; }
}
