/* Holdings / Watchlist header — "strip" (design-refs/portfolio-header-compact, variant 1),
   larger type at the same height (design-refs/portfolio-header-type, variant 2, rounded corners kept).
   One band: the headline number, two supporting numbers, and the leader in an end cap.
   Colours (design-refs/portfolio-header-colors, variant 4): the band is the curve violet and
   the cap a saturated Graduated peach — the two coin-stage colours of the cards below.
   Holdings amounts are GRAM, like the position cards below. */
.hv-culture{
  --hc-band:#5b3bd6; --hc-ink:#fff; --hc-mute:#ddd3ff; --hc-pos:#c8f7a0; --hc-neg:#ffc7d1;
  --hc-cap:#ffbb8a; --hc-cap-ink:#3d1d05; --hc-cap-mute:#6e3a12; --hc-cap-num:#7a3306; --hc-ring:#ffe3cc;
display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr) minmax(0,1.1fr);
  margin:0 0 24px;border-radius:22px;overflow:hidden;background:var(--hc-band);color:var(--hc-ink);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-variant-numeric:tabular-nums}

.hc-a{display:flex;flex-direction:column;justify-content:center;gap:0;min-width:0;padding:10px 24px 12px}
.hc-t{margin:0;font-size:15px;font-weight:600;line-height:1.3;letter-spacing:0;color:var(--hc-mute)}
.hc-t span{font-weight:500}
/* page name stays for screen readers; the header shows only what the number is */
.hc-t .hc-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hc-big{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;font-size:78px;font-weight:600;line-height:.95;letter-spacing:-.06em}
.hc-gain{font-size:22px;letter-spacing:-.02em;white-space:nowrap}
.hc-unit{margin-left:-4px;font-size:.42em;letter-spacing:-.02em;color:var(--hc-mute)}

.hc-b{display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0;padding:12px 12px 12px 0}
.hc-m{font-size:13px;color:var(--hc-mute)}
.hc-m b{display:block;margin-top:2px;font-size:26px;font-weight:500;line-height:1.15;letter-spacing:-.03em;color:var(--hc-ink)}
.hc-of{font-size:.6em;color:var(--hc-mute)}

.hv-culture .positive{color:var(--hc-pos)}
.hv-culture .negative{color:var(--hc-neg)}

.hc-c{display:flex;align-items:center;gap:18px;min-width:0;padding:12px 22px;background:var(--hc-cap);color:var(--hc-cap-ink)}
.hc-port{flex:0 0 80px;width:80px;height:auto;aspect-ratio:1;object-fit:cover;border:4px solid var(--hc-ring);border-radius:14px;
  background:var(--hc-ring);transform:rotate(-6deg);box-shadow:0 4px 8px rgba(61,29,5,.12)}
.hc-fallback{display:grid;place-items:center;font-size:28px}
.hc-who{min-width:0}
.hc-cap{font-size:15px;font-weight:600;color:var(--hc-cap-mute)}
.hc-nm{margin-top:2px;font-size:30px;font-weight:600;letter-spacing:-.035em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-pf{margin-left:auto;text-align:right;font-size:40px;font-weight:600;letter-spacing:-.045em;white-space:nowrap;color:var(--hc-cap-num)}
.hc-pf small{display:block;font-size:11px;font-weight:500;letter-spacing:0}
.hc-pf .hc-gram{color:var(--hc-cap-num)}

/* GRAM amount: number + the GRAM mark at cap height */
.hc-gram{display:inline-flex;align-items:center;gap:.12em;white-space:nowrap}
.hc-gram img{width:.9em;height:.9em;object-fit:contain;flex-shrink:0}

@media(max-width:1279px) and (min-width:701px){
  .hv-culture{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .hc-big{font-size:64px}
  .hc-c{grid-column:1/-1}
}
@media(max-width:700px){
  .hv-culture{grid-template-columns:1fr;border-radius:20px}
  .hc-a{padding:10px 18px 0}
  .hc-big{font-size:56px}
  .hc-gain{font-size:20px}
  .hc-b{flex-direction:row;justify-content:flex-start;gap:28px;padding:4px 18px 12px}
  .hc-m b{font-size:22px}
  .hc-c{flex-wrap:wrap;gap:6px 12px;padding:10px 18px}
  .hc-port{flex-basis:56px;width:56px;border-width:3px;border-radius:10px}
  .hc-who{flex:1 1 104px}
  .hc-cap{font-size:14px;white-space:nowrap}
  .hc-nm{font-size:22px}
  .hc-pf{font-size:28px}
}
/* a wide result leaves the name no room beside it: the amount goes under the name */
@media(max-width:360px){
  .hc-c{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px}
  .hc-port{grid-row:1/3}
  .hc-pf{grid-column:2;margin-left:0;text-align:left;font-size:26px}
}
