/* ═══════════════════════════════════════════════════════════════
   CrisisFlare — public roadmap (rm2-* layer · "chevron cards").
   Three tracks flow left→right as a connected row of chevron-shaped
   cards (notched left, pointed right). Segment fill = the DERIVED
   status of that phase (Live · In progress · Planned), NEVER a
   decorative gradient. Phase captions are flat + STICKY — the axis
   pins under the crisis bar and follows the reader down the tracks.
   Nothing static wears pill/button chrome. Light theme, WCAG 2.1 AA.
   ═══════════════════════════════════════════════════════════════ */

.rm2-page { max-width: 1200px; margin-inline: auto; padding: 34px 30px 58px; }

/* ── header ── */
.rm2-head { max-width: 680px; }
.rm2-head .cf-h1 { outline: none; }
.rm2-meta { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; }
.rm2-meta > svg { width: 15px; height: 15px; flex: none; color: var(--cf-blue-mid); margin-top: 2px; }
.rm2-meta p { font-size: 13px; color: var(--cf-ink-3); line-height: 1.55; }
.rm2-meta .upd { font-weight: 800; color: var(--cf-ink-2); }

/* ── "Live today" proof band ── */
.rm2-live { margin-top: 26px; }
.rm2-kick { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cf-ink-3); }
.rm2-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(198px, 1fr)); gap: 10px; margin-top: 11px; }
.rm2-tile {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--cf-surface); border: 1px solid var(--cf-line);
  border-radius: var(--cf-r-card); padding: 14px 15px; box-shadow: var(--cf-sh-1);
}
.rm2-tile .ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--cf-blue-050); color: var(--cf-blue-mid); border-radius: 10px; }
.rm2-tile .ic svg { width: 17px; height: 17px; }
.rm2-tile p { font-size: 13.5px; font-weight: 700; color: var(--cf-ink); line-height: 1.45; margin-top: 5px; }

/* ═══════════ the board (chevron-card tracks on a shared phase grid) ═══════════ */
.rm2-board {
  --rm-n: 5;            /* phase count (also set inline) */
  --rm-rail: 210px;     /* track-label rail width       */
  --rm-pt: 22px;        /* chevron point depth (right)  */
  --rm-notch: 20px;     /* chevron notch depth (left)   */
  --rm-terra-ink: #3A1D08;   /* dark ink on terracotta fill */
  --rm-plan-bg: #F2E9D6;     /* pale planned fill           */
  margin-top: 30px;
}
.rm2-map-h { font-size: 22px; font-weight: 800; color: var(--cf-navy); letter-spacing: -0.01em; margin: 6px 0 4px; }
.rm2-map-sub { margin: 0 0 18px; color: var(--cf-ink-3); font-size: 14px; line-height: 1.5; max-width: 74ch; }

/* phase axis — flat captions, STICKY (pins under the sticky crisis bar) */
.rm2-axis {
  display: grid; grid-template-columns: var(--rm-rail) repeat(var(--rm-n), 1fr); align-items: end;
  position: sticky; top: var(--rm-axis-top, 46px); z-index: 40;
  background: var(--cf-cream); padding-top: 12px; margin-bottom: 4px;
  box-shadow: 0 1px 0 var(--cf-line), 0 6px 10px -8px rgba(15,30,58,.12);
}
.rm2-axis .corner { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--cf-ink-3); padding: 0 0 12px 2px; align-self: end; }
.rm2-tick { text-align: center; padding: 0 6px 11px; position: relative; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--cf-ink-3); }
.rm2-tick::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--cf-line-2); border-radius: 2px; }
.rm2-tick[data-now] { color: var(--cf-orange-ink); font-weight: 800; }
.rm2-tick[data-now]::after { background: var(--cf-orange); }

/* a track = label rail + band of chevron cards */
.rm2-track { display: grid; grid-template-columns: var(--rm-rail) 1fr; align-items: stretch; margin-top: 20px; }
.rm2-track-label { padding: 6px 22px 6px 2px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.rm2-tl-top { display: flex; align-items: center; gap: 11px; }
.rm2-tl-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; background: var(--cf-navy); color: #fff; display: grid; place-items: center; }
.rm2-tl-ic svg { width: 20px; height: 20px; }
.rm2-tl-name { font-size: 16px; font-weight: 800; color: var(--cf-navy); line-height: 1.18; letter-spacing: -0.01em; }
.rm2-tl-count { font-size: 12.5px; color: var(--cf-ink-3); font-weight: 600; }

/* band + cells */
.rm2-band { display: grid; grid-template-columns: repeat(var(--rm-n), 1fr); overflow: visible; align-items: stretch; }
.rm2-cell { position: relative; min-height: 200px; display: flex; z-index: 1; }
.rm2-spacer { min-height: 200px; }

/* chevron card */
.rm2-chev {
  position: relative; width: calc(100% + var(--rm-pt)); min-height: 200px;
  display: flex; flex-direction: column; padding: 18px 40px 16px 36px;
  clip-path: polygon(0 0, calc(100% - var(--rm-pt)) 0, 100% 50%, calc(100% - var(--rm-pt)) 100%, 0 100%, var(--rm-notch) 50%);
  filter: drop-shadow(0 2px 3px rgba(22,41,76,.10));
}
.rm2-chev.rm2-first { padding-left: 24px; clip-path: polygon(0 0, calc(100% - var(--rm-pt)) 0, 100% 50%, calc(100% - var(--rm-pt)) 100%, 0 100%); }
.rm2-s-live { background: var(--cf-navy); color: #fff; }
.rm2-s-prog { background: var(--cf-orange); color: var(--rm-terra-ink); }
.rm2-s-plan { background: var(--rm-plan-bg); color: var(--cf-ink-3); }

.rm2-phase-cap { display: none; }   /* mobile-only phase label */

.rm2-stamp-row { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.rm2-stamp { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.rm2-stamp svg { width: 12px; height: 12px; }
.rm2-s-live .rm2-stamp { background: rgba(255,255,255,.16); color: #fff; }
.rm2-s-prog .rm2-stamp { background: rgba(58,29,8,.16); color: var(--rm-terra-ink); }
.rm2-s-plan .rm2-stamp { background: transparent; border: 1px solid var(--cf-line-2); color: var(--cf-ink-3); }

.rm2-c-title { font-size: 15.5px; font-weight: 800; line-height: 1.2; margin: 0 0 11px; letter-spacing: -0.01em; }
.rm2-s-live .rm2-c-title { color: #fff; }
.rm2-s-prog .rm2-c-title { color: var(--rm-terra-ink); }
.rm2-s-plan .rm2-c-title { color: var(--cf-ink-2); }

.rm2-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rm2-items li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.34; font-weight: 500; }
.rm2-bx { flex: none; width: 16px; height: 16px; margin-top: 1px; display: grid; place-items: center; box-sizing: border-box; }
.rm2-bx svg { width: 15px; height: 15px; }
.rm2-todo .rm2-bx { border: 1.6px solid currentColor; border-radius: 4px; opacity: .7; }
/* done check colour + item text colour per fill */
.rm2-s-live li.rm2-done, .rm2-s-live li.rm2-done .rm2-bx { color: #fff; }
.rm2-s-prog li.rm2-done, .rm2-s-prog li.rm2-done .rm2-bx { color: var(--rm-terra-ink); }
.rm2-s-plan li.rm2-done { color: var(--cf-ink-2); }
.rm2-s-plan li.rm2-done .rm2-bx { color: var(--cf-green-ink); }
.rm2-s-live li.rm2-todo { color: rgba(255,255,255,.82); }
.rm2-s-prog li.rm2-todo { color: rgba(58,29,8,.82); }
.rm2-s-plan li.rm2-todo { color: var(--cf-ink-3); }

.rm2-count { margin-top: auto; padding-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.rm2-s-live .rm2-count { color: rgba(255,255,255,.72); }
.rm2-s-prog .rm2-count { color: rgba(58,29,8,.66); }
.rm2-s-plan .rm2-count { color: var(--cf-ink-3); }

/* pointed dashed connector for a skipped phase inside the flow */
.rm2-connector { align-self: center; width: calc(100% + var(--rm-pt)); height: 22px; position: relative; }
.rm2-conn-bar {
  height: 22px; width: 100%; opacity: .9;
  background: repeating-linear-gradient(90deg, var(--cf-line-2) 0 10px, transparent 10px 18px);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 10px 50%);
}

/* ── "what your support funds" ── */
.rm2-fund { margin-top: 40px; background: var(--cf-blue-050); border: 1px solid var(--cf-blue-line); border-radius: var(--cf-r-card); padding: 24px; }
.rm2-fund h2 { font-size: 19px; letter-spacing: -0.01em; }
.rm2-fund-rows { margin-top: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rm2-fund-row { display: flex; flex-direction: column; gap: 9px; }
.rm2-fund-row .ic { width: 38px; height: 38px; display: grid; place-items: center; background: var(--cf-surface); border: 1px solid var(--cf-blue-line); color: var(--cf-blue-mid); border-radius: 10px; }
.rm2-fund-row .ic svg { width: 18px; height: 18px; }
.rm2-fund-row p { font-size: 13.5px; font-weight: 600; color: var(--cf-ink); line-height: 1.5; }
.rm2-fund .cta { margin-top: 20px; }
.rm2-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--cf-fill-strong); color: var(--cf-fill-strong-ink); border: 0; border-radius: var(--cf-r-pill); text-decoration: none; font-size: 14.5px; font-weight: 800; padding: 0 20px; min-height: 48px; }
.rm2-cta:hover { background: var(--cf-fill-strong-hover); color: var(--cf-fill-strong-ink); }
.rm2-cta svg { width: 16px; height: 16px; }

/* ── footer note ── */
.rm2-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 26px; }
.rm2-note svg { width: 15px; height: 15px; flex: none; color: var(--cf-ink-3); margin-top: 2px; }
.rm2-note p { font-size: 13px; color: var(--cf-ink-3); line-height: 1.55; }
.rm2-note p strong { color: var(--cf-ink-2); }

/* ═══════════ mobile: single-column stack per track, plain cards ═══════════ */
@media (max-width: 900px) {
  .rm2-axis { display: none; }
  .rm2-track { grid-template-columns: 1fr; margin-top: 22px; }
  .rm2-track-label { padding: 0 0 10px; }
  .rm2-band { grid-template-columns: 1fr; }
  .rm2-cell { min-height: 0; }
  .rm2-spacer { display: none; }
  .rm2-connector { display: none; }
  .rm2-chev, .rm2-chev.rm2-first { width: 100%; clip-path: none; border-radius: var(--cf-r-card); padding: 16px 18px; margin-bottom: 10px; min-height: 0; }
  .rm2-phase-cap { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; opacity: .85; }
}
@media (max-width: 560px) {
  .rm2-page { padding: 26px 16px 48px; }
  .rm2-tiles { grid-template-columns: 1fr 1fr; }
  .rm2-fund-rows { grid-template-columns: 1fr; gap: 14px; }
  .rm2-fund-row { flex-direction: row; align-items: flex-start; }
  .rm2-fund-row p { margin-top: 7px; }
}
@media (max-width: 420px) { .rm2-tiles { grid-template-columns: 1fr; } }
