/* Linha de lista: a linha inteira é um link, com título, detalhes, Badge com tom e indicador de abrir. */

.row-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row-item {
  border-bottom: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--control-min-height);
  padding: var(--space-4) var(--space-2);
  color: var(--text);
  text-decoration: none;
}

.row-body {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.row-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.row-detail {
  color: var(--muted);
  font-size: var(--font-size-support);
  overflow-wrap: anywhere;
}

.row-open {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}

.row:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

@media (hover: hover) {
  .row:hover {
    background: var(--surface);
  }
}

@media (width <= 480px) {
  .row {
    grid-template-columns: minmax(0, 1fr) 20px;
  }

  .row .badge {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
  }

  .row-open {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}
