/* Calculator widgets (tools/site_assets/vehicle_calc.js). Reuses the site tokens from app.css
   (--surface, --line, --ink, --muted, --accent, --price, --warn, --good, --chip), so light and dark
   themes follow the page. */
.vc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; min-width: 0; margin: 0 0 16px }
.vc-h { font: 600 1.1rem/1.3 var(--f-display, inherit); margin: 0 0 2px }
.vc-sub { color: var(--muted); font-size: 13px; margin: 0 0 10px }
.vc-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px 14px; margin: 8px 0 12px }
.vc-f { display: grid; gap: 3px; align-content: start; min-width: 0 }
.vc-f[hidden] { display: none }
.vc-f label { font-size: 13px; color: var(--ink); font-weight: 500 }
.vc-f small { font-size: 12px; color: var(--muted); line-height: 1.35 }
.vc-f input[type=text], .vc-f select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; min-width: 0; width: 100%; font-variant-numeric: tabular-nums }
.vc-f input[type=text] { font-family: var(--f-data, inherit) }
.vc-f input:focus-visible, .vc-f select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }
.vc-chk { grid-column: 1 / -1 }
.vc-chk label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 }
.vc-chk input { margin-top: 4px; accent-color: var(--accent) }
.vc-out { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px }
.vc-r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap }
.vc-r span { color: var(--muted); font-size: 14px }
.vc-r b { font: 600 15px var(--f-data, inherit); font-variant-numeric: tabular-nums; color: var(--ink); text-align: right }
.vc-r.big b { font-size: 1.45rem; color: var(--price) }
.vc-note { color: var(--muted); font-size: 12.5px; margin: 2px 0; line-height: 1.45 }
.vc-warn { color: var(--warn); font-size: 13px; margin: 6px 0; line-height: 1.45 }
.vc-warn::before { content: "⚠ "; }
ul.vc-msg, p.vc-msg { margin: 4px 0; padding-left: 18px; color: var(--muted); font-size: 13px }
p.vc-msg { padding-left: 0 }
.vc-src { margin-top: 10px; font-size: 13px }
.vc-src summary { cursor: pointer; color: var(--accent); width: fit-content }
.vc-src ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px }
.vc-src a { color: var(--accent); overflow-wrap: anywhere }
.vc-asof { color: var(--muted) }
.vc-veh { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; margin: 0 0 12px }
.vc-vcard { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 10px; margin: 0; min-width: 0; display: grid; gap: 8px }
.vc-vcard legend { font-weight: 600; font-size: 13px; padding: 0 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.vc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch }
table.vc-tco { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 320px }
.vc-tco th, .vc-tco td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums }
.vc-tco th[scope=row], .vc-tco thead th:first-child { text-align: left; color: var(--muted); font-weight: 500 }
.vc-tco thead th { font-size: 13px; vertical-align: bottom }
.vc-tco td { font-family: var(--f-data, inherit) }
.vc-tco tr.sum th, .vc-tco tr.sum td { font-weight: 700; border-bottom: 0 }
.vc-tco td.best { color: var(--good) }
.vc-intro { max-width: 70ch }
.vc-how { max-width: 70ch; color: var(--ink) }
.vc-how li { margin: 2px 0 }
@media (max-width: 480px) {
  .vc { padding: 12px }
  .vc-r.big b { font-size: 1.3rem }
}
