/* Donkey Factory — bento.css
 * The bento-grid result layout. Asymmetric modular cells.
 * Every donkey result view composes panels in this grid.
 *
 * Mobile  : single column, scroll-snap stack
 * Tablet  : two columns
 * Desktop : 3-col grid where the primary cell spans 2 rows
 */

.wt-bento {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .wt-bento {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .wt-bento {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: minmax(0, 1fr);
    gap: 1.125rem;
  }
  .wt-bento--primary  { grid-row: span 2; }
  .wt-bento--wide     { grid-column: span 2; }
  .wt-bento--tall     { grid-row: span 2; }
}

.wt-bento-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem 1.125rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.wt-bento-cell:hover {
  border-color: var(--border-strong);
}

.wt-bento-cell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-muted);
}

.wt-bento-cell__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

/* HC mode — kill rounded corners and depth, full borders */
.hc .wt-bento-cell { border-width: 2px; border-radius: var(--radius); }
