/* Charts take their colors from these. On the white sheet they use the site's working colors; a hero band sets its own. */
.sheet { --ch-main: var(--stage); --ch-ink: var(--ink); --ch-muted: var(--muted); --ch-grid: var(--line); --ch-base: var(--field-line); --ch-ghost: color-mix(in srgb, var(--muted) 55%, #fff); --ch-ray: var(--ray); --ch-surface: #fff; }
.hero-band { --hero-chart: var(--hero-meter, var(--ray)); --ch-main: var(--hero-chart); --ch-ink: var(--hero-ink); --ch-muted: var(--hero-muted); --ch-grid: color-mix(in srgb, var(--hero-ink) 13%, transparent); --ch-base: color-mix(in srgb, var(--hero-ink) 26%, transparent); --ch-ghost: color-mix(in srgb, var(--hero-ink) 42%, transparent); --ch-ray: var(--ray); --ch-surface: var(--hero-ground, var(--ground)); }
/* A light ground needs the ray's deeper shade to read as a line. */
:is([data-palette="daylight"], [data-palette="tangerine"], [data-palette="raspberry"], [data-palette="violet"]) .hero-band { --hero-chart: var(--ray-deep); }
.hero-band.hero-beam:not(.hero-chart) { --hero-chart: var(--on-ray); --ch-surface: var(--ray); --ch-ray: var(--on-ray); }

/* ---------- Line charts */
.ch { position: relative; margin: 0; font-size: 12.5px; color: var(--ch-muted); outline: 0; }
.ch:focus-visible .ch-plot { outline: 2px solid var(--ch-ink); outline-offset: 3px; border-radius: 2px; }
.ch-plot { position: relative; height: var(--h); margin-left: 38px; cursor: crosshair; touch-action: pan-y; }
.ch-mini .ch-plot { margin-left: 0; cursor: inherit; }
.ch-plot > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; animation: ch-wipe 1s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes ch-wipe { from { clip-path: inset(-20% 102% -20% -2%); } to { clip-path: inset(-20% -2% -20% -2%); } }
.ch-grid, .ch-base { stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-grid { stroke: var(--ch-grid); }
.ch-base { stroke: var(--ch-base); }
.ch-line { fill: none; stroke: var(--ch-main); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: d .5s cubic-bezier(.2, .8, .2, 1); }
.ch-line.t-ghost { stroke: var(--ch-ghost); stroke-width: 1.75; }
.ch-line.dash { stroke-dasharray: 2 5; }
.ch-area { transition: d .5s cubic-bezier(.2, .8, .2, 1); }
.ch-stop-a { stop-color: var(--ch-main); stop-opacity: .38; }
.ch-stop-b { stop-color: var(--ch-main); stop-opacity: 0; }
.ch-y { position: absolute; left: -38px; width: 32px; text-align: right; font-variant-numeric: tabular-nums; pointer-events: none; transform: translateY(-50%); }
.ch-x { position: relative; height: 20px; margin: 6px 0 0 38px; }
.ch-x span { position: absolute; white-space: nowrap; transform: translateX(-50%); }
.ch-x span:first-child { transform: none; }
.ch-x span:last-child { transform: translateX(-100%); }
.ch-ref { position: absolute; left: 0; right: 0; border-top: 1px solid var(--ch-base); pointer-events: none; }
.ch-ref span { position: absolute; right: 0; bottom: 2px; font-size: 12px; white-space: nowrap; }
.ch-end { position: absolute; font-size: 13px; white-space: nowrap; pointer-events: none; transform: translate(10px, -50%); }
.ch-end b { font-weight: 700; color: var(--ch-ink); }
.ch-end.flip { transform: translate(calc(-100% - 6px), calc(-100% - 6px)); }

/* The lamp on the latest point, and the logo's ray opening from it across the rest of the year */
.ch-lamp { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--ch-main); border-radius: 50%; box-shadow: 0 0 0 2px var(--ch-surface), 0 0 18px 5px color-mix(in srgb, var(--ch-main) 55%, transparent); pointer-events: none; animation: ch-lamp .35s .85s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes ch-lamp { from { opacity: 0; transform: scale(0); } }

.ch-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid color-mix(in srgb, var(--ch-ink) 45%, transparent); pointer-events: none; }
.ch-cross[hidden] { display: none; }
.ch-dot { position: absolute; left: -5px; display: block; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ch-surface); }
.ch-mini .ch-plot > svg { animation-duration: .8s; }
.ch-mini .ch-lamp { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; box-shadow: 0 0 0 1.5px var(--ch-surface), 0 0 10px 3px color-mix(in srgb, var(--ch-main) 55%, transparent); animation-delay: .65s; }

.ch-key { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; margin-bottom: 6px; font-size: 13px; }
.ch-key span { display: inline-flex; align-items: center; gap: 6px; }
.ch-key i { display: block; width: 18px; border-top: 2.5px solid var(--ch-main); }
.ch-key i.t-ghost { border-top: 1.75px solid var(--ch-ghost); }
.ch-key i.dash { border-top-style: dotted; }

/* The one tooltip */
#ch-tip { position: fixed; z-index: 1500; max-width: 300px; padding: 8px 11px; font: 13px/1.4 "Albert Sans", system-ui, sans-serif; color: #fff; background: color-mix(in srgb, var(--ink) 95%, transparent); border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); pointer-events: none; }
#ch-tip[hidden] { display: none; }
#ch-tip .tip-title { margin-bottom: 3px; color: rgba(255, 255, 255, .74); }
#ch-tip .tip-row { display: flex; align-items: center; gap: 7px; }
#ch-tip .tip-row i { flex: none; width: 12px; height: 2.5px; border-radius: 2px; }
#ch-tip .tip-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
#ch-tip .tip-row span { color: rgba(255, 255, 255, .78); }

/* ---------- Ranked bars */
.rb { margin: 0; padding: 0; list-style: none; }
.rb-row { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr) 72px; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 3px 6px 3px 0; font: inherit; font-size: 14px; color: var(--ch-ink); text-align: left; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.rb-row:disabled { color: inherit; cursor: default; }
.rb-row:not(:disabled):hover, .rb li.on .rb-row { background: var(--hover); box-shadow: -6px 0 0 var(--hover); }
.rb-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.rb-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rb-logo { display: grid; flex: none; place-items: center; width: 44px; height: 26px; }
.rb-logo img { display: block; width: 44px; height: 26px; object-fit: contain; }
.rb-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-track { position: relative; display: block; height: 16px; }
.rb-track i { display: block; height: 100%; background: var(--ch-main); border-radius: 0 4px 4px 0; transform-origin: left center; transition: width .45s cubic-bezier(.2, .8, .2, 1), opacity .2s; animation: rb-grow .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rb-grow { from { transform: scaleX(0); } }
.rb-tick { position: absolute; top: -3px; bottom: -3px; display: block; width: 2px; margin-left: -1px; background: var(--ch-ink); border-radius: 1px; }
.rb-val { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.has-pick li:not(.on) .rb-track i { opacity: .3; }
.rb-div .rb-track::before { content: ""; position: absolute; top: -5px; bottom: -5px; left: 50%; border-left: 1px solid var(--ch-base); }
.rb-div .rb-track i { position: absolute; top: 0; }
.rb-div i.pos { left: 50%; }
.rb-div i.neg { right: 50%; background: var(--ch-ghost); border-radius: 4px 0 0 4px; transform-origin: right center; }

/* ---------- Bubble map */
.bm { font-size: 12.5px; color: var(--ch-muted); }
.bm i, .bm em { font-style: normal; }
.bm-ytitle, .bm-xtitle { font-size: 13px; }
.bm-ytitle { margin-bottom: 6px; }
.bm-xtitle { margin-top: 24px; text-align: right; }
.bm-plot { position: relative; height: var(--h); border-bottom: 1px solid var(--ch-base); border-left: 1px solid var(--ch-base); }
.bm-gy { position: absolute; left: 0; right: 0; display: block; border-top: 1px solid var(--ch-grid); }
.bm-gy span { position: absolute; top: 2px; left: 5px; }
.bm-gx { position: absolute; top: 0; bottom: 0; display: block; border-left: 1px solid var(--ch-grid); }
.bm-gx span { position: absolute; bottom: -20px; transform: translateX(-50%); }
.bm-mid-x, .bm-mid-y { position: absolute; display: block; pointer-events: none; }
.bm-mid-x { top: 0; bottom: 0; border-left: 1.5px solid var(--ch-base); }
.bm-mid-y { left: 0; right: 0; border-top: 1.5px solid var(--ch-base); }
.bm-b { position: absolute; display: grid; place-items: center; width: var(--d); height: var(--d); padding: 0; background: color-mix(in srgb, var(--ch-main) 26%, #fff); border: 2px solid var(--ch-main); border-radius: 50%; box-shadow: 0 0 0 2px var(--ch-surface); cursor: pointer; transform: translate(-50%, 50%); transition: left .5s cubic-bezier(.2, .8, .2, 1), bottom .5s cubic-bezier(.2, .8, .2, 1), width .3s, height .3s, opacity .2s, transform .12s; animation: bm-in .55s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes bm-in { from { opacity: 0; transform: translate(-50%, 50%) scale(.3); } }
.bm-b:hover { z-index: 5; transform: translate(-50%, 50%) scale(1.07); }
.bm-b:focus-visible { z-index: 5; outline: 2px solid var(--ink); outline-offset: 2px; }
.bm-b.has-logo { background: #fff; }
.bm-b img { display: block; width: 72%; height: 72%; object-fit: contain; }
.bm-b.on { z-index: 6; box-shadow: 0 0 0 3px var(--ch-surface), 0 0 0 5px var(--ch-main); }
.bm-b.dim { opacity: .3; }
.bm-name { position: absolute; top: 50%; left: calc(100% + 6px); font-size: 13px; font-weight: 500; color: var(--ch-ink); white-space: nowrap; pointer-events: none; transform: translateY(-50%); text-shadow: 0 0 3px var(--ch-surface), 0 0 3px var(--ch-surface); }
.bm-name.left { right: calc(100% + 6px); left: auto; }
.bm-name.above { top: auto; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); }
.bm-name.below { top: calc(100% + 3px); left: 50%; transform: translateX(-50%); }

/* ---------- Bands: Home's instruments */
.hero-tiles { min-height: 184px; padding: 20px 24px 18px; }
.hero-tiles .hero-body { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, .92fr) minmax(0, 1.12fr) minmax(0, 1.12fr); align-self: stretch; width: 75%; max-width: 75%; gap: 0; text-align: left; }
.hero-band .tile { display: flex; flex-direction: column; min-width: 0; padding: 2px 16px; color: var(--hero-ink); text-decoration: none; border-left: 1px solid color-mix(in srgb, var(--hero-ink) 16%, transparent); }
.tile > b { font-size: 30px; font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.tile > span { font-size: 13.5px; line-height: 1.3; color: var(--hero-muted); }
a.tile:hover > span { color: var(--hero-ink); }
.tile .viz { margin-top: auto; padding-top: 10px; }
.tile .viz-note { margin-top: 5px; font-size: 12.5px; line-height: 1.25; color: var(--hero-muted); }
.tile:focus-visible { outline: 2px solid var(--hero-ink); outline-offset: -2px; border-radius: 4px; }
.discs { display: flex; align-items: center; }
.disc { display: grid; flex: none; place-items: center; width: 34px; height: 34px; margin-left: -8px; overflow: hidden; background: #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--ch-surface); }
.disc:first-child { margin-left: 0; }
.disc img { display: block; width: 26px; height: 26px; object-fit: contain; }
.disc.more { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dots i { display: block; width: 9px; height: 9px; background: color-mix(in srgb, var(--hero-chart) 32%, transparent); border-radius: 50%; }
.dots i.soon { background: var(--hero-chart); }
.hero-sheet.hero-tiles .art .bars { right: 74%; -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, transparent 8%, #000 70%, transparent 100%); opacity: .55; }

/* ---------- Bands: a big chart on the theme's ground */
.hero-band.hero-chart { display: block; min-height: 0; padding: 22px 26px 14px; }
.hero-chart .hero-body { display: block; min-width: 0; max-width: none; text-align: left; }
.hero-chart.hero-beam { --hero-ink: var(--on-ground); --hero-muted: var(--on-ground-muted); --hero-meter: var(--ray); }
.hc-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 28px; margin-bottom: 14px; }
.hc-nums { display: flex; flex-wrap: wrap; gap: 10px 42px; }
.hc-nums b { display: block; font-size: 34px; font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.hc-nums span { font-size: 14px; color: var(--hero-muted); }
.hc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hero-band .chips button { color: var(--hero-muted); }
.hero-band .chips button:hover { color: var(--hero-ink); background: color-mix(in srgb, var(--hero-ink) 12%, transparent); }
.hero-band .chips button[aria-pressed="true"] { color: var(--on-ray); background: var(--ray); }
.hc-pick { display: inline-flex; align-items: center; gap: 6px; max-width: 300px; height: 34px; padding: 0 6px 0 14px; font-size: 14.5px; font-weight: 600; color: var(--hero-ink); background: color-mix(in srgb, var(--hero-ink) 14%, transparent); border-radius: 17px; }
.hc-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-pick button { display: grid; flex: none; place-items: center; width: 24px; height: 24px; padding: 0; color: inherit; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.hc-pick button:hover { background: color-mix(in srgb, var(--hero-ink) 18%, transparent); }
.hc-pick svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- Performance */
.perf-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 44px; margin-top: 8px; }
.perf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.perf-head h2 { margin-bottom: 8px; }
.perf-head .chips button { height: 28px; padding: 0 11px; font-size: 13.5px; }
.perf-two .sec-note { margin-bottom: 10px; }

/* ---------- Home: where offers stand */
.pipe { margin-top: 10px; }
.pipe-bar { display: flex; gap: 2px; height: 28px; margin-top: 10px; }
.pipe-bar a { display: flex; align-items: center; min-width: 0; padding: 0 8px; overflow: hidden; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; border-radius: 4px; transition: filter .12s; }
.pipe-bar a:hover { filter: brightness(.92); }
.pipe-bar a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pipe-keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; font-size: 13.5px; color: var(--muted); list-style: none; }
.pipe-keys li { display: inline-flex; align-items: center; gap: 6px; }
.pipe-keys i { display: block; width: 10px; height: 10px; border-radius: 3px; }
.pipe-keys b { font-weight: 600; color: var(--ink); }

/* ---------- Fiscal calendar */
.fiscal-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 14px 0 0; font-size: 14.5px; }
.fiscal-facts dt { font-weight: 400; color: var(--muted); }
.fiscal-facts dd { margin: 0; }
.sheet h2.first { margin-top: 8px; margin-bottom: 12px; }
.link-button { padding: 0; font: inherit; color: var(--link); text-decoration: underline; background: none; border: 0; cursor: pointer; }

/* ---------- Budget heat map */
.heat-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.heat-key span { display: inline-flex; align-items: center; gap: 6px; }
.heat-key i { display: block; height: 12px; border-radius: 2px; }
.heat-switch { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Offer performance pin (above the offer tabs; click opens Performance) */
.perf-pin { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 22px; width: 100%; margin: 0 0 12px; padding: 8px 14px; font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; background: var(--hover); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.perf-pin .perf-pin-spark { flex: none; width: 140px; }
.perf-pin b { font-weight: 700; }
.perf-pin:hover { border-color: var(--field-line); background: color-mix(in srgb, var(--hover) 70%, var(--line)); }

@media (max-width: 1240px) {
  .hero-tiles .hero-body { width: 100%; max-width: 100%; }
  .hero-tiles { padding-top: 80px; }
  .perf-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero-tiles .hero-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .hero-band.hero-chart { padding: 18px 16px 10px; }
  .hc-nums b { font-size: 28px; }
}
