/*
 * HELP STRUCTURE AUDIT (Appily + legacy — layout families)
 * — Search hero + category card row + vertical FAQ accordion (generic / banned baseline).
 * — A122 prior SPOTLIGHT_TWO_PANE: five open spotlight cards + topic index + reader panes + in-pane accordions (hc-hub / hc-shelf).
 * — A97 Punchcard: ticket punch topics + stacked answer cards.
 * — A100 Fanfold: tractor-feed search + perforated stubs + green-bar fanfold panels.
 * — A115 / lever desks: tab bank + single plate reader.
 * — Hangrail / Louver slat bank / Solenoid board / Chime rail / Signal cascade / Atlas meter / Wire manual discs.
 * — Toolbox crib drawers · jukebox lanes · domino run · mosaic bento category grids.
 * — Two-pane topic list + answer column (help reader) · guided path wizards with step rail only.
 *
 * THIS PAGE: GUIDED_CHOICE_ANSWER_WELL — compact mast search, “what do you need?” choice lanes (2×2 grid / scroll chips),
 * then question pick chips + one shared answer well per lane (not accordion stack, not side-by-side reader, not spotlight row).
 */

.page-help,
.page-a122-seedlight.page-help {
  overflow-x: clip;
  background: linear-gradient(
    180deg,
    var(--sg-paper) 0%,
    color-mix(in srgb, var(--sg-mist) 26%, var(--sg-bone)) 55%,
    var(--sg-bone) 100%
  );
}

.hg-desk {
  padding: var(--sg-space-5) 0 var(--sg-space-10);
  min-width: 0;
}

.hg-desk__wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-5);
  min-width: 0;
  max-width: 44rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hg-desk__wrap {
    max-width: 52rem;
  }
}

@media (min-width: 1024px) {
  .hg-desk__wrap {
    max-width: 58rem;
  }
}

@media (min-width: 1440px) {
  .hg-desk__wrap {
    max-width: 62rem;
  }
}

.hg-desk__mast {
  max-width: 48ch;
  min-width: 0;
}

.hg-desk__mast .ds-title {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
}

.hg-desk__mast .ds-lede {
  max-width: 52ch;
}

.hg-desk__search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sg-space-3);
  padding: var(--sg-space-3) var(--sg-space-4);
  margin-top: var(--sg-space-4);
  max-width: 36rem;
}

.hg-desk__search-label {
  flex: 1 1 12rem;
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.hg-desk__search-title {
  font-size: var(--sg-text-xs);
  font-weight: 600;
  color: var(--sg-ink-muted);
}

.hg-desk__search-label .ds-input {
  width: 100%;
  min-height: 2.75rem;
}

.hg-desk__search-clear {
  min-height: 2.75rem;
  flex: 0 0 auto;
}

.hg-desk__browse {
  min-width: 0;
}

.hg-desk__guide {
  min-width: 0;
}

.hg-desk__guide .ds-title {
  font-size: var(--sg-text-xl);
  margin: 0;
}

.hg-desk__guide-lede {
  margin: var(--sg-space-2) 0 var(--sg-space-4);
  font-size: var(--sg-text-sm);
  color: var(--sg-ink-muted);
  max-width: 52ch;
}

.hg-desk__choice-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sg-space-3);
  min-width: 0;
}

@media (min-width: 600px) {
  .hg-desk__choice-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .hg-desk__choice-rail {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: var(--sg-space-2);
    margin-inline: calc(-1 * var(--sg-space-4));
    padding: 0 var(--sg-space-4) var(--sg-space-2);
  }
}

.hg-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sg-space-3);
  align-items: start;
  min-height: 2.75rem;
  padding: var(--sg-space-3) var(--sg-space-4);
  border-radius: var(--sg-radius-lg);
  border: 1px solid var(--sg-line);
  background: var(--sg-glass);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-width: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

@media (max-width: 1023px) {
  .hg-choice {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: min(16rem, 78vw);
  }
}

.hg-choice__stage {
  font-size: var(--sg-text-xs);
  font-weight: 800;
  color: var(--sg-sage);
  letter-spacing: 0.06em;
}

.hg-choice__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.hg-choice__title {
  font-size: var(--sg-text-sm);
  font-weight: 700;
  line-height: 1.3;
}

.hg-choice__blurb {
  font-size: var(--sg-text-xs);
  color: var(--sg-ink-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hg-choice:hover {
  border-color: var(--sg-sage);
}

.hg-choice.is-active {
  border-color: var(--sg-sage);
  background: color-mix(in srgb, var(--sg-sage) 8%, var(--sg-paper));
  box-shadow: inset 0 -3px 0 var(--sg-clay);
}

.hg-choice.is-dim {
  opacity: 0.45;
}

.hg-choice:focus-visible {
  outline: 2px solid var(--sg-sage);
  outline-offset: 2px;
}

.hg-desk__placeholder {
  margin: var(--sg-space-4) 0 0;
  padding: var(--sg-space-4);
  font-size: var(--sg-text-sm);
  font-weight: 600;
  color: var(--sg-ink-muted);
  text-align: center;
}

.hg-desk--in-topic .hg-desk__placeholder {
  display: none;
}

.hg-desk__lanes {
  margin-top: var(--sg-space-4);
  min-width: 0;
}

.hg-desk--idle .hg-desk__lanes {
  display: none;
}

@media (min-width: 1024px) {
  .hg-desk--idle .hg-desk__lanes {
    display: block;
  }

  .hg-desk__placeholder {
    display: none;
  }
}

.hg-desk__lane-toolbar {
  margin-bottom: var(--sg-space-3);
}

.hg-desk__back {
  min-height: 2.75rem;
}

.hg-lane[hidden] {
  display: none !important;
}

.hg-lane__head {
  margin-bottom: var(--sg-space-4);
  padding-bottom: var(--sg-space-3);
  border-bottom: 1px solid var(--sg-line);
}

.hg-lane__head .ds-title {
  font-size: var(--sg-text-lg);
  margin: 0.15rem 0 0;
}

.hg-lane__blurb {
  margin-top: var(--sg-space-2);
  font-size: var(--sg-text-sm);
}

.hg-lane__body {
  display: grid;
  gap: var(--sg-space-4);
  min-width: 0;
}

@media (min-width: 1024px) {
  .hg-lane__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    gap: var(--sg-space-5);
  }
}

.hg-lane__picks {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-2);
  min-width: 0;
}

@media (max-width: 1023px) {
  .hg-lane__picks {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin-inline: calc(-1 * var(--sg-space-4));
    padding: 0 var(--sg-space-4) var(--sg-space-2);
  }
}

.hg-q-pick {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sg-space-2);
  align-items: start;
  min-height: 2.75rem;
  padding: var(--sg-space-3);
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-line);
  background: color-mix(in srgb, var(--sg-paper) 90%, transparent);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-width: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

@media (max-width: 1023px) {
  .hg-q-pick {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: min(14rem, 72vw);
  }
}

.hg-q-pick__mark {
  font-size: var(--sg-text-xs);
  font-weight: 700;
  color: var(--sg-clay);
  font-variant-numeric: tabular-nums;
}

.hg-q-pick__text {
  font-size: var(--sg-text-sm);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hg-q-pick:hover {
  border-color: var(--sg-sage);
}

.hg-q-pick.is-active,
.hg-q-pick[aria-selected="true"] {
  border-color: var(--sg-sage);
  background: color-mix(in srgb, var(--sg-sage) 10%, var(--sg-paper));
}

.hg-q-pick:focus-visible {
  outline: 2px solid var(--sg-sage);
  outline-offset: 2px;
}

.hg-lane__well {
  padding: var(--sg-space-4);
  min-width: 0;
  position: relative;
}

.hg-answer[hidden] {
  display: none !important;
}

.hg-answer__q {
  margin: 0 0 var(--sg-space-3);
  font-size: var(--sg-text-base);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hg-answer__body {
  font-size: var(--sg-text-sm);
  line-height: 1.55;
  color: var(--sg-ink);
  overflow-wrap: anywhere;
}

.hg-answer__body a {
  color: var(--sg-sage);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hg-desk__empty {
  margin: 0;
  padding: var(--sg-space-4);
  text-align: center;
  font-size: var(--sg-text-sm);
  font-weight: 600;
  color: var(--sg-ink-muted);
  border: 1px dashed var(--sg-line);
  border-radius: var(--sg-radius-lg);
}

.hg-desk__empty[hidden],
.hg-desk__search-hits[hidden] {
  display: none !important;
}

.hg-desk__search-hits {
  display: grid;
  gap: var(--sg-space-3);
  min-width: 0;
}

.hg-search-hit {
  padding: var(--sg-space-4);
  min-width: 0;
}

.hg-search-hit .ds-title {
  font-size: var(--sg-text-base);
  margin: 0.25rem 0;
  overflow-wrap: anywhere;
}

.hg-search-hit__body {
  font-size: var(--sg-text-sm);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hg-search-hit__body a {
  color: var(--sg-sage);
  font-weight: 600;
}

.hg-desk__rift {
  display: grid;
  gap: var(--sg-space-4);
  padding: var(--sg-space-4);
  min-width: 0;
}

@media (min-width: 768px) {
  .hg-desk__rift {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    padding: var(--sg-space-5);
  }
}

.hg-desk__rift .ds-title {
  font-size: var(--sg-text-lg);
}

.hg-desk__rift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sg-space-3);
  margin-top: var(--sg-space-3);
}

.hg-desk__rift-actions .ds-btn {
  min-height: 2.75rem;
}

.hg-desk__rift-meta {
  margin: var(--sg-space-2) 0 0;
  font-size: var(--sg-text-sm);
  color: var(--sg-ink-muted);
}

.hg-desk__rift-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sg-space-2) var(--sg-space-4);
  margin-top: var(--sg-space-2);
  font-size: var(--sg-text-sm);
  font-weight: 600;
}

.hg-desk__rift-nav a {
  color: var(--sg-sage);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 359px) {
  .hg-desk__rift-actions .ds-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-choice,
  .hg-q-pick {
    transition: none;
  }
}
