/* Merit Path hub page — scoped styling, loaded after styles.css.
   Colors sampled directly from the Merit Path logo (infinity mark). */
:root {
  --mph-green: #045f30;
  --mph-green-bright: #0a8a48;
  --mph-green-soft: #e1f0e7;
  --mph-blue: #012567;
  --mph-blue-soft: #e2e6f0;
}

.meritpath-hub .brand strong { color: var(--mph-blue); }

/* Hero */
.mph-hero { background: linear-gradient(150deg, #f5f5f2 0%, #f5f5f2 55%, var(--mph-green-soft) 130%); }
.mph-hero .hero-copy { max-width: 820px; }

/* Buttons themed to the Merit Path brand (distinct from the RusPath blue/red pair) */
.mph-primary {
  background: var(--mph-green);
  border-bottom: none;
}
.mph-primary:hover { background: var(--mph-green-bright); }
.mph-cta {
  background: var(--mph-green); color: #fff;
}
.mph-cta:hover { background: var(--mph-green-bright); color: #fff; }
.mph-floating { background: var(--mph-blue); }
.mph-floating:hover { background: var(--mph-green); }

/* About */
.mph-about-grid article i { color: var(--mph-green); }

/* Open registrations */
.mph-registrations { background: var(--paper-deep); border-radius: 24px; }
.mph-reg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mph-reg-card {
  background: var(--surface); border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--accent, var(--mph-blue));
}
.mph-accent-blue { --accent: var(--mph-blue); }
.mph-accent-green { --accent: var(--mph-green); }
.mph-reg-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mph-reg-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
}
.mph-badge-soon { background: var(--paper-deep); color: var(--ink-faint); }
.mph-reg-flag { font-size: 30px; line-height: 1; }
.mph-reg-card h3 { margin: 0 0 8px; font-size: 21px; }
.mph-reg-card p { color: var(--ink-soft); margin: 0 0 18px; line-height: 1.7; }
.mph-reg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mph-accent-green-btn { background: var(--mph-green); }
.mph-accent-green-btn:hover { background: var(--mph-green-bright); }

/* Program cards */
.mph-program-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mph-program-card {
  display: block; background: var(--surface); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--mph-blue));
  text-decoration: none; color: inherit; transition: transform .16s ease, box-shadow .16s ease;
}
a.mph-program-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(1,37,103,.14); }
.mph-program-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mph-program-card h3 { margin: 0 0 8px; font-size: 18px; }
.mph-program-card p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.7; margin: 0 0 16px; }
.mph-program-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--accent, var(--mph-blue)); }
.mph-program-soon { border-style: dashed; opacity: .8; }
.mph-program-soon .mph-reg-flag i { color: var(--ink-faint); }
.mph-accent-muted { --accent: var(--ink-faint); }

/* Contact */
.mph-contact-card {
  max-width: 620px; margin: 0 auto; text-align: center; padding: 40px 32px; border-radius: 18px;
  background: var(--mph-blue-soft);
}
.mph-contact-card p { color: var(--ink-soft); margin-bottom: 20px; }

@media (max-width: 1100px) {
  .mph-program-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mph-reg-list, .mph-program-list { grid-template-columns: 1fr; }
}
