/* Moto Micro Tours — case page accents.
   Loads after resonova-case.css (shared article scaffolding) and adds this
   case's own language: a booking is a journey. A dashed road runs down the
   page with numbered waypoint plates (road markers), each real screenshot
   rides in a perforated trip ticket, business rules are shown as road signs,
   and the booking state machine is a strip of stops. Accent is the Yamaha
   icon blue already in the tokens (--c-player) with HUD-yellow highlights. */

.moto .kicker, .moto .num { color: #7fa3ff; }
.moto a:not(.btn) { color: var(--c-hud-yellow); }
.moto a:focus-visible { box-shadow: 0 0 0 2px var(--c-ink), 0 0 0 5px #7fa3ff; }

/* The opening hero: one full-width real screenshot, framed like a windshield shot */
.moto .opening { grid-template-columns: minmax(0, 1fr); max-width: 820px; gap: 0; }
.windshield { margin: var(--space-32) 0 0; }
.windshield img { display: block; width: 100%; height: auto; border: 2px solid rgb(240 240 240 / 0.18); border-radius: 10px; }
.windshield figcaption { margin-top: var(--space-12); font-size: 14px; line-height: 1.5; opacity: 0.75; max-width: 680px; }

/* 01 — the route: a dashed road down the page; waypoints are road markers,
   each screenshot rides in a perforated trip ticket */
.route { position: relative; margin: var(--space-32) 0 0; padding: 0; list-style: none; }
.route::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px;
                 border-left: 3px dashed rgb(127 163 255 / 0.45); }
.route > li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; margin: 0 0 40px; }
.wp { grid-column: 1; justify-self: start; width: 56px; height: 56px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      background: var(--c-player); color: var(--c-white);
      font: 700 22px/1 var(--font-ui); letter-spacing: 0.02em;
      box-shadow: 0 0 0 3px var(--c-ink), 0 0 0 5px rgb(127 163 255 / 0.5); }
.route .ticket { grid-column: 2; }

/* the trip ticket: stub header (role → state), perforation, screenshot, caption */
.ticket { margin: 0; background: rgb(0 0 0 / 0.5); border: 1px solid rgb(240 240 240 / 0.14); border-radius: 10px; }
.ticket .stub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
                padding: 10px 16px; border-bottom: 2px dashed rgb(240 240 240 / 0.25); }
.ticket .stub .who { font: 700 15px/1.3 var(--font-ui); letter-spacing: 0.04em; color: #7fa3ff; }
.ticket .stub .state { font: 600 12.5px/1.3 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase;
                       color: var(--c-hud-yellow); }
[lang=zh-Hans] .ticket .stub .state { text-transform: none; letter-spacing: 0.04em; }
.ticket img { display: block; width: 100%; height: auto; }
.ticket figcaption { padding: 10px 16px 12px; font-size: 14px; line-height: 1.55; opacity: 0.85; }

/* 02 — business rules as road signs */
.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: var(--space-32) 0 0; padding: 0; list-style: none; }
.signs li { position: relative; padding: 18px 20px 16px 20px; background: rgb(0 0 0 / 0.55);
            border: 2px solid rgb(127 163 255 / 0.55); border-radius: 14px; }
.signs .glyph { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
                margin-bottom: 10px; border-radius: 50%; background: var(--c-hud-yellow); color: var(--c-ink);
                font: 700 20px/1 var(--font-ui); }
.signs h3 { margin: 0 0 8px; font-size: 18px; }
.signs p { margin: 0; font-size: 15px; line-height: 1.6; }
.signs .proof { display: block; margin-top: 8px; font-size: 13.5px; opacity: 0.75; }

/* 03 — the booking state machine: a strip of stops with one branch */
.strip { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: var(--space-32) 0 0; padding: 0; list-style: none; }
.strip li { position: relative; flex: 1 1 130px; padding: 12px 14px; background: rgb(0 0 0 / 0.55);
            border: 1px solid rgb(240 240 240 / 0.2); border-top: 3px solid #7fa3ff; font-size: 14.5px; line-height: 1.45; }
.strip li b { display: block; font: 700 15px/1.3 var(--font-ui); letter-spacing: 0.03em; }
.strip li small { opacity: 0.75; }
.strip .branch { border-top-color: var(--c-hud-red); }
.strip .done { border-top-color: var(--c-hud-green); }

/* authorization matrix */
.matrix { width: 100%; max-width: 800px; margin: var(--space-32) 0 0; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { text-align: left; padding: 10px 14px; border: 1px solid rgb(240 240 240 / 0.16); vertical-align: top; }
.matrix th { font: 600 13px/1.4 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: #7fa3ff; background: rgb(0 0 0 / 0.55); }
[lang=zh-Hans] .matrix th { text-transform: none; letter-spacing: 0.04em; }
.matrix td { background: rgb(0 0 0 / 0.35); line-height: 1.55; }
.matrix td:first-child { white-space: nowrap; font-weight: 600; }

@media (max-width: 860px) { .signs { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .route > li { grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; margin-bottom: 30px; }
  .wp { width: 40px; height: 40px; font-size: 17px; border-radius: 9px; }
  .route::before { left: 19px; }
  .strip li { flex: 1 1 100%; }
}
