/* Shared finishing rules for the catalog and component guides. */
.product-overview-body :is(h2,h3,h4,p,dd),.product-detail-body :is(h2,h3,p,dd){word-break:keep-all;overflow-wrap:break-word}
.catalog-product-status{color:#873817;line-height:1.6;flex-wrap:wrap}
.catalog-product-image img{object-fit:contain}
.product-detail-body .product-package-bridge .product-tesla-package p{white-space:normal;font-size:14px;line-height:1.8}
.product-detail-body.product-model-x6-wf .product-package-bridge p{white-space:normal;font-size:13px}
.catalog-product-copy>p{font-size:14px;line-height:1.85;color:#45473f}
.catalog-product-copy dl div{grid-template-columns:64px minmax(0,1fr)}
.catalog-product-copy dt{font-size:11px;color:#55574f}
.catalog-product-copy dd{font-size:12px;line-height:1.7;overflow-wrap:normal}
.catalog-product-copy .output-channel-group{display:block;white-space:nowrap}
.catalog-product-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;box-sizing:border-box;background:#252b22;color:#fff;border:1px solid #252b22;font-size:11px}
.catalog-product-actions a:hover{background:#3c4934}
.catalog-product-actions a:focus-visible{outline:3px solid #873817;outline-offset:4px}
.catalog-purchase-pending{
  min-height:44px;
  padding:10px 16px;
  border:1px solid #a8afa3;
  background:#e8ece5;
  color:#353e32;
  font:inherit;
  font-size:14px;
  font-weight:700;
}
.catalog-disclaimer,.product-flow-note{color:#53564c;line-height:1.85}
.product-system-flow .product-flow-note{color:#dddcd2}
.product-detail-body .model-tabs a small{color:#b8beb4}
.product-detail-body .model-tabs>.family-switch a{color:#c9cec5}
.product-detail-body .model-tabs>.family-switch a.active{color:#ef9a6b}
.product-detail-body .model-tabs a.speaker-model-tab{flex-direction:column;gap:6px;line-height:1.3}
.speaker-model-tab .model-tab-name{display:flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap}
.speaker-model-tab .model-tab-type{font-size:11px;font-weight:500;letter-spacing:0;color:#c9cec5;white-space:nowrap}
.speaker-model-tab.active .model-tab-type{color:#ef9a6b}
.product-detail-body:not(.product-detail-dsp) .product-story{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px 6vw}
.product-detail-body:not(.product-detail-dsp) .product-story>.product-section-label{grid-column:1/-1}
.product-detail-body:not(.product-detail-dsp) :is(.product-story h2,.spec-layout h2,.product-consult h2){font-size:clamp(32px,4vw,58px);line-height:1.3;letter-spacing:-.04em}
.product-detail-body:not(.product-detail-dsp) .product-story>p{font-size:16px;line-height:1.95;color:#44473f}
.product-detail-body:not(.product-detail-dsp) .product-quick-specs strong{font-size:clamp(14px,1.4vw,20px);line-height:1.6}
.product-detail-body:not(.product-detail-dsp) .product-quick-specs small{color:#c1c6bc}
.product-detail-body:not(.product-detail-dsp) .feature-grid h3{font-size:clamp(24px,2.4vw,34px);line-height:1.45}
.product-detail-body:not(.product-detail-dsp) .feature-grid p{font-size:15px;line-height:1.9;color:#d5d8cf}
.product-detail-body:not(.product-detail-dsp) .compatibility-grid strong{font-size:clamp(24px,2.5vw,36px);line-height:1.4}
.product-detail-body:not(.product-detail-dsp) .compatibility-grid .muted{opacity:1}
.product-detail-body:not(.product-detail-dsp) :is(.feature-grid article>span,.compatibility-grid small){color:#efa275}
.product-detail-body:not(.product-detail-dsp) .spec-layout dl div{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:20px}
.product-detail-body:not(.product-detail-dsp) .spec-layout dt{font-size:12px;letter-spacing:0;color:#55594e}
.product-detail-body:not(.product-detail-dsp) .spec-layout dd{font-size:14px;line-height:1.7}
.product-detail-body:not(.product-detail-dsp) .demo-note{font-size:13px;color:#55594e;line-height:1.9}
.product-detail-body:not(.product-detail-dsp) .recommended-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 5vw}
.product-detail-body:not(.product-detail-dsp) .recommended-card>span{grid-column:1/-1}
.product-detail-body:not(.product-detail-dsp) .recommended-card h2{font-size:clamp(32px,4vw,54px);line-height:1.3}
.product-detail-body:not(.product-detail-dsp) .recommended-card>a.vehicle-system-button{display:inline-flex;align-items:center;justify-content:center;justify-self:start;min-height:56px;box-sizing:border-box;padding:16px 24px;background:#252b22;color:#fff;font-size:15px;letter-spacing:0;line-height:1.5;border:1px solid #252b22}
.product-detail-body:not(.product-detail-dsp) .product-consult-wide>div:last-child{grid-template-columns:minmax(0,1fr);gap:24px;margin-top:40px}
.product-detail-body:not(.product-detail-dsp) .product-consult-wide p{max-width:880px;font-size:16px;line-height:1.9;color:#44473f;margin:0}
.product-detail-body:not(.product-detail-dsp) .product-consult-actions{display:grid;grid-template-columns:repeat(2,minmax(0,240px));gap:12px;width:100%;max-width:100%}
.product-detail-body:not(.product-detail-dsp) .product-consult-actions>*{display:flex;align-items:center;justify-content:center;min-height:56px;box-sizing:border-box;width:100%;margin:0;padding:14px 18px;border:1px solid #963817;background:#963817;color:#fff;font-size:15px;font-weight:700;line-height:1.5;letter-spacing:0;text-align:center;white-space:normal}
.product-detail-body:not(.product-detail-dsp) .product-consult-actions>button:disabled{background:#e0ddd2;color:#55594e;border-color:#aaa99e;opacity:1;cursor:default}
.product-detail-body:not(.product-detail-dsp) a:focus-visible{outline:3px solid #efa275;outline-offset:4px}
@media(max-width:800px){
 .product-detail-body.product-dsp-guide .product-package-bridge p{white-space:normal;font-size:13px}
 .product-detail-body:not(.product-detail-dsp) .product-hero-detail{display:flex;flex-direction:column;gap:28px;min-height:0;padding-bottom:0}
 .product-detail-body:not(.product-detail-dsp) .product-photo-visual{position:relative;inset:auto;transform:none;opacity:1;width:100%;height:auto;min-height:0;aspect-ratio:1/1;margin:0;overflow:hidden}
 .product-detail-body:not(.product-detail-dsp) .product-photo-visual .product-detail-photo{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;transform:none}
 .product-detail-body:not(.product-detail-dsp) .product-story{grid-template-columns:minmax(0,1fr)}
 .product-detail-body:not(.product-detail-dsp) .product-story h2{margin:0}
 .product-detail-body:not(.product-detail-dsp) .recommended-card{grid-template-columns:minmax(0,1fr)}
 .product-detail-body:not(.product-detail-dsp) .recommended-card h2{margin:0}
 .product-detail-body:not(.product-detail-dsp) .product-quick-specs{position:static;grid-column:1/-1;margin:0;width:100%;grid-template-columns:minmax(0,1fr)}
 .product-detail-body:not(.product-detail-dsp) .product-quick-specs>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;border-right:0;border-bottom:1px solid #343633}
 .product-detail-body:not(.product-detail-dsp) .product-quick-specs strong{font-size:16px;margin:0;text-align:right}
}
@media(max-width:540px){.product-detail-body:not(.product-detail-dsp) .product-consult-actions{grid-template-columns:minmax(0,1fr)}}

/* Keep the product model bar attached to the shrinking site header. */
.product-detail-body .model-tabs{border-top:1px solid #62675f;transition:top .35s}
@media(min-width:801px){.product-detail-body .header.scrolled~.model-tabs{top:72px}}

@media(max-width:800px){
 .product-detail-body .model-tabs{border-top:0;box-shadow:inset 0 1px #92998a}
 .product-detail-body .model-tabs>.family-switch{min-width:100%;border-bottom:1px solid #92998a}
}

/* Keep product categories visible beneath the global menu while scrolling. */
html:has(body.product-overview-body){overflow-x:clip}
body.product-overview-body{overflow-x:clip}
.product-overview-body .all-products-catalog .catalog-jump-nav{
  position: sticky;
  top: 88px;
  z-index: 18;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 22px);
  padding-block: 12px;
  border: 0;
  background: #e9e7e0;
  transition: top .35s;
}

.product-overview-body .catalog-jump-nav > a {
  display: flex;
  justify-content: space-between;
  min-width: 0;
  min-height: 60px;
  padding: 12px clamp(12px, 2vw, 24px);
  border: 1px solid #9da197;
  border-radius: 16px;
  background: #f8f7f2;
  color: #252b22;
  box-shadow: 0 5px 12px rgba(31, 36, 29, .08);
  letter-spacing: .03em;
  transition: background-color .2s, border-color .2s, transform .2s;
}

.product-overview-body .catalog-jump-nav > a:nth-child(2) {
  background: #eceee8;
}

.product-overview-body .catalog-jump-nav > a > span {
  color: #963817;
}

.product-overview-body .catalog-jump-nav > a:focus-visible {
  outline: 3px solid #963817;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .product-overview-body .catalog-jump-nav > a:hover {
    transform: translateY(-3px);
    border-color: #963817;
    background: #fff9f3;
  }
}

.product-overview-body .catalog-jump-nav > a[aria-current] {
  border-color: #394432;
  background: #394432;
  color: #fff;
}

.product-overview-body .catalog-jump-nav > a[aria-current] > span {
  color: #ffbb94;
}
.product-overview-body .header.scrolled~main .catalog-jump-nav{top:72px}
.product-overview-body .catalog-family{scroll-margin-top:170px}
@media(max-width:800px){
 .product-overview-body .all-products-catalog .catalog-jump-nav{top:72px;padding-block:8px;background:#f2f0e9}
 .product-overview-body .catalog-jump-nav > a {
   justify-content: center;
   min-height: 48px;
   padding: 8px 4px;
   letter-spacing: 0;
 }
 .product-overview-body .catalog-jump-nav > a > span { display: none; }
 .product-overview-body .catalog-family{scroll-margin-top:140px}
}
@media(prefers-reduced-motion:reduce){
 .product-overview-body .all-products-catalog .catalog-jump-nav{transition:none}
 .product-overview-body .catalog-jump-nav > a { transition: none; }
 .product-overview-body .catalog-jump-nav > a:hover { transform: none; }
}
.catalog-product-type{
  display:inline-block;
  color:#45473f;
  font-size:16px;
  font-weight:600;
  line-height:1.5;
  letter-spacing:normal;
}

.product-detail-body .product-hero-copy > .online-product-installation {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.product-detail-body .product-hero-copy > .online-product-installation a {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.j4-vehicle-guide { scroll-margin-top: 110px; }
.j4-vehicle-guide h2 { margin: 12px 0 16px; }
.j4-vehicle-guide .description,
.j4-vehicle-guide .lab-note,
.j4-vehicle-guide dd { color: #e0dcd4; line-height: 1.7; word-break: keep-all; }
.j4-vehicle-guide .jk12-map-step { margin-top: 28px; padding-top: 22px; border-top: 1px solid #ffffff35; }
.j4-vehicle-guide .jk12-map-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: start; margin-top: 18px; }
.j4-vehicle-guide .map { margin: 0; }
.j4-vehicle-guide .map img { display: block; width: 100%; height: auto; }
.j4-vehicle-guide .a6-channel-title { color: #f1b992; margin: 0 0 10px; font-size: 1rem; }
.j4-vehicle-guide .a6-channel-rows { margin: 0; }
.j4-vehicle-guide .a6-channel-rows > div { padding: 10px 0; border-top: 1px solid #ffffff35; }
.j4-vehicle-guide .a6-channel-rows dt { font-weight: 700; }
.j4-vehicle-guide .a6-channel-rows dt span { color: #f1b992; margin-right: .4em; }
.j4-vehicle-guide .a6-channel-rows dd { margin: 4px 0 0; }
.j4-vehicle-guide .configuration-note { margin-top: 24px; }
@media (max-width: 700px) {
  .j4-vehicle-guide .jk12-map-pair { grid-template-columns: minmax(0, 1fr); }
}
