/* dwtweetarchive — minimal tweet card styling. Theme-friendly: relies on
   the active theme's typography, only styles structure & spacing. */

.dwta-card {
  max-width: 640px;
  margin: 1.5em auto;
  padding: 1em 1.2em;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  font-size: 1rem;
  line-height: 1.55;
}
.dwta-card a { color: #0366d6; text-decoration: underline; }
.dwta-card a:hover { text-decoration: none; }

.dwta-card__head {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  flex-wrap: wrap;
  margin-bottom: 0.6em;
  font-weight: 600;
}
.dwta-card__name { font-weight: 700; }
.dwta-card__handle {
  color: #6a737d;
  font-weight: 400;
  font-size: 0.95em;
}
.dwta-card__verified {
  color: #1da1f2;
  font-weight: 700;
}

.dwta-card__reply-context {
  font-size: 0.9em;
  color: #6a737d;
  margin-bottom: 0.5em;
}
.dwta-card__reply-context a { color: inherit; text-decoration: underline; }

.dwta-card__text {
  white-space: normal;
  word-wrap: break-word;
  margin: 0.5em 0 0.8em 0;
}
.dwta-card__text a { word-break: break-all; }

.dwta-mention,
.dwta-hashtag {
  color: #1da1f2;
}

.dwta-card__media {
  display: grid;
  gap: 0.5em;
  margin: 0.6em 0;
}
.dwta-card__media-item {
  margin: 0;
}
.dwta-card__media-item img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
}
.dwta-card__media-caption {
  font-size: 0.85em;
  color: #6a737d;
  padding-top: 0.3em;
}

.dwta-card__quoted {
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  padding: 0.7em 0.9em;
  margin: 0.8em 0;
  background: #fafbfc;
  font-size: 0.95em;
}
.dwta-card__quoted-head {
  font-size: 0.85em;
  color: #6a737d;
  margin-bottom: 0.3em;
}

.dwta-card__foot {
  margin-top: 0.8em;
  font-size: 0.85em;
  color: #6a737d;
}
.dwta-card__foot time { font-variant-numeric: tabular-nums; }
.dwta-card__source { color: inherit; text-decoration: underline; }
.dwta-card__sep { padding: 0 0.4em; }
.dwta-card__metrics { display: block; margin-top: 0.2em; }

.dwta-card__refs {
  font-size: 0.9em;
  color: #6a737d;
  margin: 0 0 0.8em 0;
  padding-bottom: 0.6em;
  border-bottom: 1px dashed #e1e4e8;
}
.dwta-card__refs-row + .dwta-card__refs-row {
  margin-top: 0.25em;
}
.dwta-card__refs-label {
  margin-right: 0.3em;
}
.dwta-card__refs-link {
  font-weight: 600;
}
.dwta-card__refs-more {
  display: inline-block;
  margin-left: 0.4em;
}
.dwta-card__refs-more summary {
  cursor: pointer;
  display: inline;
}
.dwta-card__refs-more ul {
  margin: 0.3em 0 0 0;
  padding-left: 1.2em;
}

.dwta-card--tombstone .dwta-card__tombstone-body {
  text-align: center;
  padding: 1.2em 0.6em 0.4em;
}
.dwta-card--tombstone .dwta-card__tombstone-icon {
  font-size: 2.2em;
  line-height: 1;
  margin-bottom: 0.4em;
  opacity: 0.85;
}
.dwta-card--tombstone .dwta-card__tombstone-headline {
  font-size: 1.1em;
  margin: 0 0 0.3em 0;
}
.dwta-card--tombstone .dwta-card__tombstone-sub {
  font-size: 0.95em;
  color: #6a737d;
  margin: 0 0 0.8em 0;
}
.dwta-card--tombstone .dwta-card__tombstone-actions {
  list-style: none;
  margin: 0.6em 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em 1em;
  font-size: 0.95em;
}
.dwta-card--tombstone .dwta-card__tombstone-note {
  font-size: 0.85em;
  color: #6a737d;
  margin-top: 0.6em;
}

@media (prefers-color-scheme: dark) {
  .dwta-card { background: #16191d; border-color: #2f343a; color: #e6e6e6; }
  .dwta-card a { color: #58a6ff; }
  .dwta-card__media-item img { border-color: #2f343a; }
  .dwta-card__quoted { background: #1c1f24; border-color: #2f343a; }
  .dwta-card__handle, .dwta-card__reply-context, .dwta-card__media-caption,
  .dwta-card__foot, .dwta-card__refs,
  .dwta-card__tombstone-sub, .dwta-card__tombstone-note { color: #b1bac4; }
  .dwta-card__refs { border-bottom-color: #2f343a; }
  .dwta-mention, .dwta-hashtag { color: #58a6ff; }
}
