/* ==========================================================================
   roadmap.css — styles only the "What's next" page uses. The design: three
   lists of rows divided by hairlines, a 56×52 vote button on the left of
   each item up for a vote, and a one-line suggestion form.
   ========================================================================== */

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 880px;
  padding-bottom: 64px;
}

.roadmap .breadcrumbs {
  margin-bottom: -24px;
}

.page-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.page-lede {
  margin-top: 8px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ---------- Sections ---------- */
.roadmap-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 15px;
  font-weight: 500;
}

.section-aside {
  font-size: 12px;
  color: var(--fg-3);
}

.section-aside.none-left {
  color: var(--series-2);
}

.rows {
  display: flex;
  flex-direction: column;
}

.rows > :last-child {
  border-bottom: 1px solid var(--border);
}

/* a "building now" row: text left, status right */
.now-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.row-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.row-title {
  font-size: 15px;
  font-weight: 500;
}

.row-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-2);
}

.status-pill {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--hover);
  color: var(--fg-2);
  white-space: nowrap;
}

.status-pill.good {
  color: var(--up);
}

/* a row up for a vote: button, text, meta */
.vote-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.vote-row .row-text {
  padding-top: 4px;
}

.row-meta {
  font-size: 12px;
  color: var(--fg-3);
  white-space: nowrap;
  padding-top: 8px;
}

.vote {
  width: 56px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-2);
  font: inherit;
  cursor: pointer;
}

.vote:hover {
  background: var(--hover);
  color: var(--fg);
}

.vote[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.vote .count {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.vote:disabled {
  cursor: default;
  opacity: 0.6;
}

/* ---------- Suggestions ---------- */
.suggestions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestions h3 {
  font-size: 13px;
  font-weight: 500;
}

.suggestions-note {
  font-size: 12px;
  color: var(--fg-3);
}

.suggest {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.suggest label {
  font-size: 13px;
  color: var(--fg-2);
}

.suggest-row {
  display: flex;
  gap: 8px;
}

.suggest input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
}

.suggest input:focus {
  outline: none;
  border-color: var(--accent);
}

.suggest .button {
  height: 44px;
  padding: 0 16px;
}

.suggest-note {
  font-size: 12px;
  color: var(--fg-3);
}

.suggest-note.problem {
  color: var(--down);
}

/* ---------- Shipped ---------- */
.shipped-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.shipped-row .when {
  font-size: 13px;
  color: var(--fg-3);
}

.shipped-row .votes {
  color: var(--fg-3);
}

.roadmap [hidden] {
  display: none;
}

@media (max-width: 640px) {
  .vote-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .vote-row .row-meta {
    grid-column: 2;
    padding-top: 0;
  }

  .shipped-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
