.article-list {
  overflow: hidden;
}

.article-table-header {
  display: grid;
  grid-template-columns: 36px 1fr 100px 90px 54px;
  column-gap: 10px;
  padding: 7px 14px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-quietest);
  border-bottom: 1px solid var(--color-border-lighter);
}

.article-table-header.article-row--no-score {
  grid-template-columns: 1fr 100px 90px 54px;
}

.article-row {
  display: grid;
  grid-template-columns: 36px 1fr 100px 90px 54px;
  column-gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--color-border-lightest);
  align-items: start;
}

.article-row:hover {
  background: var(--color-row-hover);
}

.article-row--no-score {
  grid-template-columns: 1fr 100px 90px 54px;
}

.article-row-dismissed {
  opacity: 0.4;
}

.article-row-body {
  min-width: 0;
}

.article-row-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
}

.article-row-title a {
  color: inherit;
  text-decoration: none;
}

.article-row-title a:hover {
  text-decoration: none;
}

.article-row-meta {
  display: flex;
  font-size: 10px;
  color: var(--color-text-light);
  margin-top: 2px;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.article-row-domain {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-row-meta-dot {
  color: var(--color-text-quietest);
  flex-shrink: 0;
}

.article-row-meta-feed {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-row-meta-date-mobile {
  display: none;
}

.article-row-debug {
  display: none;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--color-text-light);
  text-decoration: none;
  white-space: nowrap;
  margin-left: 2px;
}

.article-row-debug svg {
  vertical-align: middle;
}

.article-row-debug:hover {
  color: var(--color-text-muted);
}

.article-row:hover .article-row-debug {
  display: inline-flex;
}

.article-row-date {
  font-size: 10px;
  color: var(--color-text-light);
  white-space: nowrap;
  font-family: var(--font-mono);
  padding-top: 2px;
  text-align: right;
}

.article-row-time {
  font-size: 10px;
  color: var(--color-text-light);
}

.article-row-expanded {
  display: block;
  padding: 14px;
  border-bottom: 1px solid var(--color-border-lighter);
}

.article-row-expanded:hover {
  background: var(--color-row-hover);
}

.article-row-expanded-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.article-row-expanded-header .article-row-time {
  margin-left: auto;
}

.article-row-expanded .article-row-body {
  margin-bottom: 10px;
}

.article-row-expanded .article-row-title {
  font-size: 15px;
  font-weight: 600;
  white-space: normal;
  line-height: 1.3;
  margin-bottom: 4px;
}

.article-row-summary {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-row-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border-lighter);
}

.article-row-footer-source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  min-width: 0;
}

.article-row-footer-source .article-row-domain {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-row-footer .spacer {
  flex: 1;
}

.read-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--color-text);
  color: var(--color-base);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: none;
}

.read-btn:hover {
  text-decoration: none;
}

/* === Source rows (feeds page) === */

.source-table-header {
  display: grid;
  grid-template-columns: 1fr 60px 90px;
  column-gap: 10px;
  padding: 7px 14px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-quietest);
  border-bottom: 1px solid var(--color-border-lighter);
}

.source-row {
  display: grid;
  grid-template-columns: 1fr 60px 90px;
  column-gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--color-border-lightest);
  align-items: center;
}

.source-row:hover {
  background: var(--color-row-hover);
}

.source-row-body {
  min-width: 0;
}

.source-row-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
}

.source-row-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.source-row-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-light);
}

.source-row-action .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .source-table-header {
    display: none;
  }

  .source-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
  }

  .source-row-body {
    flex: 1;
    min-width: 0;
  }

  .source-row-title {
    font-size: 14px;
  }

  .source-row-status {
    display: none;
  }

  .source-row-action .btn {
    width: auto;
  }
}
