/* ==========================================================================
   Charge optimisée : « 24 heures, 4 batteries » et « Le principe »
   (static/js/journee.js, templates/_journee.html), chiffres clés de la page.
   Chargée seulement par les pages qui affichent l'animation.
   ========================================================================== */

.jd,
.pr {
  --jd-charge: #3ddc8e;
  --jd-discharge: #5aa9ff;
  --jd-sun: #ffb547;
  --jd-house: #a996ff;
  --jd-buy: #ff7a7a;
  --jd-vs: #b9c4d9;
  position: relative;
  padding: clamp(14px, 2vw, 22px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Sans JavaScript : seul le bilan (tableau) reste affiché. */
html:not(.js) .jd,
html:not(.js) .pr {
  display: none;
}

/* --- Barre de lecture ----------------------------------------------------- */

.jd-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.jd-play {
  min-width: 118px;
}

.jd-clock {
  min-width: 4.6ch;
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.jd-speed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.jd-speed .icon {
  width: 16px;
  height: 16px;
}

.jd-speed:hover:not(:disabled),
.jd-vs button:hover:not(:disabled):not([aria-pressed="true"]) {
  color: var(--text);
  background: var(--surface-2);
}

.jd-vs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--line);
}

.jd-vs-label {
  padding: 0 6px 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.jd-vs button {
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.jd-vs button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.jd button:disabled {
  cursor: default;
  opacity: 0.55;
}

/* --- Graphique de la journée --------------------------------------------- */

.jd-chart {
  position: relative;
}

.jd-svg {
  display: block;
  width: 100%;
  height: 228px;
  overflow: visible;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.jd-svg text {
  font-family: var(--font);
}

.jd-night {
  fill: rgba(96, 124, 210, 0.08);
}

.jd-plot {
  fill: rgba(255, 255, 255, 0.025);
  stroke: var(--line);
}

.jd-grid {
  stroke: var(--line);
  stroke-dasharray: 2 4;
}

.jd-axis {
  fill: var(--muted);
  font-size: 11px;
}

.jd-sun-line {
  fill: none;
  stroke: var(--jd-sun);
  stroke-width: 1.6;
}

.jd-house {
  fill: none;
  stroke: var(--jd-house);
  stroke-width: 1.3;
  stroke-linejoin: round;
  opacity: 0.9;
}

.jd-zero {
  stroke: var(--line-2);
}

.jd-meter {
  fill: none;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.jd-meter--vs {
  stroke: #b9c4d9;
  stroke-width: 1.5;
}

.jd-meter--ted {
  stroke: var(--jd-charge);
  stroke-width: 1.7;
}

.jd-plot-label {
  fill: var(--muted);
  font-size: 10px;
}

.jd-plot-label--strong {
  fill: var(--text-2);
  font-weight: 700;
}

.jd-veil {
  fill: var(--bg);
  opacity: 0.5;
  pointer-events: none;
}

.jd-cursor {
  stroke: var(--text);
  stroke-width: 1.5;
  pointer-events: none;
}

.jd-knob {
  fill: var(--text);
  pointer-events: none;
}

.jd-mark circle {
  fill: var(--surface-3);
  stroke: var(--muted);
  stroke-width: 1.2;
  cursor: pointer;
  transition: fill 0.25s, stroke 0.25s;
}

.jd-mark.is-past circle {
  fill: var(--muted);
}

.jd-mark.is-on circle {
  fill: var(--solar);
  stroke: var(--solar);
}

.jd-seek {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  accent-color: var(--solar);
}

.jd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.jd-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jd-key {
  display: inline-block;
  width: 16px;
  height: 3px;
  border-radius: 2px;
}

.jd-key--sun {
  height: 10px;
  border-top: 2px solid var(--jd-sun);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.6), rgba(255, 181, 71, 0.1));
}

.jd-key--house {
  background: var(--jd-house);
}

.jd-key--vs {
  background: var(--jd-vs);
}

.jd-key--ted {
  background: var(--jd-charge);
}

/* --- Légende du moment ---------------------------------------------------- */

.jd-caption {
  min-height: 3.6em;
  margin: 12px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--amber-soft);
  border: 1px solid rgba(255, 181, 71, 0.24);
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.jd-when {
  margin-right: 10px;
  color: var(--solar);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.jd-tag {
  color: var(--text);
}

.jd-tag:not(:empty)::after {
  content: " \00b7";
  color: var(--muted);
  font-weight: 400;
}

.jd-caption.is-new {
  animation: jd-flash 0.7s ease;
}

@keyframes jd-flash {
  from {
    background: rgba(255, 181, 71, 0.3);
  }
  to {
    background: var(--amber-soft);
  }
}

.jd.is-error .jd-caption {
  background: var(--blue-soft);
  border-color: rgba(90, 169, 255, 0.3);
}

/* --- Panneaux : batteries, code-barres, compteurs ------------------------- */

.jd-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.jd:not(.is-ready) .jd-panels {
  opacity: 0.45;
}

.jd-panel {
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.jd-panel--ted {
  border-color: rgba(61, 220, 142, 0.38);
  box-shadow: 0 0 0 1px rgba(61, 220, 142, 0.06), 0 20px 44px -30px rgba(61, 220, 142, 0.55);
}

.jd-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 10px;
  margin-bottom: 12px;
}

.jd-panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.jd-panel--ted .jd-panel-head h3 {
  color: var(--green);
}

.jd-panel-head p {
  grid-column: 1 / -1;
  min-height: 2.9em;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.jd-running {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.jd-batts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 196px;
}

.jd-batt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 4px 7px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-align: center;
  transition: background-color 0.3s, border-color 0.3s;
}

.jd-pill {
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s, color 0.3s;
}

.jd-bat {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.jd-cap {
  width: 16px;
  height: 5px;
  border-radius: 3px 3px 0 0;
  background: var(--line-2);
}

.jd-cell {
  position: relative;
  width: min(54px, 82%);
  height: calc(46px + 78px * var(--h, 1));
  border: 2px solid var(--line-2);
  border-radius: 10px;
  background: var(--field);
  overflow: hidden;
  transition: border-color 0.3s;
}

.jd-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(180deg, #6ff2b0, #27b26d);
}

.is-mid .jd-fill {
  background: linear-gradient(180deg, #ffd27f, #e09a2c);
}

.is-low .jd-fill {
  background: linear-gradient(180deg, #ff9d9d, #d95454);
}

.jd-flow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 255, 255, 0.34) 9px 11px);
  background-size: 100% 22px;
  transition: opacity 0.3s;
}

.flow-up .jd-flow {
  opacity: 1;
  animation: jd-up 1.2s linear infinite;
}

.flow-down .jd-flow {
  opacity: 1;
  animation: jd-down 1.2s linear infinite;
}

@keyframes jd-up {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -22px;
  }
}

@keyframes jd-down {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 22px;
  }
}

.jd-pct {
  position: absolute;
  inset: auto 0 6px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.jd-w {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.flow-up .jd-w {
  color: var(--green);
}

.flow-down .jd-w {
  color: var(--blue);
}

.jd-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.jd-name b {
  color: var(--text-2);
  font-size: 0.82rem;
}

.jd-sun {
  display: inline-flex;
  color: var(--muted);
  opacity: 0.45;
  transition: color 0.3s, opacity 0.3s;
}

.jd-sun .icon {
  width: 14px;
  height: 14px;
}

.jd-sun.is-on {
  color: var(--solar);
  opacity: 1;
}

/* États des onduleurs. */
.jd-batt.is-idle .jd-cell {
  border-color: var(--line);
}

.jd-batt.is-charge {
  background: rgba(61, 220, 142, 0.07);
  border-color: rgba(61, 220, 142, 0.32);
}

.jd-batt.is-discharge {
  background: rgba(90, 169, 255, 0.08);
  border-color: rgba(90, 169, 255, 0.34);
}

.jd-batt.is-ready-c {
  border-style: dashed;
  border-color: rgba(61, 220, 142, 0.55);
}

.jd-batt.is-ready-d {
  border-style: dashed;
  border-color: rgba(90, 169, 255, 0.6);
}

.is-charge .jd-pill {
  background: rgba(61, 220, 142, 0.18);
  color: var(--green);
}

.is-discharge .jd-pill {
  background: rgba(90, 169, 255, 0.2);
  color: var(--blue);
}

.is-ready-c .jd-pill {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(61, 220, 142, 0.55);
}

.is-ready-d .jd-pill {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(90, 169, 255, 0.6);
}

.is-charge .jd-cell,
.is-ready-c .jd-cell {
  border-color: rgba(61, 220, 142, 0.6);
}

.is-discharge .jd-cell,
.is-ready-d .jd-cell {
  border-color: rgba(90, 169, 255, 0.65);
}

/* Code-barres des démarrages, arrêts et inversions. */
.jd-code {
  margin-top: 12px;
  min-height: 48px;
}

.jd-code-svg {
  display: block;
  width: 100%;
}

.jd-code-k {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 700;
}

.jd-code-bg {
  fill: rgba(255, 255, 255, 0.035);
}

.jd-tick--0 {
  fill: var(--green);
  background: var(--green);
}

.jd-tick--1 {
  fill: #6f7d99;
  background: #6f7d99;
}

.jd-tick--2 {
  fill: var(--solar);
  background: var(--solar);
}

.jd-code-veil {
  fill: var(--surface);
  opacity: 0.84;
}

.jd-score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.jd-score > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--field);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background-color 0.3s;
}

.jd-score dd {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}

.jd-score dt {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.jd-score > .is-better {
  background: rgba(61, 220, 142, 0.08);
  border-color: rgba(61, 220, 142, 0.45);
}

.jd-score > .is-better dd {
  color: var(--green);
}

.jd-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.jd-keys > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jd-tickkey {
  display: inline-block;
  width: 3px;
  height: 12px;
  border-radius: 1px;
}

.jd-pillkey {
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-3);
}

.jd-pillkey.is-charge {
  background: rgba(61, 220, 142, 0.55);
}

.jd-pillkey.is-discharge {
  background: rgba(90, 169, 255, 0.6);
}

.jd-pillkey.is-ready {
  background: transparent;
  border: 1px dashed var(--green);
}

.jd-keys > .jd-keys-sep {
  width: 1px;
  height: 14px;
  background: var(--line-2);
}

/* --- Bilan de la journée (tableau) ---------------------------------------- */

.jd-table-wrap {
  position: relative;
  margin-top: 22px;
  overflow-x: auto;
}

.jd-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.jd-table caption {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.jd-table th,
.jd-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.jd-table thead th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: bottom;
}

.jd-table th[scope="row"] {
  color: var(--text-2);
  font-weight: 600;
  text-align: left;
}

.jd-table .is-ted {
  background: rgba(61, 220, 142, 0.05);
}

.jd-table thead .is-ted {
  color: var(--green);
}

.jd-table .is-best {
  color: var(--green);
  font-weight: 800;
}

/* --- Le principe ---------------------------------------------------------- */

.pr-wrap {
  width: 100%;
}

.pr-svg {
  display: block;
  width: 100%;
  height: 320px;
  overflow: visible;
}

.pr-svg text {
  font-family: var(--font);
}

.pr-svg .pr-track {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.5;
}

.pr-svg .pr-flow {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 0.01 15;
  transition: opacity 0.35s;
}

.pr-svg .pr-box {
  fill: var(--surface);
  stroke: var(--line-2);
  stroke-width: 1.5;
  transition: stroke 0.3s;
}

.pr-svg .pr-ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-svg .pr-name {
  fill: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
}

.pr-svg .pr-val {
  fill: var(--text);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pr-svg .pr-sub {
  fill: var(--muted);
  font-size: 10.5px;
}

.pr-svg .pr-uname {
  fill: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
}

.pr-svg .pr-hub {
  fill: var(--surface);
  stroke: var(--text-2);
  stroke-width: 2;
}

.pr-svg .pr-n.imp .pr-val {
  fill: var(--danger);
}

.pr-svg .pr-n.exp .pr-val {
  fill: var(--solar);
}

.pr-svg .pr-n.ok .pr-box {
  stroke: var(--green);
}

.pr-svg .pr-n.imp .pr-box {
  stroke: var(--danger);
  stroke-width: 2;
}

.pr-svg .pr-badge {
  fill: var(--surface-3);
}

.pr-svg .pr-badge-t {
  fill: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.pr-svg .pr-u.rc .pr-box {
  stroke: var(--green);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.pr-svg .pr-u.rd .pr-box {
  stroke: var(--blue);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.pr-svg .pr-u.rc.busy .pr-box,
.pr-svg .pr-u.c .pr-box {
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-dasharray: none;
}

.pr-svg .pr-u.rd.busy .pr-box,
.pr-svg .pr-u.d .pr-box {
  stroke: var(--blue);
  stroke-width: 2.4;
  stroke-dasharray: none;
}

.pr-svg .pr-u.start .pr-box {
  stroke: var(--solar);
  stroke-width: 2;
  stroke-dasharray: 3 3;
}

.pr-svg .pr-u.rc .pr-badge,
.pr-svg .pr-u.c .pr-badge {
  fill: rgba(61, 220, 142, 0.16);
}

.pr-svg .pr-u.rc .pr-badge-t,
.pr-svg .pr-u.c .pr-badge-t,
.pr-svg .pr-u.c [data-pr-w],
.pr-svg .pr-u.rc [data-pr-w] {
  fill: var(--green);
}

.pr-svg .pr-u.rd .pr-badge,
.pr-svg .pr-u.d .pr-badge {
  fill: rgba(90, 169, 255, 0.18);
}

.pr-svg .pr-u.rd .pr-badge-t,
.pr-svg .pr-u.d .pr-badge-t,
.pr-svg .pr-u.d [data-pr-w],
.pr-svg .pr-u.rd [data-pr-w] {
  fill: var(--blue);
}

.pr-svg .pr-u.start .pr-badge-t {
  fill: var(--solar);
}

.pr-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}

.pr-phase {
  flex: 1;
  min-width: 0;
  min-height: 4.6em;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.5;
}

.pr-phase b {
  color: var(--text);
}

/* --- Page Charge optimisée : chiffres clés, gains, méthode ----------------- */

.co-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.co-figures--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.co-fig {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.co-fig strong {
  display: block;
  background: linear-gradient(90deg, var(--green), #9ff3c9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.co-fig span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.co-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.co-gains .card h3 {
  font-size: 1.12rem;
}

.co-asterisk {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.co-method {
  margin: 26px 0 0;
}

@media (max-width: 900px) {
  .co-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .jd,
  .pr {
    padding: 12px;
    border-radius: var(--radius);
  }

  .jd-clock {
    font-size: 1.4rem;
  }

  .jd-vs {
    width: 100%;
    margin-left: 0;
    border-radius: 14px;
  }

  .jd-vs button {
    flex: 1;
    padding: 6px 8px;
  }

  .jd-panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .jd-panel-head p {
    min-height: 0;
  }

  .jd-batts {
    gap: 4px;
    min-height: 170px;
  }

  .jd-batt {
    padding: 6px 2px;
  }

  .jd-pill {
    padding: 2px 5px;
    font-size: 0.58rem;
    letter-spacing: 0;
    white-space: normal;
    line-height: 1.2;
  }

  .jd-cell {
    height: calc(40px + 62px * var(--h, 1));
  }

  .jd-name {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 3px;
    font-size: 0.66rem;
  }

  .jd-name b {
    flex-basis: 100%;
  }

  .jd-w {
    font-size: 0.74rem;
  }

  .jd-score dd {
    font-size: 1rem;
  }

  .jd-score > div {
    padding: 7px 8px;
  }

  .pr-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pr-bar .btn {
    align-self: flex-start;
  }

  .pr-svg .pr-val {
    font-size: 13px;
  }

  .pr-svg .pr-badge-t {
    font-size: 8.5px;
    letter-spacing: 0;
  }

  .co-figures--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .jd-table {
    min-width: 0;
    font-size: 0.8rem;
  }

  .jd-table th,
  .jd-table td {
    padding: 8px 6px;
  }

  .jd-table thead th {
    font-size: 0.7rem;
  }
}

@media (max-width: 420px) {
  .jd-vs-label {
    display: none;
  }

  .co-figures {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-up .jd-flow,
  .flow-down .jd-flow,
  .jd-caption.is-new {
    animation: none;
  }
}
