/* Mobile course figure: one request's trip (figures/request-trip.js; Lab 1 Part 9, step 9.2).
   The JavaScript async lab's night stage (courses/javascript/async-lab/sync/p1.css), with this course's app on it:
   a night ground in both themes, your app a light window, the helper thread a night card, the server a night box,
   one amber for what moves or has just arrived. Text is 12 units or more on the stage's 440 (a phone: 360, see below). */
.trip { display: block; width: 100%; height: auto; }
.trip__bg { fill: var(--night); }
:root[data-theme="dark"] .trip__bg { fill: #151a2b; stroke: rgba(255, 255, 255, .2); stroke-width: 1; }
.trip .trip-t { font: 600 12.5px/1 var(--font-ui); }
.trip .trip-m { font: 600 12px/1 var(--font-mono); }
/* The phone's layout (request-trip.js, a picture under 404 px) is drawn a little under one to one: its 12-unit words
   at 12.5, so they keep 11 px on a 360 px phone. */
.trip.trip--narrow :is(.trip-var, .trip-raw, .trip-obj__t, .trip-pill__t, .trip-ph__title, .trip-ph__wait) { font-size: 12.5px; }
/* The names under the three places: quiet, bright for the one at work. */
.trip .trip-k { fill: var(--night-ink-3); }
.trip .trip-k.is-on { fill: var(--night-ink); }
/* Your app: the Notes screen (the lab's own colours: paper, the header's gradient, the pastel cards). */
.trip-ph { fill: #fff8f1; }
.trip-ph__head { fill: #cf3a1e; }
.trip .trip-ph__title { fill: #fff; font-weight: 800; font-size: 12px; }
.trip .trip-ph__wait { fill: #6b6159; font-weight: 500; font-size: 12px; }
.trip-note { stroke-width: 1; }
.trip-note--lav { fill: #ece6ff; stroke: #c6b8fa; }
.trip-note--mint { fill: #d9f5e6; stroke: #93d9b4; }
.trip-note--butter { fill: #fff1c9; stroke: #f2d27a; }
.trip-note__t { fill: #1f1a17; }
.trip-note__b { fill: rgba(31, 26, 23, .32); }
/* The helper thread: a night card, its two variables as slots. */
.trip-card { fill: #161b2e; stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; }
:root[data-theme="dark"] .trip-card { fill: #1c2238; }
.trip-card.is-on { stroke: #fbbf24; stroke-width: 1.8; }
.trip .trip-card__name { fill: var(--night-ink); font-size: 13px; font-weight: 700; }
.trip-rule { stroke: rgba(255, 255, 255, .22); stroke-dasharray: 3 3; }
.trip .trip-var { fill: var(--night-ink-3); font-weight: 500; }
.trip-slot { fill: none; stroke: rgba(255, 255, 255, .3); stroke-dasharray: 3 3; }
.trip .trip-dim { fill: var(--night-ink-3); font-weight: 500; }
.trip-val { fill: #10141f; stroke: rgba(255, 255, 255, .3); }
.trip-val.is-on { stroke: #fbbf24; stroke-width: 1.6; }
.trip .trip-raw { fill: var(--night-ink); font-weight: 500; font-size: 12px; }
.trip .trip-raw.is-past { fill: var(--night-ink-3); }
.trip-obj { fill: #161b2e; stroke: rgba(255, 255, 255, .45); stroke-width: 1.4; }
:root[data-theme="dark"] .trip-obj { fill: #1c2238; }
.trip-obj.is-on { stroke: #fbbf24; stroke-width: 1.8; }
.trip .trip-obj__t { fill: var(--night-ink); font-size: 12px; }
/* The wire, what travels on it, the server */
.trip-wire { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 1.5; stroke-dasharray: 5 5; }
.trip-arrow { fill: none; stroke: #fbbf24; stroke-width: 1.8; }
.trip-arrow__head { fill: #fbbf24; }
.trip-pill--ask { fill: #fbbf24; }
.trip-pill--ans { fill: #d8dbe6; }
.trip .trip-pill__t { fill: #0b0d17; font-size: 12px; font-weight: 700; }
.trip-srv { fill: #1a1f33; stroke: rgba(255, 255, 255, .3); }
.trip-srv__slot { fill: #262c45; }
.trip-srv__led { fill: #4b5270; }
.trip-srv__led.is-on { fill: #5fd3a0; }

/* What a stop adds arrives once, when its panel shows (the kit's walk marks it .is-on); nothing moves with the
   motion switch off or reduced motion. */
@keyframes trip-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
:root:not([data-motion="off"]) .lab-walk__panel.is-on .trip-new { animation: trip-in var(--fx-t-short, 320ms) var(--fx-ease-out, ease-out) var(--d, 0ms) both; }
@media (prefers-reduced-motion: reduce) { .lab-walk__panel.is-on .trip-new { animation: none !important; } }
@media print { .trip__bg, .trip-card, .trip-srv, .trip-ph, .trip-pill--ask, .trip-pill--ans, .trip-note, .trip-ph__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
