@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
:root{--ink:#23372d;--pine:#183329;--pine2:#284838;--cream:#f1eee3;--paper:#f7f3e8;--sage:#7b957e;--gold:#c49c60;--muted:#718074;--line:#dcdccc;--shadow:0 22px 80px rgba(12,31,23,.22)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%}body{font-family:'DM Sans',Arial,Helvetica,sans-serif;background:#83988a;color:var(--ink);overflow:hidden;font-size:13px}a{color:inherit}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #bb8950;outline-offset:3px}button[disabled]{opacity:.5;cursor:wait}#map{position:absolute;inset:0;z-index:0}.map-wash{pointer-events:none;position:absolute;inset:0;z-index:1;background:linear-gradient(to bottom,rgba(14,33,26,.54) 0%,transparent 18%,transparent 75%,rgba(20,36,29,.25) 100%)}
.header{height:76px;position:fixed;top:0;left:0;right:0;z-index:10;display:flex;justify-content:space-between;align-items:center;color:#f6f1e5;padding:0 39px;pointer-events:none}.header>*{pointer-events:auto}.wordmark{text-decoration:none;display:flex;align-items:center;gap:7px;letter-spacing:.15em;font-weight:700;font-size:11px;white-space:nowrap;text-shadow:0 2px 8px #1c2f2680}.wordmark-mid{font-weight:400;letter-spacing:.145em}.wordmark-divider{height:22px;width:1px;background:#f1f0df70;margin:0 10px}.wordmark-secondary{font-size:10px;letter-spacing:.22em;font-weight:500}.header-center{font-size:9px;letter-spacing:.18em;font-weight:700;opacity:.95;position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;text-shadow:0 2px 8px #193125aa}.header-center .edition{font-weight:400;opacity:.55;margin-left:6px}.live-indicator{display:inline-block;width:5px;height:5px;background:#cfba8b;border-radius:50%;vertical-align:2px;margin-right:9px}.header-action{color:#f7f1e5;background:rgba(22,51,38,.82);border:1px solid rgba(249,243,219,.19);font-weight:700;padding:14px 18px;font-size:9px;letter-spacing:.16em}.header-action span{margin-left:8px}.header-action:hover{background:var(--pine2)}
.sidebar{position:fixed;z-index:5;left:31px;top:92px;bottom:32px;width:370px;display:flex;flex-direction:column;background:rgba(248,245,235,.975);box-shadow:var(--shadow);backdrop-filter:blur(12px);min-height:0}.sidebar-top{padding:29px 30px 20px;flex:none}.kicker{font-weight:700;font-size:9px;letter-spacing:.115em;color:#71896f;line-height:1.6}.kicker-ornament{font-size:17px;vertical-align:-2px;margin-right:9px;color:#b28a51}h1,h2,.location-title,.species-title{font-family:'Libre Baskerville',Georgia,serif;font-weight:400}h1{font-size:46px;line-height:1.13;letter-spacing:-.055em;margin:18px 0 17px}h1 em{font-weight:400;color:#9a805b}.sidebar-lead{color:#58695a;line-height:1.7;margin:0;font-size:12px;max-width:305px}.tabs{display:flex;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 30px;gap:3px;flex:none}.tab{border:0;background:transparent;color:#849181;border-bottom:2px solid transparent;padding:15px 6px 13px;flex:1;font-weight:700;font-size:9px;letter-spacing:.1em;white-space:nowrap}.tab.active{color:#203c2f;border-bottom-color:#b49261}.tab:hover{color:#203c2f}.tab span{font-weight:500;font-size:9px;letter-spacing:normal;opacity:.8}.sidebar-content{padding:22px 30px 14px;overflow:auto;scrollbar-color:#c9cfbd transparent;scrollbar-width:thin;flex:1;min-height:0}.tab-section[hidden]{display:none}.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;font-size:9px;font-weight:700;letter-spacing:.15em;color:#738474}.section-title span:last-child{opacity:.65}.section-title-layers{margin-top:25px}.location-list{display:grid;gap:0}.location{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;border-bottom:1px solid #dcded2;background:transparent;padding:13px 0 14px;text-align:left;color:#263d31}.location:hover,.species:hover,{background:#f0ecdf}.location-title{font-size:15px;letter-spacing:-.025em}.location small,.species small{display:block;color:#748376;font-size:10px;margin-top:5px}.location-num{font-family:'Libre Baskerville',serif;color:#c39e62;font-size:12px}.location-arrow{font-size:13px;color:#9eac9e;margin-left:auto}.layer-option{display:flex;gap:12px;align-items:center;padding:10px 0;cursor:pointer}.layer-icon{width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;background:#e8eadd;color:#526f57}.layer-icon svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.animal-icon{background:#efe7d9;color:#9a754b}.leaf-icon{background:#dfe8d8;color:#57825b}.relief-icon{background:#e6e6de;color:#65706b}.layer-txt{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}.layer-txt strong{font-size:11px;font-weight:600}.layer-txt small{font-size:10px;color:#819082}.layer-option input{opacity:0;position:absolute;width:1px;height:1px}.toggle{display:inline-block;background:#c4cabe;width:32px;height:18px;border-radius:13px;position:relative;flex:none}.toggle:after{content:'';position:absolute;width:12px;height:12px;background:#fffdf6;border-radius:50%;top:3px;left:3px;transition:transform .2s}.layer-option input:checked+.toggle{background:#4f7759}.layer-option input:checked+.toggle:after{transform:translateX(14px)}.layer-option input:focus-visible+.toggle{outline:2px solid #ad8051;outline-offset:2px}
.sidebar-foot{padding:14px 30px 21px;flex:none;border-top:1px solid var(--line)}.data-status{display:flex;align-items:flex-start;gap:8px;font-size:10px;line-height:1.6;color:#748471;min-height:30px}.status-dot{width:7px;height:7px;border-radius:50%;background:#aaad92;flex:none;margin-top:4px}.status-dot.loading{background:#c4a062;box-shadow:0 0 0 4px #c4a06226}.status-dot.ok{background:#6b9977}.status-dot.bad{background:#bd7c56}.sources-button{border:0;border-top:1px solid #ddded1;background:transparent;padding:13px 0 0;width:100%;color:#637b66;text-align:left;letter-spacing:.13em;font-size:9px;font-weight:700}.sources-button span{float:right}
.section-intro{font-size:11px;color:#697a6e;line-height:1.65;margin:0 0 18px}.species-list{display:grid;gap:7px}.species{width:100%;text-align:left;border:1px solid #dedecf;padding:13px 12px;background:#f9f7ef;display:flex;align-items:center;gap:10px;color:#263d31;transition:background .15s}.species.selected{border-color:#9ba88e;background:#e9eee1}.species-icon{width:33px;height:33px;display:grid;place-items:center;background:#e5eadf;color:#607861;font-family:Georgia,serif;font-size:21px}.species-title{font-size:14px;line-height:1.3}.species-desc{flex:1}.species-chevron{color:#93a08f;font-size:16px}.species-all{background:#253e32;color:#faf3e6;border-color:#253e32}.species-all .species-icon{background:#3a5948;color:#f0ecd7}.species-all .species-title,.species-all small,.species-all .species-chevron{color:#f5f0e1}
.map-controls{z-index:3;position:fixed;top:92px;right:30px;background:#f2eee4;box-shadow:0 8px 28px #1f302740;display:flex;align-items:center;padding:5px;gap:3px}.control-label{color:#829082;font-size:9px;font-weight:700;letter-spacing:.15em;margin:0 12px}.camera-btn,.camera-icon{border:none;background:transparent;padding:11px 14px;font-size:9px;font-weight:700;letter-spacing:.10em;color:#6f826f}.camera-btn.active{background:#2a4b39;color:#faf4e7}.camera-btn:hover:not(.active),.camera-icon:hover{background:#e7e4d7}.camera-icon{font-size:19px;padding:5px 13px}
.detail{position:fixed;z-index:8;right:28px;top:157px;bottom:71px;width:378px;background:var(--paper);box-shadow:var(--shadow);overflow:hidden}.detail[hidden]{display:none}.detail-scroll{overflow:auto;height:100%;padding:35px 31px 24px}.detail-close{position:absolute;top:15px;right:15px;background:transparent;border:1px solid #d0d5c6;color:#314638;font-size:25px;font-weight:300;width:31px;height:31px;display:grid;place-items:center}.detail-kicker{color:#758871;font-weight:700;font-size:9px;letter-spacing:.16em;line-height:1.5;margin:7px 36px 20px 0}.detail-photo{position:relative;margin:0 -31px 24px;height:190px;background:#85917a;overflow:hidden}.detail-photo[hidden]{display:none}.detail-photo img{width:100%;height:100%;object-fit:cover}.image-credit{position:absolute;bottom:0;right:0;left:0;color:#fff7e8;background:linear-gradient(transparent,#101f19ab);padding:18px 10px 9px;font-size:9px;line-height:1.4;text-shadow:0 1px 2px #0008}.detail-mark{font-size:31px;color:#b39164;margin-bottom:10px}.detail h2{font-size:30px;line-height:1.17;letter-spacing:-.055em;margin:0 0 8px}.detail-subtitle{font-family:'Libre Baskerville',Georgia,serif;font-size:12px;color:#859080;line-height:1.6;font-style:italic;margin:0}.detail-divider{height:1px;background:#d8dccc;margin:22px 0}.detail-body h3{font-size:9px;letter-spacing:.18em;color:#66816d;margin:20px 0 8px}.detail-body p{color:#4c5d51;line-height:1.8;font-size:12px;margin:0 0 13px}.detail-body ul{padding-left:19px;color:#526858;font-size:11px;line-height:1.8}.observation-list{display:grid;gap:8px}.obs-item{display:flex;align-items:center;gap:9px;border-top:1px solid #d7dacd;padding:10px 0;text-decoration:none}.obs-item strong{display:block;font-size:11px;font-weight:600}.obs-item small{font-size:10px;color:#7f8e80}.obs-item span:last-child{margin-left:auto;color:#96a391}.obs-image{width:47px;height:47px;object-fit:cover;background:#d9dfce;flex:none}.obs-blank{width:47px;height:47px;display:grid;place-items:center;background:#e9e9db;color:#728777;font-size:16px;flex:none}.field-pill{display:inline-block;background:#e9e8d9;padding:6px 9px;margin:0 6px 8px 0;color:#58715e;font-size:9px;letter-spacing:.07em;font-weight:700}.detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin:25px 0 20px}.detail-actions button,.detail-actions a{border:0;background:#234534;color:#f8f3e6;font-size:9px;letter-spacing:.07em;font-weight:700;padding:14px 13px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:40px}.detail-actions a{background:transparent;border:1px solid #809684;color:#44684d}.detail-actions button:hover{background:#41684c}.detail-actions a:hover{background:#ebefdf}.detail-caveat{border-top:1px solid #daddcc;padding-top:14px;font-size:10px;color:#879085;line-height:1.65}
.map-legend{z-index:2;position:fixed;bottom:68px;left:427px;display:flex;gap:17px;align-items:center;background:rgba(241,237,224,.95);padding:12px 17px;font-size:9px;font-weight:700;letter-spacing:.07em;color:#49604f;box-shadow:0 3px 20px #213c2c2f}.map-legend span{display:flex;gap:6px;align-items:center;white-space:nowrap}.swatch{display:inline-block;width:9px;height:9px;border-radius:50%;background:#b47b46}.swatch.trails{width:21px;height:0;border-radius:0;border-top:3px solid #d4aa65;background:none}.swatch.fauna{background:#af6f42}.swatch.flora{background:#577e53}.map-caption{position:fixed;bottom:31px;left:427px;color:#f6f1e4;font-size:9px;font-weight:700;letter-spacing:.16em;text-shadow:0 2px 12px #182c22;z-index:2}.geo-readout{position:fixed;bottom:31px;right:34px;color:#f6f0e4;font-size:9px;letter-spacing:.13em;z-index:2;text-shadow:0 2px 8px #182d22}.site-attribution{position:fixed;right:34px;bottom:62px;z-index:2;color:#fff7e8;font-size:9px;font-weight:700;letter-spacing:.07em;text-shadow:0 1px 7px #172e21}.site-attribution a{text-decoration:none;border-bottom:1px solid #f2edd299;padding-bottom:3px}.maplibregl-ctrl-bottom-right{bottom:115px;right:22px}.maplibregl-ctrl-group{border-radius:0!important}.maplibregl-ctrl-attrib{font-size:10px!important}.poi{display:flex;align-items:center;gap:8px;cursor:pointer;filter:drop-shadow(0 2px 5px #15342780)}.poi-dot{width:10px;height:10px;border-radius:50%;background:#c6a065;border:2px solid #fff2d7;box-shadow:0 0 0 4px #f7f1d44c}.poi-label{font-size:9px;letter-spacing:.11em;font-weight:700;color:#f9f2dd;padding:9px 11px;background:#244334dd;white-space:nowrap}.poi:hover .poi-label{background:#926d44}.map-error,.nojs{position:fixed;z-index:30;left:50%;transform:translateX(-50%);top:90px;background:var(--paper);padding:16px 21px;color:var(--pine);max-width:min(510px,90vw);line-height:1.7;box-shadow:0 7px 30px #20382755}.map-error[hidden]{display:none}
@media(max-width:1300px){.header-center{display:none}.map-legend{left:422px;gap:10px}.detail{right:16px;width:346px}.map-controls{right:18px}}
@media(max-width:950px){.sidebar{width:332px;left:13px;top:75px;bottom:18px}.sidebar-top{padding:24px 22px 15px}h1{font-size:39px}.tabs{margin:0 22px}.sidebar-content{padding:18px 22px}.sidebar-foot{padding:12px 22px}.header{height:65px;padding:0 17px}.wordmark{font-size:10px}.header-action{font-size:8px;padding:10px}.map-controls{top:76px;right:12px}.detail{top:135px;right:12px;width:320px;bottom:55px}.map-legend{left:364px;bottom:18px}.map-caption{display:none}.site-attribution{display:none}.geo-readout{display:none}.maplibregl-ctrl-bottom-right{bottom:67px}}
@media(max-width:700px){.header{height:58px}.wordmark{font-size:9px;gap:4px}.wordmark-secondary{font-size:9px;letter-spacing:.1em}.wordmark-divider{margin:0 6px}.header-action{font-size:8px;padding:9px 7px;letter-spacing:.04em}.sidebar{bottom:0;top:auto;left:0;width:100%;height:min(47vh,370px);box-shadow:0 -13px 40px #112f2430}.sidebar-top{padding:12px 17px 10px}.sidebar-top .kicker{font-size:8px}.sidebar h1{font-size:29px;margin:7px 0 4px}.sidebar h1 br{display:none}.sidebar h1 em{margin-left:6px}.sidebar-lead{font-size:10px;line-height:1.45;max-width:none}.tabs{margin:0 14px}.tab{padding:10px 3px;font-size:8px}.sidebar-content{padding:13px 17px 7px}.sidebar-foot{padding:7px 17px}.data-status{min-height:0;font-size:9px}.sources-button{display:none}.map-controls{top:65px;right:8px}.control-label{display:none}.camera-btn{padding:10px 8px;font-size:8px}.camera-icon{padding:5px 10px}.map-legend{bottom:calc(min(47vh,370px) + 10px);left:8px;gap:8px;padding:8px 9px;font-size:7px;letter-spacing:0}.map-legend .swatch.trails{width:13px}.maplibregl-ctrl-bottom-right{bottom:calc(min(47vh,370px) + 65px)}.detail{top:auto;bottom:0;left:0;right:0;height:75vh;width:100%;z-index:15}.detail-scroll{padding:23px 23px 25px}.detail-photo{margin:0 -23px 21px}.detail h2{font-size:27px}.poi-label{display:none}}
@media(max-width:365px){.wordmark-secondary{display:none}.tab{font-size:8px}.map-legend{font-size:7px}.map-legend span:nth-child(3){display:none}}

.feed-notes{font-size:9px;line-height:1.6;letter-spacing:.035em;color:#79887a;padding-bottom:7px}.feed-notes div{padding:2px 0}.feed-notes .unavailable{color:#af7652}.feed-notes .loaded{color:#577963}@media(max-width:700px){.feed-notes{display:none}}

/* V0.5 · Field Library · does not alter the map or established site chrome */
.field-hero{min-height:130px;padding:20px 18px 18px;margin:3px 0 18px;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;position:relative;overflow:hidden;background:linear-gradient(120deg,#294c3d,#738363);color:#fff7e9}
.field-hero:after{content:'✳';font-family:Georgia,serif;font-size:150px;line-height:1;position:absolute;top:-37px;right:-10px;color:#ffffff17;transform:rotate(15deg)}.flora-hero{background:linear-gradient(120deg,#47644c,#89946e)}.field-hero span{font-size:9px;letter-spacing:.16em;font-weight:700;color:#e8d5ac}.field-hero strong{font:normal 19px/1.2 'Libre Baskerville',Georgia,serif;max-width:240px;z-index:1}.field-hero small{font-size:10px;line-height:1.55;color:#f5f2e3ca;max-width:270px;z-index:1}
.species-tools{margin-bottom:10px}.field-search{background:#fffdf7;border:1px solid #d8dccc;display:flex;align-items:center;padding:0 10px;color:#63816b}.field-search span{font-size:23px;line-height:1}.field-search input{width:100%;height:41px;border:0;background:transparent;color:#314b3a;font-size:11px;outline:0;padding-left:8px}.field-search input:focus-visible{outline:none}.field-search:focus-within{outline:2px solid #b38c5a;outline-offset:1px}.field-search input::placeholder{color:#879585}.species-filters{display:flex;flex-wrap:wrap;gap:6px;padding:12px 0 8px}.filter-chip{border:1px solid #d4d7ca;background:#f7f5ec;color:#68806d;font-size:9px;font-weight:700;letter-spacing:.065em;padding:7px 10px;transition:background .15s}.filter-chip:hover{background:#e5e9db}.filter-chip.active{background:#294838;border-color:#294838;color:#f8f5e9}.species-results{display:flex;justify-content:space-between;color:#819381;font-size:8px;font-weight:700;letter-spacing:.12em;padding:9px 0 7px}.all-observations{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:#e6e8dd;border:1px solid #d3d9cc;margin:0 0 13px;padding:10px 12px;color:#2e523c}.all-observations>span:first-child{font:22px/1 Georgia,serif;color:#9b754f}.all-observations strong{display:block;font-size:11px;font-weight:700}.all-observations small{display:block;margin-top:4px;color:#718471;font-size:9px}.all-observations b{margin-left:auto;font-size:15px;font-weight:400;color:#63806c}.all-observations:hover{background:#dbe3d2}
.species-list{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.species-card{padding:0;background:#faf9f4;border:1px solid #d6d9cd;text-align:left;color:#243b2e;min-width:0;display:flex;flex-direction:column;position:relative;overflow:hidden}.species-card:hover{border-color:#ac9770;box-shadow:0 5px 16px #243b2d1b}.species-card.selected{border-color:#577c62;box-shadow:inset 0 0 0 1px #577c62}.species-portrait{height:98px;width:100%;background:linear-gradient(145deg,#879482,#516b57);display:grid;place-items:center;position:relative;overflow:hidden}.species-card:nth-child(5n+2) .species-portrait{background:linear-gradient(145deg,#bba87b,#778267)}.species-card:nth-child(5n+3) .species-portrait{background:linear-gradient(145deg,#9f8e74,#4e6860)}.species-card:nth-child(5n+4) .species-portrait{background:linear-gradient(145deg,#85977b,#536e4c)}.portrait-glyph{color:#f7efd477;font:50px/1 Georgia,serif}.portrait-img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.portrait-img[hidden]{display:none}.species-card-text{padding:10px 11px 14px;min-height:116px;display:flex;flex-direction:column;gap:4px}.species-card-category{font-size:8px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#a18a66}.species-card .species-title{font-size:13px;line-height:1.3;margin:2px 0}.species-latin{font:italic 10px/1.3 Georgia,serif;color:#768776}.species-card small{margin-top:auto;font-size:9px;line-height:1.35;color:#718074}.species-card-arrow{position:absolute;top:8px;right:8px;color:#fff7e9;background:#264538ad;padding:3px 7px;font-size:12px}.library-note{font-size:10px;line-height:1.65;color:#829184;padding:16px 0 2px}.no-species{grid-column:1/-1;border:1px dashed #bbc4b7;padding:20px;color:#657b6b;line-height:1.6;font-size:11px}
.species-evidence{margin-top:23px;padding:16px 15px;background:#e7ebdf;border-top:2px solid #7c987d;display:flex;flex-direction:column;gap:7px}.evidence-label{color:#6b846e;font-size:9px;letter-spacing:.11em;font-weight:700}.evidence-count{font:normal 30px/1.1 'Libre Baskerville',Georgia,serif;color:#2a4a35}.evidence-explain{font-size:10px;line-height:1.6;color:#526b58}.evidence-date{font-size:9px;font-weight:700;letter-spacing:.06em;color:#69836b;margin-top:4px}.evidence-records{display:grid;gap:0;margin-top:7px;border-top:1px solid #cdd7c7}.evidence-records a{display:flex;justify-content:space-between;gap:7px;padding:10px 0;text-decoration:none;border-bottom:1px solid #cdd7c7;font-size:10px;color:#36563e}.evidence-records small{font-size:9px;color:#7d927b;text-align:right}.evidence-records a:hover{text-decoration:underline}
@media(max-width:950px){.species-portrait{height:90px}.species-card-text{padding:10px 9px 13px;min-height:119px}}
@media(max-width:700px){.field-hero{min-height:106px;padding:13px 15px}.species-list{grid-template-columns:repeat(2,minmax(0,1fr))}.species-portrait{height:108px}.species-card-text{min-height:103px}.species-card .species-title{font-size:13px}}
@media(prefers-reduced-motion:reduce){.species-card,.filter-chip{transition:none}}

/* Compact the global title while browsing the illustrated naturalist library. */
.sidebar.library-mode .sidebar-top{padding-top:15px;padding-bottom:8px}
.sidebar.library-mode h1{font-size:25px;line-height:1.1;margin:5px 0 6px}
.sidebar.library-mode h1 br{display:none}
.sidebar.library-mode h1 em{margin-left:6px}
.sidebar.library-mode .sidebar-lead{display:none}
.sidebar.library-mode .tabs{margin-top:3px}
.sidebar.library-mode .sidebar-content{padding-top:15px}
.sidebar.library-mode .field-hero{min-height:92px;padding:12px 16px;margin-bottom:11px;gap:5px}
.sidebar.library-mode .field-hero strong{font-size:16px}
.sidebar.library-mode .field-hero small{font-size:9px;line-height:1.45}
.sidebar.library-mode .section-intro{margin-bottom:10px}
.sidebar.library-mode .species-filters{padding:8px 0 4px}
@media(max-width:700px){.sidebar.library-mode .sidebar-top{padding:9px 17px 5px}.sidebar.library-mode h1{font-size:21px;margin:3px 0}.sidebar.library-mode .sidebar-content{padding:11px 17px}.sidebar.library-mode .field-hero{min-height:74px}}

.image-source{position:absolute;right:10px;top:10px;background:#1c382fe6;color:#fffaef;padding:7px 9px;font-size:8px;letter-spacing:.09em;font-weight:700;text-decoration:none}.image-source:hover{text-decoration:underline}.image-source[hidden]{display:none}

/* v0.6 / real USGS terrain imagery controls. Existing editorial design preserved. */
.surface-controls{position:fixed;right:30px;top:152px;z-index:7;display:flex;align-items:center;gap:3px;padding:4px;background:#f2eee4;box-shadow:0 8px 28px #1f302740}
.surface-controls>span{color:#829082;font-size:9px;font-weight:700;letter-spacing:.12em;margin:0 10px}
.surface-btn{border:0;background:transparent;padding:9px 13px;font:700 9px/1.2 'DM Sans',Arial,sans-serif;letter-spacing:.1em;color:#637b69}
.surface-btn:hover:not(.active){background:#e6e5d8}.surface-btn.active{background:#2a4b39;color:#f9f4e7}
/* Keep terrain choice visible if sidebar library detail is open; detail panel sits beneath.
   Move controls above detail on smaller screens where the right edge is crowded. */
@media(max-width:1300px){.surface-controls{right:18px;top:148px}}
@media(max-width:950px){.surface-controls{right:12px;top:123px}.surface-controls>span{display:none}.surface-btn{padding:8px 10px}.detail{top:178px}}
@media(max-width:700px){.surface-controls{top:105px;right:8px;z-index:5}.surface-btn{padding:8px 9px;font-size:8px}.detail{top:auto}}

@media(min-width:951px){.detail{top:204px}}

/* v0.6.1 · Trail Explorer */
.trail-list{display:grid;gap:0;margin-top:12px}
.trail-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:transparent;border:0;border-bottom:1px solid #d9dece;padding:13px 0;color:#294334;cursor:pointer}
.trail-item:hover,.trail-item:focus-visible{background:#f0ecdf;outline-offset:3px}
.trail-item .trail-n{width:29px;color:#ae9165;font-size:10px;flex:none}
.trail-item .trail-info{min-width:0;flex:1}
.trail-item strong{font-size:13px;line-height:1.35;font-weight:600;display:block}
.trail-item small{font-size:10px;line-height:1.5;display:block;color:#748778;margin-top:4px}
.trail-item .arrow{color:#879987}
.trail-empty{font-size:11px;line-height:1.7;color:#78897c;padding:12px 0}
.trail-search{margin-top:13px}
#trailResults{font-size:9px}

/* v0.6.2 — Ride Explorer and on-map navigation guide. Scoped, additive styles. */
.ride-scope{display:flex;gap:5px;margin:12px 0 3px}
.ride-scope-btn{border:1px solid #cbd3c5;background:#f6f3e9;color:#6b806d;padding:10px 8px;flex:1;font-size:9px;letter-spacing:.06em;font-weight:700}
.ride-scope-btn.active{background:#284b3a;color:#fff7e9;border-color:#284b3a}
.ride-status{display:inline-block;margin:7px 0 0;padding:4px 6px;border:1px solid #c4c9bd;color:#788576;font-size:8px;font-weight:700;letter-spacing:.07em}
.ride-status.ride-info{background:#e4ebdf;color:#406948;border-color:#b6cbb7}
.ride-status.ride-caution{background:#f0e4d8;color:#985a3c;border-color:#dcbca3}
.navigation-guide{position:fixed;z-index:6;right:24px;bottom:157px;width:254px;background:rgba(248,245,234,.97);color:#273f30;box-shadow:0 14px 43px #142a244a;font-family:'DM Sans',Arial,sans-serif}
.navigation-guide summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:12px 14px;font-size:10px;font-weight:700;letter-spacing:.13em}
.navigation-guide summary::-webkit-details-marker{display:none}
.navigation-guide .nav-guide-dot{width:6px;height:6px;background:#b59463;border-radius:50%;flex:none}
.navigation-guide .nav-guide-hint{font-size:9px;text-transform:none;letter-spacing:0;color:#758675;margin-left:auto;font-weight:500}
.navigation-guide[open] .navigation-guide-body{padding:0 14px 13px;border-top:1px solid #e1dfd0}
.navigation-guide-body>div{display:flex;gap:9px;justify-content:space-between;align-items:center;border-bottom:1px solid #e5e3d8;padding:8px 0}
.navigation-guide kbd{flex:0 0 98px;font:700 8px/1.25 'DM Sans',Arial,sans-serif;letter-spacing:.07em;color:#526b56}
.navigation-guide-body>div span{color:#475c4d;font-size:10px;line-height:1.4;flex:1}
.navigation-guide-body p{margin:12px 0 0;color:#788678;font-size:9px;line-height:1.5}
#map canvas.both-rotate-active{cursor:grabbing!important}
@media(max-width:950px){.navigation-guide{right:12px;bottom:148px;width:236px}}
@media(max-width:700px){.navigation-guide{right:8px;bottom:calc(min(47vh,370px) + 12px);width:min(245px,55vw);z-index:4}.navigation-guide summary{padding:8px 10px;font-size:8px}.navigation-guide .nav-guide-hint{font-size:8px}.navigation-guide-body>div{padding:6px 0}.navigation-guide kbd{flex-basis:80px;font-size:7px}.navigation-guide-body>div span{font-size:9px}.navigation-guide-body p{display:none}}

/* v0.7 — detailed community trail discovery, using the existing atlas appearance */
.osm-tools{margin:12px 0 3px;background:#f0ede3;border:1px solid #dcdacb;padding:11px 12px}
.osm-fetch-btn{width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;border:0;background:#294c3a;color:#f4f0e4;padding:12px 12px;letter-spacing:.09em;font-weight:750;font-size:10px;cursor:pointer}
.osm-fetch-btn:hover{background:#385b47}
.osm-fetch-btn:disabled{opacity:.6;cursor:wait}
#osmStatus{color:#6a7f6e;font-size:10px;line-height:1.55;margin:9px 0 0}
.trail-source-label{background:#e5eadb;border-radius:2px;padding:2px 5px;font-size:8px;color:#45664e;letter-spacing:.05em;margin-left:4px}

/* v0.7.1: road hierarchy and distinct road classification */
.road-icon{color:#ad7b43}
.road-icon svg{stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ride-kind-filters{display:flex;gap:4px;margin:12px 0 10px}
.ride-kind-btn{flex:1;border:1px solid #d5d6c8;background:#f4f0e7;color:#536b5b;font-size:9px;font-weight:700;letter-spacing:.045em;padding:10px 6px;cursor:pointer}
.ride-kind-btn.active{border-color:#9f743f;background:#efe0bd;color:#51412c}
.ride-legend{display:flex;flex-wrap:wrap;gap:6px 13px;margin:9px 0 14px;color:#667c6a;font-size:9px;font-weight:650;letter-spacing:.03em}
.ride-legend span{display:inline-flex;align-items:center;gap:6px}
.ride-key{display:inline-block;width:22px;border-top:2px dashed #8cad8f}
.ride-key.road{border-top:3px solid #c38d49}
.ride-key.track{border-top:3px dashed #dfb36d}
.ride-status.road-label{border-color:#d8b27c;color:#885b28;background:#f6ecda}
.swatch.fire-roads{background:#ca9354!important;width:22px!important;height:3px!important;border-radius:0!important}

/* v0.8 — small editorial place finder; approved layout remains intact. */
.geo-explorer{border-top:1px solid #d9ddcf;margin-top:16px;padding-top:13px}
.geo-explorer summary{cursor:pointer;list-style:none;font-size:9px;font-weight:700;letter-spacing:.15em;color:#68806d;display:flex;justify-content:space-between;align-items:center;gap:8px}
.geo-explorer summary::-webkit-details-marker{display:none}
.geo-explorer summary:after{content:'−';font-size:16px;letter-spacing:0;color:#8ba28c;order:2}
.geo-explorer:not([open]) summary:after{content:'+'}
.geo-explorer summary span{margin-left:auto;font-size:9px;letter-spacing:.05em;color:#9b9b85}
.geo-intro{font-size:10px;color:#708374;line-height:1.65;margin:12px 0}
.geo-filter{display:flex;gap:4px;margin:10px 0}
.geo-filter button{flex:1;border:1px solid #d6d9cb;padding:9px 6px;background:#eeeee3;color:#718271;font-size:9px;letter-spacing:.1em;font-weight:700;cursor:pointer}
.geo-filter button.active{background:#274a3a;color:#fff8e9;border-color:#274a3a}
.geo-search{margin-bottom:8px}
.geo-list{max-height:238px;overflow-y:auto;scrollbar-color:#bac5b5 transparent;scrollbar-width:thin}
.geo-item{width:100%;display:flex;align-items:center;text-align:left;gap:10px;border:0;border-bottom:1px solid #dce0d3;background:transparent;padding:11px 4px;cursor:pointer;color:#304b39}
.geo-item:hover,.geo-item:focus-visible{background:#ecebdb}
.geo-glyph{flex:none;width:28px;height:28px;border-radius:50%;background:#e7d8bb;color:#886943;display:grid;place-items:center;font-size:15px}
.geo-item[data-kind="summit"] .geo-glyph{background:#dce9dd;color:#54725b}
.geo-item-txt{min-width:0;flex:1}
.geo-item-txt strong{display:block;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.geo-item-txt small{display:block;font-size:9px;color:#839385;margin-top:3px}
.geo-empty,.geo-source{font-size:10px;line-height:1.6;color:#718171;margin:10px 1px}
.summit-icon{background:#e0e9dd;color:#44634f;font-size:19px;font-weight:700}
.swatch.summits{background:#e4dfc8;border:2px solid #466b58}
@media(max-width:700px){.geo-list{max-height:150px}.geo-item{padding:8px 4px}}

/* v0.8.1 · preserve editorial UI, remove oversized terrain-obscuring location tiles */
.poi.poi-compact{gap:5px;filter:drop-shadow(0 2px 7px #10281b90);white-space:nowrap}
.poi.poi-compact .poi-dot{width:11px;height:11px;flex:none;background:#d6b47e;border:2px solid #fff9e5;box-shadow:0 0 0 3px #1e443653}
.poi.poi-compact .poi-label{display:none!important;max-width:180px;padding:7px 9px!important;font-size:9px!important;letter-spacing:.07em!important;background:#f4f0e6!important;color:#284738!important;border:1px solid #d5c7a9;white-space:normal;line-height:1.35;box-shadow:0 3px 13px #142b2455}
.poi.poi-compact:hover .poi-label,.poi.poi-compact:focus-visible .poi-label{display:inline-block!important}
.poi.poi-compact:hover .poi-dot,.poi.poi-compact:focus-visible .poi-dot{background:#f0d9a5;box-shadow:0 0 0 5px #284b3b86}
.nearby-place-links{display:grid;gap:6px;margin:8px 0 16px}
.nearby-place-links button{background:#e9eadc;border:1px solid #d8dccb;color:#304f3c;text-align:left;padding:10px 11px;font-size:10px;line-height:1.5;cursor:pointer}
.nearby-place-links button:hover{background:#dde6d7}

/* v0.8.2 / historical field notes – additive; preserves established layout */
.history-feature{width:100%;display:flex;flex-direction:column;text-align:left;gap:7px;padding:15px 16px 17px;margin:12px 0 20px;background:#e8e4d6;border:1px solid #d1ceb9;border-left:3px solid #b48f55;color:#2c4637;cursor:pointer}
.history-feature:hover,.history-feature:focus-visible{background:#e2dfcb;border-left-color:#315945}
.history-feature>span{font-size:8px;font-weight:800;letter-spacing:.16em;color:#8f7858}
.history-feature strong{font:normal 16px/1.3 'Libre Baskerville',Georgia,serif;color:#284537}
.history-feature small{font-size:10px;color:#6c7869;line-height:1.5}
.history-sources{display:grid;gap:7px;margin:12px 0 20px}
.history-sources a{display:flex;align-items:center;justify-content:space-between;gap:14px;text-decoration:none;background:#e7e9db;border:1px solid #d1d9c9;padding:11px;color:#365b43;font-size:10px;line-height:1.45}
.history-sources a:hover{background:#dce4d4}
.history-sources a span{font-size:14px;flex-shrink:0}
.summit-history-note{background:#e9e8df;border-left:3px solid #b99763;padding:11px 13px;margin:10px 0 17px;font-size:10px;line-height:1.6;color:#637260}

/* V0.8.3 · Geographic discovery and researched history styling */
.explore-mode{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:0 0 8px;background:#e5e6d9;padding:3px}
.explore-mode button{border:0;background:transparent;color:#728477;font-size:9px;font-weight:800;letter-spacing:.12em;padding:9px 6px;cursor:pointer}
.explore-mode button.active{background:#f8f5eb;color:#234333;box-shadow:0 1px 4px #152b2118}
.explore-caption{font-size:10px;line-height:1.55;color:#768477;margin:10px 0 8px}
.featured-filters{display:flex;flex-wrap:wrap;gap:5px;padding:9px 0}
.featured-filters button{border:1px solid #d4d7c9;background:transparent;color:#7d8e7e;padding:7px 8px;font-size:8px;font-weight:800;letter-spacing:.095em;cursor:pointer}
.featured-filters button.active{background:#315640;color:#f9f4e7;border-color:#315640}
.explore-group-title{display:flex;justify-content:space-between;align-items:center;color:#748578;font-size:9px;letter-spacing:.12em;font-weight:800;padding:17px 0 8px;border-bottom:1px solid #d8dccf}
.explore-group-title small{color:#9b9f89;font-size:8px;letter-spacing:.08em}
.location.explore-row{min-height:56px}
.location.explore-row .location-title{font-size:14px}
.explore-empty{color:#7c8c7e;font-size:11px;line-height:1.6}
.explore-row.history-row .location-title{color:#755237}
.history-gold{color:#a76f38!important;font-family:Arial,sans-serif;font-weight:900!important;font-size:10px!important;background:#ead6bc;border:1px solid #b68b60;border-radius:50%;width:20px;height:20px;display:grid;place-items:center}
.geo-item.has-history .geo-glyph{background:#ad7445;color:#fff8e9;border:1px solid #f3d9b5}
.geo-history-tag{display:block;color:#a66b36;font-size:8px;font-weight:800;letter-spacing:.1em;margin-top:3px}
.history-legend-key{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#ad7445;color:#fff9e9;font-size:10px;font-weight:800;margin:0 2px}
.swatch.history{background:#ad7445;border:2px solid #f8e1bc;width:12px;height:12px;color:#fff}
.poi.poi-history .poi-dot{background:#b37e4a;border:2px solid #fff0ce;box-shadow:0 0 0 3px #6f442956}
.history-feature[hidden]{display:none!important}
@media(max-width:700px){.explore-group-title{padding-top:12px}.explore-mode button{padding:7px 5px}.location.explore-row{min-height:49px}}

/* v0.8.4: unified map markers; no redundant basemap POI badges. */
.swatch.places{background:#e6e7d6;border:2px solid #52765e;width:12px;height:12px}
.detail-actions a:only-child{flex:1;min-height:42px}
@media(max-width:1190px){.map-legend{flex-wrap:wrap;max-width:min(58vw,570px);row-gap:8px}}

/* v0.9 two-part field guide: minimal navigation addition only; atlas layout and content unchanged. */
.guide-hub-links{display:flex;align-items:center;gap:5px;pointer-events:auto}
.hub-link{font:700 9px/1 'DM Sans',Arial,sans-serif;text-decoration:none;letter-spacing:.1em;color:#f5f0e4;padding:13px 11px;border:1px solid #e9e5cd62;background:#183428b3;white-space:nowrap;text-shadow:0 1px 3px #0b1a12}
.hub-link:hover,.hub-link:focus-visible{background:#365d44}
.hub-active{background:#f1eee3;color:#254330;text-shadow:none;border-color:#f1eee3}
.guide-hub-links .header-action{padding:13px 10px}
@media(max-width:1250px){.guide-hub-links .header-action{display:none}}
@media(max-width:950px){.guide-hub-links{gap:3px}.hub-link{font-size:8px;padding:11px 8px}.wordmark-secondary{display:none}.wordmark-divider{display:none}}
@media(max-width:700px){.header{padding:0 9px}.wordmark{font-size:8px;letter-spacing:.08em}.hub-link{font-size:7px;letter-spacing:.02em;padding:9px 6px}.guide-hub-links{gap:2px}}

/* Launch: route explorer hidden while verified route information is being completed.
   Real trail and fire-road overlays, selection and underlying data remain available. */
#tab-trails, #section-trails { display: none !important; }

/* Approved Angeles Creative identity: original tree + approved lowercase serif wordmark. */
.header .ac-official-brand{display:inline-flex;align-items:center;gap:10px;letter-spacing:normal;text-shadow:none;max-width:min(410px,42vw)}
.header .ac-official-tree{width:34px;height:34px;flex:0 0 34px;object-fit:contain;filter:invert(1);display:block}
.header .ac-official-wordmark{width:174px;max-width:100%;height:auto;flex:0 1 174px;object-fit:contain;display:block;filter:none!important}
.header .ac-official-divider{width:1px;height:22px;background:#f1f0df70;flex:0 0 1px;margin:0 3px}
.header .ac-official-suffix{font-size:10px;letter-spacing:.17em;font-weight:500;white-space:nowrap;color:#faf5e6}
@media(max-width:1120px){.header .ac-official-wordmark{width:152px;flex-basis:152px}.header .ac-official-brand{gap:7px}}
@media(max-width:950px){.header .ac-official-tree{width:30px;height:30px;flex-basis:30px}.header .ac-official-wordmark{width:135px;flex-basis:135px}.header .ac-official-divider,.header .ac-official-suffix{display:none}}
@media(max-width:700px){.header .ac-official-tree{width:28px;height:28px;flex-basis:28px}.header .ac-official-wordmark{width:126px;flex-basis:126px}.header .ac-official-brand{gap:6px;max-width:48vw}}
@media(max-width:380px){.header .ac-official-wordmark{width:100px;flex-basis:100px}.header .ac-official-tree{width:25px;height:25px;flex-basis:25px}}


/* v1.2.1 — vertical-only editorial panel scrolling and consistent source wrapping. */
/* Avoid sideways scrolling in both drawers, even when text contains long source names. */
.detail,
.sidebar {
  min-width: 0;
  max-width: 100vw;
}
.detail-scroll,
.sidebar-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  scrollbar-width: thin;
  scrollbar-color: #8c9f89 #edece1;
}
.detail-scroll {
  height: 100%;
  scrollbar-gutter: stable;
}
/* Keep padded content, clickable source cards, and external text within the drawer. */
.detail-scroll > :not(.detail-photo),
.detail-body,
.detail-body > *,
.history-sources,
.nearby-place-links,
.detail-actions,
.detail-caveat {
  min-width: 0;
  max-width: 100%;
}
.detail h2,
.detail-subtitle,
.detail-kicker,
.detail-body p,
.detail-body li,
.detail-body h3,
.detail-caveat,
.detail-actions a,
.detail-actions button,
.image-credit,
.obs-item,
.nearby-place-links button {
  overflow-wrap: anywhere;
  word-break: normal;
}
.history-sources a {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.history-sources a span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.history-sources a span:last-child {
  flex: none;
  justify-self: end;
  white-space: nowrap;
}
.nearby-place-links {
  grid-template-columns: minmax(0,1fr);
}
.nearby-place-links button {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: left;
}
.obs-item > span:nth-child(2) { min-width: 0; flex: 1; }
.obs-item strong,
.obs-item small { overflow-wrap: anywhere; }
/* Subtle forest-toned thumb: WebKit (Chrome, Safari, Edge). */
.detail-scroll::-webkit-scrollbar,
.sidebar-content::-webkit-scrollbar { width: 8px; height: 0; }
.detail-scroll::-webkit-scrollbar-track,
.sidebar-content::-webkit-scrollbar-track { background: #edece1; border-radius: 6px; }
.detail-scroll::-webkit-scrollbar-thumb,
.sidebar-content::-webkit-scrollbar-thumb {
  background: #a1b09b;
  border: 2px solid #edece1;
  border-radius: 9px;
}
.detail-scroll::-webkit-scrollbar-thumb:hover,
.sidebar-content::-webkit-scrollbar-thumb:hover { background: #678a73; }
@media(max-width:700px) {
  .detail { max-width: 100vw; }
  .detail-scroll { scrollbar-gutter: auto; }
}
