/* "Build your own" pages (written by tools/build-community-pages.mjs) and their /build/ index:
   the model on a light stage (kept light in the dark scheme, like a product on its backdrop),
   numbered steps, guide rows and cards. Built on free-tools.css, like build/robot-arm.html. */
.ft-hero h1 .ft-quiet,
.ft-section__header h2 .ft-quiet { display: block; color: var(--ink-3); }
.bd-hero-stage,
.bd-stage { position: relative; margin: 0; border-radius: 28px; background: #f2f3f5; color-scheme: light; }
.bd-hero-stage { aspect-ratio: 5 / 4; }
.bd-nw { white-space: nowrap; }
/* The renders arrive small and transparent: hold them inside the stage, whatever their shape, and lift them off it. */
.bd-hero-stage img,
.bd-stage img { position: absolute; display: block; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(10, 10, 11, 0.16)); }
.bd-hero-stage img { inset: 9%; width: 82%; height: 82%; }

/* The prompt bar, centred between the hero and the steps. */
.bd-ask { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.bd-ask .tw-ask { margin-top: 0; }

.bd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.bd-split .ft-section__header { margin-bottom: 24px; }
.bd-steps { margin: 0; padding: 0; list-style: none; counter-reset: bd-step; }
.bd-steps--rest { counter-reset: bd-step 6; }
.bd-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); list-style: none; counter-increment: bd-step; }
.bd-steps li:last-child { border-bottom: 1px solid var(--line); }
.bd-steps li::before { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--on-fill); content: counter(bd-step); font-size: 0.74rem; font-weight: 700; }
.bd-steps strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.bd-all { margin: 0; }
.bd-all summary { padding: 14px 0; color: var(--accent); font-weight: 600; cursor: pointer; }
.bd-all summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.bd-all .bd-steps li:first-child { border-top: 0; }
.bd-split .intent-actions { margin-top: 28px; }

/* The steps' stage: the model, with the guide's first step on a card. */
.bd-stage { aspect-ratio: 5 / 4; }
.bd-stage img { top: 104px; left: 10%; width: 80%; height: calc(92% - 104px); }
.bd-stage .ft-bomcard { top: 20px; bottom: auto; left: 20px; width: min(300px, calc(100% - 40px)); }
.bd-stage .ft-bomcard p { margin: 0; color: #52525b; font-size: 0.8rem; }
.bd-stage .ft-bomcard .bd-stepcard__title { margin-top: 4px; color: #0a0a0b; font-size: 0.95rem; font-weight: 600; line-height: 1.35; }

.bd-more { margin-top: 48px; }
.bd-more h3 { margin: 0 0 16px; font-size: 1.2rem; letter-spacing: -0.02em; }

/* Cards: other builds, and the index. */
.bd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.bd-cards > li { display: flex; min-width: 0; list-style: none; }
a.bd-card:not(#tw-noop),
a.bd-card:not(#tw-noop):visited,
a.bd-card:not(#tw-noop):hover { color: var(--ink); text-decoration: none; }
.bd-card { display: flex; width: 100%; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--paper-2); transition: transform 0.35s ease, box-shadow 0.35s ease; }
a.bd-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -28px rgba(10, 10, 11, 0.35); }
.bd-card__media { position: relative; display: block; aspect-ratio: 6 / 5; background: #f2f3f5; }
/* Absolutely placed, so the box keeps its ratio whatever the picture's own shape. */
.bd-card__media img { position: absolute; inset: 12%; display: block; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(10, 10, 11, 0.14)); }
.bd-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 24px 24px; }
.bd-card .bd-card__label { margin: 0 0 6px; color: var(--ink-3); font-size: 0.84rem; font-weight: 600; }
.bd-card h2,
.bd-card h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1.2; }
.bd-card__more { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 600; }
.bd-card__more::after { content: " ›"; }
a.bd-card:hover .bd-card__more { text-decoration: underline; text-underline-offset: 3px; }
.bd-index { padding-top: clamp(40px, 6vw, 72px); }
.bd-cards--index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bd-cards--index .bd-card h2 { font-size: 1.12rem; letter-spacing: -0.02em; }
.bd-cards--index .bd-card__body { padding: 16px 18px 18px; }

@media (min-width: 641px) {
  .bd-guides .ft-picker a { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 28px; }
}
@media (max-width: 1120px) {
  .bd-cards--index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .bd-cards,
  .bd-cards--index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-split { grid-template-columns: 1fr; }
  .bd-hero-stage { width: min(520px, 100%); margin-inline: auto; }
}
@media (max-width: 640px) {
  .bd-cards { grid-template-columns: 1fr; gap: 14px; }
  .bd-cards--index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bd-card { border-radius: 22px; }
  .bd-cards--index .bd-card { border-radius: 18px; }
  .bd-cards--index .bd-card__body { padding: 12px 14px 14px; }
  .bd-cards--index .bd-card h2 { font-size: 1rem; }
  .bd-cards--index .bd-card__more { display: none; }
  .bd-hero-stage,
  .bd-stage { border-radius: 22px; }
  .bd-stage { display: grid; aspect-ratio: auto; padding: 16px; }
  .bd-stage .ft-bomcard { position: static; order: -1; width: auto; margin-bottom: 8px; }
  .bd-stage img { position: static; width: 100%; height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-card { transition: none; }
  a.bd-card:hover { transform: none; }
}
