/*
 * Shared classes of the Reloporter panels on the design system 1.8.0: what the core JS (reloporter.js) and the shared
 * search form (searchForm.tpl / searchForm.js) need and the kit has no class for. Prefix rpx- (rp- is the kit's).
 * Loaded after bundle.css and before a panel's own CSS. Kit tokens only, no hex values.
 */

.hidden { display: none !important; }
.rp-btn-label { display: inline-flex; align-items: center; gap: 8px; }
a.rp-btn { text-decoration: none; box-sizing: border-box; }
.rpx-loader-14 { font-size: 14px; }
.rpx-loader-16 { font-size: 16px; }
.rpx-loader-20 { font-size: 20px; }
.rpx-loader-32 { font-size: 32px; }
.rpx-sk { height: 10px; }
.rpx-sk-70 { width: 70%; } .rpx-sk-45 { width: 45%; } .rpx-sk-60 { width: 60%; } .rpx-sk-35 { width: 35%; } .rpx-sk-55 { width: 55%; }
.rpx-skr-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rpx-skr-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rpx-skr-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rpx-skr-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rpx-skr-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rpx-sec { border-top: 1px solid var(--border); }
.rpx-sec:first-child { border-top: 0; }
.rpx-sec-head { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: var(--d-pad) 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; color: var(--ink); }
.rpx-sec-head:hover { color: var(--navy); }
.rpx-sec-head:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rpx-sec-title { display: inline-flex; align-items: center; gap: 8px; font-size: var(--d-h3); line-height: var(--d-h3-lh); font-weight: 700; letter-spacing: -0.01em; }
.rpx-sec-chev { color: var(--ink-subtle); transition: transform var(--motion-fast) var(--ease-standard); }
.rpx-sec-head[aria-expanded="true"] .rpx-sec-chev { transform: rotate(180deg); }
.rpx-sec-body { display: grid; gap: var(--d-pad); padding-bottom: var(--d-pad-lg); min-width: 0; }
.rpx-map { height: 400px; border: 1px solid var(--border-strong); line-height: normal; }
.rpx-map-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.rpx-range .rp-range-track { cursor: default; }
.rpx-range input[type="range"] { position: absolute; left: -10px; right: -10px; top: 6px; width: calc(100% + 20px); height: 20px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.rpx-range input[type="range"]::-webkit-slider-runnable-track { background: none; }
.rpx-range input[type="range"]::-webkit-slider-thumb { pointer-events: all; width: 20px; height: 20px; box-sizing: border-box; background: var(--navy); border: 2px solid var(--white); border-radius: 0; cursor: grab; -webkit-appearance: none; appearance: none; box-shadow: var(--shadow-1); }
.rpx-range input[type="range"]::-moz-range-thumb { pointer-events: all; width: 20px; height: 20px; box-sizing: border-box; background: var(--navy); border: 2px solid var(--white); border-radius: 0; cursor: grab; box-shadow: var(--shadow-1); }
.rpx-range input[type="range"]::-moz-range-track { background: none; }
.rpx-range input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.rpx-form-card { background: var(--white); border: 1px solid var(--border); padding: 0 var(--d-pad-lg); max-width: 720px; }
.rpx-form-errors { margin-bottom: var(--space-1); max-width: 720px; }
.rpx-form-errors:empty { display: none; }
.rpx-map-areas { max-width: none; }
.rpx-map .leaflet-div-icon, .rpx-map .leaflet-editing-icon { border-radius: var(--radius-round); border: 2.5px solid var(--navy); background: var(--white); }
/* TravelPlaceField with a 4th way of travel (cycling): the kit sizes the modes for 3, so on a phone the track may
   shrink and the modes wrap instead of widening the field. */
.rp-tpf { grid-template-columns: minmax(0, 1fr); }
.rp-tpf-modes { flex-wrap: wrap; }
.rp-tpf-mode { flex: 1 0 auto; }
