/* Roadmap — what is missing, what is being built, and in what order.
   Every colour is a token, so this follows light and dark without a second
   palette, the same way blueprint.css does. */

/* ── Overall shape of the work ─────────────────────────────────────────── */
.rm-bar {
  display: flex; gap: 3px; height: 10px; margin: 26px 0 12px;
  border-radius: 99px; overflow: hidden;
}
.rm-seg { display: block; border-radius: 99px; min-width: 4px; }

.rm-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--muted); }
.rm-key { display: inline-flex; align-items: center; gap: 7px; }
.rm-dot { width: 9px; height: 9px; border-radius: 99px; display: inline-block; }

.rm-done    { background: var(--green); }
.rm-active  { background: var(--ember); }
.rm-next    { background: var(--amber); }
.rm-planned { background: var(--hairline); }

.rm-principle {
  margin: 30px 0 0; padding: 16px 20px;
  border-left: 3px solid var(--ember);
  background: var(--ember-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 15px; max-width: 74ch;
}

/* ── The gaps, counted ─────────────────────────────────────────────────── */
.rm-gaps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.rm-gap {
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 16px 18px; background: var(--paper);
}
.rm-gap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.rm-gap-label { font-weight: 600; font-size: 14px; }
.rm-gap-count { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.rm-gap-count b { color: var(--ink); }

.rm-meter { height: 6px; border-radius: 99px; background: var(--hairline); margin: 11px 0 10px; overflow: hidden; }
.rm-meter span { display: block; height: 100%; border-radius: 99px; background: var(--green); }

.rm-gap-note { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ── Phases ────────────────────────────────────────────────────────────── */
.rm-phase { margin-bottom: 34px; }

.rm-phase-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--hairline);
}
.rm-phase-n {
  flex: none; width: 30px; height: 30px; border-radius: 99px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.rm-phase-head > div { flex: 1; min-width: 0; }
.rm-phase-name { margin: 3px 0 0; font-size: 18px; }
.rm-phase-goal { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 76ch; }
.rm-phase-count { flex: none; font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 6px; }

.rm-items { list-style: none; margin: 0; padding: 0; }

.rm-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 0; border-bottom: 1px solid var(--hairline);
}
.rm-item:last-child { border-bottom: 0; }

.rm-status {
  flex: none; width: 86px; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 0; border-radius: 99px; margin-top: 2px;
  color: #fff;
}
.rm-status.rm-planned { background: var(--hairline); color: var(--muted); }

.rm-item-body { min-width: 0; }
.rm-item-title { font-weight: 600; font-size: 15px; }
.rm-item-detail { margin: 5px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 76ch; }

/* Done items recede: the list is a record of what is left, not a trophy shelf. */
.rm-is-done .rm-item-title { color: var(--muted); text-decoration-color: var(--hairline); }

.rm-size {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--muted); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 0 5px; margin-left: 5px;
  vertical-align: 1px; cursor: help;
}

/* ── Out of scope ──────────────────────────────────────────────────────── */
.rm-not { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.rm-no {
  border: 1px dashed var(--hairline); border-radius: var(--r-md);
  padding: 15px 17px; background: transparent;
}
.rm-no-title { font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.rm-no p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

@media (max-width: 620px) {
  .rm-item { flex-direction: column; gap: 8px; }
  .rm-status { width: auto; align-self: flex-start; padding: 4px 12px; }
  .rm-phase-count { display: none; }
}

/* ── Policies ──────────────────────────────────────────────────────────────
   Hazards read as a list of discrete things that can go wrong, not as prose:
   a reader scanning for the one that applies to them should not have to read
   the others first. */
.pol-list { display: grid; gap: 10px; margin: 18px 0 26px; }

.pol-item {
  border: 1px solid var(--hairline); border-left: 3px solid var(--ember);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 13px 17px; background: var(--paper);
}
.pol-item-label { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.pol-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Safety line on every build page. Deliberately not a dismissible banner: the
   hazards it points at are permanent properties of the build, not a notice. */
.build-safety {
  margin: 14px 0 0; padding: 10px 14px;
  border-left: 3px solid var(--red, var(--ember));
  background: var(--ember-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13.5px; line-height: 1.55; max-width: 80ch;
}
.build-safety a { color: var(--ember-2); font-weight: 600; }

/* The release hash: long, and meant to be compared character by character. */
.rel-hash { display: block; margin-top: 6px; font-size: 12px; word-break: break-all; }
