/* Talks library. Stream F. Tokens only; 44 px targets. Shares the bd-, tr- and
   cd- classes defined in board.css. */

.tk { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; min-width: 0; }
.tk-list { display: grid; gap: 14px; }
.tk-talk { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 12px; min-width: 0; }
.tk-talk.archived { background: var(--ground); }
.tk-talk.archived .tk-title { color: var(--muted); }
.tk-head { display: grid; gap: 8px; }
.tk-title { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.tk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-tag { padding: 1px 10px; border-radius: 999px; font-size: .75rem; line-height: 1.6; background: var(--ground); color: var(--muted); border: 1px solid var(--line); }
.tk-topic { background: var(--accent-tint); color: var(--accent); border-color: transparent; }

.tk-section { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.tk-section h3 { margin: 0; font-size: .95rem; }
.tk-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tk-version { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.tk-v-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.tk-abstract { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent); font-size: .9rem; }
.tk-subs { list-style: none; margin: 0; padding: 0; display: grid; }
.tk-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.tk-sub-name { font-weight: 600; overflow-wrap: anywhere; }
.tk-fit:empty { display: none; }

.tk-empty { padding: 20px 4px; max-width: 520px; }
.tk-toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }

/* Chips in the talk dialog: a pressed chip also gains a check mark. */
.tk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-chips-scroll { max-height: 200px; overflow: auto; padding: 2px; }
.tk-chip { border-radius: 22px; padding: 0 12px; font-size: .85rem; }
.tk-chip[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.tk-chip[aria-pressed="true"]::before { content: "✓ "; white-space: pre; }
.tk-chip:disabled { opacity: .45; cursor: not-allowed; }
.tk-count { margin: 0; text-align: right; }
.tk-error { margin: 0; color: var(--urgent); }
.tk-error:empty { display: none; }
.dlg .cd-form { display: grid; gap: 10px; }
.dlg textarea { padding: 10px; resize: vertical; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

.tk-history { margin: 0 0 8px; font-size: .9rem; }
.tk-differs { color: var(--soon); display: block; }
.tk-ready { font-style: italic; }
