/* Automotive article layout, shared across component routes and languages. */
.hms-automotive-article .trail { margin-block: 20px 7px; }
.hms-automotive-article > h1 { max-width: 100%; text-wrap: balance; }
.hms-automotive-article .intro p + p { margin-block-start: .65em; }
.hms-automotive-article .overview nav a { min-height: 40px; }
.hms-automotive-article .overview nav b { flex: none; }
.hms-automotive-article .feature-explorer { margin-block: 8px 0; }
.hms-automotive-article .feature-explorer > summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.hms-automotive-article .feature-explorer > div { width: 100%; max-width: 100%; padding: 0; }
.hms-automotive-article .feature-explorer .overview { padding: 16px; }
.hms-automotive-article .overview .auto-leaders :is(path,line) {
    fill: none; stroke: var(--gray); stroke-width: 1.4px; vector-effect: non-scaling-stroke;
}
.hms-automotive-article .overview .auto-leaders circle {
    fill: var(--accent); stroke: white; stroke-width: 1px; vector-effect: non-scaling-stroke;
}
.hms-automotive-article .pair figcaption p { margin: 4px 0 0; color: var(--gray); font-size: .9rem; }
.hms-automotive-article .pair > figure { min-width: 0; margin: 0; }
.hms-automotive-article .stage svg.feature-photo { display: block; width: 100%; height: 100%; }
.hms-automotive-article .stage .detail-photo { position: relative; display: inline-grid; max-width: 100%; }
.hms-automotive-article .stage .detail-photo img { max-height: 142px; object-fit: contain; }
.hms-automotive-article .detail-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hms-automotive-article .detail-photo svg :is(path,circle) {
    fill: none; stroke: var(--accent); stroke-width: 2px; vector-effect: non-scaling-stroke;
}
.hms-automotive-article .multi-pair > figure:not(:first-child) { grid-column: 2; }
.hms-automotive-article .multi-pair:has(> :nth-child(3)) > figure:first-child { grid-row: 1 / span 2; }
.hms-automotive-article .multi-pair:has(> :nth-child(4)) > figure:first-child { grid-row: 1 / span 3; }
.hms-automotive-article .multi-pair { margin-block: 12px; }
.hms-automotive-article .legacy-prose p + p,
.hms-automotive-article .legacy-prose .process-copy + .process-copy,
.hms-automotive-article .legacy-prose .subheading { margin-block-start: .8em; }
.hms-automotive-article .route-summary { margin-block: 20px; }
.hms-automotive-article .route-summary h2 { font-size: 1.2rem; }
.hms-automotive-article .step .section-head > p,
.hms-automotive-article .step .detail-note { color: var(--muted); }
.hms-automotive-article .legacy-prose :is(.section-heading,.section-head) { margin-block-end: 12px; }
.hms-automotive-article .legacy-prose .process-copy { font-size: 1rem; }
.hms-automotive-article .selection-wrap { overflow-x: auto; }
.hms-automotive-article .legacy-prose table { border-collapse: collapse; width: 100%; }
.hms-automotive-article .legacy-prose :is(th,td) { padding: 10px; border-bottom: 1px solid var(--silver); text-align: start; vertical-align: top; }
.hms-automotive-article .related-tools { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block: .75em; }
.hms-automotive-article .contact-action { display: inline-block; margin-block-start: .75em; }
.hms-automotive-article .multi-pair[id] { scroll-margin-top: calc(var(--huisen-header-height,90px) + 64px); }
.hms-page[dir=rtl] .hms-automotive-article > .overview nav { direction: rtl; text-align: start; }
@media(max-width:700px) {
    .hms-automotive-article > .overview nav { grid-template-columns: 1fr; padding: 6px 12px; }
    .hms-automotive-article > .overview nav a { align-items: baseline; gap: 9px; }
    .hms-automotive-article .stage .detail-photo img { max-height: 99px; }
    .hms-automotive-article .pair figcaption p { font-size: .84rem; }
    .hms-automotive-article .feature-explorer .overview { grid-template-columns: minmax(0,1fr); }
}
