.gpx-page {
    --header-map: url("/art/routes/waterfront.webp");
    --map-position: 54%;
    --route: #87dec2;
    padding-bottom: 40px;
}
.gpx-head { margin-bottom: 20px; }
.gpx-breadcrumbs, .gpx-place, .gpx-pending, .gpx-review, .gpx-facts { overflow-wrap: anywhere; }
.gpx-head .raid-phases { flex-wrap: wrap; gap: 0 22px; }
.gpx-inner-head { padding: 20px 0; }
.gpx-inner-head h1 { max-width: 75%; font-size: clamp(2.25rem, 4vw, 3.25rem); overflow-wrap: anywhere; }
.gpx-head .gpx-back { display: inline-flex; align-items: center; padding-block: 5px; margin-bottom: 5px; font-size: .875rem; color: var(--gold); }
.gpx-back:hover { text-decoration: underline; }
.gpx-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.gpx-breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--muted); }
.gpx-breadcrumbs a,.gpx-facts a { color: var(--route); text-decoration: underline; text-underline-offset: .18em; }
.gpx-intro { max-width: 51ch; margin: 8px 0 0; }
.gpx-directory-help { margin-top: 30px; max-width: 72ch; }
.gpx-directory-help h2 { font: 700 1.7rem/1.15 Cond,sans-serif; }
.gpx-directory-help p { margin: .5em 0 0; line-height: 1.55; }
.gpx-place { display: flex; align-items: baseline; gap: 6px; color: #c3cbd0; font-size: .86rem; }
.gpx-inner-head .gpx-place { margin-top: 8px; font-size: .96rem; }
.gpx-page .notice { margin: 0 0 16px; }
.gpx-tools,.gpx-sort,.gpx-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gpx-tools { margin: 0 0 18px; justify-content: space-between; }
.gpx-tools .board-search { max-width: 420px; margin: 0; }
.gpx-sort { gap: 4px; }
.gpx-sort span,.gpx-pagination span { font-size: .85rem; color: var(--muted); }
.gpx-sort span { margin-right: 5px; }
.gpx-sort a { display: grid; place-items: center; min-height: 38px; padding: 5px 13px; background: #23262d; color: #cdd1d8; border: 1px solid var(--edge); border-radius: 6px; font-size: .86rem; font-weight: 600; }
.gpx-sort a[aria-current] { color: #ffe1a3; border-color: #bda46d; background: #3f382b; }
.gpx-sort a:hover { border-color: var(--gold); }
.gpx-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.gpx-list > :is(aside,.gpx-empty) { grid-column: 1 / -1; }
.gpx-listing,.gpx-panel,.gpx-map,.gpx-insights section,.gpx-form,.gpx-pending { border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); }
.gpx-listing { display: flex; flex-direction: column; min-width: 0; box-shadow: 0 3px 8px #0002; }
.gpx-listing:has(.gpx-card-link:is(:hover,:focus-visible)) { border-color: var(--route); }
.gpx-card-link { display: flex; flex-direction: column; flex: 1; color: var(--paper); border-radius: 11px 11px 0 0; }
.gpx-card-map { flex: none; aspect-ratio: 2; overflow: hidden; background: #26363c; border-radius: 11px 11px 0 0; }
.gpx-card-map picture { display: block; width: 100%; }
.gpx-card-map img,.gpx-card-map .gpx-trace { display: block; width: 100%; height: 100%; object-fit: contain; }
.gpx-trace { color: var(--route); background-color: #1c3034; background-image: linear-gradient(#2a4043 1px,transparent 1px),linear-gradient(90deg,#2a4043 1px,transparent 1px); background-size: 16px 16px; }
.gpx-info { position: relative; flex: 1; min-width: 0; padding: 14px 32px 13px 16px; background: linear-gradient(120deg,#2a3436,#262a30 76%); overflow-wrap: anywhere; }
.gpx-info::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border: solid #9aa7ad; border-width: 1.5px 1.5px 0 0; transform: translateY(-50%) rotate(45deg); }
.gpx-info h2 { margin: 4px 0; font: 690 clamp(1.5rem,2.4vw,1.95rem)/1.08 Cond,sans-serif; }
.gpx-info .pin { color: #9ac2b8; }
.gpx-points { color: var(--muted); font-size: .86rem; }
.gpx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px 4px 16px; border-top: 1px solid #363c43; }
.gpx-distance { display: inline-flex; align-items: baseline; gap: 4px; color: #cbd6d3; font-size: .86rem; white-space: nowrap; }
.gpx-distance strong { font: 670 1.38rem/1 Cond,sans-serif; color: var(--paper); }
.gpx-distance i { align-self: center; width: 18px; height: 8px; margin-right: 3px; background: radial-gradient(circle at 3px 50%,var(--route) 2.5px,transparent 3px),radial-gradient(circle at 15px 50%,var(--route) 2.5px,transparent 3px),linear-gradient(var(--route),var(--route)) center / 12px 1.5px no-repeat; transform: rotate(-17deg); }
.gpx-card-foot a { display: inline-flex; gap: 8px; align-items: center; min-height: 42px; padding: 0 8px; color: #e4ce9b; border-radius: 5px; font-size: .85rem; font-weight: 600; }
.gpx-card-foot a:hover { background: #36332d; color: var(--gold); }
.gpx-card-foot a:active,.gpx-page .primary:active,.gpx-page .secondary:active { filter: brightness(.91); }
.gpx-download-icon::before { content: "\f019"; }
.gpx-ios-icon::before { content: "\f179"; }
.gpx-android-icon::before { content: "\f17b"; }
.gpx-vote-icon::before { content: "\f087"; }
.gpx-directory-credit { margin-top: 16px; color: var(--muted); font-size: .75rem; }
.gpx-directory-credit a,.gpx-map-credit a { color: inherit; text-decoration: underline; }
.gpx-pagination { margin-top: 18px; justify-content: center; }
.gpx-page :is(.primary,.secondary) { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; text-align: center; }
.gpx-detail,.gpx-insights { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,1fr); align-items: start; gap: 16px; }
.gpx-detail { grid-template-areas: "map overview"; }
.gpx-detail > .gpx-map { grid-area: map; margin: 0; }
.gpx-panel { grid-area: overview; min-width: 0; }
.gpx-panel,.gpx-facts,.gpx-popularity,.gpx-form { padding: var(--panel-padding,clamp(16px,2vw,24px)); }
.gpx-panel h2,.gpx-insights h2,.gpx-form h2,.gpx-alternatives h2,.gpx-section-heading { font: 660 1.65rem/1.16 Cond,sans-serif; }
.gpx-panel { --panel-padding: clamp(16px,2vw,24px); background: linear-gradient(140deg,#2a3637,var(--panel) 56%); }
.gpx-numbers { display: flex; gap: 32px; margin: 14px 0; }
.gpx-numbers dt,.gpx-starting > span { color: var(--muted); font-size: .83rem; }
.gpx-numbers dd { margin: 2px 0 0; font: 680 2.15rem/1.04 Cond,sans-serif; font-variant-numeric: tabular-nums; }
.gpx-numbers small { font: 500 .93rem/1 Sans,sans-serif; color: #cfdbd8; }
.gpx-pace { margin-bottom: 14px; font-size: .87rem; color: var(--muted); }
.gpx-pace strong { font-weight: 600; color: var(--ink); }
.gpx-starting { padding-top: 12px; border-top: 1px solid var(--edge); }
.gpx-starting > div { display: flex; justify-content: space-between; align-items: center; gap: 5px; flex-wrap: wrap; }
.gpx-starting code { font-size: .89rem; user-select: all; overflow-wrap: anywhere; }
.gpx-copy-start { min-width: 78px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #414b50; border-radius: 6px; color: var(--route); font-size: .85rem; }
.gpx-copy-start:hover { background: #303c3b; }
.gpx-file-actions { margin-top: 14px; }
.gpx-download { width: 100%; }
.gpx-format-actions [data-copied],.gpx-copy-start[data-copied] { color: #a4efcf; background: #273d36; }
.gpx-page [data-copied] .ico { display: none; }
.gpx-copy-text { width: 100%; min-height: 76px; margin-top: 8px; color: var(--ink); background: var(--bg); }
.gpx-page [data-copy-result]:not(:empty):not(.sr-only) { margin-top: 6px; color: #ebcf9d; font-size: .87rem; }
.gpx-formats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 6px; margin-top: 6px; }
.gpx-listing .gpx-format-actions { padding: 0 10px 10px; }
.gpx-listing .gpx-formats { margin-top: 0; }
.gpx-formats .secondary { min-width: 0; padding: 6px 3px; gap: 7px; white-space: nowrap; font-size: .85rem; }
.gpx-formats .ico { font-size: 1rem; }
.gpx-formats .gpx-android-icon { color: #a7d9ad; }
.gpx-formats .secondary:hover { border-color: #768089; }
.gpx-insights { margin: 16px 0 24px; }
.gpx-insights section { min-width: 0; }
.gpx-vote {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
    margin: 18px calc(-1 * var(--panel-padding)) calc(-1 * var(--panel-padding));
    padding: 12px var(--panel-padding); border-top: 1px solid var(--edge);
    border-radius: 0 0 11px 11px; background: #20242a; scroll-margin: 16px;
}
.gpx-vote h3 { margin: 0; font: 650 1.28rem/1.2 Cond,sans-serif; }
.gpx-vote p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.gpx-vote-action,.gpx-voted { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .85rem/1.2 Sans,sans-serif; white-space: nowrap; }
.gpx-vote-action { min-height: 44px; padding: 6px 11px; border-radius: 7px; border: 1px solid #645940; background: #302e29; color: #f4d392; }
.gpx-vote-action:hover { border-color: var(--gold); background: #39352c; }
.gpx-vote-action:active { background: #443d30; }
.gpx-voted { color: var(--route); }
.gpx-insights p,.gpx-review p { margin-top: 6px; color: #d0d3d8; line-height: 1.5; }
.gpx-facts h3,.gpx-review h3,.gpx-form label { margin: 16px 0 0; font: 650 .96rem/1.4 Sans,sans-serif; }
.gpx-map { overflow:hidden; }
.gpx-viewport { position:relative; isolation:isolate; width:100%; height:clamp(320px,35vw,490px); background:#323f52; }
.gpx-map:not([data-outline-preview]) .gpx-viewport { height:auto; aspect-ratio:4/3; }
.gpx-map-fallback,.gpx-live-map { position:absolute; inset:0; }
.gpx-live-map { z-index:0; visibility:hidden; }
.gpx-map[data-map-ready] .gpx-live-map { visibility:visible; }
.gpx-map-fallback { z-index:1; display:grid; place-items:center; background:#283442; }
.gpx-map:is([data-map-loading],[data-map-ready]) .gpx-map-fallback,.gpx-map-loading { display:none; }
.gpx-map[data-map-loading] .gpx-map-loading { position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); background:var(--surface); font-size:.86rem; }
.gpx-map :is(.gpx-fit,.gpx-map-credit)[hidden] { display:block; visibility:hidden; }
.gpx-map-fallback a { width:100%; height:100%; overflow:hidden; }
.gpx-map-fallback img,.gpx-map-fallback .gpx-trace { display:block; width:100%; height:100%; object-fit:contain; }
.gpx-map-fallback span { position:absolute; bottom:8px; left:12px; color:#fff; background:#17252a; padding:2px 6px; font-size:.76rem; }
.gpx-map-credit { position:absolute; bottom:0; right:0; max-width:100%; z-index:2; padding:3px 7px; border-radius:4px 0 0 0; background:#18212bed; color:#e3e9ed; font:11px/1.3 system-ui,sans-serif; }
.gpx-map .maplibregl-ctrl-group { border-radius:7px; overflow:hidden; box-shadow:0 1px 6px #0006; }
.gpx-map .maplibregl-ctrl-group button { width:36px; height:36px; }
.gpx-map .maplibregl-ctrl-scale { background:#18212be0; border-color:#c6d5dc; color:#fff; line-height:1.2; }
.gpx-map figcaption { display:flex; min-height:46px; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; padding:6px 12px; font-size:.83rem; }
.gpx-legend,.gpx-legend span { display:inline-flex; align-items:center; }
.gpx-legend { gap:14px; }
.gpx-legend span { gap:5px; }
.gpx-map[data-outline-preview]:not([data-map-ready]) .gpx-legend span:not(:first-child) { display:none; }
.gpx-line { width:19px; height:3px; border-radius:2px; background:#67f0c5; }
.gpx-start,.gpx-end { width:10px; height:10px; border-radius:50%; }
.gpx-start { background:#67f0c5; }
.gpx-end { border:2px solid #ffd06b; }
.gpx-fit { background:transparent; color:var(--ink); border:1px solid var(--line); border-radius:5px; padding:5px 10px; font:inherit; cursor:pointer; }
.gpx-fit:hover,.gpx-fit:focus-visible { border-color:var(--teal); }
.gpx-chart { margin:12px 0 0; }
.gpx-chart figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:3px 12px; }
.gpx-chart figcaption strong { font:700 1.65rem/1.2 Cond,sans-serif; }
.gpx-chart figcaption span,.gpx-chart-axis,.gpx-chart p { color:var(--muted); font-size:.83rem; }
.gpx-chart-bars { margin-top:12px; display:flex; gap:clamp(1px,.3vw,4px); height:85px; border-bottom:1px solid var(--muted); background:repeating-linear-gradient(to top,transparent 0 24px,var(--line) 24px 25px); }
.gpx-chart-bars>div { display:flex; align-items:flex-end; flex:1; min-width:0; }
.gpx-chart-bars i { width:100%; min-height:2px; background:var(--teal); border-radius:2px 2px 0 0; }
.gpx-chart-axis { display:flex; justify-content:space-between; margin:4px 0 8px; }
.gpx-history { margin-top:10px; font-size:.86rem; }
.gpx-history summary { color:var(--teal); cursor:pointer; }
.gpx-alternatives ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0; margin: 10px 0 0; list-style: none; }
.gpx-alternatives a { display: grid; align-content: center; gap: 4px; height: 100%; padding: 14px; border: 1px solid var(--edge); border-radius: 9px; background: var(--panel); }
.gpx-alternatives a:hover,.gpx-alternatives a:focus-visible,.gpx-pending:hover { border-color: var(--route); }
.gpx-alternatives strong,.gpx-pending strong { font: 650 1.35rem/1.16 Cond,sans-serif; overflow-wrap: anywhere; }
.gpx-alternatives span,.gpx-pending p { color: var(--muted); font-size: .86rem; }
.gpx-form { display: grid; max-width: 650px; margin: 0 auto; gap: 6px; }
.gpx-form-heading p { margin-top: 5px; }
.gpx-form p,.gpx-form label span { color: var(--muted); font-size: .88rem; }
.gpx-form label span { font-weight: 450; }
.gpx-form input,.gpx-form textarea { width: 100%; min-width: 0; padding: 11px; color: var(--ink); background: #1c2026; border: 1px solid #4a5059; border-radius: 6px; font: inherit; }
.gpx-form textarea { resize: vertical; }
.gpx-form input[type="file"] { font-size: .87rem; padding: 9px; }
.gpx-form input::file-selector-button { margin-right: 10px; padding: 6px 10px; background: #313b41; color: var(--ink); border: 1px solid #58656c; border-radius: 4px; cursor: pointer; }
.gpx-form input[aria-invalid="true"],.gpx-form textarea[aria-invalid="true"] { border-color: #dc9895; }
.gpx-form .gpx-error { color: #f8b2ae; }
.gpx-form .primary { margin-top: 12px; justify-self: start; }
.gpx-section-heading { margin: 0 0 10px; }
.gpx-pending { max-width: 780px; display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 14px; margin-bottom: 8px; padding: 12px; }
.gpx-pending .gpx-trace { width: 100%; border-radius: 5px; }
.gpx-review > a,.gpx-review form { margin-top: 16px; }
@media (max-width: 940px) {
    .gpx-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gpx-tools .board-search { flex: 1 1 245px; }
}
@media (max-width: 700px) {
    .gpx-head { margin-bottom: 14px; }
    .gpx-head::before { width: 95%; background-image: linear-gradient(0deg,var(--bg),transparent 48%),linear-gradient(90deg,var(--bg),#191b2266 48%,transparent 75%),var(--header-map); background-size: cover; background-position: center var(--map-position); background-repeat: no-repeat; }
    .gpx-head .raid-phases { gap: 0 15px; }
    .gpx-inner-head { padding-block: 13px; }
    .gpx-inner-head h1 { max-width: 94%; font-size: 2.25rem; }
    .gpx-tools { gap: 8px; }
    .gpx-tools .board-search { flex-basis: 100%; max-width: none; }
    .gpx-detail,.gpx-insights,.gpx-alternatives ul { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .gpx-detail { grid-template-areas: "overview" "map"; }
    .gpx-viewport { height: clamp(260px,80vw,360px); }
    .gpx-map .maplibregl-ctrl-bottom-left { bottom: 20px; }
    .gpx-numbers { margin: 11px 0; }
}
@media (max-width: 600px) {
    .gpx-page .gpx-head::before { background-image: linear-gradient(90deg, #191b22f0, #191b22ae 66%, #191b2255), var(--header-map); }
    body:has(.gpx-page) .mast nav { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
    .gpx-list { grid-template-columns: minmax(0,1fr); gap: 11px; }
    .gpx-card-link { display: grid; grid-template-columns: 39% minmax(0,1fr); }
    .gpx-card-map { align-self: stretch; aspect-ratio: auto; display: grid; align-items: center; border-radius: 11px 0 0; background: #2c3947; }
    .gpx-card-map img,.gpx-card-map .gpx-trace { height: auto; aspect-ratio: 3 / 2; }
    .gpx-info { display: flex; flex-direction: column; justify-content: center; min-height: 94px; padding: 10px 23px 10px 12px; border-radius: 0 11px 0 0; }
    .gpx-info::after { right: 11px; }
    .gpx-info h2 { font-size: 1.46rem; }
    .gpx-place,.gpx-points { font-size: .8rem; }
    .gpx-card-foot { padding-block: 0; }
    .gpx-form .primary { justify-self: stretch; }
}
