/* Dashboard "needs attention": ongoing incidents surfaced above the check grid. */
.attention-list { display: flex; flex-direction: column; gap: var(--size-2); }
.attention-row {
  display: flex;
  align-items: center;
  gap: var(--size-3);
  text-decoration: none;
  color: inherit;
  border-left-width: 4px;
}
.attention-row--down { border-left-color: var(--status-down); }
.attention-row--blocked { border-left-color: var(--status-blocked); }
.attention-row--paused { border-left-color: var(--status-paused); }
/* Same hover as a dashboard tile: both are cards standing for a check, so they should answer the
   pointer the same way. This used to fill with gray-1, which is a LIGHT token -- fine on the light
   theme, a white slab in dark mode.
   Left border excluded: it carries the status colour, and a plain `border-color` on hover outranks
   `.attention-row--down` and would swap the one bit of the row that is not decoration. */
.attention-row:hover {
  border-block-color: var(--brand);
  border-inline-end-color: var(--brand);
}
/* A fixed column for the badge, so the names start at one x-position. Reserving the icon's space fixed
   half of it; the other half was the badge itself, which is 52px wide for "Down" and 63px for "Paused",
   and that difference walked every name to a different place. Widening the pill rather than padding
   after it keeps the pills a column too, which is the part the eye actually follows. */
.attention-row .status { min-width: 5rem; justify-content: center; }
.attention-row__name { display: inline-flex; align-items: center; gap: var(--size-2); font-weight: var(--font-weight-6); }
.attention-row__meta { margin-inline-start: auto; color: var(--gray-6); font-variant-numeric: tabular-nums; }
.attention-row__go { color: var(--gray-5); font-size: 1.3em; line-height: 1; }

/* More than five open incidents: two to a row, so a bad morning does not push the checks below the
   fold. A grid rather than wrapping flex items, so the two columns stay equal and every badge and name
   keeps its x-position down the list. Wide screens only: below about 60rem half a row cannot hold a
   name (at 700px they were three letters), so the list stays one column, as with five or fewer. */
@media (width > 60rem) {
  /* The check grid's gutter, so the middle one lines up with the grid's second (.status-grid). */
  .attention-list--paired { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--size-3); }
  .attention-list--paired .attention-row__name { min-width: 0; flex: 0 1 auto; }
  /* The name gives way first; "about 2 hours" broken over two lines read as two facts. */
  .attention-list--paired .attention-row__meta { white-space: nowrap; }
  .attention-list--paired .attention-row__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
