/* FlyForms — the home page's "How it works" as a numbered list (howhome.py). Dark band.
   Each row: number | title and description | round arrow to that step's guide page.
   The first arrow is filled until the list is hovered; then the hovered row's arrow fills. */
.theme-whistler .wh-band.hh {
  --band: #11131a;              /* dark band, full width (see .wh-band in whistler.css) */
  --hh-ink: #ffffff;
  --hh-muted: rgb(255 255 255 / .74);
  --hh-line: rgb(255 255 255 / .16);
  --hh-accent: #b6a1fc;         /* the brand violet, lifted for a dark background */
  --hh-go: 56px;
  color: var(--hh-ink);
}
.theme-whistler .hh .wh-kicker { background: rgb(255 255 255 / .08); color: #ddd4fd; box-shadow: none; }
.theme-whistler .hh .wh-accent { color: var(--hh-accent); }

/* Heading block, left aligned */
.hh .hh-head { max-width: 760px; }
.hh .hh-heading {
  margin-top: 10px;
  font-family: var(--wh-display);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 600; line-height: 1.02; letter-spacing: -.025em;
  color: var(--hh-ink); text-wrap: balance;
}
.hh .hh-lead { margin-top: 18px; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--hh-muted); }

/* The list */
.hh .hh-list { margin-top: clamp(40px, 5vw, 72px); list-style: none; padding: 0; }
.hh .hh-item + .hh-item { border-top: 1px solid var(--hh-line); }
.hh .hh-row {
  display: grid; grid-template-columns: clamp(56px, 6vw, 88px) minmax(0, 1fr) var(--hh-go);
  align-items: center; column-gap: 24px;
  padding-block: clamp(28px, 3.4vw, 44px);
  color: inherit; text-decoration: none;
}
.hh .hh-item:first-child .hh-row { padding-top: 0; }
.hh .hh-item:last-child .hh-row { padding-bottom: 0; }
.hh .hh-num {
  align-self: start;
  font-family: var(--wh-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.2;
  color: var(--hh-accent);
}
.hh .hh-body { display: block; max-width: 820px; }
.hh .hh-title {
  font-family: var(--wh-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.2;
  letter-spacing: -.01em; color: var(--hh-ink);
}
.hh .hh-text { margin-top: 12px; max-width: 33em; font-size: 17px; line-height: 1.65; color: var(--hh-muted); }   /* about 560px: every step reads as two even lines */

/* Round arrow */
.hh .hh-go {
  display: grid; place-items: center;
  width: var(--hh-go); height: var(--hh-go); border-radius: 999px;
  background: rgb(255 255 255 / .12); color: var(--hh-accent);
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.hh .hh-go svg { width: 44%; height: 44%; transition: transform .3s ease; }
.hh .hh-list:not(:hover) .hh-item:first-child .hh-go,
.hh .hh-row:hover .hh-go,
.hh .hh-row:focus-visible .hh-go { background: var(--hh-accent); color: #11131a; }
.hh .hh-row:hover .hh-go svg { transform: rotate(45deg); }
.hh .hh-row:hover .hh-title { color: var(--hh-accent); }
.hh .hh-title { transition: color .3s ease; }
.hh .hh-row:focus-visible { outline: 2px solid var(--hh-accent); outline-offset: 6px; border-radius: 12px; }

/* Wide screens: the heading block on the left (it stays in view while the steps scroll past),
   the steps on the right. */
@media (min-width: 1200px) {   /* below this the step column is too narrow for two-line descriptions */
  .hh > div {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(96px, 10vw, 200px); align-items: start;
  }
  .hh .hh-head { position: sticky; top: 120px; }
  .hh .hh-heading { font-size: clamp(40px, 4.2vw, 64px); }
  .hh .hh-list { margin-top: 0; }
}

/* Every width: the number sits above the title, so number, title, text and arrow share one left
   edge; the arrow sits on the right, centred on the row, and the text never runs under it. */
.hh .hh-row {
  grid-template-columns: minmax(0, 1fr) var(--hh-go);
  grid-template-areas: "num go" "body go";
  row-gap: 14px;
}
.hh .hh-num { grid-area: num; }
.hh .hh-go { grid-area: go; align-self: center; }
.hh .hh-body { grid-area: body; }

/* Phone: number above the title, smaller arrow beside the number */
@media (max-width: 640px) {
  .theme-whistler .wh-band.hh { --hh-go: 44px; }
  .hh .hh-row { grid-template-columns: minmax(0, 1fr) var(--hh-go); grid-template-areas: "num go" "body body"; row-gap: 12px; }
  .hh .hh-num { grid-area: num; align-self: center; }
  .hh .hh-go { grid-area: go; }
  .hh .hh-body { grid-area: body; }
  .hh .hh-text { font-size: 16px; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hh .hh-go, .hh .hh-go svg, .hh .hh-title { transition: none; }
  .hh .hh-row:hover .hh-go svg { transform: none; }
}
