/*
 * Feature requests (docs/adr/0089), kept plain: each in a thin border,
 * with space between - the title, when it was asked, the details as typed
 * (line breaks kept, nothing made a link), and a Support button with its
 * count. On Yours, the status and the admins' note too. No colours: the
 * status tags say so in words, and Support's heart fills once you do.
 */

.feature-requests__intro,
.feature-request-new__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.feature-requests__intro p,
.feature-request-new__intro p {
  max-width: 36rem;
}

.feature-request-new__intro {
  display: block;
}

.feature-request-new__intro p + p {
  margin-top: 0.5rem;
}

.feature-request-new__full {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.feature-requests {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.feature-request {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 0.0625rem solid var(--border);
}

.feature-request__title {
  margin: 0;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.feature-request__meta {
  font-size: 0.875rem;
}

.feature-request__meta .status-tag {
  margin-left: 0;
}

.feature-request__yours {
  font-weight: 700;
}

/* Typed in a textarea: keep their line breaks, and break long words. */
.feature-request__details,
.feature-request__note {
  max-width: 40rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.feature-request__details--none {
  font-style: italic;
}

.feature-request__decision {
  padding-left: 0.75rem;
  border-left: 0.0625rem solid var(--border);
}

.feature-request__decided,
.feature-request__note-label {
  font-weight: 700;
}

.feature-request__note-label {
  margin-top: 0.5rem;
}

.feature-request__waiting {
  font-size: 0.875rem;
}

/* Support: a button whose heart fills once you do (docs/adr/0090), and the count beside it. */
.vote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.vote__button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 0.0625rem solid var(--border);
  background-color: var(--white);
  color: var(--black);
  font: inherit;
  cursor: pointer;
}

.vote__button .icon {
  width: 1.25rem;
  height: 1.25rem;
}

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


/* An admin's view of one (pages/admin-feature-request.html.twig). */
.admin-feature-request {
  max-width: 48rem;
}

.admin-feature-request__title {
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

.admin-feature-request .feature-request__details {
  margin-top: 0.75rem;
}

.admin-feature-requests th a {
  overflow-wrap: anywhere;
}
