/* Self-contained styles for evennia_boards. Colours are the shared --evennia-color-*
   tokens, each with its default as the fallback, so a host stylesheet can
   retheme them and nothing has to be defined. */
.evennia-boards-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.evennia-boards-table-scroll:focus-visible { outline: 2px solid var(--evennia-color-accent, #4a90d9); outline-offset: 2px; }
.evennia-boards-actions { display: flex; flex-wrap: wrap; }
.evennia-boards-actions > * { margin-right: .5rem; margin-bottom: .5rem; }
.evennia-boards-gap > * { margin-right: .5rem; margin-bottom: .5rem; }
.evennia-boards-empty { color: var(--evennia-color-muted, #6c757d); font-style: italic; }
.evennia-boards-post-heading { display: flex; align-items: baseline; gap: .4rem; min-width: 0; flex: 1 1 0; }
.evennia-boards-post-heading > strong { flex-shrink: 0; }
.evennia-boards-post-header { flex-wrap: wrap; }
.evennia-boards-post-title { min-width: 0; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.evennia-boards-post-actions { flex: 0 0 auto; white-space: nowrap; }
.evennia-boards-post-byline { white-space: nowrap; }
@media (max-width: 640px) {
  .evennia-boards-post-heading { flex-basis: 100%; }
  .evennia-boards-post-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
}

/* Preserve table headers for assistive technology while stacking labelled rows. */
.evennia-boards-cell-label { display: none; }
@media (max-width: 640px) {
  .evennia-boards-table-stack,
  .evennia-boards-table-stack tbody,
  .evennia-boards-table-stack tr,
  .evennia-boards-table-stack td,
  .evennia-boards-table-stack tbody th { display: block; width: 100%; }
  .evennia-boards-table-stack thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .evennia-boards-table-stack tbody tr { margin-bottom: 1rem; border: 1px solid var(--evennia-color-border, #dee2e6); }
  .evennia-boards-table-stack tbody td,
  .evennia-boards-table-stack tbody th { border: 0; padding: .375rem .75rem; text-align: left !important; overflow-wrap: anywhere; }
  .evennia-boards-table-stack .evennia-boards-cell-label { display: block; font-size: .8rem; font-weight: 600; }
}
