/* Folding groups on the use-case hub (owner, 2026-11-23; docs/design-decisions/0071-use-case-groups-fold.md).
   Every group below Start here starts closed: its heading is a button with the use-case count and the shared FAQ
   plus (.faq-icon in css/styles.css), which turns into a cross when open. tools/use-cases/hub-filter.js opens and
   closes them. Only on /use-cases/. */
.ucx-group--fold .ucx-group-h { max-width: none; margin-bottom: 0; }
.ucx-group-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(30, 8, 93, .16);
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.ucx-group-name { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; text-decoration-thickness: 3px; }
@media (hover: hover) { .ucx-group-toggle:hover .ucx-group-name { text-decoration-color: var(--hero-purple-bg); } }
.ucx-group-toggle:focus-visible { outline: 3px solid #1E085D; outline-offset: 4px; border-radius: 6px; }
/* DM Sans, muted ink: 5.9:1 on the off-white band */
.ucx-group-count { flex: none; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }
.ucx-group-toggle .faq-icon { margin-left: auto; width: 28px; height: 28px; }
.ucx-group-toggle .faq-icon::before, .ucx-group-toggle .faq-icon::after { top: 13px; }
.ucx-group-toggle[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.ucx-group--fold .ucx-group-intro:not(#_) { margin: 12px 0 0; }
.ucx-group--fold.is-open .ucx-group-intro:not(#_) { margin-bottom: 0; }
/* closed: no space kept for the cards (hidden="until-found" keeps them findable with the browser's find in page) */
.ucx-group--fold .ucx-more-grid[hidden] { content-visibility: hidden; display: block; height: 0; margin: 0; overflow: hidden; }
/* closed groups sit closer together, like a list of headings */
.ucx-group--fold:not(.is-open) { padding-bottom: 8px; }
.ucx-group--fold + .ucx-group--fold { padding-top: 16px; }
.ucx-group--fold:last-of-type, .ucx-group--fold:not(.is-open):has(+ :not(.ucx-group--fold)) { padding-bottom: 56px; }
@media (max-width: 40em) {
  .ucx-group-toggle { flex-wrap: wrap; row-gap: 4px; }
  .ucx-group-toggle .ucx-group-name { flex: 1 1 0; min-width: 0; }
  .ucx-group-count { order: 3; flex-basis: 100%; padding-left: calc(3.5rem + 6px); }
}
@media (prefers-reduced-motion: reduce) { .ucx-group-toggle .faq-icon { transition: none; } }
