/* The CCNA road (public /ccna-roadmap and the dashboard card): on top of brand.css, colours from its tokens, so dark mode follows. Phone first. */
.rm { --rm-tint: color-mix(in srgb, var(--amber) 16%, var(--surface)); --rm-mtn: color-mix(in srgb, var(--ink) 6%, var(--paper)); --rm-glow: color-mix(in srgb, var(--amber) 22%, transparent); }
.rm-hero { position: relative; padding: 4px 0 0; text-align: center; isolation: isolate; }
.rm-hero::before { content: ""; position: absolute; left: 50%; top: -40px; width: min(520px, 100%); height: 340px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--rm-glow), transparent); z-index: -1; pointer-events: none; }
.rm-hero h1 { margin: 2px 0 0; font-size: 31px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.rm-hero h1 span { display: block; margin-top: 3px; font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); }
.rm-quote { margin: 8px auto 0; max-width: 46ch; font-size: 14px; line-height: 19px; color: var(--muted); }
.rm-quote b { color: var(--ink); font-weight: 600; }
.rm-quote small { font-size: 13px; white-space: nowrap; }
.rm-map { margin: 0 -8px; }
.rm-trail { display: block; width: 100%; height: auto; overflow: visible; }
.rm-trail.rm-d { display: none; }
.rm-mtn { fill: var(--rm-mtn); }
.rm-sun { opacity: .9; transform-origin: center; transform-box: fill-box; animation: rm-pulse 4.5s ease-in-out infinite; }
.rm-lane { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1.2 3.2; }
.rm-lane-lit { fill: none; stroke: var(--amber); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .9s cubic-bezier(.3, .8, .2, 1); }
.rm-st { cursor: pointer; outline: none; }
.rm-st .rm-disc { fill: var(--surface); stroke: var(--line); stroke-width: 2.5; transition: fill .3s, stroke .3s; }
.rm-st .rm-halo { fill: var(--amber); opacity: 0; transition: opacity .25s; }
.rm-st .rm-num { fill: var(--ink); font-weight: 800; }
.rm-st .rm-tick { fill: none; stroke: var(--on-amber); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.rm-st .rm-flag { fill: var(--amber); stroke: var(--on-amber); stroke-width: 1.8; stroke-linejoin: round; }
.rm-st .rm-lbl { fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.rm-st .rm-hrs { fill: var(--muted); font-weight: 500; }
.rm-st:hover .rm-disc, .rm-st:focus-visible .rm-disc { stroke: var(--amber); stroke-width: 4; }
.rm-st:hover .rm-halo, .rm-st:focus-visible .rm-halo { opacity: .25; }
.rm-st[data-step="10"] .rm-disc { fill: var(--amber); stroke: var(--amber); }
.rm-st.known .rm-disc { fill: var(--amber); stroke: var(--amber); }
.rm-st.known .rm-num { opacity: 0; }
.rm-st.known .rm-tick { opacity: 1; }
.rm-st.start .rm-disc { stroke: var(--amber); stroke-width: 5; }
.rm-st.start .rm-halo { opacity: .35; }
@keyframes rm-pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes rm-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes rm-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .rm-lane { stroke-dasharray: 100 100; stroke-dashoffset: 100; animation: rm-draw 1.9s .15s cubic-bezier(.3, .7, .2, 1) both; }
    .rm-st .rm-in { animation: rm-pop .45s var(--d, 600ms) cubic-bezier(.3, 1.4, .4, 1) both; transform-origin: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .rm-sun { animation: none; } .rm-lane-lit { transition: none; } }
.rm-where { text-align: center; }
.rm-where h2 { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rm-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 560px; margin: 0 auto; }
.rm-seg button { min-height: 48px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px/1.2 var(--font); cursor: pointer; }
.rm-seg button[aria-checked="true"] { border-color: var(--amber); background: var(--rm-tint); box-shadow: inset 0 0 0 1.5px var(--amber); }
.rm-seg button:hover { background: var(--surface-hover); }
.rm-est { margin: 8px auto 0; max-width: 46ch; min-height: 44px; font-size: 16px; line-height: 22px; }
.rm-est b { font-weight: 800; }
.rm-est small { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--muted); }
.rm-cta { margin: 6px auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rm-cta .btn { width: 100%; max-width: 420px; min-height: 54px; font-size: 18px; font-weight: 800; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 20px rgba(233, 162, 27, .28); }
.rm-cta .btn svg { width: 20px; height: 20px; }
.rm-proof { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; line-height: 18px; color: var(--muted); }
.rm-proof li::before { content: "✓ "; color: var(--correct); font-weight: 800; }
.rm-how { margin: 36px 0 0; padding: 20px 0 8px; border-top: 1px solid var(--line-soft); }
.rm-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rm-how li { font-size: 14px; line-height: 20px; color: var(--muted); }
.rm-how b { display: block; font-size: 15px; color: var(--ink); }
.rm-plan { margin: 14px 0 0; text-align: center; font-size: 14px; }
/* the long text: closed by default, here for people who want it all and for search engines */
.rm-all { margin-top: 28px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); }
.rm-all > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 18px; font-weight: 700; font-size: 17px; }
.rm-all > summary::-webkit-details-marker { display: none; }
.rm-all > summary small { font-weight: 400; font-size: 14px; color: var(--muted); }
.rm-all > summary::after { content: "▾"; margin-left: auto; transition: transform .2s; }
.rm-all[open] > summary::after { transform: rotate(180deg); }
.rm-all .inner { padding: 0 18px 18px; }
.rm-step { padding-top: 22px; scroll-margin-top: 16px; }
.rm-step h2 { font-size: 21px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.rm-step h3 { margin-top: 12px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rm-step ul { margin: 4px 0 0; padding-left: 20px; }
.rm-step p { margin: 6px 0 0; }
.rm-faq { padding-top: 40px; }
.rm-faq h2 { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.015em; }
.rm-faq details { border-bottom: 1px solid var(--line-soft); }
.rm-faq summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; }
.rm-faq details p { margin: 0 0 14px; color: var(--muted); }
.rm-note { margin: 28px 0 8px; font-size: 12px; line-height: 17px; color: var(--muted); text-align: center; }
/* details sheet */
.rm-bg { position: fixed; inset: 0; background: var(--backdrop); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 80; }
.rm-bg.on { opacity: 1; pointer-events: auto; }
.rm-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 600px; margin: 0 auto; z-index: 81; max-height: 86vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-soft); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.rm-sheet.on { transform: none; }
.rm-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.rm-sh-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rm-sh-k { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rm-sheet h3 { margin: 2px 0 0; font-size: 23px; line-height: 29px; letter-spacing: -0.015em; }
.rm-x { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; cursor: pointer; }
.rm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.rm-chip { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.rm-sheet h4 { margin: 16px 0 4px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rm-sheet ul { margin: 0; padding-left: 18px; font-size: 15.5px; line-height: 23px; }
.rm-sheet ul li::marker { color: var(--amber); }
.rm-sheet ul.rm-labs { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rm-labs a { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 12px; min-height: 44px; border-radius: 10px; background: var(--surface-hover); border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.rm-labs a:hover { border-color: var(--amber); }
.rm-labs small { color: var(--muted); white-space: nowrap; }
.rm-free { font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--amber); color: var(--on-amber); margin-left: 6px; }
.rm-ready { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--rm-tint); font-size: 15px; line-height: 22px; }
.rm-ready b { display: block; margin-bottom: 2px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rm-act { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.rm-act button { min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 15px var(--font); cursor: pointer; }
.rm-act button.pri { border-color: var(--amber); background: var(--rm-tint); }
@media (min-width: 760px) {
    .rm-hero h1 { font-size: 52px; }
    .rm-hero h1 span { font-size: 26px; }
    .rm-quote { max-width: 56ch; font-size: 17px; line-height: 25px; }
    .rm-trail.rm-m { display: none; }
    .rm-trail.rm-d { display: block; }
    .rm-map { margin: 8px 0 0; }
    .rm-seg { max-width: 640px; }
    .rm-seg button { font-size: 16px; }
    .rm-est { font-size: 21px; line-height: 29px; }
    .rm-sheet { bottom: 24px; border-radius: 20px; border-bottom: 1px solid var(--line-soft); max-height: 80vh; }
}
@media (max-width: 380px) { .rm-hero h1 { font-size: 28px; } .rm-hero h1 span { font-size: 17px; } .rm-seg button { font-size: 14px; } }
/* brand.css sets margins and widths on paragraphs: say it again here, more specifically */
.rm .rm-quote, .rm .rm-est, .rm .rm-plan { margin-left: auto; margin-right: auto; text-align: center; }
.rm .rm-quote { max-width: 46ch; }
.rm .rm-est { max-width: 46ch; }
@media (min-width: 760px) { .rm .rm-quote { max-width: 56ch; } }
