/* Roadmaps tab (public/roadmaps.js). Only the app's colour tokens (style.css), so it follows the app's look. */
.rm-hero, .rm-head { display: flex; align-items: center; gap: 12px; margin: 4px 2px 14px; }
.rm-hero img { border-radius: 22%; box-shadow: 0 0 0 1.5px var(--sw-magenta), 0 0 12px rgba(255, 45, 149, .5); }
.rm-hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rm-hero-text b, .rm-head h1 { font-family: var(--display); font-size: 19px; letter-spacing: .5px; margin: 0; overflow-wrap: anywhere; }
.rm-card { display: block; color: var(--text); text-decoration: none; }
.rm-card.active { border-color: var(--edge); }
.rm-top { display: flex; align-items: center; gap: 8px; }
.rm-emoji { font-size: 22px; line-height: 1; } .rm-emoji.big { font-size: 38px; }
.rm-name { flex: 1; min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
.rm-flag { color: var(--warn); font-size: 16px; }
.chip.rm-st.active { color: var(--ok); } .chip.rm-st.paused { color: var(--warn); } .chip.rm-st.idea { color: var(--sw-bblue); }
.rm-next { display: flex; gap: 8px; align-items: baseline; margin: 10px 0; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.rm-label { flex: none; color: var(--sw-bmagenta); font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.rm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rm-foot > .muted { flex: none; }
.rm-mini { display: flex; align-items: center; min-width: 0; }
.rm-mini i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--edge); background: var(--card); flex: none; }
.rm-mini i + i { margin-left: 11px; position: relative; }
.rm-mini i + i::before { content: ""; position: absolute; right: 9px; top: 2.5px; width: 11px; height: 2px; background: var(--edge); }
.rm-mini i.done { background: var(--sw-magenta); border-color: var(--sw-magenta); }
.rm-mini i.done + i::before { background: var(--sw-magenta); }
.rm-mini i.current { background: var(--sw-cyan); border-color: var(--sw-cyan); box-shadow: var(--glow-cyan); }
.rm-fold { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 0 6px 0 0; } i + .rm-fold { margin: 0 0 0 6px; }
.rm-earlier { margin: 18px 2px; } .rm-earlier summary { color: var(--muted); cursor: pointer; padding: 10px 0; font-size: 15px; }
.rm-old { display: flex; gap: 10px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; }
.rm-old b { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; } .rm-old .muted { flex: none; }

.rm-back { display: inline-block; text-decoration: none; padding: 4px 2px 10px; }
.rm-statuses { display: flex; gap: 4px 18px; margin: 0 2px 8px; }
.rm-stands { margin: 6px 2px 14px; line-height: 1.45; font-size: 15px; overflow-wrap: anywhere; }
.rm-flagbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; border-color: var(--warn); } .rm-flagbox .btn { flex: none; }
.rm-steps h3, .rm-h { margin: 0 0 10px; font-size: 16px; } .rm-h { margin: 18px 2px 10px; }
.rm-step { padding: 6px 0; font-size: 15px; } .rm-step .list-title { padding: 4px 0; line-height: 1.35; overflow-wrap: anywhere; }
.rm-step.done .list-title { text-decoration: line-through; }
.rm-add { margin-top: 8px; padding: 8px 14px; font-size: 14px; }
.rm-form { margin: 10px 0 4px; } .rm-form .rm-emoji-in { width: 64px; flex: none; text-align: center; }
.rm-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.rm-moves .btn { padding: 8px 18px; } .rm-source { font-size: 12px; overflow-wrap: anywhere; }
.rm-form input[type="date"] { color-scheme: dark; min-height: 44px; }

/* The road: one bend per stop; the part behind him is lit, the otter stands where he is. */
.rm-road { list-style: none; margin: 0; padding: 12px 12px 2px 4px; border-radius: 14px; background: rgba(21, 14, 30, .82); }
.rm-stop { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; min-height: 92px; }
.rm-lane { position: relative; }
.rm-lane svg { position: absolute; inset: 0; width: 64px; height: 100%; overflow: visible; }
.rm-lane path { fill: none; }
.rm-lane .road { stroke: var(--chip); stroke-width: 16; }
.rm-lane .road.lit { stroke: var(--sw-select); filter: drop-shadow(0 0 5px rgba(255, 45, 149, .55)); }
.rm-lane .stripe { stroke: var(--edge); stroke-width: 2; stroke-dasharray: 7 7; }
.rm-lane .road.lit + .stripe { stroke: var(--sw-magenta); }
.rm-dot { position: absolute; top: 32%; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; display: grid; place-items: center; color: var(--accent-text); font-weight: 800; font-size: 14px; }
.rm-dot::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2.5px solid var(--edge); background: var(--bg); z-index: -1; }
.rm-lane { isolation: isolate; } .rm-dot { z-index: 1; isolation: isolate; }
.rm-stop.done .rm-dot::before { background: var(--sw-magenta); border-color: var(--sw-magenta); }
.rm-stop.current .rm-dot img { border-radius: 50%; box-shadow: 0 0 0 2px var(--sw-cyan), var(--glow-cyan); }
.rm-body { padding: 6px 0 16px; min-width: 0; }
.rm-stop-text { display: flex; flex-direction: column; gap: 3px; width: 100%; min-height: 44px; border: 0; background: none; color: inherit; text-align: left; padding: 2px 0; font-size: 15px; line-height: 1.35; }
.rm-stop-title { overflow-wrap: anywhere; font-weight: 600; }
.rm-stop.upcoming .rm-stop-title { font-weight: 400; } .rm-stop.current .rm-stop-title { font-size: 17px; }
.rm-here { color: var(--sw-cyan); font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.rm-due { color: var(--warn); font-size: 13px; } .rm-note { overflow-wrap: anywhere; }
.rm-older { padding: 2px 2px 12px; }
.rm-undecided { display: flex; flex-direction: column; gap: 4px; padding: 14px; margin: 4px 0; border: 1px dashed var(--edge); border-radius: 14px; font-size: 15px; }

@media (hover: hover) { .rm-card:hover { border-color: var(--accent); } .rm-stop-text:hover .rm-stop-title, .rm-old:hover b { color: var(--accent); } }
@media (min-width: 900px) { .roadmaps { max-width: 760px; } }
