/* Routing: the router window on the left, the copy on the right */
.route-s { isolation: isolate; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); align-items: center; }
.route > *, .faq > *, .plat > * { min-width: 0; }
.route__copy { display: grid; gap: 22px; }
.route__art { display: block; width: 100%; height: auto; max-width: 520px; margin-top: 12px; filter: grayscale(1); }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.checks b { color: var(--ink); font-weight: 500; }
.checks svg { width: 15px; height: 15px; margin-top: 5px; color: var(--umber); }
.ic-code { font: 400 0.9em/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(31, 33, 36,.06); color: var(--ink); white-space: nowrap; }

.rx { display: grid; gap: 14px; }
.rx__win { container-type: inline-size; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -44px rgba(31, 33, 36,.55); overflow: hidden; }
.rx__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px 10px 10px; background: var(--paper-hi); border-bottom: 1px solid var(--line); }
.rx__tabs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(31, 33, 36,.05); }
.rx__tabs button { height: 30px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font: 500 13px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
.rx__tabs button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(31, 33, 36,.12), inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .rx__tabs button:not([aria-pressed="true"]):hover { color: var(--ink); } }
.rx__ep { font: 400 12px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
/* the endpoint shows only when the tabs leave room for it */
@container (max-width: 540px) { .rx__ep { display: none; } }
.rx__sec { padding: 20px 24px; }
.rx__h { margin: 0 0 14px; display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1 var(--sans); letter-spacing: .02em; color: var(--ink-3); }
.rx__h span { font-weight: 400; }
.rx__kv { margin: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 16px; align-items: baseline; }
.rx__kv dt { font: 400 12px/1.6 var(--mono); color: var(--ink-3); }
.rx__kv dd { margin: 0; min-width: 0; }
.rx__auto { font: 500 13px/1 var(--mono); color: var(--umber); overflow-wrap: anywhere; }
.rx__prompt { display: flex; gap: 10px; align-items: center; font: 400 16px/1.45 var(--serif); color: var(--ink); }
.rx__thumb { width: 40px; height: 28px; object-fit: cover; border-radius: 5px; flex: none; }
.rx__wire { height: 1px; background: var(--line); }
.rx__wire i { display: block; height: 100%; background: var(--umber); transform-origin: left; transform: scaleX(0); }
.rx__wire--1 i[data-play="true"] { animation: route-wire 700ms linear calc(-1 * var(--offset)) both; }
.rx__wire--2 i[data-play="true"] { animation: route-wire 600ms linear calc(1800ms - var(--offset)) both; }
@keyframes route-wire { to { transform: scaleX(1); } }
.rx__fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.rx__fields > div { min-width: 0; display: grid; gap: 6px; align-content: start; overflow-wrap: anywhere; }
.rx__fields dt { font: 400 12px/1 var(--sans); color: var(--ink-3); }
.rx__fields dd { margin: 0; display: grid; gap: 3px; font: 500 15px/1.35 var(--sans); color: var(--ink); min-width: 0; }
.rx__fields small { font: 400 12.5px/1.4 var(--sans); color: var(--ink-3); }
/* a field has room to wrap, so a long model name breaks onto a second line instead of losing its end to an ellipsis */
.rx__fields .rx__model { align-items: flex-start; }
.rx__fields .rx__model > span { white-space: normal; overflow: visible; }
.rx__fields .rx__model img, .rx__fields .rx__model .mono-mark { margin-top: 2px; }
.rx__model { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-variant-numeric: normal; }
.rx__model img, .rx__model .mono-mark { width: 16px; height: 16px; flex: none; }
.rx__model > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx__reason { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.rx [data-on] { transition: opacity 320ms var(--out), transform 320ms var(--out), filter 320ms var(--out); }
.rx [data-on="false"] { opacity: 0; transform: translateY(4px); filter: blur(2px); }
.rx__sec--log { padding-inline: 0; padding-bottom: 8px; }
.rx__sec--log .rx__h { padding-inline: 24px; }
.rx__table { display: grid; }
.rx__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 104px 64px; gap: 16px; align-items: center; min-height: 44px; padding-inline: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rx__row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx__row > span:first-child { font: 400 12.5px/1 var(--mono); color: var(--ink-3); }
.rx__row > span:last-child { text-align: right; font: 400 12.5px/1 var(--mono); }
.rx__row .rx__model { color: var(--ink); font-weight: 500; }
.rx__row--head { min-height: 32px; font-size: 12px; color: var(--ink-3); }
.rx__row--head > span:first-child, .rx__row--head > span:last-child { font: 400 12px/1 var(--sans); }
.rx__row.is-fresh { animation: rxRow 520ms var(--out) both; background: linear-gradient(90deg, rgba(204, 206, 209,.34), rgba(204, 206, 209,0) 80%); }
@keyframes rxRow { from { opacity: 0; transform: translateY(-8px); } }
.rx__note { margin: 0 4px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
@media (max-width: 960px) {
  .route { grid-template-columns: minmax(0, 1fr); }
  .route__copy { position: static; }
  .route__art { max-width: 440px; }
  .route .rx { order: 2; }
}
@media (max-width: 560px) {
  .rx__ep { display: none; }
  .rx__bar { padding-right: 10px; }
  .rx__tabs { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .rx__tabs button { flex: 1; padding: 0 8px; }
  .rx__sec { padding: 18px 18px; }
  .rx__sec--log { padding-inline: 0; }
  .rx__sec--log .rx__h { padding-inline: 18px; }
  .rx__kv { grid-template-columns: 1fr; gap: 6px; }
  .rx__kv dd + dt { margin-top: 8px; }
  .rx__fields { gap: 16px; }
  .rx__row { grid-template-columns: 48px minmax(0, 1fr) 60px; gap: 12px; padding-inline: 18px; }
  .rx__row > span:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rx__wire i { animation: none !important; transform: scaleX(1); }
  .rx__row.is-fresh { animation: none; }
}
