/* assets/dcr-cc.css · The Desert Camel Report chart card (round 15, owner items 2, 3, 6 and 7; SPEC.md §C2, §E3-E5).
   One anatomy for every chart: eyebrow + title + menu; KPI header (1-3 figures); legend; plot; caption (the insight in
   words); base/source line. White card, shadow-card, no border, radius-card 12 (on a dark band too). Markup comes from
   .research/reset/r4/dcr_charts.py (chart_card, bar, columns, battery, line, spark, donut2, dotgrid, dotstrip, meter,
   legend); the script-off page is the complete chart, assets/dcr-cc.js only adds the tooltip, keyboard and Lens.
   Brand OS v1.2: marks 2px (--dcr-r-mark, defined once here), dots 50% (data marks), tiles 8/12/24 by size, never a
   pill; magenta (--dv-highlight) only on .is-insight inside a lead card; value labels in ink; numerals Plex Mono
   tabular; charts never mirror in rtl. Also here: .dcr-logo (company tiles, E3/E4) and .dcr-early (the Early signal tag). */

main.dcr{ --dcr-r-mark:2px; }

/* ---------------------------------------------------------------- the grid of cards (12 columns, 24px gutter) */
.dcr-cc-grid{ display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); gap:24px; align-items:stretch; }
.dcr-cc-grid > .dcr-cc--s{ grid-column:span 4; }
.dcr-cc-grid > .dcr-cc--m{ grid-column:span 6; }
.dcr-cc-grid > .dcr-cc--l{ grid-column:span 8; }
.dcr-cc-grid > .dcr-cc--xl{ grid-column:1 / -1; }
.dcr-cc-grid + .dcr-cc-grid{ margin-block-start:24px; }
@media (max-width:1023px){
  .dcr-cc-grid{ grid-template-columns:repeat(8, minmax(0,1fr)); gap:20px; }
  .dcr-cc-grid > :is(.dcr-cc--s, .dcr-cc--m){ grid-column:span 4; }
  .dcr-cc-grid > :is(.dcr-cc--l, .dcr-cc--xl){ grid-column:1 / -1; }
}
@media (max-width:719px){
  .dcr-cc-grid{ grid-template-columns:minmax(0,1fr); gap:16px; }
  .dcr-cc-grid > .dcr-cc{ grid-column:1 / -1; }
}

/* ---------------------------------------------------------------- the card */
.dcr-cc{ position:relative; display:flex; flex-direction:column; gap:12px; margin:0; min-inline-size:0;
  padding:clamp(16px, 2vw, 24px); border:0; border-radius:var(--radius-card, 12px);
  background:var(--white, #FFFFFF); box-shadow:var(--shadow-card, 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06));
  color:var(--ink, #000); }
.dcr-cc__head{ display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; row-gap:4px; align-items:start; }
.dcr-cc__eye{ grid-column:1; margin:0; font:600 var(--fs-micro, 11px)/1.3 var(--font-mono); letter-spacing:var(--track-label, .08em);
  text-transform:uppercase; color:var(--ink-muted, #4A4A68); }
.dcr-cc__t{ grid-column:1; margin:0; font:600 var(--fs-h4, 20px)/1.25 var(--font-sans); letter-spacing:-.01em; text-transform:none;
  color:var(--ink, #000); text-wrap:balance; }
.dcr-cc__menu{ grid-column:2; grid-row:1 / span 2; display:flex; gap:4px; }
.dcr-cc__menu:empty{ display:none; }
.dcr-cc__menu .dcr-share{ position:static; }
.dcr-cc--band .dcr-cc__t{ font-size:var(--fs-body, 16px); }

/* KPI header: 1-3 figures, Plex Mono 600 40 tabular (32 on phones, 64 on the insight page) */
.dcr-cc__kpis{ display:flex; flex-wrap:wrap; gap:8px 24px; align-items:flex-end; }
.dcr-cc .dcr-cc__kpi{ display:grid; gap:2px 8px; min-inline-size:0; }   /* 8px between a figure and its delta */
.dcr-cc .dcr-cc__kpi .dcr-kv__v{ font:600 var(--fs-display-m, 40px)/1.05 var(--font-mono); letter-spacing:-.02em;
  font-variant-numeric:tabular-nums; color:var(--ink, #000); }
.dcr-cc .dcr-cc__kpi + .dcr-cc__kpi .dcr-kv__v{ font-size:var(--fs-h3, 24px); }   /* the quiet second and third figures */
.dcr-cc .dcr-cc__kpi .dcr-kv__d{ font:500 var(--fs-meta, 12px)/1.3 var(--font-mono); color:var(--ink-muted, #4A4A68); }
.dcr-cc .dcr-cc__kpi .dcr-kv__l{ font:500 var(--fs-small, 14px)/1.35 var(--font-sans); color:var(--ink-muted, #4A4A68);
  text-transform:none; letter-spacing:0; }
.dcr-cc--hero .dcr-cc__kpi:first-child .dcr-kv__v{ font-size:var(--fs-display, 64px); }
@media (max-width:719px){ .dcr-cc .dcr-cc__kpi:first-child .dcr-kv__v{ font-size:var(--fs-h2, 32px); } }

/* legend: square 12px swatches at 2px, never circles */
.dcr-cc__legend{ display:flex; flex-wrap:wrap; gap:4px 16px; font:500 var(--fs-meta, 12px)/1.3 var(--font-sans); color:var(--ink, #000); }
.dcr-cc__key{ display:inline-flex; align-items:center; gap:6px; }
.dcr-cc__key > i{ flex:none; inline-size:12px; block-size:12px; border-radius:var(--dcr-r-mark); background:var(--c, var(--dv-1)); }
.dcr-cc__key.is-hatched > i{ background-color:var(--ghost-white, #F8F8FA);
  background-image:repeating-linear-gradient(45deg, var(--silver, #D1D1D9) 0 2px, transparent 2px 6px); }
.dcr-cc__key b{ font:600 var(--fs-meta, 12px)/1 var(--font-mono); font-variant-numeric:tabular-nums; }

/* caption = the insight in words; base/source line = Mono 11 ink-muted */
.dcr-cc__cap{ margin:0; font:400 var(--fs-small, 14px)/1.5 var(--font-sans); color:var(--ink, #000); text-wrap:pretty; }
.dcr-cc__base{ margin:0; margin-block-start:auto; font:500 var(--fs-micro, 11px)/1.4 var(--font-mono); letter-spacing:.02em;
  color:var(--ink-muted, #4A4A68); }
.dcr-cc__base a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
.dcr-cc__foot{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; font:500 var(--fs-meta, 12px)/1.3 var(--font-sans); }
.dcr-cc__note{ margin:4px 0 0; font:500 var(--fs-meta, 12px)/1.35 var(--font-mono); color:var(--ink, #000); }

/* ---------------------------------------------------------------- the plot (never mirrors in rtl, C3) */
.dcr-cc__plot{ position:relative; direction:ltr; min-inline-size:0; outline:none; }
.dcr-cc__plot:focus-visible{ outline:3px solid var(--focus-ring, #3B06D4); outline-offset:4px; border-radius:var(--radius-button, 8px); }
.dcr-cc__mark{ display:block; border-radius:var(--dcr-r-mark); background:var(--c, var(--dv-1)); }
.dcr-cc__val{ font:600 var(--fs-meta, 12px)/1.2 var(--font-mono); font-variant-numeric:tabular-nums; color:var(--ink, #000); white-space:nowrap; }
.dcr-cc__xax, .dcr-cc__yax{ position:relative; font:500 var(--fs-micro, 11px)/1 var(--font-mono); color:var(--ink-muted, #4A4A68);
  font-variant-numeric:tabular-nums; }

/* bar: label column + track + value (14px bars in l/xl, 12px in m/s/band: a 24px row pitch in the band) */
.dcr-cc__plot--bar{ --bh:12px; --lab:minmax(96px, 38%); display:grid; grid-template-columns:var(--lab) minmax(0,1fr) auto; row-gap:12px; column-gap:12px; }
:is(.dcr-cc--l, .dcr-cc--xl) .dcr-cc__plot--bar{ --bh:14px; }
.dcr-cc--band .dcr-cc__plot--bar{ row-gap:10px; }
.dcr-cc__row{ display:contents; }
.dcr-cc__lab{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; column-gap:8px; min-inline-size:0;
  font:500 var(--fs-small, 14px)/1.25 var(--font-sans); unicode-bidi:plaintext; text-align:start; }
.dcr-cc__lab > .dcr-cc__name{ grid-column:2; min-inline-size:0; overflow-wrap:anywhere; }
.dcr-cc__lab > .dcr-cc__name:first-child{ grid-column:1 / -1; }
.dcr-cc__lab > .dcr-logo{ grid-column:1; grid-row:1 / span 2; }
.dcr-cc__sub{ grid-column:2; font:500 var(--fs-micro, 11px)/1.3 var(--font-mono); color:var(--ink-muted, #4A4A68); }
.dcr-cc__name:first-child + .dcr-cc__sub{ grid-column:1 / -1; }
.dcr-cc__track{ position:relative; align-self:center; block-size:var(--bh); background:linear-gradient(90deg, var(--dv-grid, #E8E8EE) 1px, transparent 1px) 0 0 / 50% 100% repeat-x; }
.dcr-cc__track > .dcr-cc__mark{ block-size:100%; inline-size:var(--w); min-inline-size:2px; transform-origin:left center; }
.dcr-cc__plot--bar > .dcr-cc__row > .dcr-cc__val{ align-self:center; display:inline-flex; align-items:center; gap:6px; }
.dcr-cc__plot--bar > .dcr-cc__xax{ grid-column:2; block-size:14px; }
.dcr-cc__xax > span, .dcr-cc__yax > span{ position:absolute; }
.dcr-cc__xax > span{ inset-inline-start:var(--x); transform:translateX(-50%); }
.dcr-cc__xax > span:first-child{ transform:none; }
.dcr-cc__xax > span:last-child{ transform:translateX(-100%); }
@media (max-width:719px){
  .dcr-cc__plot--bar{ --lab:minmax(84px, 42%); column-gap:8px; }
  .dcr-cc__plot--bar > .dcr-cc__row > .dcr-cc__val{ flex-direction:column; align-items:flex-end; gap:2px; }   /* the Early signal tag under the share */
}

/* columns (time): y axis at 0 / middle / end, columns 2px apart, the running period hatched, caps 3px */
.dcr-cc__plot--cols{ --ph:160px; display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:8px; }
.dcr-cc--band .dcr-cc__plot--cols{ --ph:112px; }
.dcr-cc__plot--cols > .dcr-cc__yax{ block-size:var(--ph); min-inline-size:2ch; }
.dcr-cc__yax > span{ inset-inline-end:0; bottom:var(--y); transform:translateY(50%); }
.dcr-cc__cols{ display:grid; grid-template-columns:repeat(var(--ncol), minmax(0,1fr)); column-gap:2px; align-items:start;
  background:linear-gradient(0deg, var(--dv-grid, #E8E8EE) 1px, transparent 1px) 0 calc(var(--ph) - 0px) / 100% calc(var(--ph) / 2) repeat-y; }
.dcr-cc__col{ display:grid; grid-template-rows:var(--ph) auto; min-inline-size:0; }
.dcr-cc__stack{ display:flex; flex-direction:column; justify-content:flex-end; block-size:var(--ph); box-shadow:inset 0 -1px 0 var(--dv-grid, #E8E8EE); }
.dcr-cc__seg{ display:block; block-size:var(--h); min-block-size:1px; background:var(--c, var(--dv-1)); }
.dcr-cc__stack > .dcr-cc__seg:first-of-type, .dcr-cc__stack > .dcr-cc__cap-mark + .dcr-cc__seg{ border-start-start-radius:var(--dcr-r-mark); border-start-end-radius:var(--dcr-r-mark); }
.dcr-cc__cap-mark{ display:block; block-size:3px; margin-block-end:1px; border-radius:var(--dcr-r-mark); background:var(--ink, #000); }
.dcr-cc__tick{ display:block; block-size:2px; border-radius:var(--dcr-r-mark); }
.dcr-cc__xl{ padding-block-start:6px; font:500 var(--fs-micro, 11px)/1.1 var(--font-mono); color:var(--ink-muted, #4A4A68);
  text-align:center; white-space:nowrap; overflow:visible; }
/* an unnamed tick keeps the label row's height (a no-break space), so every column's stack starts at the top of
   the box and all bars share the zero line (round 15 integration: P1, P2 and P5 hand-offs) */
.dcr-cc__xl:empty::before{ content:"\00a0"; }
.dcr-cc__plot--cols > .dcr-cc__note{ grid-column:1 / -1; }

/* battery: one 100% stacked bar, 2px ground gap between segments, labels under the segments >= 4% */
.dcr-cc__bat{ display:flex; gap:2px; block-size:32px; }
.dcr-cc__bat > .dcr-cc__seg{ flex:0 0 auto; inline-size:calc(var(--w) - 2px); min-inline-size:2px; block-size:100%; border-radius:var(--dcr-r-mark); }
.dcr-cc__bls{ display:flex; gap:2px; margin-block-start:6px; }
.dcr-cc__bl{ display:grid; gap:2px; flex:0 0 auto; inline-size:calc(var(--w) - 2px); min-inline-size:0; overflow:hidden; }
.dcr-cc__bl > b{ font:600 var(--fs-meta, 12px)/1.2 var(--font-mono); font-variant-numeric:tabular-nums; color:var(--ink, #000); }
.dcr-cc__bl > span{ font:500 var(--fs-micro, 11px)/1.25 var(--font-sans); color:var(--ink-muted, #4A4A68); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dcr-cc__legend--small{ margin-block-start:8px; }

/* line: SVG on one axis from zero; the running segment dashed, its dot hollow */
.dcr-cc__plot--line{ display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-rows:var(--ph) auto; column-gap:8px; }
.dcr-cc__plot--line > .dcr-cc__yax{ block-size:var(--ph); min-inline-size:2ch; }
.dcr-cc__lnwrap{ position:relative; block-size:var(--ph); }
.dcr-cc__svg{ display:block; inline-size:100%; block-size:100%; overflow:visible; }
.dcr-cc__grid{ stroke:var(--dv-grid, #E8E8EE); stroke-width:1; vector-effect:non-scaling-stroke; }
.dcr-cc__ln{ fill:none; stroke:var(--c, var(--dv-1)); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.dcr-cc__ln.is-running{ stroke-dasharray:4 4; }
.dcr-cc__pt{ fill:var(--c, var(--dv-1)); stroke:var(--c, var(--dv-1)); stroke-width:2; }
.dcr-cc__pt.is-running{ fill:var(--white, #fff); }
.dcr-cc__lastl{ position:absolute; inset-inline-start:var(--x); top:var(--y); transform:translate(-100%, -130%);
  font:600 var(--fs-meta, 12px)/1 var(--font-mono); color:var(--ink, #000); background:var(--white, #fff); padding:1px 3px; border-radius:var(--dcr-r-mark); }
.dcr-cc__xls{ grid-column:2; display:grid; grid-template-columns:repeat(var(--ncol), minmax(0,1fr)); padding-block-start:6px;
  font:500 var(--fs-micro, 11px)/1.1 var(--font-mono); color:var(--ink-muted, #4A4A68); text-align:center; }

/* donut2: exactly two slices, the share in the centre */
.dcr-cc__plot--donut{ display:grid; grid-template-columns:96px minmax(0,1fr); align-items:center; column-gap:16px; }
.dcr-cc__donut{ grid-row:1; grid-column:1; inline-size:96px; block-size:96px; }
.dcr-cc__ring, .dcr-cc__arc{ fill:none; stroke-width:6; stroke:var(--c, var(--dv-6)); }
.dcr-cc__dv{ grid-row:1; grid-column:1; justify-self:center; font:600 var(--fs-h4, 20px)/1 var(--font-mono); font-variant-numeric:tabular-nums; }

/* dotgrid: one dv-1 dot per cell, AREA proportional to the value, the value printed under it in ink */
.dcr-cc__grid-t{ display:grid; gap:4px; }
.dcr-cc__grow{ display:grid; grid-template-columns:minmax(88px, 1.4fr) repeat(var(--gcols), minmax(36px, 1fr)); align-items:center; column-gap:4px; }
.dcr-cc__gh{ font:600 var(--fs-micro, 11px)/1.2 var(--font-mono); letter-spacing:.04em; color:var(--ink-muted, #4A4A68); text-align:center; }
.dcr-cc__gr{ font:500 var(--fs-meta, 12px)/1.25 var(--font-sans); unicode-bidi:plaintext; text-align:start; min-inline-size:0; }
.dcr-cc__gc{ display:grid; justify-items:center; align-content:end; gap:3px; min-block-size:44px; }
.dcr-cc__gc > b{ font:600 var(--fs-micro, 11px)/1 var(--font-mono); font-variant-numeric:tabular-nums; color:var(--ink, #000); }
.dcr-cc__dot{ display:block; inline-size:var(--d); block-size:var(--d); border-radius:50%; background:var(--dv-1); }
.dcr-cc__dot.is-early{ background-color:var(--ghost-white, #F8F8FA); box-shadow:inset 0 0 0 1.5px var(--dv-1); }
.dcr-cc__gtick{ display:block; inline-size:12px; block-size:2px; border-radius:var(--dcr-r-mark); background:var(--dv-grid, #E8E8EE); }

/* dotstrip: dots in their week slot */
.dcr-cc__plot--dotstrip{ display:grid; grid-template-columns:repeat(var(--ncol), minmax(0,1fr)); column-gap:2px; align-items:end;
  box-shadow:inset 0 -1px 0 var(--dv-grid, #E8E8EE); }
.dcr-cc__slot{ display:flex; flex-direction:column-reverse; align-items:center; gap:3px; min-block-size:56px; padding-block-end:4px; }
.dcr-cc__slot > .dcr-cc__xl{ order:-1; }
.dcr-cc__sdot{ display:block; inline-size:10px; block-size:10px; border-radius:50%; background:var(--c, var(--dv-1)); }

/* meter */
.dcr-cc__meter{ display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"l v" "t t"; gap:6px 12px; align-items:baseline; }
.dcr-cc__ml{ grid-area:l; font:500 var(--fs-small, 14px)/1.3 var(--font-sans); }
.dcr-cc__meter > .dcr-cc__val{ grid-area:v; }
.dcr-cc__mtrack{ grid-area:t; display:block; block-size:8px; border-radius:var(--dcr-r-mark); background:var(--dv-grid, #E8E8EE); }
.dcr-cc__mtrack > .dcr-cc__mark{ block-size:100%; inline-size:var(--w); }

/* ---------------------------------------------------------------- hatch, early signal, insight (C6) */
.dcr-cc :is(.dcr-cc__mark, .dcr-cc__seg, .dcr-cc__tick).dcr-hatch, .dcr-cc__col.is-hatched .dcr-cc__seg{
  background-color:var(--ghost-white, #F8F8FA);
  background-image:repeating-linear-gradient(45deg, var(--c, var(--silver, #D1D1D9)) 0 2px, transparent 2px 6px);
  box-shadow:inset 0 0 0 1px var(--c, var(--silver, #D1D1D9)); }
.dcr-cc__tick.dcr-hatch{ --c:var(--silver, #D1D1D9); }
.dcr-early{ display:inline-flex; align-items:center; min-block-size:18px; padding:0 6px; border-radius:var(--radius-button, 8px);
  background:var(--ghost-white, #F8F8FA); font:600 var(--fs-micro, 11px)/1 var(--font-mono); letter-spacing:var(--track-label, .08em);
  text-transform:uppercase; color:var(--ink-muted, #4A4A68); white-space:nowrap; }
/* the one insight: magenta only in a lead card (chart_card(lead=True)); every other card draws it in ink */
.dcr-cc--lead .dcr-cc__mark:not(.dcr-cc__seg).is-insight{ background:var(--dv-highlight); }
/* a segment of a part-of-whole chart has a legend key: its fill keeps the series colour (the key stays true) and the
   insight is a magenta cap on the segment (round 15 fix, critic item 6) */
.dcr-cc--lead .dcr-cc__seg.is-insight{ box-shadow:inset 0 4px 0 var(--dv-highlight); }
.dcr-cc--lead .dcr-cc__bat > .dcr-cc__seg.is-insight{ box-shadow:inset 0 -6px 0 var(--dv-highlight); }
.dcr-cc--lead .dcr-cc__cap-mark.is-insight{ background:var(--dv-highlight); }
.dcr-cc--lead .dcr-spark__end.is-insight, .dcr-cc--lead .dcr-cc__arc.is-insight{ stroke:var(--dv-highlight); fill:var(--dv-highlight); }
:is(.dcr-cc__mark, .dcr-cc__seg).is-insight-ink{ box-shadow:0 0 0 2px var(--ink, #000); }
.dcr-cc__row:has(.is-insight-ink) .dcr-cc__name{ font-weight:700; }
.dcr-cc__cap-mark.is-insight-ink{ background:var(--ink, #000); }

/* lit / dim through DCR.lens.light (the Lens highlights, never hides) */
.dcr-cc .is-dim .dcr-cc__mark, .dcr-cc .is-dim .dcr-cc__seg:not(.dcr-cc__bat > *){ opacity:.35; }
/* segments keep full colour under the Lens (>= 3:1 and true to the legend); the lit one carries an ink ring */
.dcr-cc .dcr-cc__seg.is-lit{ box-shadow:0 0 0 2px var(--ink, #000); position:relative; z-index:1; }
.dcr-cc--lead .dcr-cc__bat > .dcr-cc__seg.is-lit.is-insight{ box-shadow:0 0 0 2px var(--ink, #000), inset 0 -6px 0 var(--dv-highlight); }
.dcr-cc .is-lit .dcr-cc__name{ font-weight:700; }

/* the empty card: hatched plot area and one sentence, no axis */
.dcr-cc__plot--empty{ display:grid; place-items:center; min-block-size:112px; padding:16px; border-radius:var(--radius-button, 8px); }
.dcr-cc__plot--empty > p{ margin:0; font:600 var(--fs-meta, 12px)/1.3 var(--font-mono); letter-spacing:var(--track-label, .08em);
  text-transform:uppercase; color:var(--ink-muted, #4A4A68); background:var(--white, #fff); padding:4px 8px; border-radius:var(--radius-button, 8px); }

/* the tooltip (one element, assets/dcr-cc.js) */
.dcr-cc-tip{ position:fixed; z-index:300; max-inline-size:240px; padding:6px 10px; border-radius:var(--radius-button, 8px);
  background:var(--white, #fff); box-shadow:var(--shadow-card, 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06));
  font:500 var(--fs-meta, 12px)/1.35 var(--font-mono); color:var(--ink, #000); pointer-events:none; opacity:0;
  transition:opacity var(--dur-quick, 200ms) var(--ease-standard, ease); }
.dcr-cc-tip.is-on{ opacity:1; }
[data-cc-i].is-active :is(.dcr-cc__mark, .dcr-cc__seg), .dcr-cc__seg.is-active{ outline:2px solid var(--focus-ring, #3B06D4); outline-offset:1px; }

/* grow-in once (320ms), never under reduced motion */
@media (prefers-reduced-motion:no-preference){
  .js .dcr-cc:not(.is-in) .dcr-cc__track > .dcr-cc__mark{ transform:scaleX(0); }
  .js .dcr-cc .dcr-cc__track > .dcr-cc__mark{ transition:transform var(--dur-base, 320ms) var(--ease-standard, ease); }
}

/* ---------------------------------------------------------------- the band card (B1): white on the duo */
.dcr-cover__card > .dcr-cc{ block-size:100%; }
.dcr-cc--band{ gap:10px; padding:20px; }
.dcr-cc--band .dcr-cc__plot--bar{ --bh:12px; }
@media (max-width:719px){ .dcr-cc--band .dcr-cc__plot--cols{ --ph:96px; } }
/* round 15 fix (critic, owner item 5; SPEC B1: the band 260-340px at 1440, the card's height + 2x24). On desktop the
   key figure's label and delta sit beside the figure (one KPI line, not three), and a band bar holds one line per row at
   a 24px pitch: a long name ends in an ellipsis (the full name is in the row's tooltip and the plot's aria-label). An
   insight page's figure drops from 64 to 40 in the band so the card keeps to the band's height. */
@media (min-width:1024px){
  .dcr-cover__card .dcr-cc--band .dcr-cc__kpi:first-child{ grid-template-columns:auto minmax(0, 1fr); column-gap:16px; align-items:end; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__kpi:first-child .dcr-kv__v{ grid-row:1 / span 2; grid-column:1; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__kpi:first-child .dcr-kv__d{ grid-row:1; grid-column:2; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__kpi:first-child .dcr-kv__l{ grid-row:2; grid-column:2; padding-block-end:4px; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__kpi:first-child .dcr-kv__d:last-child{ grid-row:2; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__plot--bar{ row-gap:8px; --bh:12px; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__plot--bar .dcr-cc__lab{ block-size:16px; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__plot--bar .dcr-cc__name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; overflow-wrap:normal; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__plot--bar .dcr-cc__sub{ display:none; }
  .dcr-cover__card .dcr-cc--band.dcr-cc--hero .dcr-cc__kpi:first-child .dcr-kv__v{ font-size:var(--fs-display-m, 40px); }
  .dcr-cover__card .dcr-cc--band .dcr-cc__plot--dotgrid{ row-gap:4px; }
  .dcr-cover__card .dcr-cc--band{ padding:16px 20px; gap:8px; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__kpi .dcr-kv__l{ line-height:1.25; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__kpi .dcr-kv__d{ line-height:1.2; }
  .dcr-cover__card .dcr-cc--band .dcr-cc__t{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}

/* ---------------------------------------------------------------- rtl (C3): the card follows the page, the plot does not */
:lang(ar) .dcr-cc :is(.dcr-cc__eye, .dcr-early, .dcr-cc__plot--empty > p){ letter-spacing:0; text-transform:none; font-family:var(--font-arabic, "Almarai"), var(--font-sans); }
:lang(ar) .dcr-cc .dcr-cc__lab{ text-align:start; }

/* ---------------------------------------------------------------- company logo tiles (E3/E4; dcr_logos.logo_tile)
   A square tile, never a circle: < 48px -> 8, 48-119px -> 12, >= 120px -> 24 (the radius law, D1). The mark fills
   75% of the tile on white (third-party colours need a light ground, on dark surfaces too); no border, no shadow inside
   a card. With no mark on file the same tile carries the monogram: ghost-white, Plex Mono 600 at 40%, ink. */
.dcr-logo{ --s:24px; display:inline-grid; place-items:center; flex:none; inline-size:var(--s); block-size:var(--s);
  border-radius:var(--radius-button, 8px); background:var(--white, #fff); overflow:hidden; vertical-align:middle; }
.dcr-logo > img{ display:block; inline-size:75%; block-size:75%; object-fit:contain; }
.dcr-logo--on-dark{ background:var(--black, #000); }
.dcr-logo--mono{ background:var(--ghost-white, #F8F8FA); font:600 calc(var(--s) * .4)/1 var(--font-mono); font-variant-numeric:tabular-nums;
  letter-spacing:0; color:var(--ink, #000); }
.dcr-logo--48, .dcr-logo--56, .dcr-logo--64, .dcr-logo--72, .dcr-logo--80, .dcr-logo--96{ border-radius:var(--radius-card, 12px); }
.dcr-logo--120, .dcr-logo--128, .dcr-logo--160, .dcr-logo--184{ border-radius:var(--radius-base, 24px); }
.dcr-logo--ground{ box-shadow:var(--shadow-card); }   /* a tile sitting on the ghost ground, not inside a card */
.dcr-logo-word{ display:block; block-size:28px; inline-size:auto; max-inline-size:160px; object-fit:contain; }
.dcr-logo-word--on-dark{ padding:4px 8px; border-radius:var(--radius-button, 8px); background:var(--black, #000); }
.dcr-more-chip{ display:inline-flex; align-items:center; min-block-size:28px; padding:0 10px; border-radius:var(--radius-button, 8px);
  background:var(--ghost-white, #F8F8FA); font:600 var(--fs-meta, 12px)/1 var(--font-mono); color:var(--ink, #000); text-decoration:none; }
a.dcr-more-chip:focus-visible{ outline:3px solid var(--focus-ring, #3B06D4); outline-offset:2px; }
.dcr-logo-row{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0; padding:0; list-style:none; }
.dcr-logo-row > li{ display:inline-flex; align-items:center; gap:6px; font:500 var(--fs-meta, 12px)/1.2 var(--font-sans); }
