/* Today's hero cards B, you vs you (.hero-b, views/hero-b.js), and C, rings and streaks (.hero-c, views/hero-c.js),
   and their detail views (.hero-d-b, .hero-d-c). From docs/mockups/today/today.css; the face and the shared head
   are css/today-hero.css. Colours come from the tokens in style.css only; the pictures run left to right in Hebrew
   too (.ltr). */

/* B: you vs you */
.hb-sub{margin:-4px 0 0;font-size:.76rem;line-height:1.35;color:var(--mut)}
.hb-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hb-tile{display:flex;flex-direction:column;gap:2px;min-inline-size:0;padding:10px 11px 9px;border-radius:16px;background:var(--surface)}
.hb-tile p{margin:0}
.hb-k{font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--mut)}
[lang=he] .hb-k{letter-spacing:0;font-size:.76rem}
.hb-v{display:flex;align-items:baseline;gap:4px}
.hb-v b{font:600 1.6rem/1.1 var(--serif);letter-spacing:-.02em;color:var(--ink)}
.hb-v small{font-weight:700;color:var(--mut);font-size:.72rem}
.hb-strip{display:block;block-size:auto;margin-block:2px}
.hb-bld{display:block;block-size:6px;margin-block:12px 10px;border-radius:var(--pill);background:var(--line);overflow:hidden}
.hb-bld i{display:block;block-size:100%;border-radius:var(--pill);background:var(--mut)}
.hb-s{font-size:.74rem;font-weight:800;line-height:1.3}
.hb-s.up{color:var(--c)}
.hb-s.mid{color:var(--ink2)}
.hb-s.bld{color:var(--mut);font-weight:700}
.hb-t{font-size:.68rem;line-height:1.3;color:var(--mut)}
.hb-t i{font-style:normal;font-size:.62rem}
.hb-t.up i{color:var(--c)}
.hb-t.dn i{color:var(--red)}

/* B's detail: each measure through the year */
.hb-pr{display:flex;flex-direction:column;gap:6px;padding-block:10px;border-block-end:1px solid var(--line)}
.hb-pr:first-child{padding-block-start:0}
.hb-pr:last-child{border:0;padding-block-end:0}
.hb-prh{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;font-size:.92rem}
.hb-prh b{margin-inline-end:auto;color:var(--ink)}
.hb-year{display:block;block-size:auto}
.hb-month{font-size:10px;font-weight:700;fill:var(--mut)}
.hb-note{margin:0;font-size:.76rem;line-height:1.45;color:var(--mut)}

/* C: rings and streaks */
.hc-rings{display:block;flex:none}
.hc-row{display:flex;align-items:center;gap:12px}
.hc-leg{display:flex;flex-direction:column;gap:7px;flex:1;min-inline-size:0}
.hc-leg p,.hc-legend span{margin:0;display:flex;align-items:center;gap:6px;font-size:.84rem;color:var(--ink2)}
.hc-leg i,.hc-legend i{flex:none;inline-size:10px;block-size:10px;border-radius:50%}
.hc-leg b{margin-inline-start:auto;color:var(--ink);white-space:nowrap}
.hc-leg p[data-closed] b::after{content:' ✓';color:var(--c)}
.hc-sofar{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:var(--surface)}
.hc-sofar .hero-sec{margin:0 0 2px}
.hc-tl{margin:0;font-size:.82rem;font-weight:700;line-height:1.4;color:var(--ink2)}
.hc-tl [data-ring=sleep]{color:var(--a)}
.hc-tl [data-ring=move]{color:var(--b)}
.hc-tl [data-ring=nourish]{color:var(--d)}
.hc-tl [data-ring=recover]{color:var(--c)}
.hc-streaks{display:flex;flex-wrap:wrap;gap:6px}
.hc-pill{display:inline-flex;align-items:center;padding:6px 11px;border-radius:var(--pill);background:var(--a-soft);color:var(--a);font-weight:800;font-size:.8rem}
.hc-pill.hot{background:var(--d-soft);color:var(--d)}
.hc-week{display:flex;justify-content:space-between}
.hc-mini{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:.66rem;font-weight:700;color:var(--mut)}

/* C's detail: four weeks of rings and the streaks */
.hc-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:8px 0;justify-items:center}
.hc-legend{display:flex;flex-wrap:wrap;gap:6px 12px;justify-content:center;margin:2px 0 0}
.hc-legend span{font-size:.74rem;font-weight:700;color:var(--mut);gap:4px}
.hc-nx{display:flex;align-items:center;gap:10px;padding-block:9px;border-block-end:1px solid var(--line)}
.hc-nx:last-child{border:0}
.hc-nx > span:nth-child(2){flex:1;min-inline-size:0}
.hc-nx b{display:block;font-size:.88rem;color:var(--ink)}
.hc-nx small{display:block;font-size:.72rem;color:var(--mut)}
.hc-nx > b{white-space:nowrap}
.hc-em{font-size:1.1rem;flex:none}
