/* ── Roadmap Page ─────────────────────────────── */
.rm-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans TC', 'Segoe UI', sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

/* ── Hero ── */
.rm-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0a3d42 100%);
  padding: 52px 20px 48px;
  text-align: center;
}
.rm-hero-label {
  display: inline-block; padding: 4px 16px; border-radius: 999px; margin-bottom: 16px;
  background: rgba(0,168,150,.18); border: 1px solid rgba(0,168,150,.4);
  color: #5eead4; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.rm-hero-title {
  font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 900; color: #fff;
  letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px;
}
.rm-hero-title em { font-style: normal; color: #5eead4; }
.rm-hero-desc { font-size: .95rem; color: rgba(200,230,255,.75); max-width: 56ch; margin: 0 auto; line-height: 1.75; }

/* ── Body ── */
.rm-body { max-width: 1040px; margin: 0 auto; padding: 52px 20px 80px; }
.rm-section { margin-bottom: 60px; }
.rm-section-title {
  font-size: 1.25rem; font-weight: 900; color: #0f172a;
  margin: 0 0 20px; padding-bottom: 10px;
  border-bottom: 3px solid #00a896; display: inline-block;
}

/* ── Callout ── */
.rm-callout {
  background: linear-gradient(135deg, #e8faf8, #ccfbf1);
  border: 1px solid rgba(0,168,150,.3); border-radius: 16px;
  padding: 24px 28px; margin-bottom: 40px;
}
.rm-callout p { margin: 0; font-size: .95rem; color: #0f4c40; line-height: 1.7; }
.rm-callout strong { color: #00786c; }

/* ── Tables ── */
.rm-table-wrap { overflow-x: auto; border-radius: 14px; box-shadow: 0 4px 20px rgba(15,23,42,.07); border: 1px solid #e2e8f0; }
.rm-table {
  width: 100%; border-collapse: collapse; font-size: .85rem; background: #fff;
}
.rm-table th {
  text-align: left; padding: 12px 16px;
  background: #0f172a; color: rgba(200,225,248,.85);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.rm-table td { padding: 11px 16px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; transition: background .12s; }
.rm-table tr:last-child td { border-bottom: none; }
.rm-table td { transition: background .1s; }
.rm-table td.rm-hl { background: rgba(0,168,150,.15) !important; color: #005f57 !important; }
.rm-table td:first-child { font-weight: 700; color: #0f172a; }

/* Competition table color columns */
.rm-table th.apcs  { background: #1b4f2a; }
.rm-table th.toi   { background: #7c3600; }
.rm-table th.usaco { background: #1a3a6b; }
.rm-table td.apcs  { background: rgba(52,168,83,.06);  color: #166534; }
.rm-table td.toi   { background: rgba(234,88,12,.07);  color: #7c2d12; }
.rm-table td.usaco { background: rgba(37,99,235,.06);  color: #1e3a8a; }
.rm-usaco-bronze  { font-weight: 700; color: #92400e; }
.rm-usaco-silver  { font-weight: 700; color: #475569; }
.rm-usaco-gold    { font-weight: 700; color: #854d0e; }
.rm-usaco-plat    { font-weight: 700; color: #1e40af; }

/* ── Level Group ── */
.rm-group-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #00a896; margin: 0 0 12px; display: block;
}
.rm-level-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
  margin-bottom: 32px;
}
.rm-level-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 20px 20px 18px; box-shadow: 0 2px 10px rgba(15,23,42,.05);
  border-top: 3px solid #00a896; transition: box-shadow .2s, transform .2s;
}
.rm-level-card:hover { box-shadow: 0 8px 28px rgba(0,168,150,.12); transform: translateY(-2px); }
.rm-level-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px;
  background: #ccfbf1; color: #0f766e; font-size: .7rem; font-weight: 800; letter-spacing: .05em;
}
.rm-level-card h3 { font-size: .95rem; font-weight: 800; color: #0f172a; margin: 0 0 6px; line-height: 1.3; }
.rm-level-card p  { font-size: .82rem; color: #64748b; margin: 0; line-height: 1.55; }

/* ── CTA ── */
.rm-cta {
  margin-top: 52px; padding: 32px 36px;
  background: linear-gradient(135deg, #e8faf8, #f0fdf9);
  border: 1px solid rgba(0,168,150,.22); border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.rm-cta h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: #0f4c40; }
.rm-cta p  { margin: 0; font-size: .84rem; color: #00a896; }
.rm-cta-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 11px 24px; border-radius: 999px;
  background: #06c755; color: #fff !important; font-size: .88rem; font-weight: 700;
  text-decoration: none !important; box-shadow: 0 2px 10px rgba(6,199,85,.3);
  transition: background .15s;
}
.rm-cta-btn:hover { background: #05a547; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6,199,85,.35); color: #fff !important; }

@media (max-width: 640px) {
  .rm-level-grid { grid-template-columns: 1fr 1fr; }
  .rm-cta { flex-direction: column; }
}
@media (max-width: 400px) {
  .rm-level-grid { grid-template-columns: 1fr; }
}
