/* ==========================================================================
   /features/ overview only (src/pages/features/index.html). Loads after features.css.
   Prefix: fo- . The "By part of the job" list builds on the Markup showcase (main.css .ms, markup-showcase.js).
   ========================================================================== */

/* Hero */
.fo-hero .btn-row { justify-content: center; }

/* By part of the job: collapsed rows show only the name; the open row adds its line and its link. */
.fo-ms .ms-more p { margin: 0; }
.fo-ms .ms-more .btn-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 0.88rem; }
.fo-ms .ms-more .btn-link svg { width: 14px; height: 14px; }
.fo-ms .ms-fig .clip-frame img, .fo-ms .ms-fig .clip-frame video { object-fit: contain; background: var(--panel-2); }

/* The tour: a progress bar along the open row's bottom edge, and a Pause/Play button under the list. Desktop only;
   markup-showcase.js adds both and runs the tour only at >= 900px. */
.ms-prog, .ms-tour { display: none; }
@media (min-width: 900px) {
  .fo-ms.is-js .ms-head { position: relative; overflow: hidden; }
  .fo-ms.is-js .ms-head .ms-name { min-height: 24px; }
  .fo-ms.is-cycling .ms-item.is-open .ms-prog {
    display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left center;
  }
  .ms-tour {
    display: inline-flex; align-items: center; gap: 8px; grid-column: 1; align-self: start; justify-self: start;
    margin: 8px 0 0 16px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px;
    background: none; color: var(--text-2); font: 600 0.82rem/1 var(--font); cursor: pointer;
  }
  .ms-tour:hover { color: var(--text); border-color: var(--muted); }
  .ms-tour:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
}

/* Who it is for: three cards */
.fo-related { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .fo-related { grid-template-columns: 1fr; }
}
