/* Photo-first Mayfly field ID. Photos are real CC-licensed source specimens. */
.hero.hero-with-reference .hero-inner{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:center}
.hero .hero-copy{min-width:0}
.hero-reference{margin:0;position:relative;background:#234b3c;border-radius:11px;overflow:hidden;height:177px;box-shadow:0 13px 24px #00170f20}
.hero-reference img{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 33%;filter:saturate(.83)}
.hero-reference figcaption{position:absolute;left:0;right:0;bottom:0;padding:20px 9px 8px;background:linear-gradient(transparent,#082820e8);color:#fff;font-size:10px;text-align:left}
.hero-reference a{color:#e9f5e9}
.id-feature-panel{border-color:#cfe0d1;overflow:hidden}
.id-feature-panel .id-intro{max-width:880px;color:#576c5b;font-size:13px}
.id-photo-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}
.id-card{background:#fbfcfa;border:1px solid #dce6dc;border-radius:10px;overflow:hidden;min-width:0;transition:box-shadow .18s,border-color .18s}
.id-card.picked{border-color:#659a79;box-shadow:0 0 0 2px #c6e4cf}
.id-card .id-photo{height:133px;background:linear-gradient(115deg,#ddedde,#c8d9c9);display:block;position:relative;overflow:hidden}
.id-card .id-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;position:relative;z-index:1}
.id-photo-fallback{position:absolute;inset:13px;color:#55735d;font-size:12px}
.id-stage{position:absolute;z-index:2;left:8px;bottom:8px;color:#fff;background:#143b34ed;border:1px solid #ffffff80;padding:4px 7px;border-radius:4px;font-size:10px;font-weight:800;letter-spacing:.025em;box-shadow:0 2px 8px #173e3566}
.id-card-inner{padding:12px}
.id-season{font-size:10px;font-weight:850;letter-spacing:.055em;text-transform:uppercase;color:#507d67;margin:0 0 7px}
.id-card h3{font:normal 20px/1.2 Georgia,serif;color:#1c4b39;margin:0}
.id-latin{font-size:11px;color:#6b816e;font-style:italic;margin-top:2px;min-height:33px}
.id-keyline{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}
.id-keyline span{border:1px solid #e2e9dc;padding:4px 6px;background:#f3f8ef;border-radius:4px;font-size:10px;color:#566b5f}
.id-card p{font-size:12px;color:#526c5d;line-height:1.5;min-height:93px;margin:7px 0}
.id-card button{display:block;background:#1c684e;border:none;border-radius:6px;color:#fff;cursor:pointer;min-height:39px;padding:9px;font-weight:800;font-size:11px;width:100%;text-align:center}
.id-card button:hover{background:#205b49}
.id-credit{display:block;font-size:9px;line-height:1.4;color:#718577;margin-top:7px}
.id-credit a{color:#347358}
.id-method{display:grid;grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr);gap:16px;border-top:1px solid #e0e8dd;padding-top:14px}
.id-clue-guide,.id-private-photo{background:#f4f8f2;border-radius:9px;padding:16px;border:1px solid #dde9de}
.id-method h3{font-size:16px;margin:0 0 8px;color:#254f3c}
.id-fields{display:flex;flex-wrap:wrap;gap:10px}
.id-fields label{flex:1 1 116px;display:block;color:#4b6958;font-size:11px;font-weight:750}
.id-fields select{width:100%;display:block;margin-top:4px;appearance:auto;padding:9px;border:1px solid #bed6c4;border-radius:6px;background:white;color:#244732;font-size:12px}
.id-results{margin-top:12px;font-size:12px;color:#456750}
.id-results strong{display:block;margin-bottom:6px}
.id-results button{display:inline-block;margin:0 5px 7px 0;border:1px solid #a8cbb3;color:#265945;background:#e5f2e5;padding:7px 9px;border-radius:6px;min-height:36px;font-weight:750;cursor:pointer;font-size:11px}
.id-results p{font-size:11px;color:#657868;margin:4px 0}
.id-private-photo input{display:block;margin-top:6px;font-size:12px;max-width:100%}
#idPhotoPreview{display:block;max-width:100%;max-height:210px;object-fit:contain;margin:9px auto;background:#eef5ec;border-radius:6px}
#idPhotoPreview[hidden]{display:none}
#idPhotoClear{border:1px solid #b7d1c0;background:#fff;color:#246249;border-radius:6px;padding:7px 12px;font-weight:650;cursor:pointer;min-height:36px}
.id-tip{font-size:11px;color:#668172;line-height:1.6;margin:10px 0 0}
.id-science{font-size:11px;color:#607a6a;border-left:3px solid #c49b5a;padding:8px 12px;background:#fcfaf2;margin:12px 0 0}
@media(max-width:1100px){.id-photo-row{grid-template-columns:repeat(3,minmax(0,1fr))}.id-card p{min-height:55px}}
@media(max-width:740px){.hero.hero-with-reference .hero-inner{grid-template-columns:1fr}.hero-reference{height:170px;max-width:480px}.id-method{grid-template-columns:1fr}.id-photo-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.id-photo-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(225px,82%);grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 3px 10px}.id-card{scroll-snap-align:start}.id-card .id-photo{height:170px}.id-card p{min-height:65px}.hero-reference{height:154px}}


/* River-first photographic hero. Real first-party USFS image, not an AI
   illustration or current hatch claim. High contrast across breakpoints. */
.hero.hero-with-reference{position:relative;isolation:isolate;overflow:hidden;background:#102e26}
.hero.hero-with-reference .hero-landscape{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:50% 48%;filter:saturate(.93)}
.hero.hero-with-reference::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(6,29,24,.94) 0%,rgba(9,40,31,.89) 32%,rgba(11,44,33,.68) 59%,rgba(8,25,20,.24) 100%),linear-gradient(0deg,rgba(7,29,23,.72),transparent 55%)}
.hero.hero-with-reference .hero-inner{display:flex;flex-direction:column;justify-content:center;align-items:stretch;grid-template-columns:none;gap:0;min-height:350px;max-width:1210px;padding:36px 20px 52px;position:relative;z-index:2}
.hero.hero-with-reference .hero-copy{max-width:845px}
.hero.hero-with-reference h1{font-size:clamp(36px,5.1vw,63px);line-height:1.08;max-width:780px;letter-spacing:-.025em;margin:10px 0 9px;text-shadow:0 2px 14px #041f1aba}
.hero.hero-with-reference .hero-storyline{font:normal clamp(18px,2.15vw,25px)/1.25 Georgia,serif;color:#f6d5a1;margin:0 0 11px;max-width:none}
.hero.hero-with-reference .hero-copy>p:not(.hero-storyline){max-width:725px;font-size:14px;line-height:1.6;color:#e6f1e7;margin:0}
.hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin:19px 0 0}
.hero-action{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:10px 16px;border-radius:7px;text-decoration:none;font-size:13px;font-weight:800;transition:background .15s,border-color .15s}
.hero-action.primary{color:#143a2c;background:#f2d19a}
.hero-action.primary:hover{background:#ffe3b3}
.hero-action.secondary{color:#fff;border:1px solid #ffffffb8;background:#173d30bb}
.hero-action.secondary:hover{background:#235842}
.hero.hero-with-reference .hero-photo-credit{position:absolute;bottom:9px;right:20px;max-width:500px;text-align:right;color:#e6ece0;font-size:10px;line-height:1.3;margin:0}
.hero.hero-with-reference .hero-photo-credit a{color:#f8e2bf;text-decoration:underline}

/* Visible at the TOP, not buried beneath the data dashboard. Every quick fly
   is a real self-hosted specimen and a working link into the identification. */
.hatch-quicklook{background:#f1f6ef;border-bottom:1px solid #d7e4d7}
.hatch-quick-inner{max-width:1210px;margin:0 auto;padding:16px 17px 18px}
.quick-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 11px;flex-wrap:wrap}
.quick-head h2{font:normal 23px/1.25 Georgia,serif;margin:0;color:#244837}
.quick-head span{font-size:12px;color:#627d6d}
.hatch-quick-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.hatch-quick-grid>a{display:flex;flex-direction:column;min-width:0;border-radius:8px;overflow:hidden;text-decoration:none;color:#194735;border:1px solid #d1dfd3;background:#fff;box-shadow:0 2px 6px #092e1610;transition:transform .13s,border-color .13s}
.hatch-quick-grid>a:hover,.hatch-quick-grid>a:focus-visible{border-color:#36795b;transform:translateY(-2px)}
.hatch-quick-grid img{display:block;width:100%;height:109px;object-fit:cover}
.quick-name{display:block;font-size:13px;font-weight:800;padding:8px 9px 0}
.quick-month{display:block;font-size:10px;color:#667e6d;padding:1px 9px 9px}
.map-panel{scroll-margin-top:16px}
.map-panel #riverMap{height:430px!important;position:relative;z-index:0;background:#ebf3eb;border:1px solid #cedfd1;border-radius:9px;overflow:hidden}
.map-live-indicator{background:#edf7ee;color:#285b40;border:1px solid #cbe2d1;border-radius:6px;padding:6px 10px;font-weight:750;font-size:11px}
.map-key{display:flex;flex-wrap:wrap;gap:17px;align-items:center;margin:12px 0 0;color:#466853;font-size:11px}
.map-key>span{display:inline-flex;align-items:center;gap:6px}
.map-dot{display:inline-block;width:11px;height:11px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #b5c9b8}
.map-dot.fresh{background:#25644f}
.map-dot.missing{background:#7c8e87}
.map-dot.selected{background:#b17b3f}
.map-provider-note{font-size:11px;color:#6b7f6f;margin:8px 0 0;line-height:1.5}
.map-provider-note a{color:#346d55}
@media(max-width:820px){
 .hatch-quick-grid{grid-auto-flow:column;grid-auto-columns:minmax(180px,32%);grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 12px}
 .hatch-quick-grid>a{scroll-snap-align:start}
 .hero.hero-with-reference .hero-inner{min-height:335px}
 .map-panel #riverMap{height:385px!important}
}
@media(max-width:540px){
 .hero.hero-with-reference .hero-inner{min-height:390px;padding:29px 15px 45px}
 .hero.hero-with-reference h1{font-size:37px}
 .hero.hero-with-reference::before{background:linear-gradient(90deg,#0b2721ed,#0b2920b4 82%),linear-gradient(0deg,#0b241bcc,transparent 65%)}
 .hero.hero-with-reference .hero-photo-credit{text-align:left;left:15px;right:15px;bottom:8px;font-size:9px}
 .hatch-quick-inner{padding:14px 10px 11px}
 .quick-head h2{font-size:21px}
 .hatch-quick-grid{grid-auto-columns:minmax(172px,70%)}
 .hatch-quick-grid img{height:120px}
 .map-panel #riverMap{height:355px!important}
 .map-key{gap:10px}
}
