/* /service/ only: the chassis list and the service map (Leaflet). Uses the site.css tokens; square corners like the rest of the site. */
:root { --ford: var(--navy); --freightliner: var(--sky); --cummins: var(--danger); }

.svc-chassis { display: grid; gap: 0 40px; border-top: 4px solid var(--sky); }
.svc-chassis > div { padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
.svc-chassis h3 { font-size: 1.75rem; }
.svc-chassis p { margin: 8px 0 0; }
.svc-chassis .svc-chassis__base { color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.svc-chassis .text-link { display: inline-block; margin-top: 12px; }
@media (min-width: 821px) { .svc-chassis { grid-template-columns: repeat(3, 1fr); } .svc-chassis > div { border-bottom: 0; } }

.svc-noscript { padding: 18px 22px; background: var(--white); border-left: 6px solid var(--sky); color: var(--ink); }
.svc-tool { display: grid; grid-template-columns: 370px 1fr; height: 640px; background: var(--white); border: 1px solid var(--rule); }
.svc-tool[hidden] { display: none; }
.svc-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--rule); }
.svc-form { padding: 18px 18px 20px; border-bottom: 1px solid var(--rule); }
.svc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-form label, .svc-brands legend { display: block; margin-bottom: 5px; color: var(--ink); font-size: .95rem; font-weight: 700; }
.svc-form input:not([type="checkbox"]), .svc-form select {
    width: 100%; height: 46px; padding: 0 12px; border: 1px solid #9fb2c8; border-radius: var(--radius); background: var(--white);
    color: var(--ink); font: 400 1rem var(--font);
}
.svc-form input:focus, .svc-form select:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--navy); }
.svc-brands { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 16px; padding: 0; border: 0; }
.svc-brands legend { width: 100%; }
.svc-brand { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--ink); font-weight: 600; cursor: pointer; }
.svc-brand input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.svc-brand::before { content: ""; order: 2; width: 10px; height: 10px; background: var(--c); }
.svc-brand input { order: 1; }
.svc-brand span { order: 3; color: var(--soft); font-weight: 400; font-size: .9rem; }
.svc-brand--ford { --c: var(--ford); } .svc-brand--freightliner { --c: var(--freightliner); } .svc-brand--cummins { --c: var(--cummins); }
.svc-form .btn { width: 100%; }
.svc-status { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: .95rem; font-weight: 600; }
.svc-results { flex: 1; min-height: 0; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.svc-results li { padding: 14px 18px; border-bottom: 1px solid var(--rule); }

.svc-card p { margin: 0; font-size: .95rem; line-height: 1.4; }
.svc-card .svc-card__name { color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.svc-card__meta { display: flex; gap: 10px; align-items: center; margin: 4px 0 !important; color: var(--soft); font-weight: 600; }
.svc-badge { padding: 1px 7px 0; color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.svc-badge--ford { background: var(--ford); } .svc-badge--freightliner { background: var(--freightliner); color: var(--navy-deep); } .svc-badge--cummins { background: var(--cummins); }
.svc-card__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px !important; }
.svc-card__links a { font-weight: 700; }
.svc-card__show { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--navy); font: 700 .95rem var(--font); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

.svc-map { min-height: 0; background: var(--tint); }
.svc-map .leaflet-popup-content-wrapper, .svc-map .leaflet-popup-tip { border-radius: 0; box-shadow: 0 6px 18px rgb(1 28 68 / .25); }
.svc-map .leaflet-popup-content { margin: 14px 16px; font: 400 1rem var(--font); }
.svc-map .leaflet-bar a { border-radius: 0 !important; color: var(--navy); }
.svc-pin { width: 12px; height: 12px; border: 2px solid var(--white); background: var(--c); box-shadow: 0 1px 4px rgb(0 0 0 / .35); }
.svc-pin--ford { --c: var(--ford); } .svc-pin--freightliner { --c: var(--freightliner); } .svc-pin--cummins { --c: var(--cummins); }
.svc-origin { width: 16px; height: 16px; border: 3px solid var(--white); border-radius: 50%; background: var(--danger); box-shadow: 0 1px 6px rgb(0 0 0 / .4); }
.svc-cluster { display: grid; place-items: center; background: rgb(2 42 100 / .25); }
.svc-cluster span { display: grid; place-items: center; width: 26px; height: 26px; background: var(--navy); color: var(--white); font: 700 .8rem var(--font); }
.svc-small { margin: 10px 0 0; font-size: .85rem; }

@media (max-width: 900px) {
    .svc-tool { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
    .svc-side { display: contents; }
    .svc-form { order: 1; } .svc-status { order: 2; } .svc-map { order: 3; height: 60vh; min-height: 340px; } .svc-results { order: 4; overflow: visible; }
    .svc-results li:last-child { border-bottom: 0; }
}

.svc-more { display: grid; gap: 36px 60px; }
.svc-more p { margin: 14px 0 0; font-size: 1.125rem; }
.svc-more a { font-weight: 700; }
@media (min-width: 821px) { .svc-more { grid-template-columns: 1fr 1fr; } }
