/* /learn-compare-r3, on top of compare-sci-panama.css: the two sections this page has
   and the others do not. R3 is also one day, so the building and the cells replace the
   calendar and the trip. */
.r3-cards { display: grid; gap: 16px; }
.r3-card { padding: 22px 24px; background: #fff; border-radius: 18px; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
.r3-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.r3-card__top img[width][height] { display: block; width: auto; height: 46px; }
.r3-card--us .r3-card__top img[width][height] { height: 26px; }
.r3-card__top span { font-size: 15px; font-weight: 600; color: var(--pm-them); }
.r3-card--us .r3-card__top span { color: var(--accent-blue); }
.r3-card__addr { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.r3-card__addr small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-muted); }
.r3-card__note { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.r3-floors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.r3-floors li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--ink); background: var(--accent-wash); border-radius: 10px; }
.r3-floors svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.pm-js .r3-floors:not(.is-in) li { opacity: 0; }
html.pm-js .r3-floors.is-in li { animation: pm-fade 420ms ease calc(var(--i) * 110ms + 150ms) both; }
.r3-paths { display: grid; gap: 22px; margin: clamp(24px, 3vw, 36px) 0; }
.r3-path { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 24px; }
.r3-path__logo[width][height] { display: block; width: auto; max-width: 100%; height: 46px; }
.r3-path--us .r3-path__logo[width][height] { height: 24px; }
.r3-path ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.r3-path li { padding: 14px 16px; font-size: 14.5px; line-height: 1.35; color: var(--ink-soft); background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(11, 29, 58, .08), 0 6px 18px rgba(11, 29, 58, .07); }
.r3-path li b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.r3-path--us li { background: var(--accent-blue-hover); color: rgba(255, 255, 255, .86); }
.r3-path--us li b { color: #fff; }
html.pm-js .r3-paths:not(.is-in) li { opacity: 0; }
html.pm-js .r3-paths.is-in li { animation: pm-fade 420ms ease calc(var(--i) * 140ms + 100ms) both; }
.r3-lockup { display: flex; align-items: center; gap: 9px; }
.r3-lockup b { font-family: var(--font-display, "Cormorant Garamond", Times, Georgia, serif); font-size: 26px; font-weight: 500; line-height: 1; color: var(--ink); }
.pm-tbl__chip.r3-lockup b { font-size: 23px; }
/* The icons draw themselves as their tile lands. */
@keyframes r3-drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes r3-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.r3-floors path { stroke-dasharray: 1; }
html.pm-js .r3-floors:not(.is-in) path { stroke-dashoffset: 1; }
html.pm-js .r3-floors.is-in path { animation: r3-draw 800ms ease calc(var(--i) * 110ms + 250ms) both; }
/* A line runs from one step to the next, in the order the cells travel. */
@keyframes r3-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.r3-path li { position: relative; transition: transform 240ms var(--ease-out-expo, cubic-bezier(.16, 1, .3, 1)), box-shadow 240ms ease; }
.r3-path li + li::before { content: ""; position: absolute; top: 50%; left: -12px; width: 12px; height: 2px; margin-top: -1px; background: var(--pm-them); transform-origin: left center; }
.r3-path--us li + li::before { background: var(--accent-blue-hover); }
html.pm-js .r3-paths:not(.is-in) li + li::before { transform: scaleX(0); }
html.pm-js .r3-paths.is-in li + li::before { animation: r3-run 320ms ease calc(var(--i) * 140ms + 60ms) both; }
.r3-floors li { transition: transform 240ms var(--ease-out-expo, cubic-bezier(.16, 1, .3, 1)), background-color 240ms ease; }
@media (hover: hover) {
  .r3-path li:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 29, 58, .1), 0 10px 24px rgba(11, 29, 58, .1); }
  .r3-floors li:hover { transform: translateY(-2px); }
}
.pm-route__num [data-count] { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  html.pm-js .r3-floors li, html.pm-js .r3-paths li { opacity: 1 !important; animation: none !important; }
  html.pm-js .r3-floors path { stroke-dashoffset: 0 !important; animation: none !important; }
  html.pm-js .r3-paths li + li::before { transform: none !important; animation: none !important; }
  .r3-path li, .r3-floors li { transition: none; }
}
@media (min-width: 821px) and (max-width: 900px) {
  .r3-floors li { gap: 6px; padding-inline: 8px; }
}
@media (min-width: 821px) {
  .pm-route { align-items: stretch; }
  .pm-route .pm-route__side { grid-template-rows: 1fr 1fr; gap: 16px; }
  .pm-route__stat { align-self: center; }
}
@media (max-width: 700px) {
  .r3-cards { margin-inline: calc(8px - var(--pm-gut)); gap: 12px; }
  .r3-card { padding: 18px 16px; border-radius: 16px; }
  .r3-floors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .r3-path { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .r3-path ol { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .r3-path li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 14px; }
  .r3-path li b { flex: none; }
  .r3-path li { text-align: right; }
  .r3-path li b { text-align: left; }
  .r3-path li + li::before { top: -8px; left: 28px; width: 2px; height: 8px; margin-top: 0; transform-origin: center top; }
  html.pm-js .r3-paths:not(.is-in) li + li::before { transform: scaleY(0); }
  html.pm-js .r3-paths.is-in li + li::before { animation-name: r3-drop; }
}
/* a blue step's white text has no ground once the browser drops backgrounds */
@media print {
  .r3-path--us li { color: #000; background: #fff; box-shadow: inset 0 0 0 1px #000; }
  .r3-path--us li b { color: #000; }
}
