/* Shared board styles: the reports table + archived tweet/article cards.
   Imported by both index.html (public board) and admin.html (moderation queue)
   so the two always render identically. Colour vars (--bg/--text/…) are defined
   by each host page's :root, including the light-theme overrides. */

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.75rem; }
th {
  text-align: left; font-weight: 400; font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
  padding: 0 0.9rem 0.5rem 0; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--border);
  color: var(--muted); vertical-align: top;
}
td.event { color: var(--text); white-space: nowrap; }
td.event.praise { color: var(--accent); }
td.event.complaint { color: var(--neg); }
td.event::before { content: ''; display: inline-block; width: 0.5rem; }
td.event.praise::before { content: '+ '; }
td.event.complaint::before { content: '− '; }
td.nowrap { white-space: nowrap; }
td.sla-missed { color: var(--neg); }
td.sla-met { color: var(--accent); }
td .dash { color: var(--faint); }
td a { color: var(--accent); text-decoration: none; white-space: nowrap; }
td a:hover { text-decoration: underline; }
tr.has-details td { border-bottom: none; padding-bottom: 0.15rem; }
tr.details td { color: var(--faint); font-style: italic; padding-top: 0; max-width: 0; overflow-wrap: break-word; }
tr:last-child td { border-bottom: none; }
td button.tweet-toggle {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--accent); cursor: pointer; white-space: nowrap;
}
td button.tweet-toggle:hover { text-decoration: underline; }
td button.tweet-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* archived tweet card (X-style) */
tr.tweet-row > td { padding: 0.3rem 0 1rem; max-width: 0; }
.tweet-card {
  max-width: 480px; padding: 0.9rem 1rem; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.tw-head { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.tw-head:hover .tw-name { text-decoration: underline; }
a.tw-date { color: var(--faint); text-decoration: none; }
a.tw-date:hover { text-decoration: underline; }
.tw-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover; }
.tw-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--muted); font-weight: 700; font-size: 1rem;
}
.tw-names { min-width: 0; flex: 1; }
.tw-name { color: var(--text); font-weight: 700; font-size: 0.85rem; line-height: 1.25;
           white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-handle { color: var(--faint); font-size: 0.78rem; line-height: 1.25; }
.tw-x-logo { color: var(--text); flex: none; }
.tw-text { color: var(--text); font-size: 0.9rem; line-height: 1.45; margin: 0.7rem 0 0;
           white-space: pre-wrap; overflow-wrap: break-word; }
.tw-text.tw-thread-part { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--border); }
.tw-turn { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-top: 0.8rem; }
.tw-turn + .tw-text.tw-thread-part { margin-top: 0.15rem; padding-top: 0; border-top: none; }

/* conversation: message turns inside the card */
.tw-convo { margin-top: 0.8rem; border-left: 2px solid var(--border); padding-left: 0.85rem; }
.tw-msg { display: flex; gap: 0.55rem; margin-top: 0.9rem; }
.tw-msg:first-child { margin-top: 0; }
.tw-msg-av { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; }
.tw-msg-av-fallback { display: flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.tw-msg-body { min-width: 0; flex: 1; }
.tw-msg-handle { display: inline-block; font-weight: 700; font-size: 0.82rem; color: var(--text);
  text-decoration: none; line-height: 1.2; }
.tw-msg-handle:hover { text-decoration: underline; }
.tw-msg-text { font-size: 0.88rem; line-height: 1.45; color: var(--text);
  white-space: pre-wrap; overflow-wrap: break-word; margin-top: 0.1rem; }
.tw-media { display: block; max-width: 100%; max-height: 280px; border-radius: 10px;
            margin-top: 0.7rem; border: 1px solid var(--border); object-fit: cover; }
.tw-foot { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: baseline;
           margin-top: 0.8rem; font-size: 0.72rem; color: var(--faint); }
.tw-foot a.tw-open { color: var(--accent); text-decoration: none; margin-left: auto; }
.tw-foot a.tw-open:hover { text-decoration: underline; }
.tw-archived { font-style: italic; }

/* long-form web source card */
.article-card {
  max-width: 480px; padding: 0.9rem 1rem; border: 1px solid var(--border);
  border-left: 3px solid var(--muted); border-radius: 8px; background: var(--surface);
}
.ac-source { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.ac-title { color: var(--text); font-weight: 700; font-size: 0.92rem; line-height: 1.35; margin: 0.4rem 0 0; }
.ac-excerpt { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin: 0.55rem 0 0; overflow-wrap: break-word; }
.ac-sources { font-size: 0.75rem; margin-top: 0.7rem; overflow-wrap: break-word; }
.ac-sources-label { color: var(--faint); }
.ac-sources a { color: var(--accent); text-decoration: none; }
.ac-sources a:hover { text-decoration: underline; }
