/* ==========================================================================
 * Event Studio - the Features card (js/ui/features-card.js)
 *
 * On Overview (the side column) and in Details (the form). The card itself,
 * the badges and the checkbox come from /studio/studio.css; this file adds
 * the indented list of boxes, the linked rows and the notes.
 *
 *  1. The boxes          st-features__list  __item  __row  __needs
 *  2. Notes              st-features__note  __info  __app
 *  3. Linked features    st-features__group  __linked  __link
 *  4. Details only       st-details-review (the "These look right" row)
 * ========================================================================== */

/* ---------- 1. The boxes ---------- */
/* ?focus=features scrolls the card to the top: clear of the sticky top bar. */
.st-features { scroll-margin-top: calc(var(--st-topbar-h) + 16px); }
.st-features__list { display: flex; flex-direction: column; gap: 2px; margin: -6px -8px 0; padding: 0; list-style: none; }
/* One step in per level of "needs": Join, then what needs Join, and so on. */
.st-features__item { padding-left: 0; }
.st-features__item--d1 { padding-left: 20px; }
.st-features__item--d2 { padding-left: 40px; }
.st-features__item--d3 { padding-left: 60px; }
.st-features__row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: var(--st-r-8); cursor: pointer; }
.st-features__row:hover { background: rgba(255, 255, 255, 0.035); }
.st-features__input { margin-top: 2px; }
.st-features__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-features__label { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--st-text); }
.st-features__line { font-size: 12.5px; line-height: 1.45; color: var(--st-text-muted); }
.st-features__needs { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--st-amber); }
.st-features__needs[hidden] { display: none; }
/* What it needs is off: shown off, and why. */
.st-features__item.is-locked .st-features__row { cursor: not-allowed; }
.st-features__item.is-locked .st-features__row:hover { background: none; }
.st-features__item.is-locked .st-features__label,
.st-features__item.is-locked .st-features__line { opacity: 0.55; }
.st-features__item[aria-busy="true"] .st-features__row { cursor: progress; }
/* The box is set, but something it relies on is missing (no way to get a ticket). */
.st-features__warn { display: flex; align-items: flex-start; gap: 6px; margin: 0 8px 4px 34px; font-size: 12.5px; line-height: 1.45; color: #fcd34d; }
.st-features__warn[hidden] { display: none; }
.st-features__warn > .st-icon { flex: 0 0 auto; margin-top: 2px; }
.st-features__warn .st-textlink { font-size: inherit; white-space: nowrap; }

/* ---------- 2. Notes ---------- */
.st-features__note { margin-top: 10px; }
.st-features__note[hidden] { display: none; }
.st-features__info,
.st-features__app { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--st-text-muted); }
.st-features__info > .st-icon,
.st-features__app > .st-icon { flex: 0 0 auto; margin-top: 2px; }
.st-features__app { margin-top: 14px; }

/* ---------- 3. Linked features ---------- */
.st-features__group { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--st-border); }
.st-features__heading { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-text-muted); }
.st-features__linked { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.st-features__link { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.st-features__link + .st-features__link { border-top: 1px solid var(--st-border); }
.st-features__linktext { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; min-width: 0; }
.st-features__linkname { font-size: 13.5px; line-height: 1.35; color: var(--st-text); }
.st-features__where { font-size: 12px; color: var(--st-text-muted); }
.st-features__state { display: inline-flex; flex: 0 0 auto; }
.st-features__setup { flex: 0 0 auto; white-space: nowrap; }

/* ---------- 4. Details only: the "These look right" row ---------- */
.st-details-review { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--st-border); font-size: 12.5px; line-height: 1.5; color: var(--st-text-muted); }
.st-details-review:empty { display: none; }
.st-details-review.is-done { gap: 8px; }
.st-details-review.is-done > .st-icon { color: var(--st-green); }
