/* Sample-first role hero (templates/workforce_role.html, ``profile.hero_shot``)
   — the Financial Analyst's first screen, 2026-10-17 (founder mockup M3).

   Two parts:

   1. ``.fhx`` — the hero as THREE grid items: the pitch (eyebrow, headline,
      sub), the picture, the actions (buttons, upload link, check lines,
      facts). Desktop: the picture fills the right column beside both. One
      column: the picture sits between the sub and the buttons, so a phone
      sees the product on its first screen and still reaches the button.
   2. ``.fhr`` — the picture itself: the public sample report's cover,
      rendered live as HTML (ataski.web.fpa_role_hero) in the sample cover's
      own visual family (static/css/fpa-sample-cover.css: navy→teal band,
      white KPI tiles, sparklines) at a size that reads in a hero column.
      Its own class names, so a change to the sample page never shifts it.

   The walkthrough video under the hero card is styled in
   static/css/new-format.css (the homepage renders it too). */

/* ── 1. layout ────────────────────────────────────────────────────── */
.nf-hx-grid.fhx { gap: 0; }
.fhx > .fhx-fig { margin: 18px 0 0; }
@media (min-width: 1024px) {
  .nf-hx-grid.fhx {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    /* The picture spans both rows; the second row (1fr) absorbs whatever
       height it adds, so the buttons stay 22px under the sub. */
    grid-template-rows: auto 1fr;
    column-gap: 44px;
    row-gap: 0;
  }
  .fhx > .fhx-a { grid-column: 1; grid-row: 1; }
  .fhx > .fhx-b { grid-column: 1; grid-row: 2; align-self: start; }
  .fhx > .fhx-fig { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

/* One line of trust facts under the check lines. */
.fhx-facts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--ink3); }
.fhx-facts li { display: inline; }
/* The dot trails its fact, so a wrapped line never starts with one. */
.fhx-facts li:not(:last-child)::after { content: "\00B7"; content: "\00B7" / ""; padding: 0 6px; }
.fhx-facts a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.fhx-facts a:hover { color: var(--ink); }

/* ── 2. the live report cover ─────────────────────────────────────── */
.fhr {
  --fhr-ink: #17233d;
  --fhr-ink3: #6d7890;
  --fhr-line: #e3e7f0;
  --fhr-navy: #16314E;
  --fhr-blue: #0B5CAD;
  --fhr-teal: #0B6A74;
  --fhr-mint: #7FD6C6;
  --fhr-good: #118761;
  --fhr-bad: #c74255;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  color: var(--fhr-ink);
  font-feature-settings: 'tnum', 'cv11';
  box-shadow: 0 1px 2px rgba(20, 19, 15, .05), 0 28px 60px -28px rgba(22, 49, 78, .45);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.fhr:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(20, 19, 15, .05), 0 34px 70px -28px rgba(22, 49, 78, .55); }
.fhr :where(p) { margin: 0; }

/* Browser-window bar: the report's name and its live month. */
.fhr-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--rule); background: #fbfaf7; }
.fhr-bar i { width: 8px; height: 8px; border-radius: 99px; background: #dcd8cf; }
.fhr-bar b { margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: var(--ink3); }

.fhr-cover {
  padding: 18px 20px 16px;
  color: #fff;
  background:
    radial-gradient(520px 220px at 100% 0, rgba(127, 214, 198, .26), transparent 60%),
    radial-gradient(360px 200px at 0 100%, rgba(11, 92, 173, .35), transparent 70%),
    linear-gradient(135deg, #0F2A47, #0B4A6E 62%, #0B6A74);
}
.fhr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fhr-k { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fhr-mint); }
.fhr-pill { flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .08); }
.fhr-co { margin-top: 8px; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.fhr-meta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 11.5px; color: #B9CCE0; }
.fhr-meta i { width: 3px; height: 3px; border-radius: 50%; background: #7E97B4; }
.fhr-take { margin-top: 14px; padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.fhr-take-k { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fhr-mint); }
.fhr-take-t { margin-top: 5px; font-size: 13.5px; line-height: 1.5; font-weight: 600; }
.fhr-foot { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.fhr-result { font-size: 11.5px; line-height: 1.45; color: #D5E2F0; }
.fhr-open { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 9px; background: #fff; color: var(--fhr-navy); font-size: 12px; font-weight: 650; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); }
.fhr:hover .fhr-open { background: #EEF4FA; }
/* The one link, stretched over the card: the whole picture opens the report
   while assistive tech hears one short link name. */
.fhr-open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.fhr-open:focus-visible { outline: none; }
.fhr-open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Two KPI tiles. */
.fhr-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.fhr-kpi { display: flex; flex-direction: column; min-width: 0; padding: 10px 11px 6px; border: 1px solid var(--fhr-line); border-radius: 11px; background: #fff; }
.fhr-kl { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--fhr-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fhr-kv { margin-top: 3px; font-size: 20px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--fhr-navy); white-space: nowrap; }
.fhr-kv.neg { color: var(--fhr-bad); }
.fhr-kd { margin-top: 5px; display: grid; gap: 2px; }
.fhr-d { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11px; line-height: 1.35; white-space: nowrap; }
.fhr-d b { font-weight: 700; }
.fhr-d > span { color: var(--fhr-ink3); overflow: hidden; text-overflow: ellipsis; }
.fhr-d.good { color: var(--fhr-good); }
.fhr-d.bad { color: var(--fhr-bad); }
.fhr-d.neutral { color: var(--ink2); }
.fhr-tri { width: 8px; height: 8px; flex: none; fill: currentColor; }
.fhr-spark { display: block; width: 100%; height: 30px; margin-top: auto; padding-top: 6px; overflow: visible; }
.fhr-spark .a { fill: var(--fhr-blue); opacity: .09; }
.fhr-spark .l { fill: none; stroke: var(--fhr-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fhr-spark .dot { stroke: var(--fhr-blue); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* One column (phones, tablets): the cover band down to the lead note —
   no window bar, eyebrow row, result line or tiles. The card still opens
   the report: the stretched link stays in place, only its button face goes. */
@media (max-width: 1023px) {
  .fhr-bar, .fhr-top, .fhr-result, .fhr-kpis { display: none; }
  .fhr-co { margin-top: 0; font-size: 22px; }
  .fhr-meta { font-size: 11px; gap: 2px 7px; }
  .fhr-take { margin-top: 12px; }
  .fhr-take-t { font-size: 13.5px; line-height: 1.45; }
  .fhr-foot { display: block; margin: 0; }
  .fhr-open { display: block; width: 0; height: 0; padding: 0; overflow: visible; font-size: 0; line-height: 0; background: none; box-shadow: none; }
}
/* Phones: tight enough that the primary button still sits on the first
   screen under the picture (390x844, the English page). */
@media (max-width: 639px) {
  .fhx > .fhx-fig { margin-top: 12px; }
  .fhx .nf-hx-cap { margin-top: 7px; }
  .fhx .nf-hx-ctas { margin-top: 16px; }
  .fhr-cover { padding: 12px 14px 11px; }
  .fhr-co { font-size: 21px; }
  .fhr-take { margin-top: 9px; padding: 8px 11px; }
  .fhr-take-t { margin-top: 3px; font-size: 13px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) { .fhr { transition: none; } .fhr:hover { transform: none; } }
/* Under the sub-headline: the daily view and the link to the sample's live
   Today screen (W6, 2026-10-19). */
.fhx .fhx-live { margin-top: 10px; max-width: 46ch; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.fhx .fhx-live a { font-weight: 600; color: var(--c); white-space: nowrap; }
.fhx .fhx-live a:hover { text-decoration: underline; text-underline-offset: 3px; }
