/* «כל מה שהבוט עושה, בכל מסלול» on /bot/ (24.11.2026, Achiya: «שאנשים יבינו את היכולות בפשטות בצורה נקיה וברורה»; the
   bot-everything demo, version א׳ «מדף»): every capability of עונים לי בהודעות in six groups and the add-ons. A group is a
   plain <details> that opens in place, no new motion; its film where it has one, its drawing where it has none yet. The
   site's own parts only: .chapter, .card, the drawn objects and the family's tokens. */

.bc-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; margin: 44px 0 0; }
.bc-group { min-width: 0; }
details.bc-group[open] { grid-column: 1 / -1; }

.bc-head { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 20px 22px; color: var(--ink); cursor: pointer; list-style: none; }
.bc-head::-webkit-details-marker { display: none; }
.bc-head > img { flex: none; display: block; width: 64px; height: 52px; object-fit: contain; }
.bc-head__t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bc-head__t > b { font: 21px/1.25 var(--f-ui); }
.bc-head__t > span { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.bc-head:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--leaf); }
.bc-head:hover .bc-head__t > b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* the mark at the box's end: a plus, a minus on yellow when open (static) */
.bc-plus { position: relative; flex: none; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; background: var(--sheet); }
.bc-plus::before, .bc-plus::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); border-radius: 2px; }
.bc-plus::after { transform: rotate(90deg); }
details[open] > .bc-head .bc-plus { background: var(--yellow); }
details[open] > .bc-head .bc-plus::after { display: none; }

/* ── a group, open: a box for each capability, and its film or its drawing ── */
.bc-open { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; align-items: start; padding: 22px 22px 24px; border-top: 2px solid var(--ink); }
.bc-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bc-cap { display: grid; align-content: start; justify-items: start; gap: 2px; padding: 14px 16px 16px; background: var(--ivory); border-radius: var(--leaf-xs); }
.bc-cap > img { display: block; width: 64px; height: 52px; object-fit: contain; object-position: right center; margin-bottom: 6px; }
.bc-cap > b { font: 17px/1.3 var(--f-ui); color: var(--ink); }
.bc-cap > span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
/* a price on yellow keeps an ink ring (the yellow alone is 1.2:1 on the cream) */
.bc-price { margin-top: 8px; padding: 1px 10px; color: var(--ink); background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 999px; font: 13.5px/1.6 var(--f-ui); font-style: normal; }

.bc-film { display: grid; gap: 8px; margin: 0; }
.bc-film__screen { display: grid; place-items: center; aspect-ratio: 9 / 12; background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--leaf-sm); box-shadow: var(--shadow-hard); }
.bc-film__screen img { display: block; width: 84px; height: 68px; object-fit: contain; }
.bc-film figcaption { color: var(--ink-soft); font: 14px/1.4 var(--f-ui); text-align: center; }

/* a group with its film: the film under the boxes, wide (16:9) */
.bc-open--video { grid-template-columns: minmax(0, 1fr); }
.bc-film--video { width: min(100%, 720px); justify-self: center; }
.bc-film__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--leaf-sm); box-shadow: var(--shadow-hard); }

@media (max-width: 760px) {
  .bc-shelf { margin-top: 32px; gap: 14px; }
  .bc-head { gap: 12px; padding: 16px; }
  .bc-head > img { width: 52px; height: 42px; }
  .bc-head__t > b { font-size: 19px; }
  .bc-head__t > span { font-size: 15px; }
  .bc-open { grid-template-columns: minmax(0, 1fr); padding: 16px 14px 18px; }
  .bc-film { width: min(100%, 260px); justify-self: center; }
  .bc-film__screen { aspect-ratio: 16 / 10; }
  .bc-film--video { width: 100%; }
}
