/* Page-specific styling; shared navigation and lesson storage remain in place. */
.roadmap-page {
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: var(--font-display);
  --roadmap-ink: #20212a;
  --roadmap-muted: #786f67;
  --roadmap-border: #eee5d9;
  background: #fffdf9;
  color: var(--roadmap-ink);
  -webkit-font-smoothing: antialiased;
}
.roadmap-page [hidden] { display: none !important; }
.roadmap-page h1, .roadmap-page h2, .roadmap-page h3, .roadmap-page p { margin: 0; }
.roadmap-page :focus-visible { outline: 3px solid #93411b; outline-offset: 4px; }
.roadmap-page .pressBtn, .roadmap-page .bannerBtn { font-family: 'Nunito', sans-serif; }
.roadmap-page .accountBtn { font-family: 'Baloo 2', 'Nunito', sans-serif; }
.roadmap-page main { padding: 42px 44px 50px; align-items: stretch; background: radial-gradient(ellipse 680px 420px at 85% 10%, #fff0d970, transparent 78%); }
.roadmap-page #wrap, .roadmap-page .pageIntro { width: 100%; max-width: var(--page-width); margin-inline: auto; }
.roadmap-page .pageIntro { padding: 0; gap: 15px; align-items: center; margin-bottom: 29px; }
.roadmap-page .pageEmblem { width: 42px; height: 45px; flex: 0 0 42px; }
.roadmap-page .pageIntro h1 { font-size: clamp(28px, 3vw, 39px); font-weight: 800; letter-spacing: -.05em; line-height: 1.14; }
.roadmap-page .pageSubtitle { font-size: 13px; line-height: 1.7; color: var(--roadmap-muted); margin-top: 10px; }
.roadmap-eyebrow { font-size: 9px; font-weight: 800; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; color: #b14719; }
.pageIntro .roadmap-eyebrow { margin-bottom: 10px; }
.roadmap-back { margin-left: auto; white-space: nowrap; }
.roadmap-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.rm-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.roadmap-page .skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 20px; background: white; border-radius: 10px; color: var(--roadmap-ink); transform: translateY(-160%); }
.roadmap-page .skip-link:focus { transform: translateY(0); }

/* Header and footer are still generated by site.js. */
.roadmap-page #siteHeader { --header-pad: max(44px, calc((100% - 1200px) / 2)); padding: 19px var(--header-pad); border-bottom: 1px solid #f3ece1; background: #fffdf9; flex-wrap: nowrap; z-index: 10; }
.roadmap-page .siteLogo { font-size: 25px; font-weight: 800; letter-spacing: -.065em; gap: 9px; color: var(--roadmap-ink); }
.roadmap-page .siteLogoMark { height: 47px; }
.roadmap-page .siteHeaderRight { gap: 25px; }
@media (min-width: 1080px) {
  .roadmap-page .siteNav, .roadmap-page #siteHeader.navOpen .siteNav { display: flex; position: static; flex-direction: row; gap: 20px; min-width: 0; border: 0; padding: 0; background: transparent; box-shadow: none; }
  .roadmap-page .siteNav a { padding: 8px 0; border-radius: 0; font-size: 12px; font-weight: 600; }
  .roadmap-page .siteNav a:hover, .roadmap-page .siteNav a.active { background: transparent; color: #d44308; }
  .roadmap-page .siteNav a.active { box-shadow: 0 2px 0 #d44308; }
  .roadmap-page .navToggle { display: none; }
}
.roadmap-page #siteFooter { background: #fffdf9; border-color: #f3ece1; padding: 21px 24px 25px; }
.roadmap-page .footerSignoff { color: #8d8074; font-size: 12px; }
.roadmap-page .footerLinks { margin-top: 13px; gap: 6px 24px; }
.roadmap-page .footerLinks a { color: #7b7168; font-size: 10px; }
.roadmap-page .footerLinks a + a::before { display: none; }
.roadmap-page .demoBanner { border: 2px solid #f0a052; background: #fff1de; border-radius: 13px; padding: 13px 17px; margin: 0 0 24px; gap: 12px; box-shadow: none; }
.roadmap-page .demoTag { border: 0; background: #ed8123; color: #fff; border-radius: 6px; font-size: 11px; padding: 6px 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.roadmap-page .demoBanner .demoCopy { color: #5e3d1c; font-weight: 600; font-size: 14px; line-height: 1.6; flex-basis: 280px; }
.roadmap-page .demoBanner [data-analysis-progress] { font-size: 10px; line-height: 1.5; }
#error:empty { display: none; }
#error { background: #fff0e8; border: 1px solid #ecc5b3; color: #9d3021; padding: 19px; font-size: 13px; line-height: 1.7; border-radius: 14px; margin-bottom: 20px; }
#roadmapLoading, #empty { padding: 36px 28px; border: 1px solid var(--roadmap-border); border-radius: 20px; background: #fff; font-size: 14px; line-height: 1.7; color: var(--roadmap-muted); }
#roadmapLoading { display: flex; align-items: center; gap: 12px; }
.loading-dot { width: 11px; height: 11px; flex-shrink: 0; background: #ed8123; border-radius: 50%; box-shadow: 0 0 0 6px #fff0d9; }

/* A little encouragement above real lesson and position counts. */
#summary { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 390px; border: 1px solid #efddc4; border-radius: 23px; background: linear-gradient(110deg, #fffaf0, #fff1d8); overflow: hidden; margin-bottom: 26px; }
.journey-copy { padding: 32px 36px 29px; position: relative; z-index: 1; }
.journey-copy .roadmap-eyebrow { color: #996a36; margin-bottom: 14px; }
.journey-copy h2 { font-size: clamp(33px, 3.7vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.06em; }
.journey-copy h2 span { color: #d44308; }
.journey-description { color: #8b745c; font-size: 12px; line-height: 1.8; margin-top: 15px !important; }
.journey-art { position: relative; min-height: 246px; }
.journey-art img { position: absolute; width: 260px; height: 260px; object-fit: contain; right: 128px; bottom: -48px; transform: rotate(-5deg); z-index: 1; }
.journey-orbit { position: absolute; width: 250px; height: 250px; bottom: -73px; right: 108px; border-radius: 50%; background: #f9d89b80; }
.journey-art p { position: absolute; right: 30px; top: 69px; font: 600 24px/1.12 'Caveat', cursive; color: #8f592d; transform: rotate(7deg); z-index: 2; }
.journey-spark { position: absolute; width: 24px; height: 24px; fill: #f5b739; stroke: none; }
.spark-one { right: 83px; top: 37px; width: 21px; height: 21px; }
.spark-two { left: 16px; top: 79px; width: 16px; height: 16px; }
.journey-progress { position: relative; z-index: 2; grid-column: 1 / -1; background: #fffcf6; padding: 19px 36px 20px; border-top: 1px solid #f0dfc5; }
#progressRow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
#progressNum { font-size: 22px; font-weight: 800; color: #684b30; letter-spacing: -.045em; line-height: 1.3; }
#progressText { font-size: 11px; color: #8c7865; line-height: 1.6; }
#bar { height: 7px; background: #f1e7d7; border-radius: 8px; position: relative; overflow: hidden; }
#barFill, #barPartial { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 8px; }
#barPartial { background: #f4bd75; }
#barFill { background: #df721e; }
.progress-key { display: flex; gap: 17px; margin-top: 10px; flex-wrap: wrap; color: #8c7865; font-size: 9px; line-height: 1.5; }
.progress-key span { display: flex; gap: 6px; align-items: center; }
.progress-key i { width: 6px; height: 6px; border-radius: 50%; }
.key-complete { background: #df721e; }
.key-partial { background: #f4bd75; }

/* The entire path stays scrollable inside this card, including long careers. */
#mapCard { min-width: 0; background: #fff; border: 1px solid var(--roadmap-border); border-radius: 23px; padding: 27px; box-shadow: 0 8px 35px #9a5d1607; }
.map-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 3px; }
.map-heading h2, .next-heading h2 { font-size: 25px; font-weight: 800; letter-spacing: -.045em; line-height: 1.3; margin-top: 8px; }
.map-heading p:not(.roadmap-eyebrow) { color: #8c7b6b; font-size: 11px; line-height: 1.7; margin-top: 8px; }
.map-legend { display: flex; gap: 15px; flex-wrap: wrap; font-size: 9px; color: #958371; line-height: 1.5; }
.map-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.map-legend i { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; font-style: normal; font-size: 9px; }
.legend-done { background: #769b48; color: #fff; }
.legend-current { background: #ed8123; box-shadow: 0 0 0 3px #fff0d9; }
.legend-locked { border: 1px solid #d9c6ad; background: #faf5ec; }
#track { margin-top: 20px; width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; border: 1px solid #f1e6d6; border-radius: 15px; background: radial-gradient(ellipse 210px 140px at 22% 120%, #f5e4c6 0, #f5e4c6 90%, transparent 91%), radial-gradient(ellipse 310px 150px at 86% 125%, #f8ecd7 0, #f8ecd7 90%, transparent 91%), #fffaf2; scrollbar-color: #dfc7a5 #faf4e9; scrollbar-width: thin; }
#track > svg { display: block; max-width: none; }
.roadCase, .roadEdge, .roadDone, .roadCentre { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.roadCase { stroke: #e3c9a3; stroke-width: 30; }
.roadEdge { stroke: #f5e1bf; stroke-width: 26; }
.roadDone { stroke: #e88732; stroke-width: 26; }
.roadCentre { stroke: #fff9ed; stroke-width: 2; stroke-dasharray: 5 9; }
.stopRing { fill: #fff9ef; stroke: #d5bc97; stroke-width: 2; }
.stopNum { text-anchor: middle; font: 800 15px 'Nunito', sans-serif; fill: #a68d71; }
.stopLabel, .lessonCaption, .lessonPositionCount { text-anchor: middle; font-family: 'Nunito', sans-serif; }
.stopLabel { fill: #b25318; font-size: 11px; font-weight: 800; }
.lessonCaption { fill: #8c7053; font-size: 12px; font-weight: 800; }
.lessonPositionCount { fill: #a08c76; font-size: 10px; font-weight: 600; }
.stop.done .stopRing { fill: #779d49; stroke: #fffaf2; stroke-width: 3; }
.stop.done .stopNum { fill: #fff; font-size: 20px; }
.stop.done .lessonCaption { fill: #557a31; }
.stop.locked .stopRing { fill: #fffaf2; stroke: #dcc5a5; }
.stop.current .stopRing { fill: #ed8123; stroke: #fffaf2; stroke-width: 4; }
.stop.current .stopNum { fill: #fff; }
.stop.current .lessonCaption { fill: #b25318; }
.stop.clickable { cursor: pointer; }
.stop.clickable:hover .stopRing, .stop.clickable:focus-visible .stopRing { fill: #d96611; stroke: #bc5217; }
.stop.clickable:focus-visible { outline: none; }
.pulse { fill: none; stroke: #ed8123; stroke-width: 2; opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: roadmap-glow 2.4s ease-in-out infinite; } }
@keyframes roadmap-glow { 50% { stroke-width: 10; opacity: .16; } }
.stopProgressTrack, .stopProgress { fill: none; stroke-width: 3; }
.stopProgressTrack { stroke: #ecdabe; }
.stopProgress { stroke: #e88732; }
.flagPole { stroke: #d2ae7d; stroke-width: 2; }
.flag { fill: #efd2a5; }
.flagText { font: 800 9px 'Nunito', sans-serif; text-anchor: middle; fill: #ac885b; }
.map-toolbar { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.map-toolbar .pressBtn { gap: 7px; font-size: 11px; padding: 9px 13px; }
.map-toolbar .rm-icon { width: 17px; height: 17px; }
#mapRange { margin-left: auto; font-size: 10px; color: #9b8774; line-height: 1.6; }
.map-navigation { display: flex; gap: 8px; }
.map-navigation .pressBtn { width: 34px; height: 34px; padding: 7px; }
#openCard { display: flex; align-items: center; gap: 18px; padding: 23px; background: #fff8ee; border: 1px solid #f2d7b3; border-radius: 16px; margin-top: 26px; }
.current-lesson-icon { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: #ffecd0; border: 1px solid #f6d5a6; color: #d77320; border-radius: 13px; }
.current-lesson-icon .rm-icon { width: 26px; height: 26px; }
#openBody { flex: 1; min-width: 0; }
#openBody .roadmap-eyebrow { color: #ae6b31; font-size: 8px; }
#openName { font-size: 23px; font-weight: 800; letter-spacing: -.04em; line-height: 1.4; margin-top: 5px; }
#openThemes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.roadmap-page .chip { padding: 4px 7px; background: #fff1db; border: 1px solid #efdac0; border-radius: 6px; color: #98683b; font-size: 9px; font-weight: 650; line-height: 1.5; }
#openSub { margin-top: 10px; font-size: 10px; color: #947b62; line-height: 1.8; }
#openActions { flex-shrink: 0; }
#openStart { font-size: 15px; padding: 14px 24px; }
#roadmapComplete { display: flex; align-items: center; gap: 17px; margin-top: 26px; padding: 23px; background: #f4f8eb; border: 1px solid #dbe7c9; border-radius: 16px; }
#roadmapComplete > .rm-icon { color: #658c3e; width: 30px; height: 30px; stroke-width: 3; }
#roadmapComplete > div { flex: 1; }
#roadmapComplete h3 { font-size: 19px; font-weight: 800; letter-spacing: -.035em; line-height: 1.4; }
#roadmapComplete p { color: #7b8a69; font-size: 11px; line-height: 1.7; margin-top: 7px; }
#roadmapComplete .pressBtn { white-space: nowrap; }

#nextLessons { margin-top: 33px; }
.next-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 19px; }
.next-heading > p { font-size: 11px; line-height: 1.7; color: #948272; padding-bottom: 3px; }
#nextLessonList { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.next-lesson-card { position: relative; min-width: 0; padding: 22px; border: 1px solid var(--roadmap-border); border-radius: 18px; background: #fff; }
.next-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.next-number { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: #faf3e8; color: #b79770; border: 1px solid #eee0cc; border-radius: 11px; font: 800 15px 'Nunito', sans-serif; }
.next-lesson-card h3 { font-size: 15px; font-weight: 800; letter-spacing: -.025em; line-height: 1.5; }
.next-order { color: #a38d76; font-size: 9px; line-height: 1.5; margin-top: 1px !important; }
.next-lock { margin-left: auto; width: 15px; height: 15px; color: #c1ae98; }
.next-themes { display: flex; flex-wrap: wrap; gap: 5px; min-height: 48px; align-content: flex-start; }
.next-lesson-card .chip { background: #faf6ef; border-color: #f0e7da; color: #9b8167; font-size: 9px; }
.next-count { border-top: 1px solid #f2ebe1; padding-top: 14px; margin-top: 15px !important; font-size: 10px; color: #a08d7a; line-height: 1.6; }
.roadmap-signoff { display: flex; justify-content: center; align-items: center; gap: 8px; color: #a18a74; font: 600 22px/1.3 'Caveat', cursive; margin-top: 34px !important; text-align: center; }
.roadmap-signoff .rm-icon { width: 14px; height: 14px; fill: #eab667; stroke: none; }

@media (max-width: 980px) {
  .roadmap-page main { padding: 32px 24px 42px; }
  .roadmap-page #siteHeader { --header-pad: 24px; }
  .roadmap-back { font-size: 11px; padding: 9px 13px; }
  #summary { grid-template-columns: minmax(0, 1fr) 270px; }
  .journey-copy { padding: 29px; }
  .journey-copy h2 { font-size: 37px; }
  .journey-art img { width: 235px; height: 235px; right: 55px; bottom: -35px; }
  .journey-orbit { width: 225px; height: 225px; right: 55px; }
  .journey-art p { top: 39px; right: 17px; font-size: 21px; }
  .spark-one { top: 14px; right: 55px; width: 16px; height: 16px; }
  .spark-two { left: 3px; top: 90px; }
  .journey-progress { padding-inline: 29px; }
  .map-heading { align-items: flex-start; gap: 15px; }
  .map-legend { max-width: 150px; gap: 10px 13px; padding-top: 8px; }
  #openCard { gap: 14px; padding: 19px; }
  .current-lesson-icon { display: none; }
  #openStart { font-size: 14px; padding: 13px 18px; }
  .next-heading > p { max-width: 200px; }
  #nextLessonList { gap: 13px; }
  .next-lesson-card { padding: 18px; }
  .next-card-heading { gap: 8px; }
  .next-number { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
  .next-lesson-card h3 { font-size: 13px; }
}
@media (max-width: 680px) {
  .roadmap-page main { padding: 27px 20px 36px; }
  .roadmap-page #siteHeader { --header-pad: 20px; padding-block: 14px; }
  .roadmap-page .siteLogo { font-size: 23px; }
  .roadmap-page .siteLogoMark { height: 41px; }
  .roadmap-page .siteHeaderRight { gap: 10px; }
  .roadmap-page .navToggle { width: 36px; height: 36px; background: transparent; border-color: #e8dfd2; }
  .roadmap-page .pageIntro { flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
  .roadmap-page .pageEmblem { display: none; }
  .roadmap-page .pageIntro h1 { font-size: 32px; max-width: 360px; }
  .roadmap-page .pageSubtitle { font-size: 12px; margin-top: 12px; max-width: 360px; }
  .pageIntro .roadmap-eyebrow { margin-bottom: 14px; }
  .roadmap-back { margin-left: 0; font-size: 11px; }
  .roadmap-page .demoBanner { padding: 13px; gap: 9px; margin-bottom: 21px; }
  .roadmap-page .demoBanner .demoCopy { font-size: 13px; flex-basis: calc(100% - 60px); }
  #summary { grid-template-columns: minmax(0, 1fr); border-radius: 19px; margin-bottom: 21px; }
  .journey-copy { padding: 25px 24px 0; }
  .journey-copy .roadmap-eyebrow { font-size: 8px; }
  .journey-copy h2 { font-size: 36px; }
  .journey-description { font-size: 11px; margin-top: 13px !important; }
  .journey-description br { display: none; }
  .journey-art { min-height: 176px; }
  .journey-art img { width: 230px; height: 230px; right: auto; left: -5px; bottom: -52px; }
  .journey-orbit { width: 225px; height: 225px; right: auto; left: -16px; bottom: -109px; }
  .journey-art p { right: 20px; top: 46px; font-size: 23px; }
  .spark-one { right: 34px; top: 15px; width: 18px; height: 18px; }
  .spark-two { left: 22px; top: 22px; }
  .journey-progress { padding: 18px 24px; }
  #progressRow { gap: 5px 8px; }
  #progressNum { font-size: 22px; }
  #progressText { font-size: 10px; }
  .progress-key { font-size: 8px; gap: 13px; }
  #mapCard { padding: 22px 17px; border-radius: 19px; }
  .map-heading { display: block; padding-inline: 4px; }
  .map-heading h2, .next-heading h2 { font-size: 24px; }
  .map-heading p:not(.roadmap-eyebrow) { font-size: 11px; }
  .map-legend { max-width: none; margin-top: 15px; padding-top: 0; gap: 15px; }
  #track { margin-top: 18px; border-radius: 12px; }
  .map-toolbar { gap: 12px; flex-wrap: wrap; margin-top: 13px; }
  .map-toolbar .pressBtn { font-size: 10px; padding: 8px 10px; }
  .map-navigation { margin-left: auto; }
  .map-navigation .pressBtn { padding: 7px; width: 32px; height: 32px; }
  #mapRange { flex: 1 0 100%; order: 3; margin-left: 0; text-align: center; font-size: 9px; }
  #openCard { margin-top: 20px; padding: 19px; flex-direction: column; align-items: stretch; gap: 19px; border-radius: 13px; }
  #openName { font-size: 26px; }
  #openBody .roadmap-eyebrow { font-size: 8px; }
  #openThemes { gap: 5px; }
  .roadmap-page .chip { font-size: 9px; }
  #openSub { font-size: 11px; line-height: 1.8; }
  #openStart { width: 100%; font-size: 15px; padding: 12px 20px; }
  #roadmapComplete { flex-wrap: wrap; padding: 19px; }
  #roadmapComplete > div { flex-basis: calc(100% - 50px); }
  #roadmapComplete h3 { font-size: 18px; }
  #roadmapComplete .pressBtn { margin-left: 0; font-size: 11px; }
  #nextLessons { margin-top: 28px; }
  .next-heading { display: block; margin-bottom: 17px; }
  .next-heading > p { font-size: 11px; max-width: none; margin-top: 10px; }
  #nextLessonList { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .next-lesson-card { padding: 19px; border-radius: 15px; }
  .next-card-heading { margin-bottom: 13px; gap: 11px; }
  .next-number { width: 36px; height: 36px; font-size: 15px; border-radius: 11px; }
  .next-lesson-card h3 { font-size: 15px; }
  .next-order { font-size: 10px; }
  .next-themes { min-height: 0; }
  .next-count { font-size: 10px; padding-top: 12px; margin-top: 13px !important; }
  .roadmap-signoff { font-size: 19px; gap: 5px; margin-top: 27px !important; }
}
@media (max-width: 360px) {
  .roadmap-page main { padding-inline: 16px; }
  .roadmap-page .pageIntro h1 { font-size: 28px; }
  .journey-copy { padding-inline: 20px; }
  .journey-copy h2 { font-size: 31px; }
  .journey-art img { width: 202px; height: 202px; left: -18px; bottom: -43px; }
  .journey-art { min-height: 161px; }
  .journey-art p { font-size: 21px; right: 14px; }
  .journey-progress { padding-inline: 20px; }
  #mapCard { padding: 20px 13px; }
  .map-legend { font-size: 8px; gap: 10px; }
  #openCard { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .roadmap-page *, .roadmap-page *::before, .roadmap-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
