/* Train map for "Top Train Rides I've Taken" (theme 0.2.70, batch 1122 ttr, 22 Nov 2026); loaded only on that post
   (inc/trainmap.php). The rules of the prototype's app.css (".tmap" block, v338) as they are, then the live additions
   below them. Site palette (app.css :root variables), no blue or green. */
.tmap{margin:28px 0;position:relative}
.tmap-stage{position:relative;width:100%;max-width:100%;border:1px solid var(--soft,#D8D2C7);border-radius:10px;overflow:hidden;background:#B4AA9B}
.tmap-stage svg{display:block;width:100%;height:100%;touch-action:manipulation}
.tm-sea{fill:#B4AA9B}
.tm-land{fill:#F3EDE2;stroke:#9E9485;stroke-width:.7;vector-effect:non-scaling-stroke}
.tm-land-hi{fill:#F3EDE2}
.tm-border{fill:none;stroke:#C4BAAA;stroke-width:.9;vector-effect:non-scaling-stroke}
.tmap path.rt{fill:none;stroke:#C8551E;stroke-linecap:round;stroke-linejoin:round;cursor:pointer;transition:stroke .2s}
.tmap path.rt.on{stroke:#9B2D12}
.tmap path.hit{fill:none;stroke:transparent;stroke-linecap:round;cursor:pointer}
.tmap circle.stn{fill:var(--ink,#0E0D0B);opacity:.55}
.tmap circle.stop{fill:#fff;stroke:var(--ember,#C8492D);stroke-width:2;vector-effect:non-scaling-stroke}
.tm-lab{font-family:Figtree,system-ui,sans-serif;fill:var(--ink,#0E0D0B);paint-order:stroke;stroke:var(--paper,#F3EFE7);stroke-linejoin:round}
.tm-lab.end{font-weight:700}
.tm-lead{stroke:var(--ink,#0E0D0B);stroke-width:1.4;opacity:.5}
.tm-ring{fill:none;stroke:#fff;stroke-width:3}
.tmap g.pic{cursor:pointer}
.tmap g.pic.sm .tm-ring{stroke-width:2}
.tm-lab.lk{fill:var(--ember,#C8492D);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.tmap circle.stop.lk{fill:var(--ember,#C8492D);stroke:#fff}
.tm-back{position:absolute;left:10px;top:10px;font:600 13px/1 Figtree,system-ui,sans-serif;padding:8px 12px;border-radius:999px;border:1px solid var(--line,#2F2C27);background:var(--paper,#F3EFE7);color:var(--ink,#0E0D0B);cursor:pointer}
.tmap-card[hidden],.tm-back[hidden]{display:none}
.tmap-card{display:flex;gap:12px;align-items:flex-start;margin-top:10px;padding:12px;border:1px solid var(--soft,#D8D2C7);border-radius:10px;background:var(--paper,#F3EFE7);position:relative}
.tmap-card img{width:132px;height:99px;object-fit:cover;border-radius:6px;flex:none}
.tmap-card p{margin:0 0 6px}
.tm-name{font-weight:700}
.tm-cap{font-size:14px;opacity:.8}
.tm-act button{font:600 13px Figtree,system-ui,sans-serif;padding:6px 10px;border-radius:999px;border:0;background:var(--ember,#C8492D);color:#fff;cursor:pointer}
.tm-act .tm-read{background:none;color:var(--ink,#0E0D0B);text-decoration:underline;padding:6px 4px}
.tm-x{position:absolute;right:8px;top:6px;border:0;background:none;font-size:22px;line-height:1;cursor:pointer;color:var(--ink,#0E0D0B)}
.tmap-credit{font-size:12px;opacity:.65;margin:6px 0 0}
@media (max-width:520px){.tmap-card img{width:96px;height:72px}}
.tmap circle.stop.place{fill:var(--paper,#F3EFE7);stroke-dasharray:2 2}
.tmap circle.stop,.tmap circle.stn{cursor:pointer}
.tm-act a{font-size:14px}
/* live additions (not in the prototype) */
/* the card is light (paper): dark text, since the post's .prose p sets light text (on the prototype the draft frame made it red) */
.tmap-card{color:var(--ink,#0E0D0B)}
.tmap .tmap-card p{color:var(--ink,#0E0D0B)}
.entry h2[data-ride-h]{scroll-margin-top:96px}
/* map_data round 3 (25 Nov 2026): the year of each leg on a ride map (Shinkansen 2008 / 2019, India), as in the prototype */
.tm-lab.yr{font-style:italic;font-weight:600}
/* reel look (25 Nov 2026; Aaron: "make the graphics for the map the same between the website and the video"): the R-06 v4
   reel colours (sea #B4AA9B, land #F3EDE2, coast #9E9485, borders #C4BAAA, graticule #C3BAAC, rust lines #C8551E), the
   ride number in a rust disc, a cream name tag under it, dark year chips; extra rides thinner, no disc. No blue or green. */
.tm-grat{fill:none;stroke:#C3BAAC;stroke-width:.6;vector-effect:non-scaling-stroke}
.tmap path.rt.ex{opacity:.85}
.tmap path.rt.ex.on{opacity:1}
.tmap g.bdg{cursor:pointer;filter:drop-shadow(0 1px 1.5px rgba(14,13,11,.35))}
.tmap g.bdg.lc{cursor:default}
.tm-blead{stroke:#2B2B2B;stroke-width:1.2;opacity:.6}
.tm-disc{fill:#C8551E;stroke:#F3EDE2;stroke-width:1.6}
.tmap g.bdg.on .tm-disc{fill:#9B2D12}
.tm-no{font-family:"Big Shoulders Display",Figtree,system-ui,sans-serif;font-weight:800;fill:#F3EFE7}
.tm-tag rect{fill:#F3EDE2;stroke:rgba(43,43,43,.43);stroke-width:1}
.tm-tag text{font-family:Figtree,system-ui,sans-serif;font-weight:800;fill:#2B2B2B}
.tm-chip rect{fill:rgba(14,13,11,.87)}
.tm-chip text{font-family:Figtree,system-ui,sans-serif;font-weight:800;fill:#F3EFE7}
/* continent zoom on the first map (Aaron, 25 Nov: "click and zoom into continents") */
.tmap-stage.tm-zoomable svg{cursor:zoom-in}
.tmap-zoombar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px;font:600 13px/1 Figtree,system-ui,sans-serif}
.tmap-zoombar span{opacity:.75;margin-right:2px}
.tmap-zoombar button{font:inherit;padding:7px 11px;border-radius:999px;border:1px solid #9E9485;background:#F3EDE2;color:#2B2B2B;cursor:pointer}
.tmap-zoombar button[aria-pressed="true"]{background:#C8551E;border-color:#C8551E;color:#F3EFE7}
/* map photo lightbox (the user, 25 Nov: "if you click on the image thing for it to become larger"): the look of the site's .lightbox */
.tmap-card img,.tmap g.pic{cursor:zoom-in}
.tm-lb{position:fixed;inset:0;z-index:60;background:rgba(8,7,6,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:max(24px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom))}
.tm-lb img{width:auto;height:76vh;max-width:94vw;max-height:76vh;object-fit:contain}
.tm-lb-cap{margin:0;max-width:70ch;text-align:center;color:#F3EFE7;font:400 15px/1.45 Figtree,system-ui,sans-serif}
.tm-lb-x{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:44px;height:44px;border-radius:999px;border:1px solid rgba(243,239,231,.5);background:rgba(14,13,11,.6);color:#F3EFE7;font-size:26px;line-height:1;cursor:pointer}
.tm-lb-x:focus-visible{outline:2px solid #C8551E;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.tmap path.rt{transition:none}}
