/* Motopedia Ride it (/ride/): page layout around the 3D ride (the ride's own styles are in ride_app.js). */
.rdp { max-width: 1400px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 40px; color: #26282C; }
.rdp *, .rdp *::before, .rdp *::after { box-sizing: border-box; }
.rdp-head { padding: 22px 0 6px; }
.rdp-head h1 { font: 900 34px/1.1 Lato, Arial, sans-serif; margin: 4px 0 8px; color: #0A0A0A; letter-spacing: -.015em; }
.rdp-head p { max-width: 900px; margin: 0; color: #5F6166; font-size: 16px; line-height: 1.5; }
.rdp-pick { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 14px 0 10px; }
.rdp-pick label { font: 700 13px/1 Lato, Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #5F6166; }
.rdp-pick select { font: 600 15px/1.2 Lato, Arial, sans-serif; padding: 8px 10px; border: 1px solid #CFCFCF; border-radius: 8px; background: #FFF; color: #111; max-width: 100%; }
.rdp-pick a { font: 600 14px/1.2 Lato, Arial, sans-serif; color: #C2502A; }
.rdp-stage { width: 100%; height: min(72vh, 720px); min-height: 420px; border-radius: 12px; }
.rdp-stage:fullscreen { height: 100%; border-radius: 0; }
@media (max-width: 700px) {
  .rdp-stage { height: calc(100svh - 110px); min-height: 420px; border-radius: 8px; }
  .rdp-head { padding: 10px 0 2px; } .rdp-head h1 { font-size: 24px; margin: 2px 0 4px; }
  /* the intro collapses to two lines on phones, so the game is above the fold */
  .rdp-head p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .rdp-pick { margin: 6px 0; } .rdp-pick label, .rdp-pick select { display: none; } .rdp-pick a { font-size: 13px; }
}
.rdp-spec { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; padding: 0; list-style: none; font: 500 14px/1.4 Lato, Arial, sans-serif; color: #5F6166; }
.rdp-spec b { color: #0A0A0A; }
.rdp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 26px 0 10px; }
@media (max-width: 980px) { .rdp-grid { grid-template-columns: 1fr; } }
.rdp-card { border: 1px solid #E1E1E1; border-radius: 12px; padding: 16px 18px; background: #FFF; }
.rdp-card h2 { font: 900 20px/1.2 Lato, Arial, sans-serif; margin: 0 0 8px; color: #0A0A0A; }
.rdp-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.rdp-card svg { display: block; width: 100%; height: auto; margin: 6px 0 10px; }
.rdp-live { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #FBEDE7; border: 1px solid #EBC3B3; font: 500 14px/1.5 Lato, Arial, sans-serif; }
.rdp-live b { font-variant-numeric: tabular-nums; color: #0A0A0A; }
.rdp-live .k { display: block; font: 700 11px/1 Lato, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #C2502A; margin-bottom: 6px; }
.rdp-more { margin: 26px 0 0; max-width: 980px; }
.rdp-more h2 { font: 900 24px/1.2 Lato, Arial, sans-serif; margin: 22px 0 8px; color: #0A0A0A; }
.rdp-more p, .rdp-more li { font-size: 15.5px; line-height: 1.6; }
.rdp-more table { border-collapse: collapse; font-size: 14.5px; margin: 8px 0 14px; }
.rdp-more th, .rdp-more td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid #EEE; vertical-align: top; }
.rdp-more kbd { display: inline-block; padding: 1px 6px; border: 1px solid #CFCFCF; border-bottom-width: 2px; border-radius: 4px; font: 700 12px/1.4 Lato, Arial, sans-serif; background: #FAFAFA; }
.rdp-credit { font-size: 13.5px; color: #5F6166; margin-top: 18px; }

/* the explanations sit in a "How it works" panel under the ride (closed until asked for) */
.rdp-how { margin: 18px 0 0; border: 1px solid #E1E1E1; border-radius: 12px; background: #FAFAF8; }
.rdp-how > summary { cursor: pointer; padding: 14px 18px; font: 900 18px/1.3 Lato, Arial, sans-serif; color: #0A0A0A; list-style: none; }
.rdp-how > summary::-webkit-details-marker { display: none; }
.rdp-how > summary::before { content: '\25B8  '; color: #C2502A; } .rdp-how[open] > summary::before { content: '\25BE  '; }
.rdp-how .rdp-grid { margin: 0; padding: 0 14px 6px; } .rdp-how .rdp-more { padding: 0 18px 16px; margin: 0; }
.rdp-live { font-size: 15px; } .rdp-live b { font-size: 16px; }
.rdp-live .rdp-wait { display: none; color: #5F6166; font-style: italic; }
.rdp-live.waiting .rdp-wait { display: inline; } .rdp-live.waiting .rdp-vals { display: none; }
@media (max-width: 700px) { .rdp-how > summary { font-size: 16px; padding: 12px 14px; } .rdp-how .rdp-grid { padding: 0 8px 6px; } .rdp-how .rdp-more { padding: 0 12px 12px; } }
/* landscape phones: the ride fills the screen; the intro is left out (it is in the page title and How it works) */
@media (max-height: 520px) and (orientation: landscape) {
  .rdp-head p, .rdp-pick { display: none; }
  .rdp-head { padding: 6px 0 4px; } .rdp-head h1 { font-size: 20px; margin: 0; } .rdp-head .ute-label { display: none; }
  .rdp-stage { height: calc(100svh - 12px); min-height: 300px; border-radius: 6px; }
}
