/* Industry-specific article links and sector-pulse layout. Shared article styles
   live in editorial-perspective.css. */
.industry-landing-page {
  --industry-editorial-column-gap: clamp(var(--space-7), 5vw, var(--space-8));
}
.industry-landing-page .about-landing-hero { margin-bottom: 0; }
.industry-perspective small { font-size: var(--type-small); }
.industry-perspective a { color: var(--color-brand); text-underline-offset: .2em; }
.industry-perspective__source { display: block; margin-top: var(--space-4); font-size: var(--type-small); line-height: 1.5; }
/* Align the sector pulse with the editorial columns on these industry pages.
   Keep the chart inside the smaller track instead of reserving half the rail. */
.industry-perspective ~ .retail-data-chart .retail-data-chart__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: var(--industry-editorial-column-gap);
  align-items: start;
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__canvas-wrap {
  width: 100%;
  max-width: 400px;
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__content {
  display: block;
  min-width: 0;
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__heading {
  display: block;
  max-width: none;
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__content h2,
.industry-perspective ~ .retail-data-chart .retail-data-chart__introduction {
  max-width: none;
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__visual {
  grid-column: auto;
  grid-row: auto;
  align-self: start;
  padding-inline-end: var(--space-6);
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__introduction {
  margin-top: var(--space-5);
}
/* Keep the third and fourth chart segments, percentage figures and hover fills
   on the same deeper olive and terracotta colours. */
.industry-perspective ~ .retail-data-chart {
  --sector-pulse-color-3: #4f743e;
  --sector-pulse-color-4: #a85f43;
}
.industry-government-page .retail-data-chart__item {
  background-color: var(--color-surface-cream);
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__item-copy strong {
  color: var(--retail-chart-color);
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__item-copy small {
  color: var(--color-text);
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__item:is(:hover, :focus-visible, .is-chart-hovered, .is-active) {
  background-color: var(--retail-chart-color);
  border-color: var(--retail-chart-color);
  --retail-chart-ink: var(--color-text-inverse);
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__item:is(:hover, :focus-visible, .is-chart-hovered, .is-active) .retail-data-chart__item-copy strong {
  color: var(--color-text-inverse);
  font-weight: 600;
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__item:is(:hover, :focus-visible, .is-chart-hovered, .is-active) .retail-data-chart__item-copy small {
  color: var(--color-text-inverse);
  font-weight: 500;
}
/* Equal square theme buttons retain their chart controls and compact type.
   Narrow phones allow natural height to keep the full copy readable. */
.industry-perspective ~ .retail-data-chart .retail-data-chart__legend {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__item {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-card);
  aspect-ratio: 1;
  height: auto;
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__metric {
  width: calc(var(--space-8) + var(--space-6));
  height: calc(var(--space-8) + var(--space-6));
  padding: var(--space-2);
  font-size: calc(var(--type-heading-md) + 0.125rem);
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__item-copy strong {
  font-size: calc(var(--type-body-lg) + 0.25rem);
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__item-copy small {
  font-size: var(--type-body);
  line-height: 1.65;
}
.industry-perspective ~ .retail-data-chart .retail-data-chart__item-copy {
  padding: 0;
  gap: var(--space-3);
}
@media (max-width: 560px) {
  .industry-perspective ~ .retail-data-chart .retail-data-chart__legend {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }
  .industry-perspective ~ .retail-data-chart .retail-data-chart__item { aspect-ratio: auto; }
}
@media (max-width: 1024px) {
  .industry-perspective ~ .retail-data-chart .retail-data-chart__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }
  .industry-perspective ~ .retail-data-chart .retail-data-chart__content { display: contents; }
  .industry-perspective ~ .retail-data-chart .retail-data-chart__heading { order: 1; grid-column: auto; }
  .industry-perspective ~ .retail-data-chart .retail-data-chart__visual { order: 2; padding-inline-end: 0; }
  .industry-perspective ~ .retail-data-chart .retail-data-chart__legend {
    order: 3;
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    margin-top: 0;
  }
}
