/*
 * STRUCTURE AUDIT — help-center.php layouts across Projects
 * 1. Search hero + category card row + plain FAQ accordion wall (a36, a97 punchcard, many legacy stores) — BANNED cousin.
 * 2. Tab-only readout / domino / jukebox / solenoid / hangrail / louver / chime stacks (Appily 92–99+).
 * 3. Two-column topic index + reader pane (enterprise; a120 hc-shelf, a119 notes).
 * 4. Bento topic grid + chip tabs + stacked sections (a119 bento).
 * 5. Guide path: mast search · “What do you need?” tiles · inline reveal (a119, a120 hp-guide prior).
 * 6. TOP_SPOTLIGHT_SHELF — five open quick cards + shelf index|reader (a120 hc-*).
 * 7. Grower fieldguide trail — signal flags + single-column trail stops (a123 gf-*).
 * 8. LANTERN_FAQ_WALK stub (a124 vault prior — vertical lantern trail).
 *
 * CHOSEN — GLASS_GUIDED_LANE (hg-*) — Appily onehundredtwentyfour
 * Compact finder in mast · vertical lane tablist (chips on mobile) · full-width inline stage below — not L/R two-pane, not spotlight shelf, not accordion-only wall.
 */

.page-help.page-a124-glass-help {
  overflow-x: clip;
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, color-mix(in srgb, var(--mg-ice) 8%, transparent), transparent 55%),
    linear-gradient(180deg, var(--mg-void) 0%, var(--mg-deep) 48%, var(--mg-void) 100%);
}

.hg-guide {
  padding: var(--mg-space-5) 0 var(--mg-space-8);
  min-width: 0;
}

.hg-guide__wrap {
  max-width: 52rem;
  margin-inline: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--mg-space-5);
}

@media (min-width: 1024px) {
  .hg-guide__wrap {
    max-width: 58rem;
  }
}

.hg-guide__mast .ds-title {
  font-family: var(--mg-font-display);
}

.hg-guide__mast .ds-lede {
  max-width: 52ch;
}

.hg-guide__finder {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--mg-space-3);
  margin-top: var(--mg-space-4);
  padding: var(--mg-space-3);
  min-width: 0;
}

.hg-guide__finder-label {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.hg-guide__finder-title {
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mg-mute);
}

.hg-guide__finder .ds-input {
  min-height: 2.75rem;
  width: 100%;
}

.hg-guide__finder-clear {
  min-height: 2.75rem;
  flex-shrink: 0;
}

.hg-guide__empty {
  margin: 0;
  padding: var(--mg-space-4);
  text-align: center;
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-sm);
  color: var(--mg-mute);
  border: 1px dashed var(--mg-stroke);
  border-radius: var(--mg-radius-md);
}

.hg-guide__hits {
  display: grid;
  gap: var(--mg-space-3);
  min-width: 0;
}

.hg-search-hit {
  padding: var(--mg-space-4);
  min-width: 0;
}

.hg-search-hit .ds-title {
  font-family: var(--mg-font-display);
  font-size: var(--mg-text-lg);
  overflow-wrap: anywhere;
}

.hg-search-hit__body {
  margin-top: var(--mg-space-3);
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-sm);
  color: var(--mg-text-soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hg-search-hit__body a {
  color: var(--mg-ice);
}

.hg-guide__body {
  display: flex;
  flex-direction: column;
  gap: var(--mg-space-4);
  min-width: 0;
}

.hg-guide__chooser-head .ds-title {
  font-family: var(--mg-font-display);
  font-size: var(--mg-text-xl);
}

.hg-guide__chooser-lede {
  margin-top: var(--mg-space-2);
  max-width: 48ch;
}

/* Lanes — desktop: stacked choices; mobile: horizontal chips */
.hg-lanes {
  display: flex;
  flex-direction: column;
  gap: var(--mg-space-3);
  margin-top: var(--mg-space-4);
  min-width: 0;
}

@media (max-width: 1023px) {
  .hg-lanes {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: var(--mg-space-2);
    padding-bottom: var(--mg-space-1);
  }
}

.hg-lane {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--mg-space-3);
  align-items: start;
  width: 100%;
  min-height: 2.75rem;
  padding: var(--mg-space-3) var(--mg-space-4);
  border: 1px solid var(--mg-stroke);
  border-radius: var(--mg-radius-lg);
  background: var(--mg-panel);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--mg-snow);
  transition: border-color var(--mg-dur) var(--mg-ease), box-shadow var(--mg-dur) var(--mg-ease);
}

@media (max-width: 1023px) {
  .hg-lane {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: min(18rem, 82vw);
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .hg-lane__count {
    grid-column: 1 / -1;
  }

  .hg-lane__blurb {
    display: none;
  }
}

.hg-lane__stage {
  font-family: var(--mg-font-display);
  font-size: var(--mg-text-lg);
  color: var(--mg-ice);
  line-height: 1;
}

.hg-lane__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hg-lane__title {
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-sm);
  font-weight: 700;
  color: var(--mg-snow);
  overflow-wrap: anywhere;
}

.hg-lane__blurb {
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-xs);
  color: var(--mg-mute);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hg-lane__count {
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-xs);
  font-weight: 600;
  color: var(--mg-mute);
  white-space: nowrap;
}

.hg-lane[aria-selected="true"],
.hg-lane.is-active {
  border-color: var(--mg-ice);
  box-shadow: var(--mg-shadow-glow);
}

.hg-lane.is-dim {
  opacity: 0.45;
}

.hg-lane:focus-visible {
  outline: 2px solid var(--mg-ice);
  outline-offset: 2px;
}

.hg-guide__stage {
  min-width: 0;
}

.hg-guide__stage-bar {
  min-height: 2.75rem;
  margin-bottom: var(--mg-space-2);
}

.hg-guide__back {
  min-height: 2.75rem;
}

.hg-lane-panel {
  padding: var(--mg-space-4);
  background: var(--mg-panel);
  border: 1px solid var(--mg-stroke);
  border-radius: var(--mg-radius-xl);
  min-width: 0;
}

.hg-lane-panel[hidden] {
  display: none !important;
}

.hg-lane-panel__head {
  margin-bottom: var(--mg-space-4);
  padding-bottom: var(--mg-space-3);
  border-bottom: 1px solid var(--mg-stroke);
}

.hg-lane-panel__head .ds-title {
  font-family: var(--mg-font-display);
  font-size: var(--mg-text-xl);
}

.hg-answers {
  display: flex;
  flex-direction: column;
  gap: var(--mg-space-2);
  min-width: 0;
}

.hg-answer {
  border: 1px solid var(--mg-stroke);
  border-radius: var(--mg-radius-md);
  background: color-mix(in srgb, var(--mg-deep) 30%, transparent);
  min-width: 0;
}

.hg-answer[hidden] {
  display: none !important;
}

.hg-answer__toggle {
  display: flex;
  gap: var(--mg-space-3);
  align-items: flex-start;
  width: 100%;
  min-height: 2.75rem;
  padding: var(--mg-space-3);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--mg-snow);
}

.hg-answer__mark {
  flex-shrink: 0;
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-xs);
  font-weight: 700;
  color: var(--mg-ice);
  padding-top: 0.15rem;
}

.hg-answer__q {
  flex: 1 1 auto;
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-sm);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hg-answer__body {
  padding: 0 var(--mg-space-3) var(--mg-space-3);
  margin-left: calc(var(--mg-space-3) + 2.5rem);
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-sm);
  color: var(--mg-text-soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hg-answer__body a {
  color: var(--mg-ice);
}

@media (max-width: 479px) {
  .hg-answer__body {
    margin-left: 0;
    padding-top: 0;
  }
}

/* Mobile stacked view */
@media (max-width: 1023px) {
  .hg-guide__body.hg-guide--in-lane .hg-guide__chooser {
    display: none;
  }

  .hg-guide__body.hg-guide--idle .hg-guide__stage {
    display: none;
  }

  .hg-guide__body.hg-guide--idle .hg-guide__back {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hg-guide__back {
    display: none !important;
  }
}

/* CTA */
.hg-guide__cta {
  display: grid;
  gap: var(--mg-space-4);
  padding: var(--mg-space-4);
  min-width: 0;
}

@media (min-width: 768px) {
  .hg-guide__cta {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}

.hg-guide__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mg-space-2);
  margin-top: var(--mg-space-3);
}

.hg-guide__cta-actions .ds-btn {
  min-height: 2.75rem;
}

.hg-guide__cta-meta {
  margin: var(--mg-space-2) 0 0;
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-sm);
  color: var(--mg-mute);
}

.hg-guide__cta-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mg-space-2) var(--mg-space-4);
  margin-top: var(--mg-space-2);
  font-family: var(--mg-font-ui);
  font-size: var(--mg-text-sm);
}

.hg-guide__cta-nav a {
  color: var(--mg-ice);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .hg-lane {
    transition: none;
  }
}
