/* Final driver comparison (Struon, 04-10-2026). See driver-compare.js for the API.
   Line drawing in currentColor: Delft Blue on the paper register, white on the dark register.
   1 px hairlines at every size (non-scaling strokes), no rounded corners, no shadows. */
.driver-compare {
 --dc-gap: 9vw;
 --dc-muted: var(--ink-muted, currentColor);
 --dc-line: var(--line, rgb(19 30 41 / 0.16));
 margin: 0;
 color: inherit;
}
.driver-compare:empty { display: none; }

.driver-compare__grid {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 column-gap: var(--dc-gap);
 row-gap: 64px;
}
.driver-compare__item { min-width: 0; }

.driver-compare__label {
 margin: 0 0 18px;
 font-size: 10px;
 line-height: 1.5;
 font-weight: 400;
 letter-spacing: var(--tracking-header, 0.2em);
 text-transform: uppercase;
 color: var(--dc-muted);
}
.driver-compare[data-labels="off"] .driver-compare__label {
 position: absolute;
 width: 1px;
 height: 1px;
 overflow: hidden;
 clip-path: inset(50%);
 white-space: nowrap;
}

.driver-compare__stage { position: relative; }
.driver-compare .dc-svg {
 display: block;
 width: 100%;
 height: auto;
 overflow: visible;
}
.driver-compare .dc-svg :is(path, line, rect, circle) { vector-effect: non-scaling-stroke; }

/* Line work */
.driver-compare .dc-l { fill: none; stroke: currentColor; stroke-width: 1; stroke-linejoin: miter; }
.driver-compare .dc-frame { opacity: 0.42; }
.driver-compare .dc-spider { opacity: 0.6; }
.driver-compare .dc-cone,
.driver-compare .dc-film { stroke-width: 1.5; }
.driver-compare .dc-surround { stroke-width: 1.25; }
.driver-compare .dc-coil { fill: currentColor; stroke: none; }
.driver-compare .dc-stator { stroke-width: 2; stroke-dasharray: 2 3; }
.driver-compare .dc-tick { stroke-width: 1; }

/* Trace strip */
.driver-compare .dc-zero { opacity: 0.22; stroke-dasharray: 1 3; }
.driver-compare .dc-sig { opacity: 0.38; }
.driver-compare .dc-mov { stroke-width: 1.5; }
.driver-compare .dc-now { fill: currentColor; stroke: none; }

/* Small labels inside the drawing keep about 9 px whatever the rendered width (--dc-u from JS). */
.driver-compare .dc-tag {
 fill: currentColor;
 font-family: var(--font-sans, "effra", "Helvetica Neue", Helvetica, Arial, sans-serif);
 font-size: calc(9px * var(--dc-u, 1));
 font-weight: 400;
 letter-spacing: 0.2em;
 text-transform: uppercase;
 opacity: 0.72;
}

/* Reduced motion: one still with ghost positions and arrows. */
.driver-compare .dc-ghost { display: none; }
.driver-compare.is-still .dc-ghost { display: inline; }
.driver-compare .dc-ghost-line { opacity: 0.4; stroke-dasharray: 3 3; }
.driver-compare .dc-arrow { opacity: 0.8; }

/* Notes: a short spec list under each drawing. */
.driver-compare__notes {
 list-style: none;
 margin: 28px 0 0;
 padding: 0;
 border-top: 1px solid var(--dc-line);
}
.driver-compare__notes li {
 display: grid;
 grid-template-columns: 40px minmax(0, 1fr);
 align-items: baseline;
 padding: 13px 0 12px;
 border-bottom: 1px solid var(--dc-line);
 font-size: 16px;
 line-height: 1.45;
 font-weight: 300;
}
.driver-compare__num {
 font-size: 10px;
 letter-spacing: 0.2em;
 color: var(--dc-muted);
}

/* Key and play control above the drawings, field note below. */
.driver-compare__bar {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: 8px 32px;
 margin: 0 0 28px;
 padding-bottom: 2px;
 font-size: 12px;
 line-height: 1.5;
 color: var(--dc-muted);
}
.driver-compare__legend { display: inline-flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.driver-compare__legend > span { display: inline-flex; align-items: center; gap: 10px; }
.driver-compare__swatch { width: 20px; height: 4px; overflow: visible; }
.driver-compare__swatch line { stroke: currentColor; vector-effect: non-scaling-stroke; }
.driver-compare__swatch.is-signal line { stroke-width: 1; opacity: 0.5; }
.driver-compare__swatch.is-movement line { stroke-width: 1.5; }
.driver-compare__toggle {
 appearance: none;
 margin: 0;
 padding: 0;
 min-width: 44px;
 min-height: 44px;
 border: 0;
 border-radius: 0;
 background: none;
 color: inherit;
 font: inherit;
 font-size: 10px;
 letter-spacing: var(--tracking-header, 0.2em);
 text-transform: uppercase;
 text-align: right;
 cursor: pointer;
 text-decoration: underline;
 text-decoration-thickness: 1px;
 text-underline-offset: 6px;
 text-decoration-color: var(--dc-line);
 transition: text-decoration-color var(--duration-fast, 160ms) var(--ease-out, ease);
}
.driver-compare__toggle:hover { text-decoration-color: currentColor; }
.driver-compare__toggle[hidden] { display: none; }
.driver-compare.is-still .driver-compare__bar { min-height: 44px; }
.driver-compare__caption {
 margin-top: 28px;
 font-size: 12px;
 line-height: 1.7;
 color: var(--dc-muted);
}

@media (max-width: 760px) {
 .driver-compare__grid { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
 .driver-compare__label { font-size: 9px; margin-bottom: 14px; }
 .driver-compare__notes { margin-top: 22px; }
 .driver-compare__notes li { font-size: 15px; grid-template-columns: 34px minmax(0, 1fr); }
 .driver-compare__bar { margin-bottom: 22px; }
 .driver-compare__legend { gap: 8px 22px; }
 .driver-compare__caption { margin-top: 24px; }
}
