/* Story ideas before payment (boutique/js/idees.js): a case file opened on the builder, with the family's names. */

.ideas {
  position: relative; margin: 0 0 26px; padding: 22px 22px 18px;
  background: var(--butter); border-radius: var(--r-sm) var(--r) var(--r) var(--r);
  box-shadow: 0 1px 0 var(--butter-2), var(--shadow);
}
.ideas[hidden] { display: none; }
/* The folder's tab, so the block reads as a file and not as one more form card. */
.ideas::before {
  content: ""; position: absolute; left: 0; top: -10px; width: 132px; height: 12px;
  background: var(--butter); border-radius: 10px 14px 0 0;
}
.ideas-tag { margin: 0 0 6px; font: 400 1.05rem var(--hand); color: var(--deep); letter-spacing: .01em; }
.ideas-title { margin: 0 0 8px; font: 700 clamp(1.35rem, 1.1rem + 1.4vw, 1.8rem)/1.15 var(--display); color: var(--ink-strong); }
.ideas-hook { margin: 0 0 16px; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.ideas-wait { margin: 0; color: var(--muted); font-size: .95rem; }

.ideas-suspects { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ideas-suspects li {
  display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: 4px 14px; align-items: baseline;
  padding: 10px 14px; background: var(--card); border-radius: 12px; border-left: 4px solid var(--sun);
}
.ideas-suspects li.is-guest { border-left-color: var(--line-2); }
.ideas-who b { display: block; font: 600 1.05rem var(--display); color: var(--ink-strong); }
.ideas-who small { color: var(--muted); font-size: .82rem; }
.ideas-alibi { font: 400 1.08rem/1.35 var(--hand); color: var(--ink); }

.ideas-note { margin: 0; font-size: .88rem; color: var(--muted); }
.ideas-other {
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--butter-2); font-size: .92rem; color: var(--ink);
}
.ideas-other small { display: block; color: var(--muted); font-size: .8rem; }
.ideas-other b { display: block; font: 600 1.02rem var(--display); color: var(--ink-strong); }
.ideas-other .btn { flex: none; }

@media (max-width: 560px) {
  .ideas { padding: 18px 16px 16px; }
  .ideas-suspects li { grid-template-columns: 1fr; }
  .ideas-other { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .ideas:not([aria-busy]) .ideas-suspects li { animation: ideas-in .35s ease-out both; }
  .ideas-suspects li:nth-child(2) { animation-delay: .06s; }
  .ideas-suspects li:nth-child(3) { animation-delay: .12s; }
  .ideas-suspects li:nth-child(4) { animation-delay: .18s; }
  .ideas-suspects li:nth-child(5) { animation-delay: .24s; }
}
@keyframes ideas-in { from { opacity: 0; transform: translateY(6px); } }
