@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');
:root{--ink:#172c2d;--muted:#657474;--paper:#f4f1e9;--cream:#fcfaf4;--line:#ddd9cd;--orange:#c96645;--blue:#426a70}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--paper)}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,label:focus-visible{outline:3px solid #ef9d79;outline-offset:2px}a{color:#275f6b}.site-shell{min-height:100vh;display:flex;flex-direction:column}.site-header{height:98px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:20px;background:var(--cream);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:17px}.brand-mark{width:51px;height:51px;border:1px solid var(--ink);border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;font-size:29px;position:relative}.brand-mark span{position:absolute;bottom:4px;right:6px;color:var(--orange);font-size:18px}.eyebrow{font-weight:700;letter-spacing:.18em;font-size:10px}.brand .eyebrow{color:var(--orange)}h1,h2,p{margin:0}h1,h2{font-family:'Playfair Display',Georgia,serif;font-weight:500}h1{font-size:27px;line-height:1.1;margin-top:4px}em{font-weight:500;color:var(--orange)}.header-actions{display:flex;align-items:center;gap:9px}.text-button,.primary-button{border:0;font-size:12px;font-weight:700;letter-spacing:.025em;padding:13px 16px}.text-button{background:transparent;color:var(--ink)}.text-button:hover{background:#eee9de}.primary-button{background:var(--ink);color:white;border-radius:2px}.primary-button:hover{background:#2f5050}.primary-button.is-adding{background:var(--orange)}.workspace{flex:1;display:grid;grid-template-columns:minmax(198px,235px) minmax(340px,1fr) minmax(300px,355px);min-height:610px;max-height:calc(100vh - 135px)}.art-rail{padding:33px 24px 25px 30px;background:#e9e9df;border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.rail-heading{display:flex;align-items:center;gap:12px;color:var(--orange)}.small-rule{height:1px;background:#c7cbbf;flex:1}.art-rail h2,.story-panel h2{font-size:30px;line-height:1.15;margin-top:31px}.rail-intro,.panel-subtitle{color:var(--muted);font-size:12px;line-height:1.6;margin-top:13px}.art-frame{margin-top:29px;width:100%;aspect-ratio:3/4;background:#f7f5ed;border:9px solid #fbfaf6;box-shadow:0 3px 20px #22333318;position:relative;overflow:hidden}.art-frame img{width:100%;height:100%;object-fit:cover}.art-placeholder{height:100%;padding:18px;display:flex;flex-direction:column;justify-content:space-between;color:#747e77;font-size:10px;font-weight:700;letter-spacing:.17em;line-height:1.6}.art-lines{flex:1;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.art-lines span{position:absolute;width:170%;height:75px;border-radius:50%;border:2px solid #b6c9c2;transform:rotate(-28deg)}.art-lines span:nth-child(2){transform:rotate(-28deg) translateY(23px);border-color:#bdccbf}.art-lines span:nth-child(3){transform:rotate(-28deg) translateY(-26px);border-color:#d8b8a0}.quiet-upload{font-size:11px;border-bottom:1px solid #a1aaa2;padding:11px 0;display:flex;justify-content:space-between;cursor:pointer;font-weight:700}.quiet-upload:hover{color:var(--orange)}.rail-bottom{margin-top:auto;padding-top:25px}.rail-bottom .eyebrow{color:var(--orange)}.rail-bottom p{font-size:11px;color:var(--muted);line-height:1.55;margin-top:11px}.map-section{position:relative;min-width:0;background:#dce8df;overflow:hidden}#map{height:100%;min-height:610px;width:100%;z-index:1}.leaflet-container{font-family:'DM Sans',Arial,sans-serif;background:#dce8df}.leaflet-control-attribution{font-size:9px!important;background:#fffefbe3!important}.leaflet-control-zoom{border:0!important;box-shadow:0 2px 14px #132d3030!important}.leaflet-control-zoom a{color:var(--ink)!important}.map-topline,.map-caption,.map-toast,.map-error{z-index:400;position:absolute;background:#fcfaf3eb;box-shadow:0 4px 15px #162f3520}.map-topline{top:24px;left:24px;padding:12px 14px;font-size:9px;font-weight:700;letter-spacing:.15em;display:flex;align-items:center;gap:9px}.topline-dot{width:7px;height:7px;border-radius:50%;background:var(--orange)}.map-caption{bottom:27px;left:24px;padding:11px 13px;font-size:10px;color:#405657;max-width:calc(100% - 50px)}.map-caption strong{color:var(--ink)}.map-toast{top:70px;left:24px;padding:13px 16px;font-size:12px;color:white;background:var(--ink)}.map-error{top:70px;left:24px;padding:13px 16px;font-size:12px;color:#8e2d28}.pin-icon{background:none;border:0}.pin-icon span{height:31px;width:31px;display:grid;place-items:center;border:2px solid #fff;background:var(--ink);border-radius:50%;color:white;font-size:12px;font-weight:700;box-shadow:0 2px 10px #162f3570;transition:transform .2s}.pin-icon.active span{background:var(--orange);transform:scale(1.18)}.story-panel{background:var(--cream);border-left:1px solid var(--line);padding:33px 25px 18px;overflow-y:auto;display:flex;flex-direction:column;min-width:0}.panel-top{display:flex;justify-content:space-between;align-items:center;color:var(--orange)}.count-pill{border:1px solid #d5d9d1;color:#617472;padding:5px 7px;font-size:9px;letter-spacing:.1em;font-weight:700}.story-panel h2{margin-top:28px}.panel-subtitle{margin-top:10px}.stop-list{margin-top:22px;border-top:1px solid var(--line)}.stop-item{background:transparent;border:0;border-bottom:1px solid var(--line);width:100%;padding:12px 2px;display:flex;align-items:center;text-align:left;gap:11px;color:var(--ink)}.stop-item:hover,.stop-item.selected{background:#f2eee5}.stop-number{width:24px;height:24px;flex:none;border-radius:50%;background:var(--ink);color:white;display:grid;place-items:center;font-size:10px;font-weight:700}.stop-item.selected .stop-number{background:var(--orange)}.stop-name{font-size:12px;font-weight:700;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stop-arrow{color:var(--orange)}.detail{padding-top:20px;flex:1}.detail-kicker{font-size:10px;color:var(--orange);font-weight:700;letter-spacing:.16em}.detail h3{font-family:'Playfair Display',Georgia,serif;font-weight:500;font-size:23px;line-height:1.2;margin:8px 0 15px}.photo-slot{width:100%;aspect-ratio:1.85;background:#e8e7dd;display:grid;place-items:center;position:relative;overflow:hidden;text-align:center}.photo-slot img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.photo-slot span{font-size:10px;font-weight:700;letter-spacing:.14em;color:#698180}.photo-slot.has-image span{display:none}.photo-upload{font-size:11px;color:var(--blue);font-weight:700;display:inline-block;margin-top:8px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.detail-fields{display:grid;gap:12px;margin-top:15px}.field{display:grid;gap:5px}.field label{font-size:9px;font-weight:700;letter-spacing:.13em;color:#6c7770;text-transform:uppercase}.field input,.field textarea{width:100%;border:1px solid #d9d9ce;background:#fffefa;padding:8px 9px;border-radius:0;color:var(--ink);font-size:12px}.field textarea{min-height:62px;resize:vertical;line-height:1.5}.field input::placeholder,.field textarea::placeholder{color:#a5aba5}.coordinates{font-size:10px;color:#7b8881;margin-top:10px}.delete-button{background:none;border:0;padding:8px 0;color:#a35643;font-size:10px;text-decoration:underline;margin-top:4px}.panel-footer{padding-top:20px;margin-top:24px;border-top:1px solid var(--line)}.export-button{background:transparent;border:1px solid #718785;color:var(--ink);font-size:11px;font-weight:700;padding:10px 12px;width:100%}.export-button:hover{background:#e7ebe6}.panel-footer>p{font-size:10px;line-height:1.5;color:var(--muted);margin-top:9px}.sources{margin-top:15px;color:var(--muted);font-size:10px;line-height:1.5}.sources summary{cursor:pointer;font-weight:700}.sources p{margin-top:8px}.empty-detail{font-size:12px;line-height:1.6;color:var(--muted)}.site-footer{height:37px;padding:0 34px;display:flex;justify-content:space-between;align-items:center;background:var(--ink);color:#e4e4d8;font-size:9px;letter-spacing:.17em;font-weight:700}
@media(max-width:1050px){.workspace{grid-template-columns:180px minmax(300px,1fr) 315px}.art-rail{padding:28px 17px}.story-panel{padding:28px 17px}.art-rail h2,.story-panel h2{font-size:27px}.site-header{padding:0 20px}}
@media(max-width:800px){.site-header{height:auto;min-height:92px;align-items:flex-start;padding:17px 18px;flex-direction:column}.header-actions{width:100%;justify-content:space-between}.text-button,.primary-button{padding:9px 11px}.workspace{display:flex;flex-direction:column;max-height:none}.map-section{order:0;height:54vh;min-height:410px}.map-section #map{height:100%;min-height:410px}.story-panel{order:1;overflow:visible;padding:24px 20px}.art-rail{order:2;display:grid;grid-template-columns:1fr 140px;gap:8px 20px;padding:25px 20px}.art-rail h2{margin-top:8px}.rail-intro{grid-column:1;max-width:270px}.art-frame{grid-column:2;grid-row:1/5;margin:0}.quiet-upload{grid-column:1}.rail-bottom{grid-column:1/3;margin:0;padding-top:10px}.story-panel h2{margin-top:14px}.stop-list{margin-top:17px}.detail{max-width:590px}.photo-slot{aspect-ratio:2.3}.site-footer{padding:0 18px}.map-topline{top:14px;left:14px}.map-caption{bottom:20px;left:14px}}
@media(max-width:430px){h1{font-size:22px}.brand-mark{width:44px;height:44px;font-size:24px}.header-actions{gap:1px}.text-button,.primary-button{font-size:11px;padding:9px 6px}.map-topline{font-size:8px}.site-footer{font-size:8px;letter-spacing:.08em}}

/* Keep the desktop map and journal inside the viewport. The journal scrolls on its own. */
@media(min-width:801px){
  .site-shell{height:100dvh;min-height:0;overflow:hidden}
  .site-header,.site-footer{flex:none}
  .workspace{flex:1;min-height:0;max-height:none;height:auto;grid-template-rows:minmax(0,1fr);overflow:hidden}
  .map-section{min-height:0}
  #map{height:100%;min-height:0}
  .art-rail,.story-panel{min-height:0;overflow-y:auto}
}
.route-toggle{color:#b14e36;border-bottom:2px solid #ca6745}
.route-toggle.is-tracing{background:#f5e7df}
.route-bar{z-index:450;position:absolute;top:73px;left:24px;right:24px;padding:11px 13px;display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fcfaf3f5;box-shadow:0 4px 18px #162f3529;border-left:4px solid #d24035;font-size:11px}
.route-bar[hidden]{display:none!important}
.route-bar strong{display:block;font-size:11px;color:var(--ink)}
.route-bar span{display:block;color:var(--muted);margin-top:3px;line-height:1.35}
.route-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.route-actions button,.route-actions label{border:1px solid #cfcfc5;background:#fffefa;color:var(--ink);font-size:10px;font-weight:700;padding:8px 9px;white-space:nowrap;cursor:pointer}
.route-actions button:hover,.route-actions label:hover{background:#efe9df}
.route-actions button:disabled{opacity:.45;cursor:default}
.route-actions .route-done{background:var(--ink);border-color:var(--ink);color:white}
.route-actions .route-done:hover{background:#345554}
@media(max-width:800px){
  .site-shell{height:auto;min-height:100dvh;overflow:visible}
  .workspace{height:auto;min-height:0;max-height:none;overflow:visible}
  .map-section{height:54vh;min-height:410px}
  #map{height:100%;min-height:0}
  .art-rail,.story-panel{overflow:visible}
  .header-actions{flex-wrap:wrap;justify-content:flex-start}
  .route-bar{top:61px;left:14px;right:14px;align-items:stretch;flex-direction:column;gap:8px}
}
[hidden]{display:none!important}
.art-frame{padding:0;text-align:left;cursor:pointer}
.art-frame:focus-visible{outline:3px solid #ef9d79;outline-offset:3px}
.gallery-caption{margin-top:18px;border-top:1px solid #c8cabe;padding-top:13px}
.gallery-caption strong{font-family:'Playfair Display',Georgia,serif;font-size:18px;font-weight:500;line-height:1.2}
.gallery-caption p{font-size:13px;line-height:1.5;color:var(--muted);margin-top:7px;max-height:5em;overflow:hidden}
.gallery-caption button{border:0;border-bottom:1px solid #718785;background:transparent;color:var(--blue);font-size:13px;font-weight:700;margin-top:12px;padding:0 0 4px;cursor:pointer}
.gallery-caption button:hover{color:var(--orange)}
.pin-icon.photo .pin-thumb{width:44px;height:44px;border:3px solid #fff;display:block;position:relative;border-radius:50%;background:var(--ink);box-shadow:0 2px 12px #162f3570;transition:transform .2s}
.pin-icon.photo .pin-thumb img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.pin-icon.photo .pin-thumb span{position:absolute;right:-5px;bottom:-5px;width:19px;height:19px;border:1px solid white;font-size:9px;background:var(--ink);box-shadow:0 1px 5px #162f3550}
.pin-icon.photo.active .pin-thumb{border-color:var(--orange);transform:scale(1.12)}
.entry-tooltip{border:0!important;padding:7px!important;box-shadow:0 5px 20px #122a3160!important;background:#fffefa!important;max-width:240px}
.entry-tooltip::before{border-top-color:#fffefa!important}
.entry-tooltip img{display:block;width:215px;max-height:110px;object-fit:cover;margin-bottom:7px}
.entry-tooltip strong{font-size:12px;display:block;color:var(--ink)}
.entry-tooltip p{font-size:10px;color:var(--muted);margin:4px 0 0;line-height:1.4;max-width:215px}
.photo-slot.has-image{cursor:pointer;border:0;padding:0}
.photo-slot.has-image:after{content:'VIEW STORY & JOURNAL ↗';position:absolute;inset:auto 0 0;background:#142d2dd9;color:white;font-size:10px;font-weight:700;letter-spacing:.09em;padding:9px;text-align:left;opacity:0;transition:opacity .2s}
.photo-slot.has-image:hover:after,.photo-slot.has-image:focus-visible:after{opacity:1}
.photo-slot.draft-image{cursor:default}
.photo-slot.draft-image:after{content:'DRAFT · POST ENTRY TO UPDATE MAP';opacity:1}
.entry-dialog{width:min(760px,calc(100vw - 32px));max-height:85dvh;border:0;border-radius:3px;padding:0;background:var(--cream);box-shadow:0 20px 70px #091a1ba6;color:var(--ink)}
.entry-dialog::backdrop{background:#0c2020b8}
.entry-content{display:grid;grid-template-columns:minmax(0,42%) minmax(0,58%)}
.entry-content>img{width:100%;height:100%;max-height:85dvh;object-fit:cover;background:#e8e7dd}
.entry-dialog.no-image .entry-content{display:block}
.entry-copy{padding:37px;max-height:85dvh;overflow-y:auto}
.entry-copy .eyebrow{color:var(--orange)}
.entry-copy h2{font-size:29px;line-height:1.15;margin:11px 0 7px}
.entry-date{font-size:11px;color:var(--muted)}
.entry-copy h3{font-size:10px;letter-spacing:.14em;text-transform:uppercase;margin:28px 0 8px;color:var(--orange)}
.entry-copy p:not(.entry-date){font-size:14px;line-height:1.65;white-space:pre-wrap}
.entry-copy button{border:1px solid var(--ink);background:var(--ink);color:white;font-size:11px;font-weight:700;padding:11px 13px;margin-top:30px}
.entry-close{position:absolute;right:10px;top:10px;z-index:2;border:0;width:32px;height:32px;background:#fffefaee;color:var(--ink);font-size:26px;line-height:1}
@media(max-width:650px){
  .entry-content{display:block}
  .entry-content>img{display:block;width:100%;height:30dvh;object-fit:cover}
  .entry-copy{padding:24px;max-height:55dvh}
}
@media(max-width:800px){.gallery-caption{grid-column:1;grid-row:3;margin-top:2px}.art-frame{grid-row:1/4}}
.chapter-list{display:grid;gap:7px;margin-top:16px}
.chapter-list button{width:100%;min-width:0;border:1px solid #d5d9d1;background:#f7f5ef;color:var(--ink);text-align:left;padding:10px 13px;line-height:1.25}
.chapter-list button.active{border-color:var(--orange);border-left:3px solid var(--orange);background:#f5e7df;padding-left:11px}
.chapter-list button:hover{border-color:var(--orange)}
.chapter-index{display:block;font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--orange)}
.chapter-name{display:block;margin-top:4px;font-family:'Playfair Display',Georgia,serif;font-size:16px;line-height:1.3;overflow-wrap:break-word}
.route-distance{color:var(--blue);font-size:12px;font-weight:700;line-height:1.4;margin-top:12px}
.mile-icon{background:transparent;border:0}
.mile-icon span{display:block;width:44px;padding:3px 2px;border:1px solid #ae4534;border-radius:2px;background:#fffdf6;color:#9f2b24;font-size:10px;font-weight:700;text-align:center;box-shadow:0 1px 5px #122a3160;white-space:nowrap}
.remove-photo{border:0;background:transparent;color:#a35643;text-decoration:underline;text-underline-offset:3px;font-size:11px;margin:8px 0 0 14px;padding:0}
.remove-photo:hover{color:#7b2b1f}
.post-entry{width:100%;border:0;background:var(--ink);color:#fffefa;font-size:13px;font-weight:700;padding:12px 15px;margin-top:17px}
.post-entry:hover{background:#315454}
.post-entry:disabled{opacity:.55;cursor:wait}
.post-status{font-size:12px;line-height:1.4;color:var(--blue);margin-top:8px}
.post-status.draft{color:#9d4430}
.discard-draft{border:0;background:transparent;color:var(--muted);font-size:11px;text-decoration:underline;margin-top:8px;padding:0}

/* A dark, weathered field-journal frame around the real USGS map. */
:root{--ink:#e8dfce;--muted:#aaa99f;--paper:#171a1b;--cream:#232622;--line:#504b3e;--orange:#c99067;--blue:#99bdc0}
html,body{background:#171a1b;color:var(--ink)}
a{color:#a9ced2}
.site-header{background:radial-gradient(circle at 12% 0%,#37302a 0%,transparent 34%),linear-gradient(115deg,#211d1b,#1b2527 80%);border-bottom:1px solid #765a43;box-shadow:inset 0 3px #43352b;z-index:5}
.brand-mark{border-color:#b3a28b;color:#f0e3ca;box-shadow:inset 0 0 0 3px #322d26}
.brand .eyebrow,.rail-heading,.panel-top,.detail-kicker,.chapter-index{color:var(--orange)}
.brand em,.art-rail em{color:#dca277}
.text-button{color:#e7ddcd}
.text-button:hover,.text-button:focus-visible{background:#493b32}
.primary-button,.post-entry{background:#985844;color:#fff5e8;box-shadow:inset 0 1px #c98b69}
.primary-button:hover,.post-entry:hover{background:#b16a51}
.primary-button:disabled,.text-button:disabled{opacity:.4;cursor:default}
.route-toggle{color:#df9d81;border-color:#be654e}
.route-toggle.is-tracing{background:#573a31}
.art-rail{background:radial-gradient(circle at 5% 12%,#403429,#2a2825 48%,#202728 100%);border-right:1px solid #876447;box-shadow:inset -5px 0 12px #17141466}
.story-panel{background:radial-gradient(circle at 100% 0%,#393029,#282725 44%,#212626 100%);border-left:1px solid #806047;box-shadow:inset 5px 0 15px #17141455}
.small-rule,.gallery-caption{border-color:#645648;background:#645648}
.gallery-caption{background:none}
.art-frame{background:#322d27;border:8px solid #4d4032;box-shadow:0 6px 24px #090b0b99,inset 0 0 0 1px #9b7652}
.art-placeholder{color:#d1bea7;background:linear-gradient(145deg,#352f28,#262a29)}
.art-lines span{border-color:#6e857f}.art-lines span:nth-child(2){border-color:#8f7b63}.art-lines span:nth-child(3){border-color:#b3785e}
.gallery-caption p,.coordinates,.empty-detail,.panel-footer>p{color:var(--muted)}
.gallery-caption button{color:#a9c7c9;border-color:#677d7d}
.map-section,.leaflet-container{background:#7b8f88}
.map-topline,.map-caption,.map-toast,.map-error{background:#202927ed;color:#eee4d3;box-shadow:0 5px 18px #10151355;border:1px solid #716252}
.topline-dot{background:#c95743}
.map-caption{bottom:55px;left:18px;color:#c6d1c9;font-size:10px;letter-spacing:.02em}
.map-caption strong{color:#f4e9d6}
.map-topline{top:18px;left:18px;letter-spacing:.13em}
.map-error{color:#ffd0bc}
.leaflet-control-zoom a{background:#25302e!important;color:#e7ddcd!important;border-color:#5d655e!important}
.leaflet-control-zoom a:hover{background:#40514e!important}
.leaflet-control-scale{margin:0 0 11px 18px!important;padding:4px 7px;background:#202927eb;border:1px solid #716252;color:#f2e7d5}
.leaflet-control-scale-line{background:transparent!important;color:#f2e7d5!important;border-color:#f2e7d5!important;font-size:10px!important;text-shadow:none!important}
.leaflet-control-attribution{background:#202927df!important;color:#d9d3c6!important}
.leaflet-control-attribution a{color:#b6d6db!important}
.map-legend{position:absolute;z-index:450;right:18px;bottom:85px;width:210px;background:#222927ee;color:#f1e6d4;border:1px solid #9b7652;box-shadow:0 9px 26px #12181670;font-size:11px}
.map-legend summary{cursor:pointer;padding:10px 12px;font-weight:700;letter-spacing:.06em;list-style:none}
.map-legend summary::-webkit-details-marker{display:none}
.map-legend summary:after{content:'+';float:right;color:#dfa478}
.map-legend[open] summary:after{content:'−'}
.legend-content{border-top:1px solid #65574a;padding:6px 12px 9px}
.legend-content p,.legend-content button{min-height:26px;display:flex;align-items:center;gap:9px;color:#e4d9c8;font-size:11px}
.legend-content button{width:100%;padding:2px 0;background:transparent;border:0;text-align:left}
.legend-content button:hover{color:#ecc299}
.legend-content button>span:last-child{margin-left:auto;color:#c99067}
.legend-content button:disabled{opacity:.45;cursor:default}
.legend-content .legend-hint{font-size:9px;line-height:1.35;color:#b8b9ae;margin-top:5px}
.legend-content small{font-size:9px;color:#b5b9af}
.legend-swatch{display:inline-block;flex:none;width:16px;height:3px;background:#d13e35}
.legend-swatch.mile{width:7px;height:7px;border:1px solid white;border-radius:50%}
.legend-symbol{display:inline-grid;place-items:center;flex:none;width:17px;color:#e9ddcb;font-size:15px}
.legend-symbol.fish{color:#a3c5c5}.legend-symbol.rapid{color:#85b2bb}.legend-symbol.fall{color:#a8c6d1}.legend-symbol.passage{color:#d9ab7e}
.mile-tooltip{background:#292b28ee!important;border:1px solid #b37156!important;border-radius:2px!important;box-shadow:0 2px 5px #17202066!important;color:#fff0df!important;font-size:10px!important;font-weight:700!important;padding:2px 5px!important}
.mile-tooltip:before{border-right-color:#b37156!important}
.pin-icon>span,.pin-icon.photo .pin-thumb{background:#263533;color:#fff4e7;border-color:#fff7ec}
.pin-icon.active>span,.pin-icon.photo.active .pin-thumb{background:#ad6648;border-color:#f3d9b6}
.feature-badge{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;width:19px;height:19px;background:#45646a;border:1px solid #fff4e4;border-radius:50%;color:white;font-size:12px;font-style:normal;font-weight:700;box-shadow:0 2px 6px #111b1b88}
.pin-icon.photo .feature-badge{top:-16px;right:-16px}
.feature-badge.rapids,.feature-badge.passage{background:#4a7680}.feature-badge.waterfall{background:#43718a}.feature-badge.fishing{background:#6b7250}
.entry-tooltip{background:#292e2b!important;color:#efe2d0!important;border:1px solid #8d7056!important}
.entry-tooltip:before{border-top-color:#8d7056!important}
.entry-tooltip strong{color:#f1e6d6}.entry-tooltip p,.entry-tooltip small{color:#c4c8bf}.entry-tooltip small{display:block;font-size:10px;margin-top:3px}
.chapter-list button{background:#2b2d29;border-color:#575348;color:var(--ink);padding:12px 13px}
.chapter-list button.active{background:#42362d;border-color:#bd8460}
.chapter-list button:hover{border-color:#d2a277;background:#3b3931}
.chapter-list .all-chapters-button{margin-top:3px;background:#273235;border-color:#53696a}
.chapter-list .all-chapters-button.active{background:#33484a;border-color:#91b4b6}
.all-chapters-button .chapter-index{color:#9ebfc1}
.all-chapters-button .chapter-name{font-size:14px}
.route-distance{color:#acc6c8;font-size:11px;margin-top:15px}
.chapter-stats{margin-top:12px;border:1px solid #665949;background:#232927;color:#e9ddcc}
.chapter-stats summary{cursor:pointer;padding:11px 12px;color:#d7ae8b;font-size:11px;font-weight:700;letter-spacing:.04em}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px;padding:13px;border-top:1px solid #5d594b}
.stats-grid div{display:grid;gap:2px}
.stats-grid strong{font-size:18px;line-height:1.1;font-weight:500;font-variant-numeric:tabular-nums}
.stats-grid strong small{font-size:11px;color:#a8c4c5}
.stats-grid span{font-size:9px;color:#aaa99f;letter-spacing:.08em;text-transform:uppercase}
.chapter-stats>p{padding:0 13px 13px;font-size:10px;color:#aeb5ab;line-height:1.4}
.stop-list,.panel-footer{border-color:#595247}
.stop-item{color:#e7dece;border-color:#595247}
.stop-item:hover,.stop-item.selected{background:#373a34}
.stop-number{background:#354448;color:#f4ebda}
.stop-item.selected .stop-number{background:#b36c4d}
.stop-feature{margin-right:5px;color:#9dc1c7;font-size:15px}
.overview-chapter{display:grid;gap:4px;text-align:left;width:100%;padding:13px 4px;border:0;border-bottom:1px solid #595247;background:none;color:var(--ink)}
.overview-chapter:hover{background:#383b36}
.overview-chapter strong{font-family:'Playfair Display',Georgia,serif;font-size:15px;font-weight:500}
.overview-chapter small{font-size:10px;color:#a8c4c5}
.detail{color:#eee3d1}
.detail h3{color:#f0e1cb}
.photo-slot{background:#333a37}
.photo-slot span{color:#b6c3bd}
.photo-upload{color:#a5cbd0}
.field label{color:#c3b39e}
.field input,.field textarea,.field select{width:100%;border:1px solid #685d4d;background:#202725;padding:9px;color:#eee4d4;border-radius:2px;font-size:12px}
.field input::placeholder,.field textarea::placeholder{color:#a4aba3}
.delete-button,.remove-photo{color:#d8a08a}
.export-button{border-color:#8e7864;color:#eee3d1}
.export-button:hover{background:#3f4039}
.panel-footer .export-button+.export-button{margin-top:8px}
.panel-footer #restoreStatus{color:#bad5d0;font-size:11px;line-height:1.45;margin-top:9px}
.sources{color:#aaa99f}
.post-status{color:#a7c5c7}.post-status.draft{color:#dcaa8e}
.route-bar{background:#252c2af5;border-color:#c95743;color:#e9ddcc}
.route-bar strong{color:#f4e4cf}.route-bar span{color:#b9c1b7}
.route-actions button,.route-actions label{background:#343c38;border-color:#6e6657;color:#ebdfd0}
.route-actions button:hover,.route-actions label:hover{background:#4a534c}
.route-actions .route-done{background:#a3634c;border-color:#a3634c}
.entry-dialog{background:#272b28;color:#eee4d4;border:1px solid #99795c}
.entry-copy .eyebrow,.entry-copy h3{color:#d5a078}
.entry-copy button{border-color:#b98361;background:#9b6048}
.entry-close{background:#353c38;color:#f2e6d6}
.entry-date{color:#abbab4}
.site-footer{background:#171e1e;border-top:1px solid #68513f;color:#cabfae}
@media(max-width:800px){.map-legend{right:12px;bottom:70px;width:190px}.map-caption{bottom:48px;left:12px;max-width:calc(100% - 220px);line-height:1.35}.leaflet-control-scale{margin-left:12px!important}.site-header{box-shadow:inset 0 3px #43352b}}
@media(max-width:520px){.map-caption{max-width:calc(100% - 30px);bottom:37px;font-size:8px;padding:6px}.map-legend{bottom:93px}.map-topline{font-size:8px;max-width:calc(100% - 30px)}}

/* Chapters on the left, selected field notes on the right. */
.workspace{grid-template-columns:minmax(250px,285px) minmax(330px,1fr) minmax(320px,370px)}
.chapter-rail{min-width:0;min-height:0;overflow-y:auto;display:flex;flex-direction:column;padding:28px 19px 22px;background:radial-gradient(circle at 5% 12%,#403429,#2a2825 48%,#202728 100%);border-right:1px solid #876447;box-shadow:inset -5px 0 12px #17141466}
.chapter-list{margin-top:0;gap:10px}
.chapter-card{border:1px solid #5d5145;background:#252a28;box-shadow:inset 0 1px #6a5540}
.chapter-card:first-child{margin-bottom:11px}
.chapter-list .chapter-card button{border:0;margin:0;border-left:3px solid transparent;background:transparent;padding:14px 14px 13px;width:100%}
.chapter-list .chapter-card button:hover{background:#3b3931}
.chapter-list .chapter-card button.active{border-left-color:#d3a075;background:#42362d;padding-left:14px}
.chapter-list .journey-card button.active{border-left-color:#a9c9c5;background:#304246}
.chapter-card .chapter-index{font-size:10px;line-height:1.2}
.chapter-card .chapter-name{font-size:16px;line-height:1.32;margin-top:6px}
.journey-card .chapter-index{font-size:11px;color:#bad5d0}
.journey-card .chapter-name{font-size:18px;color:#f0e6d4}
.route-stats{border-top:1px solid #5b574e;padding:11px 11px 13px;background:#202825}
.route-stats .stats-grid{border:0;padding:0;gap:13px 8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.route-stats .stat-tile{display:grid;gap:3px;min-width:0;align-content:start}
.route-stats .stat-tile strong{font-size:15px;line-height:1.15;color:#f1e5d3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.route-stats .stat-tile span{font-size:9px;letter-spacing:.08em;color:#adafa7;text-transform:uppercase;line-height:1.3}
.route-stats p{font-size:10px;line-height:1.4;color:#b6b8ae;margin-top:14px;border-top:1px solid #4b5048;padding-top:10px}
.chapter-rail .panel-footer{margin-top:auto;padding-top:24px;border:0}
.chapter-rail .panel-footer>p{line-height:1.5}
.story-panel{padding:29px 25px 22px}
.story-panel .panel-top{padding-bottom:15px;border-bottom:1px solid #6a5848}
.add-note-button{width:100%;text-align:center;margin-top:16px;font-size:12px;padding:12px 14px;letter-spacing:.02em}
.note-prompt{font-size:11px;line-height:1.5;margin-top:12px;color:#e0bc9e}
.note-view{padding-top:24px;flex:1;min-width:0}
.note-view h2{font-size:28px;line-height:1.18;margin:8px 0 7px;color:#f0e2ce;overflow-wrap:anywhere}
.note-date{font-size:11px;color:#aebeb9;line-height:1.4}
.note-photo{margin:20px 0 23px;border:7px solid #493d30;background:#31332c;box-shadow:0 8px 20px #12181585}
.note-photo img{display:block;width:100%;max-height:360px;object-fit:contain;background:#1c2221}
.note-photo figcaption{padding:8px 10px;font-size:10px;line-height:1.35;color:#d0bca5}
.note-label{font-size:10px;color:#d4a17a;letter-spacing:.14em;font-weight:700;padding-top:18px;border-top:1px solid #65594c}
.note-journal{font-family:'Playfair Display',Georgia,serif;font-size:16px;line-height:1.65;color:#e9dfcc;white-space:pre-wrap;margin-top:11px;overflow-wrap:anywhere}
.note-edit{margin-top:21px;padding:0 0 4px;border:0;border-bottom:1px solid #87a8aa;background:none;color:#a9cbcd;font-size:11px;font-weight:700}
.note-edit:hover{color:#e1c09f;border-color:#e1c09f}
.note-welcome{padding:18px 0 0;min-height:280px;background:radial-gradient(ellipse at 70% 92%,#4b3b2f 0%,transparent 48%)}
.note-welcome h2{font-size:29px;max-width:230px}
.note-welcome p{font-size:12px;line-height:1.6;color:#abbcb8;margin-top:12px;max-width:250px}
.detail{padding-top:19px}
.pin-icon>.pin-core{height:23px;width:23px;background:#263533;border:2px solid #fff7ec;border-radius:50%;box-shadow:0 2px 10px #162f3570;transition:transform .2s}
.pin-icon.active>.pin-core{background:#ad6648;transform:scale(1.18)}
.pin-icon.photo .pin-thumb img{display:block}
.raw-recording{border-top:1px solid #4b5048;margin-top:12px;padding-top:10px;color:#afb9b1;font-size:10px;line-height:1.45}
.raw-recording summary{cursor:pointer;color:#b9d0cb;font-weight:700}
.route-stats .raw-recording p{border:0;padding:0;margin-top:7px}
@media(max-width:1160px) and (min-width:801px){.workspace{grid-template-columns:245px minmax(330px,1fr) 330px}.chapter-rail{padding:24px 14px}.story-panel{padding:24px 17px}}
@media(max-width:900px){.site-shell{height:auto;min-height:100dvh;overflow:visible}.workspace{display:flex;flex-direction:column;max-height:none;height:auto;overflow:visible}.map-section{order:0;height:54vh;min-height:410px}.map-section #map{height:100%;min-height:0}.chapter-rail{order:1;overflow:visible;padding:22px 20px}.story-panel{order:2;overflow:visible;padding:24px 20px}.chapter-list{max-width:600px}.chapter-rail .panel-footer{max-width:600px}.note-view,.detail{max-width:600px}.note-welcome{min-height:180px}.story-panel .panel-top{max-width:600px}.add-note-button{max-width:600px}}

/* Field-journal masthead and compact map tools. */
.site-header{height:100px;min-height:100px;padding:0 32px;position:relative}
.brand{min-width:0;gap:17px}
.site-header .brand{color:inherit;text-decoration:none}
.site-header .brand:hover .brand-mark{border-color:#e3b991}
.site-header .brand:focus-visible{outline:3px solid #ef9d79;outline-offset:4px}
.brand-mark{width:58px;height:58px;flex:none;border:1px solid #b8956d;border-radius:50%;background:radial-gradient(circle at 65% 20%,#514436,#242522 68%);box-shadow:inset 0 0 0 4px #282923,inset 0 0 0 5px #83694c,0 2px 12px #0e121277;display:grid;place-items:center;position:relative}
.brand-mark .monogram{position:static;font-family:'Playfair Display',Georgia,serif;font-size:35px;line-height:1;color:#f0dfc4;font-weight:500;transform:translate(-2px,-2px)}
.brand-mark .river-mark{position:absolute;bottom:3px;right:7px;font-family:Georgia,serif;font-size:24px;line-height:1;color:#d6a779;transform:rotate(-25deg)}
.brand-copy{min-width:0}
.brand-copy .eyebrow{display:block;color:#c9a381;font-size:10px;letter-spacing:.23em;line-height:1.35}
.brand-copy h1{margin-top:5px;font-size:31px;line-height:1.1;letter-spacing:-.02em;color:#f1e5d1;white-space:nowrap}
.brand-copy h1 em{font-weight:500;color:#d9a47d}
.header-actions{flex:none}
.header-menu{position:relative}
.header-menu summary{list-style:none;display:flex;align-items:center;gap:16px;padding:11px 15px;border:1px solid #8b6b51;color:#f0dfc9;background:#2a2d2a;font-size:13px;font-weight:700;cursor:pointer;min-height:42px}
.header-menu summary .hamburger{display:flex;flex-direction:column;justify-content:center;gap:5px;width:20px;height:18px;transition:none}
.hamburger i{display:block;height:2px;width:20px;background:#e1bd9b;border-radius:2px}
.header-menu summary::-webkit-details-marker{display:none}
.header-menu summary span{color:#d4ab86;font-size:20px;line-height:.7;transition:transform .2s}
.header-menu[open] summary span{transform:rotate(180deg)}
.header-menu[open] summary .hamburger{transform:none}
.header-menu summary:hover,.header-menu[open] summary{background:#41362e}
.header-menu summary:focus-visible{outline:3px solid #ef9d79;outline-offset:2px}
.header-menu-popover{position:absolute;right:0;top:calc(100% + 10px);width:245px;padding:10px;background:#252b29;border:1px solid #8d7058;box-shadow:0 12px 28px #111816b8;z-index:800;display:grid}
.header-menu-popover .menu-label{font-size:10px;font-weight:700;letter-spacing:.14em;color:#cda078;padding:10px 9px 5px}
.header-menu-popover .menu-label:not(:first-child){border-top:1px solid #554e42;margin-top:7px}
.header-menu-popover button{border:0;background:none;color:#efe0ca;padding:11px 9px;text-align:left;font-size:13px;line-height:1.25;cursor:pointer}
.header-menu-popover a{display:block;text-decoration:none;background:none;color:#efe0ca;padding:11px 9px;text-align:left;font-size:13px;line-height:1.25}
.header-menu-popover button:hover,.header-menu-popover button:focus-visible{background:#3d433d}
.header-menu-popover a:hover,.header-menu-popover a:focus-visible{background:#3d433d}
.header-menu-popover button:disabled{opacity:.45;cursor:default}
.header-menu-popover small{color:#aebbb4;font-size:11px;line-height:1.45;padding:9px 9px 4px}
@media(max-width:900px){.site-header{padding:0 20px;flex-direction:row;align-items:center}.header-actions{width:auto;margin-left:auto;flex-wrap:nowrap}.brand-copy h1{font-size:27px}}
@media(max-width:650px){.site-header{height:auto;min-height:0;padding:15px 18px;align-items:center;flex-direction:row;gap:12px}.brand{gap:10px}.brand-mark{width:46px;height:46px}.brand-mark .monogram{font-size:28px}.brand-mark .river-mark{font-size:18px;bottom:2px;right:6px}.brand-copy .eyebrow{font-size:8px;letter-spacing:.13em}.brand-copy h1{font-size:21px;white-space:normal}.header-actions{width:auto;margin-left:auto}.header-menu summary{padding:9px 10px;min-height:38px;font-size:11px;gap:6px}.header-menu-popover{right:0}}
@media(max-width:400px){.site-header{align-items:flex-start}.brand-copy h1{font-size:18px}.header-menu summary{white-space:nowrap}.header-menu-popover{right:-6px}}
.info-dialog{width:min(520px,calc(100vw - 32px));max-height:80dvh;overflow:auto;border:1px solid #99795c;border-radius:3px;padding:37px 32px 32px;background:#272b28;color:#eee4d4;box-shadow:0 20px 70px #091a1ba6}
.info-dialog::backdrop{background:#0c2020b8}
.info-dialog .eyebrow{color:#d5a078;font-size:10px}
.info-dialog h2{font-size:30px;line-height:1.2;margin:12px 40px 16px 0}
.info-dialog p{font-size:16px;line-height:1.65;color:#d9d5c9}
