/* FlyForms — the Guide's front page (src/components/docs/GuideIndex.astro).
   A search hero on a soft grid, then every chapter grouped by stage as rows with their topics. */
.gd { --gd-line: #e9e6e1; --gd-grey: var(--wh-grey, #6b6b72); --gd-accent: var(--wh-accent, #7147eb);
  max-width: var(--wh-content, 1240px); margin-inline: auto; padding: 24px var(--wh-gutter, 24px) var(--wh-section, 144px); }

/* ---------- the hero ---------- */
.gd-hero {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(56px, 7vw, 96px) 24px; border-radius: 28px; background: #f1f0ed;
}
.gd-hero::before {   /* a faint grid, like the closing panel */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgb(0 0 0 / .045) 1px, transparent 1px), linear-gradient(to bottom, rgb(0 0 0 / .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 40%, #000 30%, transparent 100%); mask-image: radial-gradient(70% 80% at 50% 40%, #000 30%, transparent 100%);
}
.gd-hero::after { content: ""; position: absolute; inset: auto 15% -40% 15%; height: 70%; z-index: -1; background: radial-gradient(closest-side, rgb(113 71 235 / .2), transparent); }
.gd .gd-h { margin-top: 0; font-family: var(--wh-display); font-size: clamp(40px, 5vw, 68px); line-height: 1.04; font-weight: 500; letter-spacing: -.025em; }
.gd .gd-lead { margin: 14px auto 0; max-width: 34em; font-size: clamp(17px, 1.3vw, 19px); color: var(--gd-grey); }
.gd-search {
  display: flex; align-items: center; gap: 12px; max-width: 560px; height: 60px; margin: 32px auto 0; padding: 0 12px 0 20px;
  border-radius: 16px; background: #fff; cursor: text;
  box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 18px 40px -18px rgb(40 20 90 / .25), inset 0 0 0 1px #e6e2dc; transition: box-shadow .2s ease;
}
.gd-search:focus-within { box-shadow: 0 0 0 4px rgb(113 71 235 / .15), 0 18px 40px -18px rgb(40 20 90 / .25), inset 0 0 0 1px var(--gd-accent); }
.gd-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #8a8a93; stroke-width: 2; stroke-linecap: round; }
.gd-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 17px; }
.gd-search input::-webkit-search-cancel-button { cursor: pointer; }
.gd-search kbd {
  display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px;
  background: #f4f3f1; color: #6b6b72; font: 500 13px var(--font-sans); box-shadow: inset 0 0 0 1px #e6e2dc;
}
.gd .gd-pop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--gd-grey); }
.gd-pop a { padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / .8); color: #18181b; box-shadow: inset 0 0 0 1px #e6e2dc; }
.gd-pop a:hover { color: var(--gd-accent); box-shadow: inset 0 0 0 1px var(--gd-accent); }

/* ---------- the chapters ---------- */
.gd-list { margin-top: clamp(48px, 6vw, 80px); }
.gd-block + .gd-block { margin-top: 56px; }
.gd .gd-bh { margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9a9aa2; }
.gd-row {
  display: flex; align-items: flex-start; gap: 18px; padding: 22px 16px; margin-inline: -16px;
  border-radius: 16px; border-bottom: 1px solid var(--gd-line); transition: background-color .2s ease, box-shadow .2s ease;
}
.gd-row:hover { background: #fff; border-bottom-color: transparent; box-shadow: inset 0 0 0 1px var(--gd-line); }
.gd-row:focus-visible { outline: 2px solid var(--gd-accent); outline-offset: 2px; }
.gd-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; }
.gd-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gd-tint-start { background: #ede8fd; color: #6d28d9; }
.gd-tint-build { background: #e0f2fe; color: #0369a1; }
.gd-tint-publish { background: #fef3c7; color: #b45309; }
.gd-tint-run { background: #d1fae5; color: #047857; }
.gd-rbody { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.gd-rt { font-family: var(--wh-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: #18181b; }
.gd-row:hover .gd-rt { color: var(--gd-accent); }
.gd-rs { font-size: 15px; color: var(--gd-grey); }
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gd-chips i { padding: 3px 10px; border-radius: 999px; background: #f1f0ed; font-size: 12.5px; font-style: normal; color: #52525b; }
.gd-chips .gd-more { background: none; box-shadow: inset 0 0 0 1px var(--gd-line); color: #8a8a93; }
.gd-min { flex: none; padding-top: 4px; font-size: 13px; color: #8a8a93; white-space: nowrap; }
.gd .gd-empty { margin-top: 32px; text-align: center; color: var(--gd-grey); }

@media (max-width: 640px) {
  .gd-hero { border-radius: 22px; padding-inline: 16px; }
  .gd-search { height: 54px; }
  .gd-search kbd { display: none; }
  .gd-row { flex-wrap: wrap; gap: 12px 14px; }
  .gd-rbody { flex-basis: calc(100% - 54px); }
  .gd-min { order: -1; margin-left: auto; padding-top: 10px; }
}
