/* The hero cards' faces and details (views/hero-registry.js): card A is a past day's card on Today, card D's sentence
   Today's day card, card C's detail and A's on the day's score screen (views/day-score.js), B's on body/trends. Each
   block is one card's (.hero-a yesterday's scorecard, .hero-d the morning briefing...), then the detail views
   (.hero-d-<id>). From docs/mockups/today/today.css. Colours come from the tokens in style.css only; the pictures run
   left to right in Hebrew too (.ltr). */
.hero-face{display:flex;flex-direction:column;gap:10px;min-inline-size:0}

/* A card's head: the section title. */
.hero-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hero-sec{margin:0;font-size:.74rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--mut)}
[lang=he] .hero-sec{letter-spacing:0;font-size:.82rem}
.hero-face svg{display:block;overflow:visible}
.hero-face svg text,.hero-detail svg text{font-family:var(--sans)}

/* A: yesterday's scorecard */
.ha-big{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 6px}
.ha-n{font:600 3.6rem/.95 var(--serif);letter-spacing:-.03em;color:var(--ink)}
.ha-of{font-weight:700;color:var(--mut);font-size:.92rem;margin-inline-end:auto}
.ha-pill{display:inline-flex;align-items:center;padding:5px 11px;border-radius:var(--pill);background:var(--c-soft);color:var(--c);font-weight:800;font-size:.8rem}
.ha-pill.dn{background:var(--b-soft);color:var(--b)}
.ha-radar{display:flex;justify-content:center;margin:-4px -10px -6px}
.hero-radar-svg{inline-size:100%;max-inline-size:340px;block-size:auto}
.hr-ax{font-size:12px;font-weight:700;fill:var(--ink2)}
.hr-av{font-size:11.5px;font-weight:800}
.ha-legend{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;font-size:.76rem;font-weight:600;color:var(--mut)}
.ha-sw{inline-size:14px;block-size:8px;border-radius:3px;background:var(--a);opacity:.7}
.ha-sw.g{background:none;border:1.6px dashed var(--mut);opacity:1;margin-inline-start:10px}
.ha-wm{display:flex;flex-direction:column;gap:8px}
.ha-wm p{margin:0;display:flex;gap:10px;align-items:flex-start;padding:9px 12px;border-radius:14px;background:var(--surface);font-size:.9rem;color:var(--ink2);line-height:1.35}
.ha-wm i{font-style:normal;font-size:.8rem;margin-block-start:2px}
.ha-wm small{display:block;font-size:.66rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mut)}
[lang=he] .ha-wm small{letter-spacing:0;font-size:.74rem}
.hero-a .up,.hero-d-a .up{color:var(--c)}
.hero-a .dn,.hero-d-a .dn{color:var(--red)}

/* D: the morning briefing */
.hd-head{margin:0;font:600 1.42rem/1.18 var(--serif);letter-spacing:-.01em;color:var(--ink);text-transform:none}
[lang=he] .hd-head{font-family:var(--sans);font-weight:800;font-size:1.3rem;letter-spacing:0}
.hd-lines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.hd-lines li{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:7px 0;border-block-end:1px solid var(--line);font-size:.9rem;line-height:1.38;color:var(--ink2)}
.hd-lines li:first-child{padding-block-start:2px}
.hd-lines li:last-child{border:0}
.hd-lines b,.hd-dline b{color:var(--ink)}
.hd-lines svg{flex:none}
.hd-sug{display:flex;gap:10px;align-items:flex-start;margin:0;padding:11px 13px;border-radius:var(--rm);background:var(--c-soft);color:var(--ink);font-size:.92rem;line-height:1.38}
.hd-sug i{font-style:normal;color:var(--c);font-weight:800;flex:none}
[dir=rtl] .hd-sug i{transform:scaleX(-1)}

/* The detail views: the sheet's head is their one title; under its Back, plain cards. */
.hero-detail{display:flex;flex-direction:column;gap:14px;padding-block-end:10px}
.hero-detail .card.flat{display:flex;flex-direction:column;gap:10px;padding:16px;margin:0}
.hero-back{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;min-block-size:48px;font-weight:800}
.ha-dhead .ha-big{align-items:center;flex-wrap:nowrap}
.ha-dhead .ha-of{white-space:nowrap}
.ha-dspark{margin-inline-start:auto}
.ha-note,.hd-note{margin:0;font-size:.76rem;line-height:1.45;color:var(--mut)}
.ha-note b{color:var(--ink2)}
.ha-pr{display:flex;flex-direction:column;gap:6px;padding-block:10px;border-block-end:1px solid var(--line)}
.ha-pr:first-child{padding-block-start:0}
.ha-prh{display:flex;align-items:baseline;gap:10px;font-size:.92rem}
.ha-prh b{margin-inline-end:auto}
.ha-pts{font-size:.78rem;font-weight:800;color:var(--mut)}
.hero-bars{display:block}
/* each line one row: the words, then its small chart beside them; the numbers bold, the words quiet */
.hd-dlines{display:flex;flex-direction:column}
.hd-dline{display:flex;align-items:center;gap:12px;padding-block:7px;border-block-end:1px solid var(--line)}
.hd-dline:first-child{padding-block-start:0}
.hd-dline:last-child{border:0;padding-block-end:0}
.hd-dline p{flex:1;margin:0;font-size:.86rem;line-height:1.35;color:var(--ink2)}
.hd-dline b{font-weight:800}
.hd-dline svg{flex:none}
.hero-d-d .hd-head{font-size:1.28rem}
[lang=he] .hero-d-d .hd-head{font-size:1.18rem}
.hd-earlier .sec{margin:0}
.hd-prev{display:flex;flex-direction:column;gap:2px;padding-block:8px;border-block-end:1px solid var(--line)}
.hd-prev small{font-size:.76rem;color:var(--mut)}
.hd-prev b{font-size:.94rem;color:var(--ink)}
