/* The routes taken from OpenStreetMap, as walks in our areas (28 Nov 2026; first made for /mapped on 26 Nov). A route's page is its figures, a drawing of its shape (the picture: there is no
   photograph) with a map on request, and the credit paragraph; in every list its card is the walk card of the site with the drawing where a photograph would be, and nothing on it is a label.
   Uses the site's own colours (--paper, --ink, --pine, --line) and the walks' page head; logical properties throughout so a right-to-left language mirrors by itself. */

.mp-page:not(:lang(ja)) { word-break: keep-all; overflow-wrap: anywhere; }
.mp-head .mp-native { margin: 0; font-size: 1.05rem; color: var(--muted); }
.mp-sec { margin-top: 34px; }
.mp-sec h2 { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.2; margin: 0 0 14px; text-wrap: balance; }
.mp-small { margin: 8px 0 0; font-size: .86rem; line-height: 1.45; color: var(--muted); max-width: 62ch; }
.mp-more { margin: 14px 0 0; }
.mp-stats { max-width: 880px; }
.mp-stats .grade { font-size: 13px; padding: 6px 11px; }

/* ---- the route-shape drawing: the picture of a mapped route */
.mp-shape { display: block; width: 100%; height: auto; }
.mp-shape .mp-line { fill: none; stroke: var(--pine); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.mp-shape .mp-start { fill: var(--pine); stroke: #fff; stroke-width: 2; }
.mp-shape .mp-end { fill: #fff; stroke: var(--pine); stroke-width: 3; }
.mp-shape-card .mp-line { stroke-width: 2.6; }

/* ---- the areas without a walk we wrote up, as chips under a country's or a part's tiles, and the pager of a long list */
.mp-chips a { display: inline-flex; align-items: baseline; gap: 12px; padding: 12px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mp-chips a:hover, .mp-chips a:focus-visible { border-color: var(--pine); }
.mp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; }
.mp-chips a { padding: 9px 16px; border-radius: 999px; background: #E4EBDF; border-color: transparent; font-weight: 600; font-size: .98rem; }
.mp-chips a:hover, .mp-chips a:focus-visible { background: #D8E3D2; border-color: var(--pine); }
.mp-chips b { font-weight: 600; font-size: .84em; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 22px 0 0; }
.mp-pager a { font-weight: 600; }
.mp-pager span { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }

/* ---- a route's map: the drawing until the visitor asks for the real one */
.mp-map { position: relative; width: 100%; min-height: 240px; border: 1px solid var(--line); border-radius: 12px; background: #EEF1E9; overflow: hidden; }
.mp-map.mp-live { height: clamp(340px, 62vh, 540px); }
.mp-mapshow { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--pine); border-radius: 999px; background: #fff; color: var(--pine); font: inherit; font-weight: 600; cursor: pointer; }
.mp-mapshow:hover { background: #F4F7F1; }
.mp-mapshow:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.mp-mapnote { margin-block-start: 8px; }
.mp-mapfail { padding: 20px; color: var(--muted); }

/* ---- as mapped, the credit, the links */
.mp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 24px; margin: 0; max-width: 760px; }
.mp-facts div { display: grid; gap: 2px; }
.mp-facts dt { font: 700 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mp-facts dd { margin: 0; font-weight: 600; }
.mp-credit { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--paper-2); color: var(--ink-soft); font-size: .95rem; line-height: 1.5; max-width: 66ch; }
.mp-links { margin: 12px 0 0; }
.mp-app { margin-block-end: 24px; }

/* ---- phones: the page's one column may be narrower than the widest thing in it (walks.css gives it 1fr, which is "auto": the content decides), so it is told it may shrink (as trail.css does for the trails) */
@media (max-width: 900px) { .mp-page .walk-grid { grid-template-columns: minmax(0, 1fr); } }
.mp-page .walk-main { min-width: 0; }

/* ---- a route's card: the walk card with its drawing where a photograph would be */
.walk-card-shape { display: block; width: 100%; aspect-ratio: 16 / 9; background: #EEF1E9; border-block-end: 1px solid var(--line-soft); overflow: hidden; }
.wa-grid .walk-card-shape { aspect-ratio: 4 / 3; }
.walk-card-shape .mp-shape { width: 100%; height: 100%; }
.mp-chips-after { margin-block-start: 18px; }
.mp-chips-more a { background: transparent; border: 1px solid var(--line); color: var(--pine); }
.wa-page .mp-pager, .wa-page .mp-pager + p { margin-block-start: 26px; }
/* the bothies a route passes (29 Nov 2026, app/mapped-bothies.php) and /bothies (public/bothies.php) */
.mp-bothies { margin: 6px 0 0; padding-left: 1.15rem; }
.mp-bothies li { margin: 0 0 8px; line-height: 1.5; }
.mp-bothy-more { white-space: nowrap; font-size: .92rem; }
.mp-bothy-list { list-style: none; margin: 18px 0 0; padding: 0; columns: 2 280px; column-gap: 32px; }
.mp-bothy-list li { margin: 0 0 10px; break-inside: avoid; line-height: 1.45; }
.mp-bothy-list a { font-weight: 600; }
