/* Ideas board and templates list. */

.ideas-bar { display: grid; gap: 14px; justify-items: start; }
.ideas-bar .chips { gap: 6px; }

.board { display: grid; grid-template-columns: repeat(var(--lanes, 4), minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lane {
  display: grid; gap: 8px; min-width: 0; padding: 8px; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg-side) 70%, var(--bg)); border: 1px solid var(--line);
}
.lane-head { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 2px 8px 0; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.lane-head > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; flex: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.6875rem; color: var(--text-2);
}
.lane-empty { padding: 18px 8px 20px; text-align: center; font-size: 0.8125rem; color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: var(--r); }

.idea {
  display: grid; gap: 10px; padding: 12px 14px 14px; min-width: 0; overflow-wrap: anywhere; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
@media (hover: hover) { .idea:hover { border-color: var(--line-strong); box-shadow: var(--shadow); } }
.idea-top { display: flex; align-items: flex-start; gap: 4px; }
.idea-top .menu { margin: -3px -8px -3px 0; }
.idea-title {
  appearance: none; display: block; width: 100%; margin: 0; padding: 2px 0 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--text); overflow-wrap: anywhere;
  transition: color var(--t-fast) ease;
}
.idea-title:hover { color: var(--accent-text); }
.idea-body { font-size: 0.875rem; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.idea-link { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--accent-text); }
.idea-link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.idea-media { display: flex; align-items: center; gap: 6px; }
.idea-media .thumb { width: 40px; height: 40px; border-radius: var(--r-xs); }
.idea-more { font-size: 0.75rem; font-weight: 600; color: var(--text-2); padding-left: 2px; }
.idea .chips { gap: 4px; }
.idea-go { justify-self: start; margin-top: 2px; }

.tpl { align-items: flex-start; }
.tpl-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
.tpl-holes { margin-top: 8px; gap: 6px; }
.hole {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 550;
  background: var(--surface-2); color: var(--text-2); border: 1px dashed var(--line-strong);
}
.hole::before { content: "{{"; opacity: 0.5; margin-right: 2px; }
.hole::after { content: "}}"; opacity: 0.5; margin-left: 2px; }

@media (max-width: 640px) {
  .board { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tpl { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px 14px; }
  .tpl > .btn { grid-column: 2; justify-self: start; }
}
