/* Automotive-only composition; other maps and the approved homepage are untouched. */
.auto-map { max-width: 1280px; width: calc(100% - 64px); margin: 0 auto; padding: 24px 0 20px; color: #17213e; }
.auto-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.auto-heading p { margin: 0 0 4px; color: #687492; font-size: 14px; line-height: 24px; }
.auto-heading h1 { margin: 0; font-size: 38px; line-height: 52px; letter-spacing: -1px; }
.auto-heading h1:focus { outline: none; }
.auto-heading a { color: #4858a1; font-size: 14px; line-height: 24px; font-weight: 600; text-decoration: none; }
.auto-heading a:hover { text-decoration: underline; }
.auto-help { display: flex; justify-content: space-between; gap: 20px; margin: 12px 0 0; color: #687492; font-size: 13px; line-height: 24px; }
.auto-help > span { font-size: 12px; color: #7c86a1; }
.auto-stage { position: relative; height: 600px; isolation: isolate; }
.auto-floor { position: absolute; width: 100%; height: 600px; inset: 0; z-index: -1; overflow: visible; }
.auto-floor-top { fill: url(#auto-floor-fill); stroke: #fff; stroke-width: 2; }
.auto-floor-side { fill: #dce5fc; }
.auto-flow { fill: none; stroke: #9690e6; stroke-width: 2; stroke-linecap: round; }
.auto-support { fill: none; stroke: #b9bddf; stroke-width: 1.25; stroke-dasharray: 4 6; stroke-linecap: round; }
.auto-scene { position: absolute; display: flex; align-items: center; flex-direction: column; }
.auto-scene > img { display: block; width: 176px; height: 124px; object-fit: contain; pointer-events: none; }
.auto-scene[data-scene="manufacturing"] > img { width: 252px; height: 168px; margin-top: -28px; margin-bottom: -16px; }
.auto-scene[data-scene="platform"] > img { width: 252px; height: 168px; margin-top: -22px; margin-bottom: -22px; }
.auto-scene > button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 10px; background: transparent; color: #27314f; font: 600 16px/28px var(--font-ui); white-space: nowrap; cursor: pointer; }
/* Stretch the existing native button, not the image's generous transparent canvas. */
.auto-scene > button::before { content: ""; position: absolute; top: 16px; left: 0; right: 0; bottom: 0; border-radius: 12px; cursor: pointer; }
.auto-scene[data-scene="manufacturing"] > button::before { top: -12px; }
.auto-scene[data-scene="platform"] > button::before { top: -4px; }
.auto-scene:not([data-scene="platform"]) > button::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 224px; height: 22px; transform: translateX(-50%); cursor: pointer; }
.auto-scene > button:focus-visible::before { outline: 2px solid #8e82e5; outline-offset: 2px; }
.auto-scene > button:hover, .auto-scene > button[aria-expanded="true"] { background: rgb(255 255 255 / 70%); color: #6152c7; }
.auto-scene > button:focus-visible { outline: 2px solid #8e82e5; outline-offset: 2px; }
.auto-caption { display: block; flex: 0 0 22px; width: 224px; height: 22px; margin-top: 2px; color: #7480a1; font: 400 12px/22px var(--font-ui); text-align: center; white-space: nowrap; pointer-events: none; opacity: 1; transform: translateY(0); transition: opacity 220ms ease, transform 220ms ease; }
.auto-caption.is-changing { opacity: 0; transform: translateY(3px); }
@media (prefers-reduced-motion: reduce) { .auto-caption, .auto-caption.is-changing { transition: none; opacity: 1; transform: none; } }
.auto-hotspot { position: relative; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #8c7ce8; box-shadow: 0 0 0 5px #edeafe, 0 0 0 6px #fff; }
.auto-hotspot::after { content: ""; position: absolute; inset: -6px; border: 1px solid #a89ae2; border-radius: 50%; pointer-events: none; animation: auto-hotspot-breathe 3.6s ease-in-out infinite; }
.auto-scene > button:hover .auto-hotspot::after, .auto-scene > button:focus-visible .auto-hotspot::after { animation: none; transform: scale(1.15); opacity: .8; }
@keyframes auto-hotspot-breathe { 0%, 100% { transform: scale(.92); opacity: .2; } 50% { transform: scale(1.16); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .auto-hotspot::after { animation: none; transform: none; opacity: .4; } .auto-scene > button:hover .auto-hotspot::after, .auto-scene > button:focus-visible .auto-hotspot::after { transform: none; } }
.auto-scene > button[aria-expanded="true"] .auto-hotspot { background: #6350d5; box-shadow: 0 0 0 5px #dfd8fb, 0 0 0 6px #a99ce9; }
.auto-products { position: absolute; top: 116px; left: 0; width: 272px; padding: 16px; border: 1px solid #c9c3ee; border-radius: 16px; background: rgb(255 255 255 / 98%); box-shadow: 0 12px 32px rgb(89 102 161 / 12%); z-index: 4; }
.auto-products[hidden] { display: none; }
.auto-products-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.auto-products-head h2 { margin: 0; color: #6b55d2; font-size: 22px; line-height: 30px; }
.auto-products-head span { display: block; color: #80869b; font-size: 11px; line-height: 20px; }
.auto-products-head button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; color: #697190; background: #f3f3fb; font: 24px/28px var(--font-ui); cursor: pointer; }
.auto-products-list { max-height: 328px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9c1ee transparent; list-style: none; padding: 0; margin: 0; }
.auto-products-list li { border-top: 1px solid #edebf7; }
.auto-products-list a { display: block; position: relative; padding: 8px 18px 8px 0; text-decoration: none; color: #25304e; }
.auto-products-list a:hover, .auto-products-list a:focus-visible { background: #f7f6ff; outline-offset: -2px; }
.auto-products-list strong { display: block; color: #626b9c; font-size: 13px; line-height: 22px; font-weight: 600; }
.auto-products-list a:hover strong, .auto-products-list a:focus-visible strong { color: #3c3674; }
.auto-products-list span { display: block; color: #68769d; font-size: 12px; line-height: 20px; }
.auto-product-chevron { position: absolute; right: 0; top: 20px; width: 14px; height: 14px; fill: none; stroke: #9b90cc; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.auto-legend { position: absolute; bottom: 20px; left: 0; display: grid; gap: 6px; padding: 10px 14px; border: 1px solid #e1e5f1; border-radius: 10px; background: rgb(255 255 255 / 60%); color: #7c86a1; font-size: 11px; line-height: 18px; }
.auto-legend span { display: flex; align-items: center; gap: 12px; }
.auto-legend i { position: relative; width: 36px; border-top: 2px solid #9690e6; }
.auto-legend span:first-child i::after { content: ""; position: absolute; right: -1px; top: -5px; border: 4px solid transparent; border-left: 6px solid #9690e6; border-right: 0; }
.auto-legend span:last-child i { border-top: 1px dashed #b0b5e0; }
@media (min-width: 761px) and (max-width: 1163px) {
  .auto-scene > img { width: 144px; }
  .auto-scene[data-scene="manufacturing"] > img { width: 204px; }
  .auto-scene[data-scene="platform"] > img { width: 188px; }
  .auto-scene > button { font-size: 14px; }
  .auto-products { width: 240px; padding: 12px; }
}
@media (max-width: 760px) {
  .auto-map { width: calc(100% - 32px); padding-top: 20px; }
  .auto-heading h1 { font-size: 28px; line-height: 40px; }
  .auto-heading p { font-size: 12px; line-height: 20px; }
  .auto-heading a { font-size: 12px; }
  .auto-help { font-size: 12px; margin-top: 12px; }
  .auto-help > span { display: none; }
  .auto-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; height: auto; padding-top: 20px; }
  .auto-floor { display: none; }
  .auto-scene { position: relative; left: auto !important; top: auto !important; width: 100% !important; border-radius: 12px; background: linear-gradient(135deg, #f2f8ff, #e9efff); padding: 8px 0; }
  .auto-scene > img { width: 144px; height: 104px; }
  .auto-scene[data-scene="manufacturing"] > img { width: 184px; height: 104px; margin: 0; }
  .auto-scene[data-scene="platform"] > img { width: 164px; height: 104px; margin: 0; }
  .auto-scene > button { gap: 8px; padding: 4px 8px; font-size: 12px; line-height: 24px; min-height: 36px; }
  .auto-scene > button::before, .auto-scene[data-scene="manufacturing"] > button::before, .auto-scene[data-scene="platform"] > button::before { top: 0; }
  .auto-scene:not([data-scene="platform"]) > button::after { width: 100%; }
  .auto-caption { width: 100%; font-size: 10px; }
  .auto-hotspot { width: 8px; height: 8px; flex-basis: 8px; box-shadow: 0 0 0 3px #edeafe; }
  .auto-products { position: fixed; top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; padding: 16px; max-height: 56dvh; }
  .auto-products-list { max-height: 36dvh; }
  .auto-products-list strong { font-size: 13px; line-height: 22px; }
  .auto-products-list span { font-size: 12px; line-height: 20px; }
  .auto-products-list a { padding-top: 10px; padding-bottom: 10px; }
  .auto-legend { position: static; grid-column: 1 / -1; display: flex; justify-self: start; gap: 16px; }
}
