/** Help Section overlay, Template 10.

    Thin overlay on main.css + rev2-4.css + rev2-6.css + category.css.
    Bands, breadcrumb, masthead, section heads and the help strip are
    reused. This file covers the support blocks and the Ask box. */

.help-page main {
  background: var(--page-bg);
}

/* ---------------------------------------------------------------
   Option picker

   Mock only. Comes off when one of the two layouts is chosen.
--------------------------------------------------------------- */

.help-pick {
  padding: var(--sp3) 0;
  background: var(--header-bg);
  color: var(--text-white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.help-pick__in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp2) var(--sp5);
}

.help-pick__label {
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.help-pick__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp4);
  margin: 0;
  font-size: var(--fs-small);
}

.help-pick__links a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.help-pick__links a:hover,
.help-pick__links a:focus-visible {
  color: var(--orange);
}

.help-pick__links a[aria-current="page"] {
  color: var(--text-white);
  font-weight: 700;
  border-bottom: 2px solid var(--orange);
}

/* ---------------------------------------------------------------
   Shared bits
--------------------------------------------------------------- */

.help-kicker {
  margin: 0 0 var(--sp2);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}

.help-sub {
  margin: var(--sp3) 0 0;
  max-width: 52ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.help-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp7) var(--sp8);
  align-items: start;
}

@media (max-width: 900px) {
  .help-split { grid-template-columns: minmax(0, 1fr); gap: var(--sp5); }
}

.help-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp3);
}

/* Open now / closed. Text is filled in by help.js. */

.help-status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp2);
  margin: 0 0 var(--sp4);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.help-status__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b5b5b5;
}

.help-status.is-open .help-status__dot {
  background: #1fa855;
  box-shadow: 0 0 0 4px rgba(31, 168, 85, .18);
}

.help-status.is-open .help-status__text strong {
  color: #1a8a47;
}

/* ---------------------------------------------------------------
   B. Search masthead
--------------------------------------------------------------- */

.help-find .cat-mast__title {
  color: var(--text-white);
}

.help-search {
  display: flex;
  align-items: center;
  gap: var(--sp3);
  max-width: 760px;
  margin-top: var(--sp6);
  padding: var(--sp2) var(--sp2) var(--sp2) var(--sp5);
  background: var(--white);
  border: 2px solid transparent;
  transition: border-color .42s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-search:focus-within {
  border-color: var(--orange);
}

.help-search__icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}

.help-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: none;
  border: 0;
  outline: none;
}

.help-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.help-search__go {
  flex: none;
}

@media (max-width: 560px) {
  .help-search { flex-wrap: wrap; padding: var(--sp2) var(--sp2) var(--sp2) var(--sp4); }
  .help-search__input { flex-basis: calc(100% - 40px); font-size: var(--fs-body); }
  .help-search__go { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------
   A. Masthead with search and the desk card
--------------------------------------------------------------- */

/* One warm surface: the mascot stands on its bottom edge on the left,
   the heading, question box and contact line sit on the right. No inner
   borders, so it reads as one piece rather than a stack of boxes. */
.help-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 45%);
  margin-top: var(--sp5);
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 70% at 78% 55%, rgba(255, 114, 0, .22), rgba(255, 114, 0, 0) 70%),
    linear-gradient(180deg, #fff9f4 0%, #fdeee2 100%);
}

/* Transparent video (HEVC with alpha for Safari, VP9 with alpha for the
   rest). Sized off the panel height so his head sits near the top; the
   far arm runs off the right edge. */
.help-hero__bot {
  position: relative;
  order: 2;
  min-height: 420px;
  container-type: size;
}

.help-hero__bot video {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: min(130cqw, 164cqh);
  height: auto;
  max-width: none;
}

.help-hero__main {
  padding: var(--sp7) var(--sp5) var(--sp6) var(--sp7);
}

.help-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp2);
  margin: 0 0 var(--sp3);
  font-size: var(--fs-utility);
  font-weight: 700;
  color: var(--orange);
}

.help-hero__eyebrow-icon {
  width: 20px;
  height: 20px;
}

.help-hero__title {
  margin: 0 0 var(--sp3);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.help-hero__lede {
  margin: 0 0 var(--sp5);
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero-ask {
  background: var(--white);
  border: 1px solid #ecd9c8;
  box-shadow: 0 10px 30px rgba(120, 60, 0, .08);
  transition: border-color .3s, box-shadow .3s;
}

.hero-ask:focus-within {
  border-color: var(--orange);
  box-shadow: 0 10px 30px rgba(255, 114, 0, .14);
}

.hero-ask__q {
  display: block;
  width: 100%;
  min-height: 104px;
  padding: var(--sp4) var(--sp5);
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: none;
  border: 0;
  resize: none;
}

.hero-ask__q:focus,
.hero-ask__field input:focus {
  outline: none;
}

.hero-ask__q:focus::placeholder,
.hero-ask__field input:focus::placeholder,
.help-search__input:focus::placeholder {
  color: transparent;
}

.hero-ask__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp4) var(--sp2);
  padding: var(--sp4) var(--sp5) var(--sp5);
  border-top: 1px solid #f1e6dc;
}

.hero-ask__field,
.hero-ask__attach {
  display: inline-flex;
  align-items: center;
  gap: var(--sp2);
  height: 40px;
  padding: 0 var(--sp3);
  font-size: var(--fs-view-all);
  color: var(--text);
  background: var(--page-bg);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color .3s, background-color .3s;
}

.hero-ask__field:focus-within {
  background: var(--white);
  border-color: var(--orange);
}

.hero-ask__field--vehicle {
  flex: 1 1 220px;
}

.hero-ask__field:not(.hero-ask__field--vehicle) {
  flex: 0 1 190px;
}

.hero-ask__field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  font: inherit;
  color: var(--text);
  background: none;
  border: 0;
}

.hero-ask__field-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.hero-ask__attach {
  font-weight: 600;
  cursor: pointer;
}

.hero-ask__attach:hover {
  background: #e9e9e9;
}

.hero-ask__attach:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.hero-ask__go[aria-busy="true"] {
  opacity: .7;
  pointer-events: none;
}

.help-hero__note {
  margin: var(--sp3) 0 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .help-hero { grid-template-columns: minmax(0, 1fr); }
  .help-hero__bot { order: 0; min-height: 0; aspect-ratio: 1000 / 640; }
  .help-hero__bot video { bottom: 0; width: 100%; height: auto; }
  .help-hero__main { padding: var(--sp6) var(--sp5); }
}

@media (max-width: 560px) {
  .help-hero__lede, .hero-ask__q { font-size: var(--fs-body); }
  .hero-ask__bar { padding: var(--sp3); }
  .hero-ask__field, .hero-ask__field:not(.hero-ask__field--vehicle) { flex: 1 1 100%; }
  .hero-ask__go { flex: 1 1 100%; margin: 0; }
}


.help-desk {
  padding: var(--sp5);
  background: var(--page-bg);
  border: 1px solid var(--nav-border);
}

.help-desk__title {
  margin: 0 0 var(--sp4);
  font-size: var(--fs-cta-title);
  font-weight: 700;
  line-height: 1.2;
}

/* Contact channels, shared by A's desk card and B's contact band */

.help-channels {
  display: grid;
  gap: var(--sp2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-split .help-channels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp3);
}

@media (max-width: 560px) {
  .help-split .help-channels { grid-template-columns: minmax(0, 1fr); }
}

.help-channel {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--sp3);
  align-items: center;
  height: 100%;
  padding: var(--sp3) var(--sp4);
  color: var(--text);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--nav-border);
  transition: border-color .42s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-channel:hover,
.help-channel:focus-visible {
  border-color: var(--text);
}

.help-channel__icon {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: var(--text);
  background: var(--page-bg);
  border-radius: 50%;
}

.help-channel--wa .help-channel__icon {
  color: var(--white);
  background: #47c43e;
}

.help-channel__label {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
}

.help-channel__value {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ---------------------------------------------------------------
   Library routes
--------------------------------------------------------------- */

.help-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .help-routes { grid-template-columns: minmax(0, 1fr); }
}

.help-route {
  position: relative;
  display: grid;
  gap: var(--sp2);
  height: 100%;
  padding: var(--sp5);
  padding-right: var(--sp7);
  color: var(--text);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--nav-border);
  transition: border-color .42s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-route:hover,
.help-route:focus-visible {
  border-color: var(--text);
}

.help-route__icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--sp2);
  color: var(--orange);
}

.help-route__name {
  font-size: var(--fs-cta-title);
  font-weight: 700;
  line-height: 1.2;
}

.help-route__text {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-muted);
}

.help-route__arrow {
  position: absolute;
  right: var(--sp5);
  bottom: var(--sp5);
  width: 20px;
  height: 20px;
  transition: transform .42s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-route:hover .help-route__arrow,
.help-route:focus-visible .help-route__arrow {
  transform: translateX(4px);
  color: var(--orange);
}

.help-routes--compact .help-route {
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: var(--sp3);
  padding: var(--sp4) var(--sp7) var(--sp4) var(--sp4);
}

.help-routes--compact .help-route__icon {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  margin: 0;
}

.help-routes--compact .help-route__name {
  font-size: var(--fs-body);
}

.help-routes--compact .help-route__text {
  font-size: var(--fs-small);
}

.help-routes--compact .help-route__arrow {
  top: 50%;
  bottom: auto;
  margin-top: -10px;
}

/* ---------------------------------------------------------------
   Troubleshooting steps
--------------------------------------------------------------- */

.help-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--nav-border);
}

.help-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--sp4);
  padding: var(--sp5) 0;
  border-bottom: 1px solid var(--nav-border);
}

.help-step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
}

.help-step__body {
  display: grid;
  gap: var(--sp1);
  align-content: center;
}

.help-step__title {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.35;
}

.help-step__text {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* B. Steps become a checklist */

.help-steps--ticks .help-step {
  display: block;
  padding: 0;
}

.help-step__tick {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--sp4);
  padding: var(--sp5) 0;
  cursor: pointer;
}

.help-step__tick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.help-step__tick .help-step__num {
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--text);
  transition: background .42s cubic-bezier(0.16, 1, 0.3, 1), color .42s cubic-bezier(0.16, 1, 0.3, 1), border-color .42s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-step__tick input:checked + .help-step__num {
  color: transparent;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 22px no-repeat;
  border-color: var(--orange);
}

.help-step__tick input:checked ~ .help-step__body .help-step__title {
  text-decoration: line-through;
  text-decoration-color: rgba(17, 17, 17, .35);
}

.help-step__tick input:focus-visible + .help-step__num {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.help-escalate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp4);
  margin-top: var(--sp5);
  padding: var(--sp5);
  background: var(--page-bg);
}

.help-escalate[hidden] {
  display: none;
}

.help-escalate p {
  flex: 1 1 280px;
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
}

/* ---------------------------------------------------------------
   Manufacturer partners
--------------------------------------------------------------- */

.help-partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1000px) {
  .help-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .help-partners { grid-template-columns: minmax(0, 1fr); }
}

.help-partner {
  padding: var(--sp5);
  background: var(--white);
  border: 1px solid var(--nav-border);
}

.help-partner__name {
  display: flex;
  align-items: center;
  height: 48px;
  margin: 0 0 var(--sp4);
  padding-bottom: var(--sp4);
  font-size: var(--fs-cta-title);
  font-weight: 700;
  line-height: 1.2;
  border-bottom: 1px solid var(--nav-border);
  box-sizing: content-box;
}

.help-partner__logo {
  display: block;
  width: auto;
  max-width: 170px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.help-partner__list {
  display: grid;
  gap: var(--sp2);
  margin: 0;
}

.help-partner__list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--sp3);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.help-partner__list dt {
  color: var(--text-muted);
}

.help-partner__list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.help-partner__list a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
}

.help-partner__list a:hover,
.help-partner__list a:focus-visible {
  color: var(--orange);
}

.help-whose {
  margin: var(--sp6) 0 0;
  max-width: 80ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.help-whose strong {
  color: var(--text);
}

/* AI sparkles. Each star breathes on its own beat, so the badge never
   quite repeats. They speed up while the assistant is searching. */

.sparkles__star {
  transform-box: fill-box;
  transform-origin: center;
  animation: ask-twinkle 2.2s ease-in-out infinite;
}

.sparkles__star--1 { animation-name: ask-breathe; animation-duration: 3.2s; }
.sparkles__star--3 { animation-delay: -1.1s; animation-duration: 2.8s; }

.is-thinking .sparkles__star--1 { animation-duration: 1.2s; }
.is-thinking .sparkles__star--2 { animation-duration: .8s; }
.is-thinking .sparkles__star--3 { animation-duration: 1s; }

@keyframes ask-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(.88) rotate(12deg); }
}

@keyframes ask-twinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.4) rotate(45deg); opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  .sparkles__star { animation: none; }
}

.help-mast .ask-answer {
  border: 1px solid var(--nav-border);
  border-top: 3px solid var(--orange);
}

/* Answer panel */

.ask-answer {
  margin-top: var(--sp6);
  padding: var(--sp6);
  color: var(--text);
  background: var(--white);
  border-top: 3px solid var(--orange);
}

.ask-answer[hidden] {
  display: none;
}

.ask-answer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp2) var(--sp4);
  margin-bottom: var(--sp4);
}

.ask-answer__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp2);
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}

.ask-answer__spark {
  width: 20px;
  height: 20px;
}

.ask-answer__demo {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.ask-answer__body {
  max-width: 76ch;
  font-size: var(--fs-body);
  line-height: 1.65;
}

.ask-answer__body p {
  margin: 0 0 var(--sp3);
}

.ask-answer__body ol {
  margin: 0 0 var(--sp3);
  padding-left: 1.25em;
}

.ask-answer__body li + li {
  margin-top: var(--sp2);
}

.ask-answer__sources {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp2);
  margin-top: var(--sp4);
}

.ask-answer__sources:empty {
  display: none;
}

.ask-source {
  display: inline-flex;
  align-items: center;
  gap: var(--sp2);
  padding: var(--sp2) var(--sp3);
  font-size: var(--fs-small);
  color: var(--text);
  text-decoration: none;
  background: var(--page-bg);
  border: 1px solid var(--nav-border);
}

.ask-source:hover,
.ask-source:focus-visible {
  border-color: var(--text);
}

.ask-source__n {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--white);
  background: var(--text);
  border-radius: 50%;
}

.ask-answer__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp3) var(--sp5);
  margin-top: var(--sp5);
  padding-top: var(--sp5);
  border-top: 1px solid var(--nav-border);
}

.ask-answer__q {
  margin: 0;
  font-weight: 700;
}

.ask-answer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp3);
}

.ask-answer__actions .btn-white {
  border: 1px solid var(--nav-border);
}

.ask-answer__thanks {
  flex-basis: 100%;
  margin: 0;
  color: var(--text-muted);
}

.ask-answer.is-thinking .ask-answer__foot,
.ask-answer.is-thinking .ask-answer__sources {
  display: none;
}
