/* Public roadmap page (templates/roadmap.html) — same sober style as the
   "Why Rulezet" page: neutral cards, blue for icons, links and figures. */

.rm-section-title {
    display: flex; align-items: center; gap: .5rem;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
    color: var(--subtle-text-color); margin-bottom: 1rem;
}
.rm-section-title i { color: #0d6efd; }

/* The direction: Curate → Test → Deploy → Learn */
.rm-flow { display: flex; align-items: stretch; gap: .75rem; }
.rm-flow__step {
    flex: 1; min-width: 0;
    padding: 1rem; border-radius: 12px;
    background: var(--light-bg-color); border: 1px solid var(--border-color);
}
.rm-flow__step strong { display: block; color: var(--text-color); margin: .5rem 0 .25rem; }
.rm-flow__step p { font-size: .82rem; color: var(--subtle-text-color); margin: 0; }
.rm-flow__icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #0d6efd; background: rgba(13, 110, 253, .1);
}
.rm-flow__arrow { align-self: center; color: var(--subtle-text-color); }
@media (max-width: 767.98px) {
    .rm-flow { flex-direction: column; }
    .rm-flow__arrow { transform: rotate(90deg); }
}

/* Table of contents */
.rm-toc {
    position: sticky; top: 90px;
    display: flex; flex-direction: column;
    padding: 1rem; border-radius: 12px;
    background: var(--card-bg-color); border: 1px solid var(--border-color);
}
.rm-toc__title {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--subtle-text-color); margin-bottom: .5rem;
}
.rm-toc a {
    display: flex; align-items: center; gap: .5rem;
    padding: .35rem .5rem; border-radius: 8px;
    font-size: .85rem; color: var(--text-color); text-decoration: none;
}
.rm-toc a:hover { background: var(--light-bg-color); color: #0d6efd; }
.rm-toc__n {
    width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .68rem; font-weight: 700; color: #0d6efd; background: rgba(13, 110, 253, .1);
}

/* Items */
.rm-item {
    scroll-margin-top: 90px;
    padding: 1.25rem 1.4rem; margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--card-bg-color); border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.rm-item--foundation { border-left: 4px solid #0d6efd; }
.rm-item__head { display: flex; align-items: flex-start; gap: .85rem; flex-wrap: wrap; }
.rm-item__num {
    font-size: .8rem; font-weight: 800; color: var(--subtle-text-color);
    min-width: 1.2rem; padding-top: .55rem;
}
.rm-item__icon {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #0d6efd; background: rgba(13, 110, 253, .1);
}
.rm-item__title { font-size: 1.05rem; font-weight: 700; color: var(--text-color); margin: 0 0 .2rem; }
.rm-item__pitch { font-size: .88rem; color: var(--subtle-text-color); margin: 0; }
.rm-item__badges { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.rm-status {
    font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: .2rem .65rem; border-radius: 99px; border: 1px solid transparent; white-space: nowrap;
}
.rm-status--shipped  { color: #198754; background: rgba(25, 135, 84, .12);  border-color: rgba(25, 135, 84, .3); }
.rm-status--progress { color: #0d6efd; background: rgba(13, 110, 253, .12); border-color: rgba(13, 110, 253, .3); }
.rm-status--planned  { color: #6f42c1; background: rgba(111, 66, 193, .12); border-color: rgba(111, 66, 193, .3); }
.rm-status--idea     { color: var(--subtle-text-color); background: var(--light-bg-color); border-color: var(--border-color); }
.rm-effort { font-size: .72rem; color: var(--subtle-text-color); white-space: nowrap; }
.rm-foundation-note {
    margin: .75rem 0 0; font-size: .78rem; font-weight: 600; color: #0d6efd;
}
.rm-points { margin: .85rem 0 0; padding-left: 1.2rem; }
.rm-points li { font-size: .86rem; color: var(--text-color); margin-bottom: .3rem; }

@media (max-width: 575.98px) {
    .rm-item__badges { flex-direction: row; align-items: center; width: 100%; }
}

/* Contribute */
.rm-contribute {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 1.25rem 1.4rem; margin-top: 1.5rem; border-radius: 12px;
    background: rgba(13, 110, 253, .05); border: 1px solid rgba(13, 110, 253, .2);
}
.rm-contribute h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.rm-contribute p { font-size: .88rem; color: var(--subtle-text-color); }
.rm-version { text-align: center; font-size: .75rem; color: var(--subtle-text-color); margin-top: 1.5rem; }
