/* routepark/app.css - the app, in Lee's Claude Design redesign (28 Sep 2026, design/routepark-app-2026-09-28.dc.html).
   Its own small sheet, not the site bundle: the app is installed and must stand alone. The fonts are served from
   /routepark/fonts/ and cached by sw.js with the shell, so the app looks the same with no signal.
   COLOUR NEVER CARRIES A MEANING ALONE (Lee is red/green colour blind): every verdict has its words, and the kept-walk
   dot and the example cards use shape (solid / half / outline) as well as colour. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/routepark/fonts/newsreader-latin-vf.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/routepark/fonts/public-sans-latin-vf.woff2) format("woff2"); }
:root { --paper: #f5efe3; --sand: #ece4d3; --sand2: #e6dcc6; --rule: #d8ceb9; --ink: #1f2a24; --body: #3a463f; --muted: #4d5a52;
        --green: #2d5a3d; --forest: #1e3d2a; --mint: #e6efe8; --rust: #a8532a; --gold: #e8b765; --blue: #1f4e8c; --white: #fff; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sand); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.serif, h1, .rp-v-title, .pl-name, .rp-kept b, .rp-sample b { font-family: "Newsreader", Georgia, serif; }

.rp-shell { position: relative; max-width: 440px; min-height: 100vh; margin: 0 auto; background: var(--paper);
            box-shadow: 0 0 0 1px var(--rule), 0 20px 60px -30px rgba(31, 42, 36, 0.35); display: flex; flex-direction: column; }

/* header */
.rp-top { position: sticky; top: 0; z-index: 5; background: var(--green); color: var(--paper); padding: 12px 18px;
          display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.rp-brand img { width: 28px; height: 28px; border-radius: 7px; background: var(--paper); }
.rp-brand span { display: flex; align-items: baseline; gap: 6px; }
.rp-brand b { font-family: "Newsreader", Georgia, serif; font-size: 20px; font-weight: 600; }
.rp-brand small { font-size: 11px; color: #c9d6cc; }
.rp-beta { align-self: center; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
           background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1px 7px; }
.rp-beta-note { margin: 0; font-size: 13px; color: var(--body); background: var(--sand); border-radius: 12px; padding: 10px 12px; }
.rp-legal { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.rp-legal a { color: var(--muted); }
.rp-top-install { background: transparent; border: 1px solid #6f9a7d; color: var(--paper); border-radius: 999px; padding: 6px 13px;
                  font-size: 13px; font-weight: 600; cursor: pointer; min-height: 36px; }
.rp-top-install:hover { background: var(--forest); }

/* the newer-list offer */
.rp-notice:empty { display: none; }
.rp-notice { margin: 16px 20px 0; padding: 14px 16px; background: var(--mint); border-radius: 14px; font-size: 13px; color: var(--forest); }
.rp-notice p { margin: 0 0 8px; }
.rp-notice p:last-child { margin: 0; }

/* home */
.rp-home { padding: 30px 20px 40px; display: flex; flex-direction: column; gap: 28px; flex: 1; }
.rp-intro { display: flex; flex-direction: column; gap: 12px; }
.rp-eyebrow { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
              text-transform: uppercase; color: var(--rust); }
.rp-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--rust); }
h1 { margin: 0; font-weight: 500; font-size: 40px; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.rp-lede { margin: 0; color: var(--body); text-wrap: pretty; }
.rp-cover { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.rp-choose { display: flex; flex-direction: column; gap: 10px; }
.rp-pick { position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; background: var(--green);
           color: var(--white); border-radius: 16px; font-weight: 600; font-size: 16px; cursor: pointer; }
.rp-pick:hover { background: var(--forest); }
.rp-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.rp-pick:focus-within { outline: 3px solid var(--rust); outline-offset: 2px; }
.rp-private { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.rp-tick { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); display: flex; align-items: center;
           justify-content: center; font-size: 11px; margin-top: 1px; }
.rp-small { margin: 0; font-size: 13px; color: var(--muted); }
.rp-label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rp-saved:empty { display: none; }
.rp-saved { display: flex; flex-direction: column; gap: 10px; }
.rp-kept { display: flex; flex-direction: column; border-top: 1px solid var(--rule); margin: 0; padding: 0; list-style: none; }
.rp-kept li { display: flex; align-items: center; border-bottom: 1px solid var(--rule); }
.rp-kept-open { flex: 1; display: flex; align-items: center; gap: 14px; padding: 14px 2px; background: transparent; border: 0; text-align: left;
                cursor: pointer; min-height: 60px; }
.rp-kept-open:hover { background: var(--sand); }
.rp-kept-open span { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.rp-kept b { font-size: 20px; font-weight: 500; line-height: 1.2; }
.rp-kept small { font-size: 13px; color: var(--muted); }
.rp-kept small.rp-stale { color: var(--rust); font-weight: 600; }
.rp-kept-open em { color: var(--green); font-style: normal; font-size: 20px; }
.rp-forget { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 4px 0 10px; }
.rp-samples { display: flex; flex-direction: column; gap: 10px; }
.rp-sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-sample { background: var(--sand); border: 0; border-radius: 14px; padding: 14px; text-align: left; cursor: pointer; display: flex;
             flex-direction: column; gap: 8px; min-height: 96px; }
.rp-sample:hover { background: #e3d8c1; }
.rp-sample b { font-size: 16px; font-weight: 500; line-height: 1.2; }
.rp-link.rp-link-inline { min-height: 0; font-size: inherit; }   /* two classes: .rp-link below sets 44px and would win on order */
.rp-sample small { font-size: 11px; color: var(--muted); }
/* the verdict dot: shape first - solid (low overlap), half (medium), outline (overlaps too much) */
.rp-dot { flex: none; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #6f7a72; }
.rp-dot.v-independent { background: #5f9e6e; box-shadow: none; }
.rp-dot.v-yours { box-shadow: none; border: 1.5px dashed #6f7a72; }
.rp-dot.v-partial { background: linear-gradient(to top, var(--gold) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--gold); }
.rp-install-card { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 16px; display: flex; gap: 14px;
                   align-items: center; text-align: left; cursor: pointer; }
.rp-install-card:hover { border-color: var(--green); }
.rp-install-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--mint); color: var(--green); display: flex;
                  align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.rp-install-card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.rp-install-card strong { font-weight: 600; }
.rp-install-card > span:last-child > span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.rp-foot { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); font-family: "Newsreader", Georgia, serif;
           font-style: italic; font-size: 16px; }

/* result screens */
.rp-screen { padding: 14px 0 120px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.rp-screen > * { margin-left: 20px; margin-right: 20px; }
.rp-back { align-self: flex-start; background: transparent; border: 0; padding: 8px 0; color: var(--green); font-weight: 600; cursor: pointer;
           font-size: 16px; min-height: 44px; }
.rp-title { display: flex; flex-direction: column; gap: 8px; }
.rp-title h1 { font-size: 32px; line-height: 1.05; letter-spacing: -0.015em; }
.rp-title h1 a { color: inherit; text-decoration: none; }
.rp-meta { margin: 0; font-size: 13px; color: var(--muted); }
.rp-kept-pill { align-self: flex-start; background: var(--mint); color: var(--forest); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.rp-notes { margin-top: 0; margin-bottom: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.rp-cached { margin-top: 0; margin-bottom: 0; font-size: 13px; color: var(--muted); }
.rp-cached.rp-stale { color: var(--rust); font-weight: 600; font-size: 16px; border-left: 4px solid var(--rust); padding-left: 10px; }
.rp-verdict { border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: #e2ddd1; color: var(--ink); }
.rp-verdict.v-independent { background: var(--green); color: var(--paper); }
.rp-verdict.v-partial { background: #f6e7c8; color: #3b2a08; }
/* N1: a walk that is not ours has no verdict, so no verdict colour: a dashed outline, the shape saying 'not measured' */
.rp-verdict.v-yours { background: transparent; border: 1.5px dashed #6f7a72; }
.rp-v-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.rp-v-title { font-size: 26px; line-height: 1.1; font-weight: 500; }
.rp-v-body { font-size: 16px; line-height: 1.5; }
.rp-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 12px; padding: 4px; gap: 4px; }
.rp-tabs button { border: 0; border-radius: 9px; padding: 10px; font-weight: 600; font-size: 16px; cursor: pointer; min-height: 44px; background: transparent; }
.rp-tabs button[aria-selected="true"] { background: var(--white); box-shadow: 0 1px 3px rgba(31, 42, 36, 0.18); }
.rp-places { margin: 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pl { background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pl-head { display: flex; gap: 12px; align-items: flex-start; }
.pl-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center;
        justify-content: center; font-weight: 700; font-size: 13px; }
.pl-head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-name { font-size: 20px; line-height: 1.15; }
.pl-kind { font-size: 13px; color: var(--muted); }
.pl-src { display: block; font-size: 13px; color: var(--muted); font-style: italic; }
.pl-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sand2); border-radius: 12px; overflow: hidden; }
.pl-cells > div { background: var(--paper); padding: 10px 12px; display: flex; flex-direction: column; }
.pl-cells.one { grid-template-columns: 1fr; }
.pl-cells small { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pl-cells span { font-size: 16px; line-height: 1.35; }
.pl-note { margin: 0; font-size: 13px; color: var(--muted); }
.pl-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; border: 1px solid var(--green);
            color: var(--green); text-decoration: none; font-weight: 600; font-size: 13px; }
.pl-nav a:hover { background: var(--green); color: var(--white); }
.pl-photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -4px; padding: 0 4px; }
.pl-photo { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.pl-photo-open { display: block; padding: 0; border: 0; background: var(--sand); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.pl-photo-open img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pl-photo-n { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; background: rgba(31, 42, 36, 0.8); color: var(--white); border-radius: 999px; padding: 2px 8px; }
.pl-photo figcaption { font-size: 13px; color: var(--body); }
.pl-photo-date { color: var(--muted); white-space: nowrap; }
.rp-photo { position: fixed; inset: 0; z-index: 60; background: rgba(15, 20, 17, 0.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rp-photo[hidden] { display: none; }
.rp-photo-box { position: relative; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.rp-photo-box img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 12px; object-fit: contain; }
.rp-photo-box p { margin: 0; color: var(--paper); font-size: 13px; }
.rp-photo-box .rp-close { position: absolute; top: 8px; right: 8px; }
.pw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pw { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 14px; }
.pw h2 { margin: 4px 0 4px; font-size: 16px; }
.pw p { margin: 0; font-size: 16px; line-height: 1.4; }
.pw .pw-src { margin-top: 6px; font-size: 13px; color: var(--muted); }
.pw-fig { width: 96px; height: auto; background: var(--mint); border-radius: 10px; }
.pw-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pw-kind.k-law { color: var(--rust); }
.pw-road { fill: #cfc6b3; } .pw-verge { fill: #b9cdb1; } .pw-car { fill: var(--ink); } .pw-rescue { fill: var(--blue); }
.pw-yl { stroke: var(--gold); stroke-width: 2.5; fill: none; } .pw-wall { stroke: var(--body); stroke-width: 3; fill: none; }
.pw-gate { stroke: var(--body); stroke-width: 2; stroke-dasharray: 3 3; fill: none; }
.pw-arrow, .pw-dim { stroke: var(--green); stroke-width: 2; fill: none; } .pw-ditch { stroke: var(--body); stroke-width: 2; fill: none; }
.pw-no { stroke: var(--rust); stroke-width: 3; stroke-linecap: round; fill: none; }
.pw-yes { stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pw-pin { fill: var(--green); }
.rp-legal .rp-link { min-height: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 360px) { .pw { grid-template-columns: 1fr; } }
.pl-report { display: flex; align-items: center; min-height: 44px; align-self: flex-start; font-size: 13px; color: var(--muted); }
.pc-foot { font-size: 13px; color: var(--muted); margin-top: 0; }
.rp-section { border-top: 1px solid var(--rule); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.rp-bus { display: flex; gap: 14px; align-items: flex-start; }
.rp-bus-no { flex: none; min-width: 48px; height: 36px; padding: 0 8px; border-radius: 8px; background: var(--rust); color: var(--white); display: flex;
             align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.rp-bus > div { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--body); }
.rp-bus > div a { font-weight: 600; }
.rp-gates ul { margin: 0; padding-left: 18px; }
.rp-gates li { padding: 2px 0; }
.rp-watch { margin-top: 0; margin-bottom: 0; font-size: 13px; color: var(--body); background: var(--sand); border-radius: 14px; padding: 14px; }
.rp-endline { margin-top: 0; margin-bottom: 0; font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 16px; color: var(--muted); }
.rp-panel { background: var(--sand); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.rp-panel h1 { font-size: 32px; line-height: 1.05; }
.rp-panel p { margin: 0; color: var(--body); }
.rp-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); word-break: break-all; }
.rp-refused { color: var(--rust); }
.rp-outline { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 1.5px solid var(--ink); border-radius: 16px;
              color: var(--ink); text-decoration: none; font-weight: 600; background: transparent; cursor: pointer; padding: 8px 14px; text-align: center; }
.rp-tracks .rp-outline { width: 100%; }
.rp-outline:hover { background: var(--ink); color: var(--paper); }
.rp-tracks { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: flex; flex-direction: column; gap: 8px; }

/* the sketch */
.rp-sketch { display: flex; flex-direction: column; gap: 10px; }
.rp-map { display: block; width: 100%; height: auto; background: #fbf8f1; border: 1px solid var(--rule); border-radius: 20px; }
.rp-map-route { fill: none; stroke: var(--green); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.rp-map-walk { fill: none; stroke: var(--rust); stroke-width: 3.5; stroke-dasharray: 10 8; stroke-linecap: round; }
.rp-map-join { fill: var(--rust); }
.rp-map-start { fill: var(--ink); }
.rp-map-startlab { fill: var(--white); font: 700 20px "Public Sans", system-ui, sans-serif; letter-spacing: 0.06em; }
.rp-map-park { fill: var(--blue); stroke: var(--white); stroke-width: 4; }
.rp-map-bus { fill: var(--rust); stroke: var(--white); stroke-width: 3; }
.rp-map-num { fill: var(--white); font: 700 24px "Public Sans", system-ui, sans-serif; }
.rp-map-lab { fill: var(--muted); font: 600 24px "Public Sans", system-ui, sans-serif; paint-order: stroke; stroke: #fbf8f1; stroke-width: 6px; stroke-linejoin: round; }
.rp-map-scale { stroke: var(--muted); stroke-width: 5; }
.rp-map-key { margin: 0; padding-left: 22px; font-size: 13px; }
.rp-map-key li { padding: 2px 0; }

/* the keep bar */
.rp-keepbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; z-index: 4;
              padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 70%, rgba(245, 239, 227, 0)); }
.rp-keepbar button { width: 100%; min-height: 56px; border-radius: 16px; font-weight: 600; font-size: 16px; cursor: pointer; border: 0;
                     background: var(--green); color: var(--white); }
.rp-keepbar button.kept { background: var(--mint); color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--green); }

/* the install sheet */
.rp-sheet { position: fixed; inset: 0; background: rgba(31, 42, 36, 0.45); z-index: 10; display: flex; justify-content: center; align-items: flex-end; }
.rp-sheet-box { width: 100%; max-width: 440px; max-height: 88vh; overflow: auto; background: var(--paper); border-radius: 24px 24px 0 0;
                padding: 10px 20px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }
.rp-grab { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #cfc4ad; }
.rp-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rp-sheet-head h2 { margin: 0 0 6px; font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 28px; line-height: 1.05; }
.rp-sheet-head p { margin: 0; font-size: 16px; color: var(--body); }
.rp-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sand); cursor: pointer; font-size: 16px; }
.rp-steps { margin: 0; padding: 0; list-style: none; }
.rp-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--rule); }
.rp-steps i { font-family: "Newsreader", Georgia, serif; font-size: 24px; line-height: 1; color: var(--rust); }
.rp-steps li > span { display: flex; flex-direction: column; gap: 2px; }
.rp-steps strong { font-weight: 600; }
.rp-steps li > span > span { font-size: 13px; color: var(--muted); }
.rp-sheet-note { margin: 0; background: var(--sand); border-radius: 14px; padding: 14px; font-size: 13px; color: var(--body); }
.rp-sheet-later { margin: 0; text-align: center; }
.rp-link { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--green); text-decoration: underline; cursor: pointer; }
.rp-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border: 0; border-radius: 16px;
              background: var(--green); color: var(--white); font-weight: 600; font-size: 16px; cursor: pointer; }
.rp-primary:hover { background: var(--forest); }

/* reading */
.rp-reading { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: center; align-items: center; background: rgba(245, 239, 227, 0.85); }
.rp-reading div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rp-reading b { font-family: "Newsreader", Georgia, serif; font-size: 24px; font-weight: 500; }
.rp-reading span { font-size: 13px; color: var(--muted); }
