/* Long interactive version: the live charts on the light side of the Prosus brand.
   The chart script reads its colours from :root, so they are set here: the deck's palette, picked to read on paper. */
:root {
  --faint: #7c8f8c;
  --land: #dde3e1;
  --bg-soft: #ffffff;
  --d-booking: #ff74b3;
  --d-ordering: #f3a507;
  --d-pos: #0084ff;
  --d-rewards: #158547;
  --d-main: #0084ff;
  --d-soft: #8fb4ff;
  --d-pale: #d6e2ff;
  --d-dark: #19546e;
  --pv-pink: #ff74b3;
  --pv-teal: #19546e;
  --pv-cobalt: #0084ff;
  --pv-viridian: #158547;
  --pv-champagne: #f3f3f3;
  --pv-amethyst: #883fff;
}

/* a live block shares the page's one content width */
.chapter .rtr-live { margin: 2rem 0; }
.rtr-live > .wrap, .rtr-live .chart-wrap { max-width: none; margin: 0; padding: 0; }
.rtr-live .chart { background: #fff; border-radius: 16px; padding: clamp(1rem, 2.4vw, 1.75rem); margin: 0 0 1rem; }
.rtr-live .chart img { border: 0; }
.rtr-live button, .rtr-live input { font-family: inherit; }
.rtr-live .cap-title { font-weight: 500; font-size: 1.05rem; }

/* the controls and cards of the interactive page were drawn for a dark page; here they sit on paper */
.rtr-live .guess button, .rtr-live .scrub button, .rtr-live .stack-toggles button, .rtr-live .market-chips button { border: 1px solid #b9c4c1; background: #fff; color: var(--ink); }
.rtr-live .guess button:hover, .rtr-live .scrub button:hover, .rtr-live .stack-toggles button:hover, .rtr-live .market-chips button:hover { border-color: var(--ink); }
.rtr-live .stack-toggles button[aria-pressed="true"], .rtr-live .market-chips button[aria-pressed="true"], .rtr-live .scrub button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.rtr-live .stack-bar, .rtr-live .journey-meter { background: #e3e8e6; }
.rtr-live .journey-steps li { border-color: #d3dad8; background: #f3f3f3; }
.rtr-live .profile-card { border-color: #d3dad8; background: #f3f3f3; }
.rtr-live .chart.profile { padding: 0; background: transparent; }
.rtr-live .profile-card { background: #fff; }

/* the side buttons of the interactive version, here one per chapter (light page) */
.rail { position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 6; display: grid; gap: 0.6rem; }
.rail[hidden] { display: none; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; text-decoration: none; color: var(--muted); font-size: 0.8rem; }
.rail a span { order: 2; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid #b9c4c1; display: grid; place-items: center; font-weight: 500; color: var(--ink); background: #fff; transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.rail a em { order: 1; font-style: normal; opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s; background: var(--ink); padding: 0.15rem 0.5rem; border-radius: 4px; color: #fff; }
.rail a:hover em, .rail a:focus-visible em, .rail a.is-here em { opacity: 1; transform: none; }
.rail a.is-here span { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 1240px) { .rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .rail a span, .rail a em { transition: none; } }
@media (max-width: 1400px) { .rail a em { display: none; } }   /* on laptop widths only the numbers: the label would touch the text */

/* the two contact cards: the Prosus Ventures card always takes the Prosus Ventures gradient, the Dashmote card the dark teal one */
.contact-block { padding-top: clamp(3rem, 7vw, 5rem); }
.rtr-live .contact-card { border: 0; border-radius: 20px; }
.rtr-live .contact-card h3 { color: inherit; font-weight: 500; }
.rtr-live .contact-card:first-child { background: var(--px-g-ventures); color: #fff; }

.rtr-live .contact-card:last-child { background: linear-gradient(180deg, #000000 0%, #000000 36%, #000102 40%, #030a0d 44%, #071419 48%, #0a1d24 52%, #102730 56%, #14303b 60%, #193a48 64%, #1d4353 68%, #21475e 72%, #264e6e 76%, #2b5481 80%, #325c95 84%, #3864a8 88%, #3e6bbd 92%, #4573d0 96%, #4b7be5 100%); color: #fff; }
.rtr-live .contact-card p { color: #d7dee0; }
.rtr-live .contact-card { padding-bottom: 4.5rem; }   /* the colour of both gradients sits in their lower part: keep the text and the button above it */
/* both cards: the button sits at the same height, whatever the length of the text above it */
.rtr-live .contact-card { display: flex; flex-direction: column; align-items: flex-start; }
.rtr-live .contact-card .cta { margin-top: auto; }
.rtr-live .cta { background: var(--px-ink); color: #fff; font-weight: 500; }
.rtr-live .contact-card .cta { background: #fff; color: var(--px-ink); }
