/* Common Issues section above product matrix */
.common-issues {
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
}

/* Same typography as Product Support; spacing below heading before the list (beats .product-support__title margin). */
.common-issues .common-issues__title {
  margin-bottom: 0.65rem;
}

.common-issues__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.common-issues__link {
  color: var(--color-brand-primary, #1d7cb6);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.common-issues__link:hover {
  color: var(--color-brand-primary-hover, #15608f);
}

/* Product Support: tabs (make) + sidebar (kit type) + grid (product cards) */
.product-support {
  margin-top: 0.65rem;
  margin-bottom: 1.75rem;
}

/* Tighter stack: Common Issues → Product Support; slightly less bottom pad before footer. */
.common-issues + #product-support-root.lt-py-5 {
  padding-top: 0.65rem;
  padding-bottom: 1.25rem;
}

.product-support__title {
  font-size: var(--font-size-h2, 1.5rem);
  margin-bottom: 0.5rem;
}

.product-support__subtitle {
  color: var(--color-text-secondary, #555);
  margin-bottom: 1.5rem;
}

.product-support__subtitle a {
  color: var(--color-brand-primary, #1d7cb6);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-support__subtitle a:hover {
  color: var(--color-brand-primary-hover, #15608f);
}

/* ≤767px: wizard only. ≥768px: photo matrix only. */
.product-support-mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .product-support-desktop-only {
    display: none !important;
  }

  .product-support-mobile-only {
    display: block;
  }

  /* Wizard step 3: clear break between live kits and coming soon (matches desktop label). */
  .product-support-mobile-list__soon-heading {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.12));
  }

  /* COMING SOON tiles: readable in small square cells. */
  .product-support-mobile-list__item .product-support-card__placeholder--coming-soon {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
    padding: 0 0.4rem;
    text-align: center;
    box-sizing: border-box;
  }

  /* Tap feedback + no double-tap zoom delay on kit cards. */
  .product-support-mobile-list__item .product-support-card[href] {
    -webkit-tap-highlight-color: rgba(29, 124, 182, 0.15);
    touch-action: manipulation;
    cursor: pointer;
  }

  .product-support-mobile-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(29, 124, 182, 0.12);
  }
}

/* Mobile wizard: make → kit type → product cards (2-col grid) */
.product-support-mobile-panel {
  max-width: 100%;
  min-width: 0;
}

.product-support-mobile-lead {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-text-primary, #111);
}

.product-support-mobile-lead strong {
  font-weight: 700;
}

.product-support-mobile-back {
  display: inline-block;
  width: auto;
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-brand-primary, #1d7cb6);
  background: rgba(29, 124, 182, 0.08);
  border: 1px solid rgba(29, 124, 182, 0.35);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.product-support-mobile-back:hover {
  background: rgba(29, 124, 182, 0.14);
}

.product-support-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.product-support-mobile-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-text-primary, #111);
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.16));
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.product-support-mobile-btn:hover {
  border-color: var(--color-brand-primary, #1d7cb6);
  background: rgba(29, 124, 182, 0.06);
}

.product-support-mobile-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.product-support-mobile-list__item {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.product-support-mobile-list__item .product-support-card {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
}

.product-support-mobile-list__item .product-support-card__name {
  min-height: 100%;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.4rem 0.4rem 0.5rem;
}

/* Square tile: fill frame (no letterboxing / blue edges from contain). */
.product-support-mobile-list__item .product-support-card__img {
  object-fit: cover;
  object-position: center center;
}

.product-support-mobile-list__item .product-support-card__img--zoom-out {
  width: 138%;
  height: 138%;
  max-width: none;
  max-height: none;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-position: center 38%;
}

.product-support-mobile-list__soon-heading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.5rem 0 0.1rem;
  list-style: none;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary, #555);
}

.product-support-mobile-list__item .product-support-card--upgrade .product-support-card__img {
  object-position: center 45%;
}

.product-support-mobile-list__empty {
  grid-column: 1 / -1;
  padding: 0.75rem;
  color: var(--color-text-secondary, #555);
  font-size: 0.9375rem;
}

/* Make tabs (Lexus, Subaru, Toyota) slightly right of center, no gray bar; blue underline on active only */
.product-support-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  padding-left: 15%;
}

.product-support-tab {
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: inherit;
  color: var(--color-text-secondary, #555);
  margin-bottom: 0;
}

.product-support-tab:hover {
  color: var(--color-text-primary, #111);
}

.product-support-tab--active {
  color: var(--color-brand-primary, #1d7cb6);
  font-weight: 600;
  border-bottom-color: var(--color-brand-primary, #1d7cb6);
}

.product-support-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.product-support-sidebar {
  flex-shrink: 0;
  width: 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-support-sidebar-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-size: inherit;
  color: var(--color-text-secondary, #555);
}

.product-support-sidebar-item:hover {
  color: var(--color-text-primary, #111);
}

.product-support-sidebar-item--active {
  color: var(--color-brand-primary, #1d7cb6);
  border-left-color: var(--color-brand-primary, #1d7cb6);
  font-weight: 600;
}

.product-support-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.product-support-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-support-grid-coming-soon-label {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary, #555);
}

.product-support-grid-row--coming-soon {
  padding-top: 0.15rem;
}

/* One solid blue rectangle; title overlays the photo */
.product-support-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(29, 124, 182, 0.25);
  background: #7eb8dc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s, filter 0.2s;
  min-height: 128px;
  min-width: 0;
  max-width: 100%;
}

.product-support-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.28) 26%,
    rgba(0, 0, 0, 0.06) 52%,
    rgba(0, 0, 0, 0) 75%
  );
  pointer-events: none;
}

.product-support-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}

/* Coming soon: not a link; no navigation or hover lift */
.product-support-card--no-link {
  cursor: default;
  pointer-events: none;
}

.product-support-card--no-link:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  filter: none;
}

.product-support-card__img--dimmed {
  opacity: 0.55;
  filter: grayscale(0.25);
}

.product-support-card__img,
.product-support-card__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  background: #7eb8dc;
  z-index: 0;
}

.product-support-card--upgrade .product-support-card__img {
  object-position: center 58%;
}

/* Wider field of view than default cover crop (Subaru Forester/Crosstrek conversion — more bezel/body). */
.product-support-card__img--zoom-out {
  width: 138%;
  height: 138%;
  max-width: none;
  max-height: none;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-position: center 38%;
}

.product-support-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.product-support-card__placeholder--coming-soon {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background:
    linear-gradient(135deg, rgba(29, 124, 182, 0.9), rgba(26, 95, 146, 0.95)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px
    );
}

.product-support-card__name {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 128px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  text-align: center;
  background: transparent;
}

.product-support-card__name-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-support-empty {
  color: var(--color-text-secondary, #555);
  grid-column: 1 / -1;
}

/* Hide Manuals and Submit a request block for now */
#product-support-root ~ #main-content #custom-blocks {
  display: none !important;
}

/* Homepage bottom: ticket form + contact — same rhythm as Product Support / Common issues */
.home-support-footer {
  margin-top: 1rem;
  margin-bottom: 0;
  padding-bottom: 3rem;
}

.home-support-block .product-support__title {
  margin-bottom: 0.5rem;
}

.home-support-block .product-support__subtitle {
  max-width: 42rem;
}

/* Divider above “Submit a ticket” (matches line between ticket / contact sections) */
.home-support-block--with-top-rule {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(29, 124, 182, 0.15);
}

.home-support-block--after {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(29, 124, 182, 0.15);
}

/* Form shell matches product card chrome (border / radius / shadow), not gray panels */
.home-new-request-form-wrap {
  margin-top: 0.25rem;
  margin-bottom: 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(29, 124, 182, 0.25);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: var(--color-bg, #fff);
}

.home-new-request-form-wrap .home-new-request-form {
  font-size: inherit;
  line-height: 1.45;
  color: var(--color-text-primary, #111);
}

.home-new-request-form {
  min-height: 4rem;
}

.home-new-request-form__loading,
.home-new-request-form__error {
  margin: 0;
  padding: 0.5rem 0;
  color: var(--color-text-secondary, #555);
}

.home-new-request-form__error a {
  color: var(--color-brand-primary, #1d7cb6);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-new-request-form__error a:hover {
  color: var(--color-brand-primary-hover, #15608f);
}

/* Contact customer support: labeled rows with icons */
.home-contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 36rem;
}

.home-contact-details__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.home-contact-details__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  color: var(--color-brand-primary, #1d7cb6);
  background: rgba(29, 124, 182, 0.1);
  border: 1px solid rgba(29, 124, 182, 0.22);
}

.home-contact-details__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding-top: 0.15rem;
}

.home-contact-details__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary, #555);
}

.home-contact-details__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-brand-primary, #1d7cb6);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.home-contact-details__value:hover {
  color: var(--color-brand-primary-hover, #15608f);
}

.home-contact-details__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text-primary, #111);
}

.home-contact-details__text-line {
  display: block;
}

/* Community forum CTA (below contact support) */
.home-community-forum__cta {
  margin: 1rem 0 0;
}

.home-community-forum__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 767px) {
  .product-support {
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }

  .home-new-request-form-wrap {
    padding: 1rem 1rem;
  }

  .home-support-block--after {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .home-support-block--with-top-rule {
    padding-top: 2rem;
  }
}

/* Mobile / narrow tablet: no hamburger, centered logo, space before hero headline */
@media (max-width: 991.98px) {
  /* Breathing room above logo (smaller than hero padding below headline) */
  header[data-header].lt-header {
    padding-top: 1.5rem;
    box-sizing: border-box;
  }

  header[data-header] > div.lt-d-flex.lt-justify-content-between.lt-w-100 {
    justify-content: center;
  }

  header[data-header] .lt-menu-toggle {
    display: none !important;
  }

  header[data-header] > div.lt-d-flex > div.lt-d-flex.lt-align-items-center:first-child {
    justify-content: center;
    max-width: min(92vw, 100% - 1rem);
    flex-shrink: 0;
  }

  /* Keep logo natural aspect ratio (avoid vertical stretch from flex) */
  header[data-header] > div.lt-d-flex > div.lt-d-flex.lt-align-items-center:first-child a {
    display: flex;
    align-items: center;
    line-height: 0;
  }

  header[data-header] .lt-header__logo {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: var(--header-logo-height);
    object-fit: contain;
    object-position: center;
  }

  /* Stop the off-canvas nav from consuming flex space so the logo can stay centered */
  header[data-header] .lt-header__controls {
    flex: 0 0 0;
    min-width: 0;
  }

  /* Clear gap between header band and “Ask a Question…” (home AI hero) */
  .lt-hero-unit .lt-container-inner[data-search-box] .lt-hero-unit__content.lt-flow {
    padding-top: 6.25rem;
  }
}

/* Desktop: extra vertical space above “Ask a Question…” (home AI hero) */
@media (min-width: 992px) {
  .lt-hero-unit .lt-container-inner[data-search-box] .lt-hero-unit__content.lt-flow {
    padding-top: 6.5rem;
  }

  /* Hide “Back to website” (custom header links) and “Submit a request” in top bar */
  header[data-header] .lt-header__controls a.lt-header__link {
    display: none !important;
  }

  header[data-header] .lt-header__controls a.lt-btn.lt-btn--header[href*="requests/new"] {
    display: none !important;
  }
}
