/* MFM Project Status — front-end status block.
   Everything is scoped to .mfm-status so it won't collide with the theme.
   Stage colors are CSS variables: override them in your theme to rebrand.
   Bar fills are the brand hues; numeral/label text is chosen to pass WCAG AA
   (>=4.5:1) against each fill. Cyan (design) and gold (construction) are light,
   so their numerals use dark ink; gray and navy use white. */

.mfm-status{
  --mfm-brand:#0b5c8a;
  --mfm-future:#5f6874;        /* gray  */
  --mfm-design:#2bbbef;        /* cyan  */
  --mfm-construction:#dda41f;  /* gold  */
  --mfm-complete:#0e3063;      /* navy  */

  box-sizing:border-box;
  border:1px solid #e6edf3;border-radius:10px;
  background:#f8fafc;padding:14px 16px;margin:0 0 14px;
  font-size:15px;line-height:1.5;color:#1a2b3c;
}
.mfm-status *{box-sizing:border-box}

.mfm-status__cap{
  margin:0 0 9px;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;
  color:#5c6774;font-weight:700;
}

/* badge (single-status + ongoing) — light tint + darkened hue text for contrast */
.mfm-status__badge{
  display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;
  padding:3px 11px;border-radius:999px;line-height:1.2;
}
.mfm-status__badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.mfm-badge-future{background:#eef1f4;color:#5f6874}
.mfm-badge-design{background:#e2f4fb;color:#0b6a90}
.mfm-badge-construction{background:#fbf1d6;color:#7a5d07}
.mfm-badge-complete{background:#e5eaf5;color:#0e3063}
.mfm-badge-ongoing{background:#e5eefb;color:#0b5c8a}

.mfm-status__line{font-size:14px;margin:8px 0 0;color:#33475a}

/* numbered segmented bar */
.mfm-status__bar{display:flex;gap:3px;height:24px;margin-bottom:10px}
.mfm-status__bar span{
  flex:1;min-width:18px;border-radius:4px;color:#fff;font-size:11.5px;font-weight:700;
  display:flex;align-items:center;justify-content:center;text-shadow:0 1px 1px rgba(0,0,0,.28);
}
.mfm-seg-future{background:var(--mfm-future)}
.mfm-seg-design{background:var(--mfm-design)}
.mfm-seg-construction{background:var(--mfm-construction)}
.mfm-seg-complete{background:var(--mfm-complete)}
/* Cyan and gold are light: give their numerals dark ink for contrast (bar + chips). */
.mfm-status__bar .mfm-seg-design,.mfm-chip.mfm-seg-design,
.mfm-status__bar .mfm-seg-construction,.mfm-chip.mfm-seg-construction{color:#12212e;text-shadow:none}

/* text color for the stage label in the phase list */
.mfm-fg-future{color:#5f6874}
.mfm-fg-design{color:#0b6a90}
.mfm-fg-construction{color:#7a5d07}
.mfm-fg-complete{color:#0e3063}

/* active-phase list */
.mfm-status__phases{list-style:none;margin:2px 0 0;padding:0}
.mfm-status__phases li{
  display:flex;gap:8px;font-size:12.5px;padding:5px 0;border-top:1px solid #eef1f4;align-items:flex-start;
}
.mfm-status__phases li:first-child{border-top:none}
.mfm-chip{
  flex:0 0 19px;height:19px;border-radius:5px;color:#fff;font-size:11px;font-weight:700;
  display:flex;align-items:center;justify-content:center;text-shadow:0 1px 1px rgba(0,0,0,.28);margin-top:1px;
}
.mfm-status__pname{font-weight:700}
.mfm-status__pstage{font-weight:700;font-size:10.5px;text-transform:uppercase;letter-spacing:.03em}
.mfm-status__ptext{color:#4a5b6a;display:block;margin-top:1px}

/* ongoing now/next list */
.mfm-status__steps{list-style:none;margin:2px 0 0;padding:0}
.mfm-status__steps li{font-size:13px;padding:5px 0;border-top:1px solid #eef1f4;color:#33475a}
.mfm-status__steps li:first-child{border-top:none}
.mfm-status__k{
  font-weight:700;color:var(--mfm-brand);font-size:10.5px;text-transform:uppercase;letter-spacing:.04em;margin-right:6px;
}

/* updated footer */
.mfm-status__updated{
  margin:11px 0 0;padding-top:9px;border-top:1px solid #eef1f4;
  font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#5f6b78;font-weight:600;
}

/* the "full" view (project page) can breathe a little more than a card */
.mfm-status--full{font-size:16px;padding:18px 20px}

@media (max-width:520px){
  .mfm-status__phases li{flex-wrap:wrap}
}
