/* Roadmap page: figures, road to beta, the three stages, the catalogue and the closing call to action.
   Built on base.css. Sprites stay pixel sharp at whole multiples of their own size (see .roadmap-slot). */

/* ---------- page heading with the three figures ---------- */
.rm-head{align-items:start}
.rm-head-act{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:20px}
.rm-figs{display:grid;grid-template-columns:repeat(3,auto);align-self:center}
.rm-fig{min-width:0;padding:2px 24px}
.rm-fig + .rm-fig{border-left:1px solid var(--line2)}
.rm-fig strong{display:block;font:700 46px/1 var(--disp);color:var(--gold);font-variant-numeric:tabular-nums}
.rm-fig span{display:block;max-width:124px;margin-top:10px;font:600 11px/1.45 var(--disp);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
/* the note takes the width of the three figures and never widens them */
.page-head .rm-fignote{grid-column:1/-1;width:0;min-width:100%;max-width:none;margin-top:16px;padding:12px 24px 0;border-top:1px solid var(--line);font-size:12.5px;line-height:1.55;color:var(--faint)}

/* ---------- road to beta ---------- */
.rm-signal{margin-top:24px}
.rm-signal-b{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:12px 40px;align-items:center;padding:20px 22px}
.rm-signal-b h3{font:700 24px/1.22 var(--disp);color:var(--text)}
.rm-signal-b p{font-size:15px;line-height:1.6;color:var(--muted)}
.rm-signal-b .status{margin-top:12px}

/* ---------- sections ---------- */
.rm-section{margin-top:34px}
.rm-intro{margin:14px 0 16px;max-width:82ch;font-size:15px;line-height:1.6;color:var(--muted)}

/* status labels: a small square, the same in stages, entries and the legend */
.roadmap-status{display:inline-flex;align-items:center;gap:8px;flex:none;font:700 11px/1 var(--disp);letter-spacing:.16em;text-transform:uppercase;color:var(--text);white-space:nowrap}
.roadmap-status::before{content:"";flex:none;width:7px;height:7px;background:var(--good)}
.roadmap-status.progress::before{background:var(--ember)}
.roadmap-status.planned::before{background:none;border:1px solid var(--gold2)}

/* ---------- the three stages ---------- */
.rm-phases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rm-phase{display:flex;flex-direction:column}
.rm-phase.is-current{border-top:2px solid var(--gold)}
.rm-phase .panel-b{flex:1;display:flex;flex-direction:column;padding:18px 18px 16px}
.rm-phase h4{font:700 21px/1.25 var(--disp);color:var(--text)}
.rm-phase p{margin:8px 0 16px;font-size:14.5px;line-height:1.6;color:var(--muted)}
.rm-phase ul{margin-top:auto;list-style:none;border-top:1px solid var(--hair)}
.rm-phase li{display:flex;align-items:baseline;gap:11px;padding:10px 0;border-bottom:1px solid var(--hair);font-size:14px;line-height:1.45;color:var(--text)}
.rm-phase li:last-child{border-bottom:0;padding-bottom:0}
.rm-phase li::before{content:"";flex:none;width:5px;height:5px;background:var(--gold);transform:translateY(-2px)}

/* ---------- catalogue filters ---------- */
.rm-tools .panel-b{display:grid;gap:16px}
.rm-tool-top{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px}
.rm-tools input,.rm-tools select{height:46px}
.rm-tools select{color-scheme:dark;cursor:pointer}
.rm-filters{gap:8px}
.rm-resultbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0 14px}
.rm-resultbar p{font-size:13.5px;color:var(--muted);font-variant-numeric:tabular-nums}

/* ---------- catalogue entries (js/roadmap.js) ---------- */
.roadmap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.roadmap-card{display:flex;flex-direction:column}
.roadmap-card:focus{outline:none}
.roadmap-card:focus-visible{outline:2px solid var(--gold2);outline-offset:2px}
.roadmap-card .panel-h{align-items:flex-start;min-height:0;padding-top:12px;padding-bottom:12px}
.roadmap-card .panel-h h3{font-size:16.5px;line-height:1.3;overflow-wrap:anywhere}
.roadmap-card .roadmap-status{margin-top:4px}
.roadmap-card-body{flex:1;display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;padding:16px}
.roadmap-card-body p{flex:1 1 200px;min-width:0;font-size:14.5px;line-height:1.6;color:var(--muted)}
.roadmap-card small{display:block;padding:11px 16px;border-top:1px solid var(--line);font:600 11px/1.35 var(--disp);letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}

/* sprite slots: art at 1x, small art (28 px and under) at 2x, never resampled */
.roadmap-card-art{display:flex;flex-wrap:wrap;gap:6px;flex:none;max-width:100%}
.roadmap-slot{display:grid;place-items:center;width:58px;height:58px;overflow:hidden;border:1px solid var(--line2);background:var(--line)}
.roadmap-slot img{display:block;width:auto;height:auto;max-width:none;image-rendering:pixelated}
.roadmap-slot img[src*="/bosses/small-"],.roadmap-slot img[src*="/sprites/pk."]{width:50px;height:50px}
.roadmap-slot img[src*="/sprites/teleport."],.roadmap-slot img[src*="/sprites/flames-of-zamorak."]{width:48px;height:48px}
.roadmap-slot img[src*="/skills/sailing."]{width:40px;height:40px}
.roadmap-slot img[src*="/update_icon."]{width:38px;height:34px}

.roadmap-more{display:flex;margin:22px auto 0;min-width:260px}
.roadmap-empty{border:1px solid var(--line);background:var(--panel)}
.roadmap-empty h3{margin-bottom:8px;font:700 21px/1.25 var(--disp);color:var(--text)}
.roadmap-empty p{font-size:15px}

/* ---------- legend and source ---------- */
.rm-legend{margin-top:30px}
.rm-legend-b{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.rm-legend-b p{display:grid;gap:10px;align-content:start;padding:16px 18px;font-size:14px;line-height:1.6;color:var(--muted)}
.rm-legend-b p + p{border-left:1px solid var(--line)}
.rm-source{margin-top:16px;max-width:110ch;font-size:13px;line-height:1.6;color:var(--faint)}

/* ---------- closing call to action ---------- */
.rm-close{position:relative;margin-top:34px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 40px;align-items:center;padding:24px 26px 24px 30px;border:1px solid var(--line);border-top-color:var(--line2);background:linear-gradient(180deg,#1b1309 0,#110b06 100%)}
.rm-close::before{content:"";position:absolute;left:-1px;top:-1px;bottom:-1px;width:4px;background:var(--gold)}
.rm-close h2{font:700 27px/1.15 var(--disp);color:var(--text)}
.rm-close p{margin-top:8px;font-size:15px;color:var(--muted)}

@media (max-width:1180px){
  .rm-fig{padding:2px 18px}
  .rm-fig strong{font-size:40px}
}
@media (max-width:1100px){
  .rm-head{grid-template-columns:1fr}
  .rm-figs{align-self:start;margin-left:-18px}
  .roadmap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rm-phases{gap:14px}
  .rm-phase .panel-h{flex-wrap:wrap;row-gap:6px}
}

/* ---------- phone ---------- */
@media (max-width:900px){
  .rm-head-act{margin-top:16px}
  .rm-head-act .btn{display:flex;width:100%}
  .rm-figs{margin-left:0;grid-template-columns:repeat(3,minmax(0,1fr))}
  .rm-fig{padding:0 12px}
  .rm-fig:first-child{padding-left:0}
  .rm-fig strong{font-size:34px}
  .rm-fig span{font-size:10px;letter-spacing:.1em}
  .page-head .rm-fignote{padding:12px 0 0}
  /* title strips with a long side label: the label drops under the title */
  .rm-signal .panel-h,.rm-section > .bar{flex-wrap:wrap;row-gap:7px}
  .rm-signal .panel-h{padding-top:12px;padding-bottom:12px}
  .rm-signal .panel-h .aux,.rm-section > .bar .aux{flex:0 1 auto;min-width:0;white-space:normal;line-height:1.4}
  .rm-signal{margin-top:18px}
  .rm-signal-b{grid-template-columns:1fr;padding:16px 14px}
  .rm-signal-b h3{font-size:21px}
  .rm-section{margin-top:28px}
  .rm-intro{font-size:14.5px}
  .rm-phases{grid-template-columns:minmax(0,1fr)}
  .rm-phase .panel-b{padding:16px 14px 14px}
  .rm-phase h4{font-size:19px}
  .rm-tool-top{grid-template-columns:minmax(0,1fr)}
  .rm-filters .tab{height:36px;padding:0 11px;font-size:12px}
  .roadmap-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .roadmap-card .panel-h{padding:11px 14px}
  .roadmap-card-body{padding:14px;gap:12px}
  .roadmap-card small{padding:10px 14px}
  .roadmap-more{width:100%;min-width:0}
  .rm-legend-b{grid-template-columns:minmax(0,1fr)}
  .rm-legend-b p{padding:14px}
  .rm-legend-b p + p{border-left:0;border-top:1px solid var(--line)}
  .rm-close{grid-template-columns:1fr;padding:20px 18px 20px 22px;margin-top:28px}
  .rm-close h2{font-size:23px}
  .rm-close .btn{display:flex;width:100%}
}
@media (max-width:360px){
  .rm-fig strong{font-size:30px}
  .rm-fig{padding:0 8px}
}
