/* Arrival cartography. The road geometry uses Reach's native local Mercator units. */
.am-stage{
  --am-paper:#f3e9d0;
  --am-ink:#153f3c;
  container:arrival-map / inline-size;
  position:relative;
  isolation:isolate;
  width:100%;
  height:clamp(335px,33vw,455px);
  overflow:hidden;
  border:1px solid #bcac88;
  border-radius:10px;
  background:radial-gradient(ellipse at 15% 75%,#eee1be 0%,transparent 52%),
             linear-gradient(145deg,#fcf6df 2%,#f4e9ce 42%,#ead9b4 100%);
  color:var(--am-ink);
  font-family:var(--sans,"DM Sans",Arial,sans-serif);
}
.am-canvas{display:block;width:100%;height:100%;position:absolute;inset:0;z-index:0}
.am-canvas path{fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.am-secondary{stroke:#c8b89b;stroke-width:1;opacity:.8}
.am-arterial{stroke:#fffaf0;stroke-width:2.9}
.am-highway{stroke:#a39174;stroke-width:2}
.am-river{stroke:#76aaa3;stroke-width:6;opacity:.78}
.am-map-label{
  position:absolute;z-index:1;pointer-events:none;
  transform:translate(-50%,-125%);font:620 12px/1.05 var(--sans,"DM Sans",Arial,sans-serif);
  color:#65563e;white-space:nowrap;text-shadow:0 1px 2px #fff5de,0 -1px 2px #fff5de,1px 0 #fff5de,-1px 0 #fff5de;
}
.am-label-water{font-family:var(--serif,"DM Serif Text",Georgia,serif);font-style:italic;font-weight:400;color:#326960;transform:translate(-50%,-135%) rotate(-9deg)}
.am-stage [data-direction=north]{--am-route:#a34028;--am-soft:#f9e1cc}
.am-stage [data-direction=east]{--am-route:#027273;--am-soft:#d7f1e4}
.am-stage [data-direction=south]{--am-route:#725074;--am-soft:#f2dfea}
.am-stage [data-direction=west]{--am-route:#796017;--am-soft:#faedbc}
.am-route{opacity:.78}
.am-route .am-casing{stroke:#fff9e8;stroke-width:4.9}
.am-route .am-line{stroke:var(--am-route);stroke-width:2.6;stroke-dasharray:4 3}
.am-route.am-selected{opacity:1}
.am-route.am-selected .am-casing{stroke:#fffcf1;stroke-width:8.1}
.am-route.am-selected .am-line{stroke-width:4.8;stroke-dasharray:none}
.am-compass,.am-scale{position:absolute;z-index:1;pointer-events:none;font:750 12px/1 var(--sans,"DM Sans",Arial,sans-serif);color:#345752;text-shadow:0 1px #fff4dc}
.am-compass{top:12px;right:13px;display:grid;justify-items:center;gap:3px}
.am-compass svg{display:block}
.am-scale{bottom:13px;left:14px;display:grid;gap:4px;place-items:center}
.am-scale::after{content:"";display:block;width:var(--am-distance-width,48px);height:5px;border:solid #42635a;border-width:0 1.5px 1.5px;filter:drop-shadow(0 1px #fff0cf)}
.am-marker,.am-destination{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;margin:0}
.am-marker{
  z-index:2;padding:0;width:44px;height:44px;
  border:0;border-radius:50%;background:transparent;
  cursor:pointer;touch-action:manipulation;
  color:var(--am-route);font-family:var(--sans,"DM Sans",Arial,sans-serif);
}
.am-marker .am-letter{
  display:grid;place-items:center;width:28px;height:28px;box-sizing:border-box;border:2px solid var(--am-route);
  border-radius:50%;background:var(--am-soft);color:var(--am-route);
  font-size:14px;font-weight:800;line-height:1;box-shadow:0 0 0 2px #fff6df;
}
.am-marker[aria-pressed=true]{z-index:3}
.am-marker[aria-pressed=true] .am-letter{
  width:32px;height:32px;color:#fffaf0;background:var(--am-route);box-shadow:0 0 0 2px #fff7e1,0 1px 6px 2px #3e492e54;
}
.am-marker:focus-visible{outline:3px solid #082f37;outline-offset:0;background:#fff1cdba}
.am-marker:focus-visible,.am-marker:hover{z-index:6}
.am-origin-name{
  position:absolute;top:50%;left:calc(50% + 19px);transform:translateY(-50%);
  width:max-content;max-width:175px;padding:4px 6px;
  border:1px solid #b6a88c;border-radius:4px;
  background:#fff7e2;color:#294841;font-size:12px;font-weight:720;line-height:1.14;text-align:left;
}
.am-marker[data-label-side=left] .am-origin-name{left:auto;right:calc(50% + 19px);text-align:right}
.am-marker[aria-pressed=true] .am-origin-name{color:var(--am-route);border-color:var(--am-route)}
.am-destination{z-index:4;width:24px;height:24px;pointer-events:none}
.am-destination-dot{
  position:absolute;width:21px;height:21px;border-radius:50%;border:3px solid #fff1bd;background:#133d3c;
  box-shadow:0 0 0 2px #715d36,0 1px 4px 2px #2d332641;
}
.am-destination-dot::after{content:"";display:block;position:absolute;inset:4px;border-radius:50%;background:#ffc265}
.am-destination-name{
  position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);width:max-content;
  padding:5px 10px 6px;border-radius:4px;border:1px solid #a28f62;background:#173c3b;color:#ffdfa0;
  box-shadow:0 2px 4px #20342c26;font:italic 400 clamp(15px,1.45vw,20px)/1 var(--serif,"DM Serif Text",Georgia,serif);
}
.am-destination-name::after{content:"";position:absolute;bottom:-5px;left:calc(50% - 4px);width:7px;height:7px;transform:rotate(45deg);background:#173c3b;border-right:1px solid #a28f62;border-bottom:1px solid #a28f62}
.am-credits{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:0 .25rem;
  color:inherit;opacity:.9;font:500 12px/1.45 var(--sans,"DM Sans",Arial,sans-serif);
  padding:7px 2px 0;
}
.am-credits a{color:inherit;text-decoration:underline;text-underline-offset:.16em}
@media(max-width:820px){.am-stage{height:clamp(320px,55vw,410px)}}
@media(max-width:560px){.am-stage{height:clamp(306px,80vw,385px)}.am-origin-name{font-size:12px}.am-marker:not([aria-pressed=true]):not(:focus-visible):not(:hover) .am-origin-name{display:none}.am-destination-name{font-size:16px}}
@media(max-width:560px){.am-label-road{display:none}}
@container arrival-map (max-width:560px){.am-marker:not([aria-pressed=true]):not(:focus-visible):not(:hover) .am-origin-name,.am-label-road{display:none}}
@media(forced-colors:active){.am-marker .am-letter,.am-destination-name{border:2px solid ButtonText}.am-marker[aria-pressed=true] .am-letter{outline:3px double Highlight}.am-route .am-line{stroke:GrayText}.am-route.am-selected .am-line{stroke:Highlight}}

