.roadmap-board { margin: 0 4px 14px; }
.roadmap-board .section-head h2 { background: url('../images/icon_event_upcoming.webp') left center / 22px 22px no-repeat; }
.roadmap-board .section-head small { margin-left: auto; color: #7b7d74; font-size: 10px; }
.roadmap-note { margin: 6px 2px 0; color: #85847b; font-size: 10px; }
.roadmap-tags { display: flex; flex-wrap: wrap; gap: 3px; margin: 5px 0 0; padding: 0; list-style: none; }
.roadmap-tags:empty { display: none; }
.roadmap-tags li { padding: 1px 5px; border: 1px solid #c9d4d9; background: #eef3f5; color: #4f6873; font-size: 9px; font-weight: 700; }

/* Timeline ribbon */
.roadmap-ribbon { --dot: 16px; position: relative; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 10px; margin: 4px 0 0; padding: 4px 4px 2px; list-style: none; }
.roadmap-ribbon::before { content: ""; position: absolute; left: 12px; right: 12px; top: calc(4px + 22px + var(--dot) / 2 - 2px); height: 4px; border-radius: 2px; background: linear-gradient(90deg, #dc9a45, #8094b9 60%, #c9cfd6); box-shadow: 0 1px 0 #fff; }
.ribbon-stop { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.ribbon-when { height: 22px; margin: 0; }
.ribbon-when time { color: #5b6a72; font: 700 13px/22px Oswald, Impact, sans-serif; letter-spacing: .4px; text-transform: uppercase; }
.ribbon-dot { position: relative; z-index: 1; width: var(--dot); height: var(--dot); border: 3px solid #fff; border-radius: 50%; background: #7b9fb4; box-shadow: 0 0 0 1px #6b7f8d, 0 1px 2px #0003; }
.ribbon-body { position: relative; width: 100%; margin-top: 9px; padding: 8px 8px 9px; border: 1px solid #d3d0c2; background: #fffefa; box-shadow: inset 0 0 0 2px #fff; }
.ribbon-body::before { content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-top: 1px solid #d3d0c2; border-left: 1px solid #d3d0c2; background: inherit; transform: rotate(45deg); }
.ribbon-body h3 { margin: 0; color: #2f3a3f; font-size: 12px; line-height: 1.25; }
.ribbon-body p { margin: 4px 0 0; color: #666b68; font-size: 10px; line-height: 1.4; }
.ribbon-body .roadmap-tags { justify-content: center; }
.ribbon-flag { display: inline-block; margin-bottom: 4px; padding: 1px 6px; background: #d0893b; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .4px; }
.ribbon-flag.done { background: #8a9d50; }
.ribbon-stop.is-next .ribbon-dot { background: #f0b04f; box-shadow: 0 0 0 1px #b47a32, 0 0 0 5px #f6d9a1; }
.ribbon-stop.is-next .ribbon-when time { color: #a5642a; }
.ribbon-stop.is-next .ribbon-body { border-color: #e1bb78; background: #fffaf0; }
.ribbon-stop.is-released .ribbon-dot { background: #9aab64; }
.ribbon-stop.is-released .ribbon-body { opacity: .75; }
.ribbon-stop.is-highlight .ribbon-dot { width: 24px; height: 24px; margin: -4px 0; border: 0; border-radius: 0; background: #e2a23d; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); box-shadow: none; }
.ribbon-stop.is-highlight .ribbon-when time { color: #b4452f; }
.ribbon-stop.is-highlight .ribbon-body { border-color: #c79a3e; background: linear-gradient(#fff3d2, #fffefa); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #fbe7b3; }
.ribbon-stop.is-highlight .ribbon-body h3 { color: #8a3a22; font-size: 13px; }
.ribbon-stop.is-tba .ribbon-dot { background: #fff; box-shadow: 0 0 0 1px #9aa5ab; border-style: dashed; }
.ribbon-stop.is-tba .ribbon-body { border-style: dashed; background: transparent; box-shadow: none; }
.ribbon-stop.is-tba .ribbon-body::before { display: none; }
.ribbon-stop.is-tba h3 { color: #7d8589; }

/* Launch banner */
.roadmap-banner { position: relative; display: flex; align-items: center; gap: 16px; min-height: 132px; margin-top: 4px; padding: 14px 18px; overflow: hidden; border: 2px solid #fff; outline: 1px solid #3a4a6e; background: #1a2550 url('../images/roadmap-launch-banner.webp') right bottom / auto 100% no-repeat; color: #fff; }
.roadmap-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,22,58,.92) 0, rgba(14,22,58,.7) 45%, transparent 75%); }
.banner-copy, .banner-count { position: relative; }
.banner-copy { min-width: 0; }
.banner-kicker { display: inline-block; margin: 0 0 4px; padding: 1px 7px; background: #e2a23d; color: #2b1a05; font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.banner-copy h3 { margin: 0; color: #ffe08a; font: 700 clamp(20px, 2.6vw, 30px)/1.05 Oswald, Impact, sans-serif; letter-spacing: .5px; text-transform: uppercase; text-shadow: 2px 2px 0 #4a2a0c; }
.banner-detail { margin: 5px 0 0; color: #e3e9f6; font-size: 12px; }
.banner-count { display: grid; justify-items: center; flex: none; margin-left: auto; margin-right: min(30%, 330px); padding: 7px 14px 8px; border: 2px solid #f2cf7a; background: rgba(20, 28, 64, .82); box-shadow: inset 0 0 0 1px #8a6a2a; }
.banner-count b { color: #fff; font: 700 34px/1 Oswald, Impact, sans-serif; text-shadow: 2px 2px 0 #9b551d; }
.banner-count span { margin-top: 2px; color: #f2cf7a; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.banner-strip { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.banner-strip li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; min-width: 0; padding: 7px 9px; border: 1px solid #d3d0c2; border-left: 4px solid #7b9fb4; background: #fffefa; }
.banner-strip time { color: #866a3d; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.banner-strip b { flex: 1 1 100%; color: #2f3a3f; font-size: 11px; line-height: 1.3; }
.banner-strip li.is-next { border-left-color: #d89d48; background: #fffaf0; }
.banner-strip li.is-released { border-left-color: #9aab64; opacity: .75; }
.banner-strip li.is-tba { border-style: dashed; border-left-style: solid; border-left-color: #c9cfd6; background: transparent; }
.banner-strip li.is-tba b { color: #7d8589; }
.strip-flag { order: 2; padding: 1px 5px; background: #d0893b; color: #fff; font-size: 9px; font-weight: 700; }
.strip-flag.done { background: #8a9d50; }
.banner-strip time { order: 1; }
.banner-strip b { order: 3; }

@media (max-width: 1100px) {
  .banner-count { margin-right: 0; }
  .roadmap-banner::before { background: linear-gradient(90deg, rgba(14,22,58,.92), rgba(14,22,58,.6)); }
  .banner-strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .roadmap-board { margin: 0 0 10px; }
  .roadmap-ribbon { grid-auto-flow: row; grid-template-columns: 1fr; gap: 10px; padding-left: 30px; }
  .roadmap-ribbon::before { left: 13px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; background: linear-gradient(#dc9a45, #8094b9 60%, #c9cfd6); }
  .ribbon-stop { display: block; text-align: left; }
  .ribbon-dot { position: absolute; left: -25px; top: 4px; }
  .ribbon-stop.is-highlight .ribbon-dot { left: -29px; top: 2px; margin: 0; }
  .ribbon-when { height: auto; }
  .ribbon-body { margin-top: 2px; }
  .ribbon-body::before { display: none; }
  .ribbon-body .roadmap-tags { justify-content: flex-start; }
  .ribbon-body h3 { font-size: 13px; }
  .ribbon-body p { font-size: 11px; }
  .roadmap-banner { flex-direction: column; align-items: flex-start; min-height: 0; padding: 14px; background-size: auto 70%; }
  .banner-count { margin: 0; grid-auto-flow: column; align-items: baseline; gap: 6px; }
  .banner-count b { font-size: 26px; }
  .banner-strip { grid-template-columns: 1fr; }
}

/* Banner + ribbon */
#home-roadmap[data-style="combo"] .roadmap-ribbon { margin-top: 10px; }
