/* Shared chart presentation; logical spacing follows French and Arabic alike. */
.drive-chart {
  background: #fff;
  border: 1px solid #d5dfec;
  border-radius: .9rem;
  box-sizing: border-box;
  color: #17263d;
  font-family: var(--drive-font-family, "IBM Plex Sans", Arial, sans-serif);
  margin: 1.75rem 0;
  max-inline-size: 100%;
  min-inline-size: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  text-align: start;
}

body.drive-ma-site .site .drive-chart .drive-chart__title {
  color: #17263d;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: start;
}

.drive-chart .drive-chart__unit {
  color: #52627b;
  font-size: .85rem;
  line-height: 1.6;
  margin: .3rem 0 1.4rem;
}

body.drive-ma-site .site .drive-chart .drive-chart__rows {
  display: grid;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.drive-ma-site .site .drive-chart .drive-chart__row { margin: 0; padding: 0; }
.drive-chart .drive-chart__row::before { content: none; }

.drive-chart__labels {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  justify-content: space-between;
  margin-block-end: .45rem;
}

.drive-chart__label {
  color: #283b56;
  flex: 1 1 8rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.55;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.drive-chart__value {
  color: #1d438d;
  flex: 0 0 auto;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.55;
  white-space: nowrap;
}

.drive-chart__track {
  background: #edf1f7;
  border-radius: 999px;
  display: flex;
  block-size: .7rem;
  overflow: hidden;
}

.drive-chart__bar {
  background: #2b5dcc;
  border-radius: inherit;
  block-size: 100%;
}

.drive-chart__scale {
  color: #52627b;
  display: flex;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  justify-content: space-between;
  margin-block-start: .8rem;
}

.drive-chart__viewport { min-inline-size: 0; overflow-x: auto; }
.drive-chart--canvas .gs-chart-wrapper {
  background: transparent;
  border: 0;
  display: block !important;
  height: clamp(20rem, 48vw, 30rem) !important;
  margin: 1rem 0 0 !important;
  max-width: 100% !important;
  padding: 0;
  width: 100% !important;
}
.drive-chart--canvas canvas { display: block; max-width: 100%; }
.drive-chart__data { border-block-start: 1px solid #d5dfec; margin-block-start: 1rem; padding-block-start: .75rem; }
.drive-chart__data summary { color: #1d438d; cursor: pointer; font-size: .9rem; font-weight: 650; padding: .5rem 0; }
.drive-chart__data summary:focus-visible { outline: 3px solid #2b5dcc; outline-offset: 3px; }
.drive-chart__data ul { padding-inline-start: 1.4rem; }
.drive-chart__series { font-weight: 650; }

@media (max-width: 480px) {
  .drive-chart { margin-block: 1.25rem; padding: 1rem; }
  body.drive-ma-site .site .drive-chart .drive-chart__rows { gap: 1rem; }
  .drive-chart__label { flex-basis: 7rem; font-size: .9rem; }
  .drive-chart__value { font-size: 1rem; }
}

@media print {
  .drive-chart { break-inside: avoid; }
  .drive-chart__track { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
