:root{color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:#0b1613;color:#f2f5ed}*{box-sizing:border-box}body{margin:0}header{background:linear-gradient(115deg,#132f25,#0c1d1a);border-bottom:1px solid #355143;padding:50px 0 42px}.shell{width:min(1200px,calc(100% - 32px));margin:auto}.eyebrow{font-size:12px;font-weight:750;letter-spacing:.18em;color:#d2ad66}h1{font-size:clamp(32px,5vw,54px);margin:9px 0}header p{color:#c4d3ca;max-width:690px}main{padding:24px 0 40px}.panel,.results,.mapwrap{background:#13241e;border:1px solid #31463c;border-radius:15px;padding:20px}.panel h2,.results h2{margin:0 0 18px;font-size:20px}.searchline label,.radius{display:block;font-weight:650;margin-bottom:9px}.inputrow{display:flex;gap:10px}.inputrow input{flex:1;min-width:0}input:not([type=checkbox]),select{background:#0a1713;border:1px solid #4a6254;border-radius:9px;color:#fff;padding:13px;font-size:16px}button{border:0;border-radius:9px;padding:12px 18px;font-weight:750;cursor:pointer;white-space:nowrap}.primary{background:#d5b06b;color:#192318}.secondary{background:#2d473b;color:white}.filters{display:flex;gap:28px;align-items:end;flex-wrap:wrap;margin-top:19px}fieldset{border:0;padding:0;display:flex;gap:18px;flex-wrap:wrap}legend{font-weight:650;margin-bottom:10px}fieldset label{display:inline-flex;align-items:center;gap:6px}.muted{color:#93a89a}.muted small{font-size:11px}.radius select{display:block;margin-top:8px;min-width:130px}#status{color:#c6d2c8;font-size:14px;margin-bottom:0}.content{display:grid;grid-template-columns:minmax(310px,420px) 1fr;gap:16px;margin-top:16px;align-items:start}.results{padding:0;overflow:hidden}.resultshead{padding:18px;border-bottom:1px solid #31463c;display:flex;align-items:center;justify-content:space-between}.resultshead h2{margin:0}#count{color:#d5b06b;font-weight:750}#items{max-height:660px;overflow:auto}.entry{padding:16px 18px;border-bottom:1px solid #31463c}.entry h3{font-size:16px;margin:8px 0}.tag{font-size:11px;font-weight:800;letter-spacing:.08em;padding:4px 7px;border-radius:5px;background:#2d5b48;color:#dcf3e7}.tag.pota{background:#514126;color:#ffe5ae}.meta{font-size:13px;color:#c2d0c6}.links{display:flex;gap:15px;margin-top:10px}.links a{color:#e2c27c;font-size:13px}.empty{padding:18px;color:#bacac0}.mapwrap{padding:12px}#map{height:610px;border-radius:9px;background:#d7dfd7}.footnote,footer{font-size:12px;color:#afc2b5;line-height:1.6}footer{padding:24px 4px}a{color:#e2c27c}@media(max-width:850px){.content{grid-template-columns:1fr}.inputrow{flex-wrap:wrap}.inputrow input{flex-basis:100%}.inputrow button{flex:1}#map{height:410px}#items{max-height:450px}header{padding:36px 0}}

.planner{margin-top:16px}.plannerhead{display:flex;justify-content:space-between;align-items:center;gap:12px}.plannerhead h2{margin:0}.plannercols{display:grid;grid-template-columns:1fr 1fr;gap:24px}.plannercols h3{font-size:16px}.saveditem{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #31463c;padding:8px 0;font-size:13px}.tiny{padding:7px 10px;border:1px solid #54715e;background:#21392e;color:#f1e4bd;font-size:12px;min-height:32px}.saveactions{display:flex;gap:8px;margin-top:12px}.routebtn{display:inline-block;padding:11px;background:#d5b06b;color:#152319;border-radius:8px;font-weight:700;margin-top:12px;text-decoration:none}.routebtn[hidden]{display:none}@media(max-width:650px){.plannercols{grid-template-columns:1fr}}

.credit{color:#f0c96b;font-size:16px;font-weight:800;letter-spacing:.06em;margin:10px 0}

.tools{margin-top:16px}.toolbuttons{display:flex;gap:10px;flex-wrap:wrap}.toolbuttons button{white-space:normal}.links{flex-wrap:wrap}.entry .meta{overflow-wrap:anywhere}@media(max-width:600px){.toolbuttons button{width:100%}}

/* Kentucky Portable Club brand treatment */
:root{color-scheme:dark;background:#080808;color:#f5f0e4}body{background:#090909;color:#f5f0e4}header{background:linear-gradient(125deg,#070707,#202018);border-bottom:2px solid #d5a63a}.masthead{display:flex;align-items:center;gap:30px}.masthead>div{min-width:0}.clublogo{width:clamp(110px,18vw,210px);height:auto;display:block;filter:drop-shadow(0 8px 20px #0008)}h1,.panel h2,.results h2{font-family:Georgia,'Times New Roman',serif}.panel,.results,.mapwrap{background:#151515;border-color:#514124}.resultshead,.entry,.saveditem{border-color:#493d2b}.primary,.routebtn{background:#d5a63a;color:#090909}.secondary,.tiny{background:#29261e;border:1px solid #80632e;color:#f0c96b}.tag.sota{background:#234b36}.tag.wwff{background:#294d35;color:#d9f3d8}.credit,.eyebrow,#count,.links a,a{color:#f0c96b}input:not([type=checkbox]),select{background:#090909;border-color:#816936}.meta,.footnote,footer{color:#c9c5bc}button:hover,.routebtn:hover{filter:brightness(1.12)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f0c96b;outline-offset:2px}@media(max-width:650px){.masthead{flex-direction:column;text-align:center;gap:10px}.clublogo{width:155px}.masthead header p{margin:auto}header{padding:24px 0}.masthead .eyebrow{letter-spacing:.12em}}

.tag.wwff{background:#f1dcff;color:#5b1f7e}

.crossref{margin-top:10px;padding:9px 11px;border-left:3px solid #d5a63a;background:#252016;color:#f0d99c;font-size:12px;line-height:1.5}.panel strong{color:#f0c96b}

/* Trail guide */
.trailgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.trailcard{border:1px solid #bfa15a;border-radius:9px;padding:18px;background:#fffaf0;color:#191919}.trailcard h3{margin:0 0 8px;color:#171717;font-family:Georgia,serif}.trailcard p{font-size:14px}.trailcard .links{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.trailcard .links a{font-size:13px;color:#255a43;text-decoration:underline}.trailcard button{display:block;margin-top:8px;max-width:100%;font-size:12px}@media(max-width:760px){.trailgrid{grid-template-columns:1fr}}

/* Trail coverage disclosure */
.trailnotice{border-left:4px solid #d5a63a;background:rgba(213,166,58,.09);padding:12px 15px;margin:16px 0;line-height:1.55;border-radius:4px}
.trailnotice strong{color:#d5a63a}

.content > .mapwrap{min-width:0;max-width:100%;overflow:hidden}
#map{width:100%;max-width:100%;overflow:hidden}
#map .kpc-map-pin{background:transparent!important;border:0!important;overflow:visible!important}
@media(max-width:850px){.content>.mapwrap{min-width:0}}

/* Finder jump navigation, map pin legend, and KPC footer */
html{scroll-behavior:smooth}
#finder-search,#trailfinder,#finder-planner,#finder-tools,#finder-map,#finder-results,#finder-offline,#finder-about{scroll-margin-top:96px}
@media(max-width:760px){#finder-search,#trailfinder,#finder-planner,#finder-tools,#finder-map,#finder-results,#finder-offline,#finder-about{scroll-margin-top:84px}}
.finder-jump{display:flex;gap:10px;flex-wrap:wrap;padding:17px 0 2px}
.finder-jump a{display:inline-flex;align-items:center;justify-content:center;padding:11px 15px;border:1px solid #98783b;border-radius:7px;background:#1c1b16;color:#f0c96b;font-size:12px;font-weight:850;letter-spacing:.45px;text-decoration:none}
.finder-jump a:hover,.finder-jump a:focus-visible{background:#d5a63a;color:#090909}
.map-legend{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;margin-bottom:10px;border:1px solid #80632e;border-radius:8px;background:#211e17;color:#f5f0e4;font-size:13px}
.map-legend strong{color:#f0c96b}
.map-legend-items{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.map-legend-items span{display:inline-flex;align-items:center;gap:7px}
.legend-dot{display:inline-block;flex:none;width:16px;height:16px;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 5px #0009}
.legend-pota{background:#d5a63a}.legend-sota{background:#168454}.legend-wwff{background:#b04ae8}
.finder-footer{margin-top:28px;padding:30px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:#070707;border-top:1px solid #80632e;border-radius:10px 10px 0 0}
.finder-footer-kicker{font-size:12px;font-weight:850;letter-spacing:2px;color:#f5f0e4}
.finder-footer-tag{margin-top:7px;font:20px Georgia,'Times New Roman',serif;color:#f0c96b}
.finder-footer-info p{margin:9px 0 0;color:#c9c5bc;font-size:12px}
.finder-footer-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
.finder-footer-actions a{padding:11px 13px;border:1px solid #6c6251;border-radius:6px;color:#f5f0e4;font-size:11px;font-weight:850;letter-spacing:.5px;text-decoration:none}
.finder-footer-actions a:hover{border-color:#d5a63a;color:#f0c96b}
.finder-source{background:#070707;border-top:1px solid #292929;padding:16px 24px 22px;border-radius:0 0 10px 10px}
@media(max-width:760px){.finder-footer{flex-direction:column;align-items:flex-start}.finder-footer-actions{justify-content:flex-start}.finder-jump a{flex:1 1 140px}.map-legend{align-items:flex-start;flex-direction:column}}

/* Legible Leaflet park details popups */
#map .leaflet-popup-content-wrapper{background:#fffaf0!important;color:#171717!important;border:2px solid #d5a63a;border-radius:10px;box-shadow:0 8px 24px #0006}
#map .leaflet-popup-content{color:#171717!important;font-size:15px;line-height:1.55;min-width:175px;overflow-wrap:anywhere}
#map .leaflet-popup-content strong,#map .leaflet-popup-content div{color:#171717!important}
#map .leaflet-popup-content a{color:#155b3b!important;text-decoration:underline;font-weight:800}
#map .leaflet-popup-tip{background:#fffaf0!important}
#map .leaflet-popup-close-button{color:#171717!important;font-size:22px!important}
#map .kpc-user-location{background:transparent;border:0}
#map .kpc-user-location span{display:block;width:20px;height:20px;border-radius:50%;background:#1378ff;border:3px solid white;box-shadow:0 0 0 5px #1378ff55,0 2px 8px #0008}

/* Desktop Leaflet popup: force visible panel above map tiles and pins. */
#map .leaflet-popup-pane{z-index:1000!important;pointer-events:none}
#map .leaflet-popup{z-index:1001!important;pointer-events:auto}
#map .leaflet-popup-content-wrapper{display:block!important;visibility:visible!important;opacity:1!important;background-color:#fffaf0!important;background-image:none!important;color:#171717!important;min-width:210px!important;padding:1px!important;border:2px solid #d5a63a!important;box-shadow:0 5px 25px rgba(0,0,0,.55)!important}
#map .leaflet-popup-content{display:block!important;visibility:visible!important;opacity:1!important;color:#171717!important;margin:14px 18px!important}
#map .leaflet-popup-tip-container{visibility:visible!important;opacity:1!important}
#map .leaflet-popup-tip{background-color:#fffaf0!important}
#map .leaflet-popup-content strong,#map .leaflet-popup-content div{color:#171717!important}
#map .leaflet-popup-content a{color:#16603e!important}

/* Leave Leaflet pane positions and transforms to Leaflet itself. */
#map .leaflet-tooltip.kpc-gis-tooltip{background:#fffaf0!important;color:#171717!important;border:2px solid #d5a63a!important;border-radius:7px!important;box-shadow:0 3px 12px #0008!important;padding:6px 10px!important;font-size:14px!important;font-weight:750!important;opacity:1!important;white-space:normal!important;max-width:260px}
#map .leaflet-tooltip.kpc-gis-tooltip:before{border-top-color:#d5a63a!important}

/* Map repair: Leaflet controls all tile, pane, marker and transform geometry. */
#map.leaflet-container{overflow:hidden}
#map .leaflet-tile{box-sizing:content-box!important;max-width:none!important;max-height:none!important}
#map .leaflet-marker-icon,#map .leaflet-marker-shadow{max-width:none!important;max-height:none!important}
#map .leaflet-tooltip-pane{z-index:1100!important;pointer-events:none}

/* compact map popups (one small card, never a second banner) */
#map .leaflet-popup-content{font-size:14px!important;line-height:1.45!important;margin:10px 14px!important;min-width:0!important}
#map .leaflet-popup-content-wrapper{min-width:0!important}
#map .kpc-pop strong{display:block;font-size:15px;margin-bottom:3px}
#map .kpc-pop .r{display:block;font-size:13px;margin:1px 0}
#map .kpc-pop .r i{font-style:normal;color:#6a5b3a!important;font-weight:700}
#map .kpc-pop .src{display:block;margin-top:6px;font-size:12px;color:#5b5648!important}

.crossref.wma{border-left-color:#f08a1c;background:#2a1c0e;color:#ffd6a8}.crossref.wma a{color:#ffb35c}

.entry .meta a{color:#f0c96b;text-decoration:underline;text-underline-offset:2px}
#map .kpc-pop .lk{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px}#map .kpc-pop .lk a{font-weight:700}

.kynotice{margin:16px 0 0;padding:12px 16px;border:1px solid #98783b;border-left:5px solid #d5a63a;background:#1c1b16;color:#f0e6c8;font-size:14px;line-height:1.5}.kynotice strong{color:#f0c96b}.kynotice button{margin:6px 0 0 6px;padding:7px 13px;font-size:13px;white-space:nowrap;min-height:32px}

.mapbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 10px}.mapbar-l{font-size:11px;font-weight:800;letter-spacing:.14em;color:#c9c5bc;margin-right:2px}.mapbar button{padding:8px 12px;font-size:13px;min-height:32px}.mapbar [aria-pressed=true]{background:#d5a63a;color:#090909}.mapbar .mapx{margin-left:auto}
.mapwrap.kpc-mapfull{position:fixed;inset:0;z-index:2147483000;border-radius:0;padding:8px;display:flex;flex-direction:column;background:#0b0b0b;max-width:none!important;overflow:hidden}
.mapwrap.kpc-mapfull #map{min-height:0}.mapwrap.kpc-mapfull .map-legend,.mapwrap.kpc-mapfull .footnote,.mapwrap.kpc-mapfull [role=status]{display:none}
.kpc-nofs-scroll,.kpc-nofs-scroll body{overflow:hidden}
@media(max-width:850px){.mapbar-l{display:none}.mapbar button{flex:1 1 auto}.mapbar .mapx{margin-left:0;flex:1 1 100%}}
.mapwrap.kpc-mapfull .gis-controls{display:none;position:absolute;z-index:1100;top:58px;left:12px;max-width:min(380px,calc(100% - 24px));max-height:calc(100% - 80px);overflow:auto;margin:0;box-shadow:0 8px 28px #000a}.mapwrap.kpc-mapfull .gis-controls.open{display:block}
.mapwrap.kpc-mapfull .kynotice,.mapwrap.kpc-mapfull .gis-missing,.mapwrap.kpc-mapfull .gis-note,.mapwrap.kpc-mapfull .gis-notice{display:none}.kpc-nofs-scroll .kss-float{display:none!important}.mapwrap.kpc-mapfull .gis-controls{max-height:min(420px,calc(100% - 80px))}
.kpc-sat path.kpc-bnd{stroke:#ffee00!important;stroke-width:4px!important;stroke-opacity:1!important;filter:drop-shadow(0 0 2px #000)}.kpc-sat path.kpc-bnd[stroke-dasharray]{stroke-width:3px!important}
path.kpc-bnd{filter:drop-shadow(0 0 1.2px rgba(0,0,0,.95)) drop-shadow(0 0 1px rgba(0,0,0,.8))}

.selcard{margin:0;padding:12px;border-bottom:2px solid #d5a63a;background:#1a1a12}.selcard[hidden]{display:none}.selhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#f0c96b}.entry.sel{outline:2px solid #d5a63a;outline-offset:-2px}
@media(min-width:851px){#items{max-height:78vh;overflow:auto}}
@media(max-width:850px){.content>.mapwrap{order:-1}}
.layerdrop{margin:14px 0 0;border:1px solid #31463c;border-radius:10px;background:#0f1b17;overflow:hidden}
.layerdrop>summary{list-style:none;cursor:pointer;padding:12px 14px;font-weight:800;color:#f0c96b;display:flex;justify-content:space-between;align-items:center;gap:10px}
.layerdrop>summary::-webkit-details-marker{display:none}
.layerdrop>summary::after{content:"▾";font-size:13px;color:#f0c96b;transition:transform .2s;margin-left:auto}
.layerdrop[open]>summary::after{transform:rotate(180deg)}
.layerdrop>summary .drophint{font-size:11px;font-weight:600;letter-spacing:.3px;color:#a3b3a9;text-transform:uppercase}
.layerdrop>.gis-group{border-top:1px solid #31463c;padding:14px 16px;margin:0;background:#13241e}
.layerdrop>.gis-group>strong{display:none}
.layerdrop .gis-row{display:flex;flex-wrap:wrap;gap:8px 14px}
.layerdrop .gis-cb{display:inline-flex;align-items:center;gap:7px;padding:5px 2px;cursor:pointer;color:#f2f5ed;font-size:14px;min-height:32px}
.layerdrop .gis-cb i{width:14px;height:14px;border-radius:3px;display:inline-block;flex:0 0 14px}
.layerdrop .gis-note{margin:10px 0 0;color:#a3b3a9;font-size:12px}
.layerdrop .gis-btn{margin-top:10px}

#finder-map{padding:12px}
#finder-map #map{width:100%;height:min(72vh,620px);min-height:360px;border-radius:12px;overflow:hidden;margin-top:8px}
#finder-map .map-legend{padding:4px 2px 10px}
#finder-map .footnote,#finder-map .gis-note{color:#a3b3a9;font-size:12px;margin:10px 0 0}
#finder-map .gis-btn-big{margin-top:12px;width:100%;padding:12px;font-weight:800}
#finder-map .gis-inside{margin-top:10px;font-size:14px}

.selcardsec{padding:14px}
.selcardsec #selcard{margin:0}
.selcardsec #selhint{margin:4px 2px 0;color:#a3b3a9}
.selcardsec #selcard:not([hidden])+ #selhint{display:none}
.selcard{border:2px solid #d5a63a;border-radius:12px;background:#1a1a12;padding:14px}
.selhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#f0c96b;font-weight:800}
.entry.sel{outline:2px solid #d5a63a;outline-offset:-2px}

.resultssec{padding:14px}
.resultssec #items{max-height:60vh;overflow:auto}

@media(min-width:851px){
 .resultssec{padding:16px}
 .resultssec #items{max-height:70vh}
}

#finder-about .panel-notice{background:transparent;border:0;padding:0}
#finder-about .gis-missing summary{cursor:pointer;color:#f0c96b;font-weight:700;padding:6px 0}
/* in-map popup card */
#map .kpc-popcard-wrap .leaflet-popup-content{margin:10px 12px!important}
#map .kpc-popcard .entry{border:0!important;padding:0!important;margin:0!important;background:transparent!important;outline:0!important}
#map .kpc-popcard .entry h3{color:#171717!important;font-size:16px;margin:6px 0 4px}
#map .kpc-popcard .entry .meta,#map .kpc-popcard .entry .crossref{color:#2a2a2a!important;font-size:13px;background:transparent!important;border:0;padding:0;margin:4px 0}
#map .kpc-popcard .tag{color:#171717!important;background:#f0d58f!important;font-size:11px;padding:2px 7px;border-radius:5px}
#map .kpc-popcard .links{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px}
#map .kpc-popcard .links a{font-size:13px}
#map .kpc-popcard .saveactions{margin-top:8px;display:flex;gap:6px}
#map .kpc-popcard .saveactions button{background:#fff;color:#171717;border:1px solid #b8933f;padding:5px 9px;border-radius:7px;font-size:12px}
#map .kpc-popcard .popgo{display:block;width:100%;margin-top:10px;background:#d5a63a;color:#111;border:0;border-radius:8px;padding:9px;font-weight:800;font-size:14px;cursor:pointer}
#map .kpc-popcard .pophint{font-size:11px;color:#5b5648!important;margin-top:6px;text-align:center}
/* v-h layout: map + nearby side by side on desktop */
.mapgrid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:16px}
.mapgrid>section{margin:0}
.resultssec .listnote{margin:8px 2px 10px;font-size:12px;color:#a3b3a9}
.resultssec .resultshead{padding:4px 2px 10px}
.resultssec #items{max-height:none;overflow:visible}
@media(min-width:1000px){
 .mapgrid{grid-template-columns:minmax(0,1fr) 380px;align-items:stretch}
 .resultssec{display:flex;flex-direction:column;height:0;min-height:100%;overflow:hidden}
 .resultssec #items{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;position:relative}
}
.mapwrap.kpc-mapfull{margin:0!important}
.mapwrap.kpc-mapfull #gis-inside-btn,.mapwrap.kpc-mapfull #gis-inside,.mapwrap.kpc-mapfull #gis-candidates{display:none}
.mapwrap.kpc-mapfull .gis-controls{background:#13241e;border:1px solid #d5a63a;border-radius:12px;padding:6px 10px}
.mapwrap.kpc-mapfull .gis-controls .layerdrop{margin:6px 0}
.mapwrap.kpc-mapfull .gis-controls .gis-note{display:block}
.mapwrap.kpc-mapfull .gis-controls{max-height:calc(100% - 140px)!important}
.mapwrap.kpc-mapfull .mapbar [data-s]{display:none}
@media(max-width:600px){.layerdrop .drophint{display:none}}

/* fullscreen: flex-fill, ignore normal map height */
.mapwrap.kpc-mapfull{height:100vh;height:100dvh}
.mapwrap.kpc-mapfull #map,#finder-map.kpc-mapfull #map{flex:1 1 auto!important;height:auto!important;min-height:0!important;margin-top:6px;border-radius:8px}
.mapwrap.kpc-mapfull #gis-bstatus,.mapwrap.kpc-mapfull #gis-status,.mapwrap.kpc-mapfull .footnote,.mapwrap.kpc-mapfull .map-legend{display:none}

/* Also-in and possible 2-fer lines on cards (v20261010d) */
.entry .alsoin{margin-top:6px}.entry .alsoin b{color:#f0c96b}
.entry .twofer{margin:8px 0 2px;padding:7px 10px;border-left:4px solid #3ecf6e;background:rgba(62,207,110,.1);border-radius:6px;font-size:13px;color:#e9f3ec}.entry .twofer b{color:#7ee2a0}
