/* Lists: idea rows, the vote tally, the record, the open lanes. */

/* Idea rows: the tally on the left is the vote. */
.ideas {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ideas > li {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.ideas > li:last-child {
  border-bottom: 0;
}
.ideas h3 a {
  text-decoration: none;
}
.ideas h3 a:hover {
  text-decoration: underline;
}
.ideas .meta {
  margin-top: 0.3rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  display: flex;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.tally {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  width: 100%;
  padding: 0.45rem 0.25rem 0.4rem;
  background: var(--sheet);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-weight: 400;
  line-height: 1.1;
}
.tally:hover {
  background: var(--paper);
  border-color: var(--ink);
}
.tally b {
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 1.6rem;
}
.tally span {
  font-size: 0.75rem;
}
.tally[aria-pressed="true"] {
  background: var(--ink);
  color: var(--sheet);
}
.tally.still {
  cursor: default;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  background: var(--sheet);
}

/* The record: what happened, newest first. */
.record {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
}
.record li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 0.15rem;
}
.record li:last-child {
  border-bottom: 0;
}
.record time {
  color: var(--ink-soft);
}

.empty {
  padding: 1.5rem 1rem;
  color: var(--ink-soft);
}

/* A function nobody has beaten yet stays quiet, so the rows with a record stand out. */
.fuel.untouched .fill {
  background: var(--rule);
}
.fuel.untouched .track {
  border-color: var(--rule);
}
.fuel.untouched .num {
  color: var(--ink-soft);
}

/* Stamps sit straight and small in the running record. */
.record .stamp {
  transform: none;
  font-size: 0.72rem;
  padding: 0.18rem 0.35rem 0.14rem;
  border-width: 1.5px;
}

.lanes {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.lanes ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.lanes .tag:hover {
  border-color: var(--ink);
}

/* A maintainer's remove control: closed until opened, so it is never pressed by accident. */
.remove {
  font-size: var(--step--1);
}
.remove summary {
  cursor: pointer;
  color: var(--ink-soft);
  width: fit-content;
}
.remove form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.remove button {
  color: var(--stamp-red);
  border-color: var(--stamp-red);
  padding: 0.25rem 0.6rem;
}
