/* The roadmap page. It uses the tokens and components of styles.css, and adds
   the three releases side by side and the list of what waits for v2. */

.rm-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px);
}

.rm-head h1 {
  font-family: var(--font-content);
  font-weight: var(--heading-weight);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

/* The releases: three columns that span the page, one under the other on a
   narrow screen. */
.rm-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.rm-stage {
  border-top: 3px solid var(--accent-fill);
  padding-top: 16px;
}

.rm-stage h3 {
  font-size: 1.35rem;
}

.rm-who {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.rm-when {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 14px;
}

.rm-stage .todo-list b {
  color: var(--ink);
  font-weight: 600;
}

/* An item that is built stays in its release, with the ticked box of the
   front page's check list in place of the empty one. */
.rm-stage .todo-list li.is-done::before {
  border: 1px solid var(--good-ink);
  background: var(--good-wash) no-repeat center / 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 4.8 9 10 3' fill='none' stroke='%232e7d32' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.rm-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-3);
}

/* What waits for v2: two columns of short items. */
.rm-later {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 22em;
  column-gap: clamp(24px, 4vw, 48px);
  color: var(--ink-2);
  font-size: 15.5px;
}

.rm-later li {
  break-inside: avoid;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.rm-later b {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 900px) {
  .rm-path {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The list of upstream contributions: sentences, so the cells wrap. */
.rm-list-title {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: 1.2rem;
}

.rm-list-lead {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
}

table.rm-upstream-list {
  width: 100%;
  margin-top: 12px;
  font-size: 14.5px;
}

table.rm-upstream-list th,
table.rm-upstream-list td {
  white-space: normal;
  text-align: left;
  vertical-align: top;
  padding: 8px 16px 8px 0;
}

table.rm-upstream-list td:first-child {
  width: 11em;
  color: var(--ink-2);
}

table.rm-upstream-list td:last-child {
  width: 16em;
}

/* On a phone the three columns do not fit: each row becomes a block, with the
   project above the contribution and the status under it. */
@media (max-width: 600px) {
  table.rm-upstream-list thead {
    display: none;
  }

  table.rm-upstream-list,
  table.rm-upstream-list tbody,
  table.rm-upstream-list tr,
  table.rm-upstream-list td {
    display: block;
  }

  table.rm-upstream-list tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  table.rm-upstream-list td,
  table.rm-upstream-list td:first-child,
  table.rm-upstream-list td:last-child {
    width: auto;
    padding: 2px 0;
    border-bottom: none;
  }

  table.rm-upstream-list td:first-child {
    font-size: 13px;
  }
}
