/* MotorDee car size drawings (tools/vehicle_size.py, assets/vehicle_size.js) */
:root { --vs1: #257de0; --vs2: #f47230; --vs3: #00b894; --vs4: #f2a600 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --vs1: #338ced; --vs2: #e76624; --vs3: #00a888; --vs4: #d28e05 } }
:root[data-theme="dark"] { --vs1: #338ced; --vs2: #e76624; --vs3: #00a888; --vs4: #d28e05 }

.vsz { margin: 8px 0 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px }
.vsz-fig { display: flex; gap: 14px; align-items: flex-start }
.vsz-v { min-width: 0 }
.vsz-vs { flex: var(--sw) 1 0 }
.vsz-vf { flex: var(--fw) 1 0 }
.vsz-cap { margin: 0 0 2px; font-size: 12px; color: var(--muted) }
.vsz svg, .vsz-mini { display: block; width: 100%; height: auto; overflow: visible }
.vsz figcaption { margin-top: 6px; font-size: 13px; color: var(--muted) }

.car.s1 { --c: var(--vs1) } .car.s2 { --c: var(--vs2) } .car.s3 { --c: var(--vs3) } .car.s4 { --c: var(--vs4) }
.car.s2 { stroke-dasharray: 9 4 } .car.s3 { stroke-dasharray: 2 3 } .car.s4 { stroke-dasharray: 10 3 2 3 }
.car { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round }
.car.body { fill: var(--c); fill-opacity: .10; stroke: var(--c); stroke-width: 2.2 }
.car.line { fill: none; stroke: var(--c); stroke-width: 2.2 }
.car.wheel { fill: var(--surface); fill-opacity: .55; stroke: var(--c); stroke-width: 2 }
.car.rim { fill: none; stroke: var(--c); stroke-width: 1.2; stroke-opacity: .7 }
.car.tyre { fill: var(--c); fill-opacity: .18; stroke: var(--c); stroke-width: 1.6 }
.car.dim { fill: none; stroke: var(--c); stroke-width: 2 }
.vsz svg .grid, .vsz-mini .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke }
.vsz svg .ground, .vsz-mini .ground { stroke: var(--muted); stroke-width: 1.5; vector-effect: non-scaling-stroke }
.vsz svg .lbl { font: 600 11px var(--f-data); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round }
.vsz svg .lbl.miss { fill: var(--muted); font-weight: 400 }
.vsz svg .gl { font: 11px var(--f-body); fill: var(--muted); text-anchor: middle }

.vsz-key { display: inline-block; width: 24px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px }
.vsz-key.s1 { background: var(--vs1) }
.vsz-key.s2 { background: repeating-linear-gradient(90deg, var(--vs2) 0 8px, transparent 8px 12px) }
.vsz-key.s3 { background: repeating-linear-gradient(90deg, var(--vs3) 0 3px, transparent 3px 6px) }
.vsz-key.s4 { background: repeating-linear-gradient(90deg, var(--vs4) 0 9px, transparent 9px 12px, var(--vs4) 12px 14px, transparent 14px 17px) }
.vsz-t td.num, .vsz-all td.num { white-space: nowrap }
.vsz-t .miss, .vsz-all .miss { color: var(--muted); font-size: 13px }
.vsz-t .dd { color: var(--muted); font-weight: 400 }
.vsz-sec { margin-top: 18px }
.vsz-sec .more, .wrap > .more { margin: 6px 0 14px }

/* the tool */
.vsz-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 6px 0 4px }
.vsz-slot { display: grid; gap: 5px; align-content: start; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px }
.vsz-slot select { width: 100%; font-size: 14px; padding: 6px 8px }
.vsz-sh { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 26px }
.vsz-sn { font-size: 13px; font-weight: 600 }
.vsz-all .btn.sm, .vsz-slot .btn.sm { padding: 3px 10px; font-size: 13px }

/* small electric cars */
.vsz-rule { margin: 4px 0 10px; padding: 10px 12px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 8px; font-size: 14px }
.vsz-facts { margin: 0 0 10px; padding-left: 20px }
.vsz-sort { display: flex; gap: 6px; align-items: center; margin: 6px 0 8px; font-size: 14px }
.vsz-sort .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink) }
.vsz-cards { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px }
.vsz-card { display: grid; gap: 4px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px }
.vsz-card > a { color: inherit; text-decoration: none }
.vsz-card > a:hover b { text-decoration: underline }
.vsz-mini .limit { stroke: var(--muted); stroke-dasharray: 4 3; vector-effect: non-scaling-stroke }
.vsz-cl { font-size: 13px; color: var(--muted) }
.vsz-cl b { color: var(--ink) }

@media (max-width: 640px) {
  .vsz { padding: 8px }
  .vsz-fig { flex-direction: column; gap: 8px }
  .vsz-vs { flex: none; width: 100% }
  .vsz-vf { flex: none; width: min(100%, 210px) }
  .vsz .vsz-side .lbl { font-size: 20px; stroke-width: 6px }
  .vsz .vsz-front .lbl { font-size: 13px }
  .vsz .vsz-side .gl { font-size: 18px }
  .vsz-slots { grid-template-columns: 1fr 1fr; gap: 6px }
  .vsz-slot { padding: 7px }
  .vsz-slot select { font-size: 13px; padding: 5px 4px }
}
