/* Route clips (theme 0.2.85, 29 Nov 2026): a walk clip with its route map laid over its foot (inc/routeclip.php,
   assets/route-clip.js). The look of the tested prototype (AG Website prototype, Versions 373-376): the map line, the walked
   trail, the dot, photo bubbles as the train map, the photo large on a tap. Aaron, 28-29 Nov 2026: "a little squiggle that
   was actually the map of the seek ... drag on the map"; "overlaid onto the bottom of the image"; "photo bubbles that can pop
   up"; "when you get to the video, it kind of snapped to the full height of the screen". */
.ag-clip.rclip .rc-stage { position: relative; }
.ag-clip.rclip.rc-portrait { max-width: none !important; }
/* an upright route clip fits the screen under the fixed header (77 px), centred, full width on a phone; the page snaps to it */
.ag-clip.rclip.rc-portrait .rc-stage { width: min(100%, calc((100svh - 93px) * 9 / 16)); margin-left: auto; margin-right: auto; scroll-snap-align: start; scroll-margin-top: 85px; }
.ag-clip.rclip.rc-portrait video { width: 100% !important; height: auto !important; aspect-ratio: 9 / 16; display: block; }
:root:has(.ag-clip.rclip.rc-portrait) { scroll-snap-type: y proximity; }
.ag-clip.rclip > .rc-credit { display: block; margin-top: 6px; font-size: 11px; color: var(--stone); }
.rclip-map { margin-top: 10px; user-select: none; -webkit-user-select: none; }
.rclip-map svg { width: 100%; height: auto; display: block; cursor: grab; touch-action: none; overflow: visible; }
.rclip-map.on svg { cursor: grabbing; }
.rclip-map svg:focus-visible { outline: 2px solid var(--sun); outline-offset: 6px; border-radius: 4px; }
.rclip-map .rc-hit { fill: none; stroke: transparent; stroke-width: 44; stroke-linecap: round; stroke-linejoin: round; pointer-events: stroke; }
.rclip-map .rc-base { fill: none; stroke: var(--stone); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .8; }
.rclip-map .rc-line { fill: none; stroke: var(--line); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.rclip-map .rc-done { fill: none; stroke: var(--ember); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.rclip-map .rc-dot { fill: var(--sun); stroke: var(--ink); stroke-width: 3; }
.rclip-map .rc-north path { fill: var(--stone); }
.rclip-map .rc-north text { fill: var(--stone); font: 700 12px var(--body); }
.rclip-map .rc-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 13px; color: var(--soft); }
.rclip-map .rc-tip { color: var(--stone); }
.rclip-map .rc-credit { display: block; margin-top: 2px; font-size: 11px; color: var(--stone); }
.rclip-map.rc-over { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 14px 10px; background: linear-gradient(to top, rgba(12,10,8,.84) 0%, rgba(12,10,8,.6) 50%, rgba(12,10,8,0) 100%); }
.rclip-map.rc-over .rc-base { stroke: rgba(255,255,255,.6); }
.rclip-map.rc-over .rc-line { stroke: rgba(255,255,255,.4); }
.rclip-map.rc-over .rc-north path, .rclip-map.rc-over .rc-north text { fill: rgba(255,255,255,.85); }
.rclip-map.rc-over .rc-ends { color: rgba(255,255,255,.94); text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.rclip-map.rc-over .rc-tip { color: rgba(255,255,255,.72); }
.rclip-map .rc-pic { cursor: zoom-in; }
.rclip-map .rc-pic .rc-ring { fill: none; stroke: #fff; }
.rclip-map .rc-pic .rc-lead { stroke: rgba(255,255,255,.85); }
.rclip-map .rc-pic.on .rc-ring, .rclip-map .rc-pic:focus-visible .rc-ring { stroke: var(--sun); }
.rclip-map .rc-pic:focus { outline: none; }
@media (max-width: 700px) { .rclip-map.rc-over { padding: 30px 10px 8px; } .rclip-map.rc-over .rc-tip { display: none; } }
/* a bubble photo large over the page: the train map's lightbox look */
.rc-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))}
.rc-lb img{width:auto;height:76vh;max-width:94vw;max-height:76vh;object-fit:contain}
.rc-lb-cap{margin:0;max-width:70ch;text-align:center;color:#F3EFE7;font:400 15px/1.45 Figtree,system-ui,sans-serif}
.rc-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}
.rc-lb-x:focus-visible{outline:2px solid #C8551E;outline-offset:2px}
