.cr-apparel-emissions { font-family: Inter, var(--font-sans); color: var(--ink); --ae-red: var(--cr-problem-ink, #d70015); --ae-background: #fff; }
.ae-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.cr-apparel-emissions h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.cr-apparel-emissions .ae-heading p { margin: 8px 0 0; font-size: 14px; color: var(--gray); }
.ae-change { flex: none; display: grid; justify-items: end; line-height: 1.4; }
.ae-change strong { font-size: 32px; color: var(--ae-red); font-weight: 600; letter-spacing: -.04em; }
.ae-change span { font-size: 12px; }
.ae-change small { font-size: 11px; color: var(--gray); margin-top: 4px; }
.ae-chart { position: relative; margin: 44px 24px 56px 42px; height: 226px; }
.cr-apparel-emissions .ae-svg { min-width: 0; width: 100%; height: 100%; overflow: visible; }
.ae-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.ae-growth { fill: var(--ae-red); fill-opacity: .065; }
.ae-line { stroke: var(--ae-red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ae-baseline { stroke: var(--gray); stroke-width: 1; stroke-dasharray: 3 4; opacity: .65; }
.ae-tick { position: absolute; left: -42px; transform: translateY(-50%); color: var(--gray); font-size: 11px; font-variant-numeric: tabular-nums; }
.ae-baseline-label { position: absolute; top: calc(var(--baseline) + 8px); right: 0; font-size: 11px; color: var(--gray); }
.ae-two-year { position: absolute; top: -40px; left: 60%; width: 40%; text-align: center; color: var(--gray); line-height: 1.4; }
.ae-two-year > span { font-size: 12px; display: block; color: var(--ink); }
.ae-two-year small { display: block; font-size: 10px; margin: 2px 0 7px; }
.ae-two-year i { display: block; height: 8px; border: 1px solid var(--cr-connector, #a1a1a6); border-bottom: 0; opacity: .7; }
.ae-point { display: contents; }
.ae-point-control { appearance: none; position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; place-items: center; margin: 0; padding: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); font: inherit; }
.ae-dot { width: 9px; height: 9px; border: 2px solid var(--ae-red); border-radius: 50%; background: var(--ae-background); transition: box-shadow .15s; }
.ae-point-control:is(:hover, :focus-visible) { outline: none; }
.ae-point-control:is(:hover, :focus-visible) .ae-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ae-red) 22%, transparent); }
.ae-point-control:focus-visible { outline: 1px solid var(--ink); outline-offset: 1px; }
.ae-value { position: absolute; left: 50%; bottom: 29px; transform: translateX(-50%); font-size: 12px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.ae-tooltip { display: none; position: absolute; z-index: 5; top: calc(var(--y) + 22px); left: clamp(0px, calc(var(--x) - 118px), calc(100% - 236px)); width: 236px; box-sizing: border-box; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--research-card); box-shadow: 0 8px 28px #0003; color: var(--ink); font-size: 12px; line-height: 1.6; pointer-events: none; }
.ae-tooltip > * { display: block; }
.ae-tooltip strong { margin-bottom: 5px; font-weight: 600; }
.ae-tooltip small { color: var(--gray); margin-top: 5px; font-size: 10px; }
.ae-point:has(.ae-point-control:is(:hover, :focus-visible)) .ae-tooltip { display: block; }
.ae-year { position: absolute; top: calc(100% + 16px); left: var(--x); transform: translateX(-50%); font-size: 12px; line-height: 1.5; font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; }
.ae-yoy { display: block; margin-top: 3px; font-weight: 400; color: var(--gray); font-size: 11px; }
.ae-increase { color: var(--ae-red); }
.ae-decrease { color: var(--cr-muted, #6e6e70); }
.cr-apparel-emissions .ae-axis-note { margin: 0; color: var(--gray); font-size: 11px; }
.cr-apparel-emissions > figcaption { margin-top: 28px; font-size: 12px; }
@container (max-width: 650px) {
  .cr-apparel-emissions h3 { font-size: 18px; }
  .ae-heading { gap: 16px; }
  .ae-change strong { font-size: 28px; }
  .ae-chart { margin-top: 76px; }
  .ae-two-year { left: 60%; width: 40%; top: -55px; }
  .ae-two-year small { font-size: 9px; }
}
@container (max-width: 450px) {
  .ae-heading { gap: 12px; }
  .ae-heading h3 { max-width: 210px; }
  .cr-apparel-emissions .ae-heading p { font-size: 12px; }
  .ae-change strong { font-size: 27px; }
  .ae-change span, .ae-change small { font-size: 10px; }
  .ae-chart { margin-left: 30px; margin-right: 16px; height: 235px; }
  .ae-tick { left: -30px; font-size: 10px; }
  .ae-value { font-size: 10px; }
  .ae-point[data-year="2020"] .ae-value, .ae-point[data-year="2021"] .ae-value, .ae-point[data-year="2023"] .ae-value { display: none; }
  .ae-year { font-size: 10px; }
  .ae-yoy { font-size: 10px; }
  .ae-baseline-label { font-size: 10px; }
  .ae-two-year > span { font-size: 10px; }
  .ae-two-year small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .ae-dot { transition: none; } }

html[data-theme="dark"] .cr-apparel-emissions { --ae-background: #000; }
/* Keep the first value clear of the y-axis at every width. */
.ae-point[data-year="2019"] .ae-value { transform: none; }

/* Phone labels use their own space instead of shrinking or omitting values. */
@media (max-width: 650px) {
  .ae-heading { display: block; }
  .ae-heading h3 { max-width: none; }
  .cr-apparel-emissions .ae-heading p { font-size: 14px; }
  .ae-change { grid-template-columns: auto 1fr; justify-items: start; align-items: center; column-gap: 12px; margin-top: 18px; }
  .ae-change strong { grid-row: 1 / 3; font-size: 30px; }
  .ae-change span, .ae-change small { font-size: 12px; }
  .ae-change small { margin-top: 0; }
  .ae-chart { height: 250px; margin: 100px 20px 70px 36px; }
  .ae-tick { left: -36px; font-size: 12px; }
  .ae-two-year { left: 0; top: -76px; width: 100%; text-align: right; }
  .ae-two-year > span, .ae-two-year small { font-size: 12px; }
  .ae-two-year i { margin-left: 60%; }
  .ae-point[data-year] .ae-value { display: block; font-size: 12px; }
  .ae-point[data-year="2020"] .ae-value { bottom: 42px; }
  .ae-year, .ae-yoy, .ae-baseline-label { font-size: 12px; }
  .ae-year { top: calc(100% + 15px); }
  .ae-yoy { margin-top: 5px; }
  .ae-tooltip { width: min(236px, calc(100% + 36px)); left: clamp(-36px, calc(var(--x) - 118px), calc(100% - 236px)); }
  .ae-tooltip small, .cr-apparel-emissions .ae-axis-note { font-size: 12px; }
}
