/* Tamraght Forum – category picker (term-pick.js). The pills reuse .tmf-cat-pick from caustic-events.css. */
.tmf-tp { min-width: 0; margin: 4px 0 18px; padding: 0; border: 0; }
.tmf-tp > legend { margin: 0 0 6px; padding: 0; font-weight: 700; }
.tmf-tp [hidden] { display: none !important; }
.tmf-tp__chosen { margin: 0 0 10px; font-size: .92rem; }
.tmf-tp__filter { display: block; width: 100%; max-width: 440px; margin: 0 0 10px; }
.tmf-tp__group { margin: 0 0 4px; }
.tmf-tp__group > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 2px; font-weight: 700; cursor: pointer; list-style: none; }
.tmf-tp__group > summary::-webkit-details-marker { display: none; }
.tmf-tp__group > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; }
.tmf-tp__group[open] > summary::before { transform: rotate(45deg); }
.tmf-tp__group > summary:focus-visible { outline: 3px solid var(--ink, #1B2244); outline-offset: 2px; border-radius: 8px; }
.tmf-tp__n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; font-size: .78rem; background: #1B2244; color: #FFFFFF; }
body.lv.tmf-night .tmf-tp__n { background: var(--pearl, #F4EFFF); color: #141B3A; }
.tmf-tp .tmf-cat-pick { margin: 2px 0 8px; }
.tmf-tp__msg:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .tmf-tp__group > summary::before { transition: none; } }
