/* ===== The route page (#/apply/:listing) and the apply step pages (#/applying/...) =====  round 2, after the critic
   Founder 2026-10-09: laid out like Turo's car page, the owner's photo on top. No breadcrumb, no "Routes" link, no saved line, no arrow
   characters. Back is page-tops' round button (.pbk, pagetop.css). Money is money's shared line and sheet (walk.css, K.walk / PlonaWalk),
   shown ONCE on a phone: in the bar at the bottom, with its (i). The Manual label is manual-note's .mlab (mn.css section 2).
   Tokens only (app.css), so dark mode keeps working. Reuses routes.css (.rh-tl, .rh-pt, .rh-k, .rh-tick, .ro-list .rtl), the kit CSS
   (.pav, .checks, .chip), steps.css (.stp-*, .tb2.stb) and mn.css section 6 (.mn-lead, .mn-foot, .mn-ideas, .mn-skip, .nnote).
   app/css/route.css, linked after more-inbox.css and /css/walk.css. manual-note's shared rules (the Manual label, the note, the
   manual and note steps) are at the end of this file. */

/* ---------- 1. the route page ---------- */
.rp{max-width:1120px;margin:0 auto;padding:4px 16px 24px}
/* the top row: Back alone (page tops PT1 and PT2, founder 2026-10-10: no source chip, no ref in the page top; the ref is the
   "Route ID" line at the bottom of the details, .refline in part2.css). The owner block sits between Back and the title, Turo style. */
.rp-bar{display:flex;align-items:center;min-height:52px}
.rp-bar .pbk{margin-left:-2px}

/* the owner on top (signed-in drivers, routes posted on Plona) */
.rp-owner{display:flex;align-items:center;gap:16px;padding:6px 0 4px}
.rp-title+.rp-owner{margin-top:14px}
.rp-ph{position:relative;flex:none;width:88px;height:88px}
.rp-ph .pav{width:88px;height:88px;font-size:34px}
.rp-ph .rp-rate{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%)}
.rp-rate{display:inline-flex;align-items:center;gap:3px;padding:1px 8px;border-radius:99px;background:var(--card);border:1px solid var(--line);font:700 13px/20px 'Instrument Sans',sans-serif;white-space:nowrap;color:var(--ink)}
.rp-rate svg,.rp-star{width:13px;height:13px;color:var(--orange)}
.rp-who{min-width:0}
.rp-by{display:block;font:700 12px/1.3 'Instrument Sans',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--sub)}
.rp-name{display:block;font:600 26px/1.15 'Clash Grotesk','Instrument Sans',sans-serif}
.rp-stats{display:block;font-size:14.5px;color:var(--sub);margin-top:2px}
.rp-id{display:inline-flex;align-items:center;gap:5px;margin-top:6px;font-size:13.5px;font-weight:700;color:var(--good-d)}
.rp-id svg{width:17px;height:17px}

/* the route, the dates, how it fits the driver's drive request */
.rp-title{font-size:clamp(30px,8vw,44px);line-height:1.06;margin:16px 0 0;text-wrap:balance}
.rp-title .nw,.rp-side .nw{white-space:nowrap}
.rp-sec{padding:18px 0;border-top:1px solid var(--line)}
.rp-sec.first{border-top:0}
.rp-sec>h2{font-size:19px;margin:0 0 10px}
.rp .rh-tl{margin-top:2px}
.rp-fit{margin-top:14px}
.rp-fit .chip{font-weight:700}
.rp-fit .checks{margin-top:8px}
.rp-fine{font-size:13.5px;color:var(--sub);margin-top:12px}
.rp-else{margin-top:14px;padding:14px;border-radius:var(--r-lg);background:var(--wait);font-size:15px;line-height:1.45}

/* the car: plain facts, and manual-note's Manual label at the same height */
.rp-facts{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.rp-fact{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--card);font-size:15px;font-weight:600}
.rp-fact svg{width:20px;height:20px;flex:none}
.rp-facts .mlab{height:40px;padding:0 12px 0 10px;font-size:15px;gap:6px}
.rp-facts .mlab svg{width:19px;height:19px}

/* what the owner asks for (PRD-107): the kit's .checks rows, met or not */
.rp-asks .checks{margin-top:0;gap:8px}
.rp-asks .checks li{font-size:15.5px}

/* the owner's rules for the move */
.rp-rules{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.rp-rules li{display:flex;gap:12px;align-items:center;font-size:16px;line-height:1.35}
.rp-rules svg{flex:none;width:24px;height:24px;color:var(--ink)}
.rp-note{margin:14px 0 0;padding:10px 12px;border-left:3px solid var(--orange);border-radius:0 var(--r-md) var(--r-md) 0;background:var(--card);font-size:15px;line-height:1.45}
.rp-note b{display:block;font-size:13px;color:var(--sub);font-weight:700;margin-bottom:2px}

/* about the owner and reviews */
.rp-host{display:flex;align-items:center;gap:14px}
.rp-host .rp-ph{width:64px;height:64px}
.rp-host .rp-ph .pav{width:64px;height:64px;font-size:26px}
.rp-host .rp-name{font-size:21px}
.rp-about{margin-top:16px;font-size:15.5px;line-height:1.5}
.rp-score{display:flex;align-items:baseline;gap:8px;margin-top:18px}
.rp-score b{font:600 34px/1 'Clash Grotesk','Instrument Sans',sans-serif}
.rp-score>span:last-child{font-size:15px;color:var(--sub)}
.rp-score .rp-stars{margin:0;align-self:center}
.rp-revs{list-style:none;display:flex;gap:10px;overflow-x:auto;margin:12px -16px 0;padding:2px 16px 8px;scroll-snap-type:x mandatory;scroll-padding:0 16px;scrollbar-width:none}
.rp-revs::-webkit-scrollbar{display:none}
.rp-rev{flex:0 0 78%;max-width:290px;scroll-snap-align:start;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:12px 14px}
.rp-rev-top{display:flex;align-items:center;gap:10px}
.rp-rev-top .pav{width:36px;height:36px;font-size:15px}
.rp-rev-top b{display:block;font-size:15px}
.rp-rev-top small{display:block;font-size:13px;color:var(--sub)}
.rp-stars{display:flex;gap:1px;margin-top:8px;color:var(--orange)}
.rp-stars svg{width:15px;height:15px}
.rp-stars .off{color:var(--line)}
.rp-rev p{margin-top:6px;font-size:15px;line-height:1.4}
.rp-locked{display:flex;gap:12px;align-items:center;padding:14px;border:1px dashed var(--field);border-radius:var(--r-lg);background:var(--card)}
.rp-locked .pav{background:var(--wait)}
.rp-locked p{font-size:15px;line-height:1.4}
.rp-locked .btn{margin-top:8px}

/* the map slot (maps come later: the build leaves it out until there is a map to show) */
.rp-map{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;height:170px;border:1.5px dashed var(--field);border-radius:var(--r-lg);color:var(--sub);font-size:14px;text-align:center;background:var(--card)}
.rp-map b{color:var(--ink);font-size:15px}

/* the bar at the bottom (phones): K.walk(pay, gas, {size:'bar'}) with its (i) (money's walk.css: .rp-buy .wa), and Apply.
   The only place money shows on a phone (Turo shows the price once, in its footer). Header's #bar (a driver's trip action) is hidden
   on this page, so the two bars never stack. */
body[data-screen=route]{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.rp-buy{position:fixed;left:0;right:0;bottom:0;z-index:25;display:flex;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--line);box-shadow:0 -2px 10px rgba(20,20,20,.06)}
.rp-buy .btn{flex:none;min-width:124px;min-height:52px;padding:0 14px;font-size:16.5px}
.rp-buy .wa-bar .wa-lead{font-size:13.5px;text-wrap:balance}
/* a driver who told us No on a manual car: the sentence and "Change my answer" in place of the money and Apply */
.rp-nom{flex:1;min-width:0;font-size:14.5px;line-height:1.35}
.rp-buy .btn.ghost{min-width:0;padding:0 14px;font-size:15.5px}
.rp-side{display:none}

/* laptops: two columns, and the bar becomes a card that stays in view on the right (Turo's web layout) */
@media (min-width:900px){
  .rp{padding-top:10px}
  .rp-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:48px;align-items:start}
  body[data-screen=route]{padding-bottom:24px}
  .rp-buy{display:none}
  .rp-side{display:block;position:sticky;top:112px;margin-top:8px}
  .rp-side .card{padding:20px}
  .rp-side .btn{width:100%;margin-top:14px}
  .rp-side .rp-sdates{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);font-size:15px}
  .rp-side .rp-sdates b{display:block}
  .rp-side .rp-fine{margin-top:10px}
  .rp-side .rp-nom{margin-top:12px}
  .rp-revs{flex-wrap:wrap;overflow:visible;margin:12px 0 0;padding:0}
  .rp-rev{flex:1 1 220px;max-width:none}
  .rp-title{margin-top:18px}
}

/* ---------- 2. the apply step pages (P.step flow 'apply', app/apply.js). 3.5.8: the gaps are app.css's spacing tokens (--v-field
   between boxes, --v-group before a new part), the same on every screen height; the short-screen rules that shrank them are gone. ---------- */
/* manual (manual-note's step def): the two answers and the No box reuse steps.css .stp-pick / .stp-opt and mn.css .mn-no */
.ap-why{margin-top:var(--v-field);padding:12px 14px;border-radius:var(--r-md);background:var(--wait);font-size:15px;line-height:1.45}
/* the owner's rules (shown only when the route has rules) */
.ap-h2{font:600 17px/1.25 'Clash Grotesk','Instrument Sans',sans-serif;margin:var(--v-group) 0 var(--s2)}
.ap-rules{list-style:none;margin:0;padding:12px 14px;display:grid;gap:9px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card)}
.ap-rules li{display:flex;gap:8px;align-items:center;font-size:15px;line-height:1.3}
.ap-rules svg{flex:none;width:21px;height:21px}
.ap-note{margin-top:var(--v-field);font-size:14.5px;line-height:1.4;color:var(--ink);padding:8px 10px;border-left:3px solid var(--orange);background:var(--card);border-radius:0 var(--r-sm) var(--r-sm) 0}
.ap-note b{display:block;font-size:13px;color:var(--sub);font-weight:700}
.ap-asks .checks{margin-top:0;gap:5px}
.ap-agree{margin-top:var(--v-group);padding:10px 12px;border:1.5px solid var(--field);border-radius:var(--r-md);background:var(--card);align-items:center;font-weight:600}
.ap-agree.bad{border-color:var(--bad)}
.ap-agree input{margin-top:0}
/* Get ready: what is missing, each with Do it now */
.ap-ready{list-style:none;margin:0;padding:0;display:grid;gap:var(--v-field)}
.ap-ready li{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card)}
.ap-ready .rh-tick{margin-top:2px}
.ap-ready .grow{flex:1;min-width:0}
.ap-ready b{display:block;font-size:16.5px}
.ap-ready span.s{display:block;font-size:14.5px;color:var(--sub);line-height:1.4;margin-top:2px}
.ap-ready .btn{margin-top:10px}
/* the note: manual-note's short idea chips (.mn-ideas) and "Skip the note" (.mn-skip) */
.ap-ta{min-height:104px;font-size:16px;line-height:1.45}
.ap-cnt{display:flex;justify-content:flex-end;font-size:13px;color:var(--sub);margin-top:4px}
/* review: one row per step, each with its action */
.ap-rv{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card)}
.ap-rv li{display:flex;align-items:center;gap:10px;padding:7px 8px 7px 14px;border-top:1px solid var(--line);min-height:52px}
.ap-rv li:first-child{border-top:0}
.ap-rv .grow{flex:1;min-width:0}
.ap-rv .k{display:block;font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--sub)}
.ap-rv .v{display:block;font-size:15.5px;line-height:1.35;overflow-wrap:anywhere}
.ap-rv .v.q{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ap-rv .linkbtn{flex:none;font-size:14.5px;min-height:44px;display:inline-flex;align-items:center;padding:0 6px}
.ap-rv .wa-line .wa-lead{font-size:15.5px;color:var(--ink)}
.ap-next{margin-top:var(--v-group);font-size:15px;line-height:1.45}
.ap-next b{display:block;font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--sub);margin-bottom:2px}
/* the finale: the bar at its end, a check, the note and where it went, where to find the application */
.stb .tb2-end.e.done{background:var(--gf);border-color:var(--gf)}
.stp-ic.stp-none{visibility:hidden}
.ap-fin .tb2-lab span:last-child{color:var(--good-d);font-weight:700}
.ap-done{text-align:center}
.ap-big{display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:50%;background:var(--good-bg);color:var(--good-d);margin:2px auto 8px}
.ap-big svg{width:32px;height:32px}
.ap-done h1{margin-bottom:4px!important}
.ap-done .stp-lead{margin:0 0 2px}
.ap-fin .nnote{margin:var(--v-field) 0 0;text-align:left;background:var(--card)}
.ap-fin .nnote .nw2{display:block;margin-top:4px;font-size:13.5px;color:var(--sub)}
.ap-fin .nnote .nt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}  /* a long note (300 characters) keeps the finale on one screen; the whole note is in Inbox */
.ap-where{margin-top:var(--v-group);text-align:left}
.ap-where .ro-h{font-size:17px;margin-bottom:8px}
.ap-where .rtl{pointer-events:none}
.ap-then{margin-top:var(--v-field);text-align:left;font-size:15px;line-height:1.45}
.stp-alt2{text-align:center;margin-top:4px}
/* laptops: a smaller top gap keeps the longest step (review) on one screen at 800px tall */
@media (min-width:700px) and (min-height:621px){.stp[data-flow=apply]{margin-top:2vh}.stp[data-flow=apply] .stp-body{padding-top:16px}}
/* 3.5.8: the short-screen rules are gone (steps.css section 5); the one left there sets the finale's big check aside under 600px tall */
@media (max-height:599px){.ap-big{display:none}}

/* ===== manual-note (apply-design, round 2b): the Manual label, the driver's note, the manual and note step pages ===== */
/* ---------- 2. the Manual label: ONE style everywhere (route-apply's orange tint; .rp-fact.man on the route page uses the same three tokens).
   Also in site-v2/css/market.css (Market). ---------- */
.mlab{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px 0 7px;border:1px solid var(--tint-line);border-radius:var(--r-md);
  background:var(--tint);color:var(--ot);font:700 13.5px/1 'Instrument Sans',sans-serif;white-space:nowrap;vertical-align:middle}
.mlab svg{width:16px;height:16px;flex:none}
.fl .fl-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
/* ---------- 5. the driver's note: owner route page card, the finale, the conversation ---------- */
.nnote{margin:8px 0 2px;padding:10px 12px;border-left:3px solid var(--tint-line);background:var(--bg);border-radius:0 var(--r-md) var(--r-md) 0;font-size:15px;line-height:1.4;color:var(--ink)}
.nnote .nk{display:block;font:700 13px/16px 'Instrument Sans',sans-serif;letter-spacing:.04em;text-transform:uppercase;color:var(--sub);margin-bottom:2px}
.nnote .nt{display:block}
.apl .nnote{display:block}
.apl .nnote .nt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}  /* three lines on the list; the whole note is in the room and in Inbox */
/* the conversation head is page-tops' (.phead.ic-ph in pagetop.css); this area only adds the note bubble */
.thread .msg .mk{display:block;font:700 12px/16px 'Instrument Sans',sans-serif;color:var(--ot);margin:0 0 3px}
.thread .msg.note{border:1.5px solid var(--tint-line)}
.thread .msg.note:not(.me){background:var(--card)}
/* ---------- 6. the apply steps: the manual and note step defs (route-apply's app/apply.js and app/css/route.css load these as they are;
   route-apply/vendor/mn.css is a copy of this section). ---------- */
.mn-lead{font-size:16px;line-height:1.45;margin:calc(var(--s2) - var(--v-title)) 0 var(--v-group)}
.mn-lead .opt{color:var(--sub)}
.mn-foot{font-size:13.5px;line-height:1.4;color:var(--sub);text-align:center;margin:var(--v-field) 4px 0}
.mn-no{margin-top:var(--v-field);padding:12px 14px;text-align:left}
.mn-idea-l{font-weight:600;font-size:14px;color:var(--sub);margin:var(--s3) 0 var(--s2)}
.mn-ideas{display:flex;flex-wrap:wrap;gap:var(--s2)}
.mn-ideas button{min-height:44px;padding:0 14px;white-space:nowrap;font:600 14.5px/1.2 'Instrument Sans',sans-serif;color:var(--ink);cursor:pointer;border:1.5px solid var(--line);border-radius:99px;background:var(--card)}  /* a short label; the tap fills in the whole sentence (aria-label) */
.mn-ideas button[aria-pressed=true]{border-color:var(--ob);background:var(--tint)}
.stp[data-flow=apply] .stp-body textarea{min-height:96px}
.mn-skip{display:block;margin:6px auto 0;min-height:44px}
/* 3.5.8: the short-screen squeeze (a smaller note box, the ideas label hidden, the finale's Routes row hidden) is gone; the button stays on
   screen (steps.css, sticky) */
.ap-fin .stp-alt2{display:flex;flex-wrap:wrap;justify-content:center;column-gap:18px}

/* ===== the build (apply-design, Oct 10): small pieces the mockups did not need ===== */
/* driver list cards ("Car routes for you", match.js mcard): one link on the title stretched over the card, so the (i) can be a button */
.mcard{position:relative}
.mc-link{color:inherit;text-decoration:none}
.mc-link::after{content:"";position:absolute;inset:0;border-radius:inherit}
.mcard:focus-within{border-color:var(--orange)}
.mc-link:focus-visible{outline:0}.mc-link:focus-visible::after{outline:2px solid var(--ink);outline-offset:2px}
.mcard .wa{margin-top:8px}
.mcard .mlab{margin-left:4px}
/* "Messages with Rosa": a row that opens the conversation in Inbox (founder 2026-10-10: messages are read only in Inbox > Messages) */
.msgrow{display:flex;align-items:center;gap:12px;margin:12px 0 0;padding:12px 14px;min-height:56px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--card);color:var(--ink);text-decoration:none}
.msgrow:hover{border-color:var(--ink)}
.msgrow .pav{flex:none;width:40px;height:40px;font-size:17px;background-color:var(--tint);color:var(--ot)}
.msgrow .grow{flex:1;min-width:0}
.msgrow b{display:block;font-size:16px}
.msgrow .small{display:block;color:var(--sub)}
.rp .banner{margin-top:14px}
.rp .nnote{margin-top:12px}
.rp .nnote .nw2{display:block;margin-top:4px;font-size:13.5px;color:var(--sub)}
.rp>.state,.rp .rp-main>.state,.rp .rp-main>.card{margin-top:14px}
/* "Nothing is charged to you." sits in the trip's small print on phones; laptops have it in the side card */
@media (min-width:900px){.rp-nc{display:none}}
/* the route page's photos: the owner's photo fills the circle once signed in (K.fillAvatars) */
.rp-ph .pav,.rp-host .pav{background-size:cover;background-position:center;background-color:var(--tint);color:var(--ot)}
.rp-ph .pav.has{color:transparent}
/* the bar's button keeps its own width (an app .btn can be full width), so the money line has the room left of it */
.rp-buy .btn{width:auto}
button.msgrow{width:100%;text-align:left;font:inherit;cursor:pointer}
.doc-go svg{display:block;width:20px;height:20px}
/* the driver's money under the move banner and on the done card */
.mv-wa{margin:10px 0 4px}
.co-card .wa,.closeout .wa{margin:10px 0 4px}
/* 3.5.6 (migration 0274): Found elsewhere routes in the app (app/match.js). Chandon's "Badge only" (Oct 17): the route page shows the
   "Found elsewhere" badge and the price, unlabeled, and the one small "About Found elsewhere routes" link; the tap sheet (dialog.was
   fw-sh, walk.css) has "Plona's estimate" next to the price, its smaller second line, Legal's words and the two buttons at its bottom */
.rp-fe{margin:10px 0 0}
.rp-buy .fw-m{flex:1 1 auto;min-width:0}
/* the longer "Tell the team I'm interested" may take two lines in the phone bar, so the money keeps its room */
.rp-buy .fw-m + .btn{flex:0 1 auto;max-width:46%;min-width:0;white-space:normal;line-height:1.2;text-align:center;padding:6px 14px;text-wrap:balance}
.fw-about{margin:8px 0 0}
.fw-about .linkbtn{padding:0;font-size:15px}
dialog.fw-sh .fw-p{line-height:1.5}
dialog.fw-sh .fw-p a{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
dialog.fw-sh .fw-fd{font-weight:500;font-size:.8em;color:var(--sub);white-space:nowrap}
dialog.fw-sh .fw-pts{margin:0 0 10px;padding:0 0 0 20px;font-size:17px;line-height:1.45;color:var(--ink)}
dialog.fw-sh .fw-pts li{margin:0 0 6px}
dialog.fw-sh .fw-m{margin:8px 0 12px}
dialog.fw-sh .fw-nop{margin:8px 0 12px;font-weight:600;color:var(--sub)}   /* 3.5.6 review: a Found elsewhere route not priced yet */
dialog.fw-sh .fw-est{display:block;margin:0 0 2px;font:600 12.5px/1.2 'Instrument Sans',sans-serif;color:var(--sub);letter-spacing:.01em}
dialog.fw-sh .fw-est2{display:block;margin:2px 0 0;font:400 12.5px/1.35 'Instrument Sans',sans-serif;color:var(--sub)}
dialog.fw-sh .fw-ok{margin:4px 0 8px;line-height:1.45}
dialog.fw-sh .fw-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
dialog.fw-sh .fw-btns .btn{flex:1 1 auto;min-width:0;white-space:normal;line-height:1.2;text-align:center}
