/* ULAngler shared design library: tokens, navigation, controls and community components. */
:root{color-scheme:dark;--ink:#f4f6f2;--water:#8bd63f;--paper:#061312;--surface:#0d201d;--muted:#aec0b8;--line:#294038;--bs-body-color:var(--ink);--bs-body-bg:var(--paper);--bs-secondary-color:var(--muted);--bs-border-color:var(--line)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.6}a{color:var(--water);text-underline-offset:5px}a:hover{color:#b4ed7d}h1,h2,h3{color:var(--ink)}h1,h2,h3,p{overflow-wrap:anywhere}h1,h2{font-weight:800}h2{font-size:1.7rem}button,input,select,textarea{font:inherit}:focus-visible{outline:2px solid var(--water);outline-offset:5px}.app-shell{display:flex;flex-direction:column;min-height:100vh}.content{width:100%;max-width:1280px;margin:auto;padding:3rem 2rem;flex:1}.content:has(.home-page){max-width:none;padding:0}.site-header{display:flex;align-items:center;gap:2rem;min-height:100px;padding:.5rem max(2rem,calc((100vw - 1440px)/2));border-bottom:1px solid var(--line);background:#051211}.brand{flex-shrink:0}.brand img{display:block;width:160px;height:90px;object-fit:contain}.main-nav{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:wrap;gap:1.1rem;margin:0;flex:1}.main-nav a,.logout{color:var(--ink);font-size:.75rem;letter-spacing:.09em;text-transform:uppercase;text-decoration:none;padding:.5rem 0;background:none;border:0}.main-nav a.active{background:none;border-radius:0;border-bottom:1px solid var(--water);color:var(--water)}.main-nav form{margin:0}.language-picker{margin:0;flex-wrap:nowrap;gap:.3rem}.language-picker button{color:var(--muted);border-color:var(--line);font-size:.7rem;padding:.25rem .4rem}.language-picker button[aria-pressed=true]{background:var(--water);color:var(--paper)}.hero{position:relative;min-height:0;padding:3rem max(2rem,calc((100vw - 1280px)/2)) 2rem;background:linear-gradient(90deg,rgba(0,10,9,.6),transparent 80%),url('/images/freshwater-angler.png') center 58%/cover}.hero-copy{max-width:590px}.hero h1{margin:0}.hero h1 img{width:min(100%,520px);height:auto;max-height:140px;object-fit:contain;object-position:left}.hero .slogan{margin:.6rem 0 1.5rem;font-size:1rem}.slogan{letter-spacing:.19em;font-size:.85rem;font-weight:600}.slogan span,.banner-motto span{color:var(--water)}.accent-line{height:2px;width:75px;background:var(--water);margin:1.8rem 0}.hero h2{font-size:1.35rem;font-weight:600;letter-spacing:.26em;line-height:1.7}.hero-copy>p:not(.slogan){max-width:370px;color:#e4e8e3}.hero-actions{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.8rem}.btn{border-radius:5px;padding:.8rem 1.2rem;font-weight:700;font-size:.75rem;letter-spacing:.12em;text-transform:uppercase}.btn-primary{background:var(--water);border-color:var(--water);color:#07120a}.btn-primary:hover,.btn-primary:active{background:#a2e664;border-color:#a2e664;color:#07120a}.btn-outline-primary{color:var(--ink);border-color:var(--water);background:#06131266}.btn-outline-primary:hover{background:var(--water);border-color:var(--water);color:#07120a}.btn span{margin-left:.75rem}.values-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;padding:1.5rem max(2rem,calc((100vw - 1280px)/2));border-bottom:1px solid var(--line);background:#081a17}.values-strip>div{display:flex;gap:1rem;align-items:center}.value-symbol{font-size:2.5rem;color:var(--water)}.values-strip strong{display:block;text-transform:uppercase;font-size:.75rem;letter-spacing:.12em}.values-strip small{color:var(--muted);font-size:.8rem}.home-community{max-width:1344px;margin:auto;padding:3.5rem 2rem;display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:2rem}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.section-heading h2,.leaderboard h2{text-transform:uppercase;font-style:italic;margin:0}.section-heading>a,.text-link{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em}.eyebrow{color:var(--water);font-size:.67rem;letter-spacing:.22em;font-weight:600;margin-bottom:.5rem}.latest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.catch-card{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:1.5rem;margin:1rem 0}.home-catch{margin:0;display:flex;flex-direction:column;border-top:2px solid #60833f}.catch-heading{display:flex;justify-content:space-between;gap:1rem;color:var(--water)}.home-catch h3{font-size:1.5rem;margin:.7rem 0}.home-catch h3 a{color:var(--ink);text-decoration:none}.catch-measurements{font-size:.8rem;color:var(--muted)}.catch-notes{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.85rem}.poster-link{display:flex;align-items:center;gap:.7rem;margin-top:auto;padding-top:1rem;border-top:1px solid var(--line);font-size:.8rem;color:var(--ink);text-decoration:none}.avatar{width:32px;height:32px;border-radius:50%;background:#293e29;color:var(--water);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.8rem;font-weight:700}.leaderboard{padding:1.8rem;border:1px solid var(--line);border-radius:6px;align-self:start;background:linear-gradient(135deg,#12251c,#081714)}.muted{color:var(--muted);font-size:.8rem;margin-top:.6rem}.ranking-list{padding:0;list-style:none;counter-reset:rank;margin:1.5rem 0}.ranking-list li{counter-increment:rank;display:flex;align-items:center;gap:.7rem;border-bottom:1px solid var(--line);padding:1rem 0}.ranking-list li:before{content:counter(rank,decimal-leading-zero);color:var(--muted);font-size:.75rem}.ranking-list li:first-child:before{color:var(--water)}.ranking-list a{display:flex;align-items:center;gap:.7rem;color:var(--ink);text-decoration:none;flex:1;min-width:0}.poster-name{flex:1;overflow-wrap:anywhere;font-size:.85rem}.ranking-list strong{text-align:right;color:var(--water)}.ranking-list small{display:block;font-weight:400;font-size:.6rem;color:var(--muted)}.empty-state{border:1px solid var(--line);padding:3rem 2rem;background:radial-gradient(ellipse at top right,#203928,#0b1b18);min-height:270px}.empty-state p,.ranking-empty{color:var(--muted)}.empty-mark{display:block;color:var(--water);font-size:2rem}.community-banner{display:flex;justify-content:space-between;align-items:center;gap:3rem;padding:4rem max(2rem,calc((100vw - 1280px)/2));border-top:1px solid var(--line);background:linear-gradient(90deg,#071511 25%,#071511b0),url('/images/coastal-angler.png') center 40%/cover}.community-banner>div{max-width:480px}.community-banner h2{font-size:2.2rem;font-style:italic;line-height:1.15}.community-banner p:not(.eyebrow){color:var(--muted)}.community-banner .banner-motto{font-size:clamp(1.5rem,3vw,3rem);line-height:1.3;font-style:italic;font-weight:800;color:var(--ink)}.site-footer{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:2.5rem max(2rem,calc((100vw - 1280px)/2));border-top:1px solid var(--line);background:#030e0c}.footer-logo img{object-fit:contain}.site-footer>div{text-align:center}.site-footer .slogan{margin-bottom:0}.site-footer>a:last-child{font-size:.8rem}.form-control,.form-select{background:#10231f;color:var(--ink);border-color:#496157}.form-control:focus,.form-select:focus{background:#10231f;color:var(--ink);border-color:var(--water);box-shadow:0 0 0 .2rem #8bd63f33}.form-control::placeholder{color:#9baea4}.validation-message,.validation-errors{color:#ff9d9d}label{display:block;margin:1rem 0;max-width:620px}.form-floating>label{margin:0}fieldset{margin:1.5rem 0}.skip-link{position:fixed;top:-100px;left:1rem;z-index:2000;background:var(--water);color:#061312;padding:.5rem 1rem}.skip-link:focus{top:1rem}#blazor-error-ui{color:#231b04}

.form-floating:has(>.password-toggle)>.form-control{padding-right:3.2rem}.form-floating>.password-toggle{position:absolute;top:0;right:.35rem;z-index:3;display:grid;place-items:center;width:2.5rem;height:3.5rem;padding:0;border:0;background:transparent;color:var(--muted);cursor:pointer}.password-toggle:hover{color:var(--water)}.password-toggle svg{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.password-toggle .password-eye-slash{display:none}.password-toggle[aria-pressed=true] .password-eye-slash{display:block}
@media(max-width:1100px){.site-header{gap:1rem;padding:.5rem 1rem}.main-nav{gap:.8rem}.brand img{width:130px}.home-community{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}.latest-grid{grid-template-columns:1fr}}
@media(max-width:760px){.site-header{flex-wrap:wrap;justify-content:space-between}.brand img{width:125px;height:75px}.main-nav{order:3;flex-basis:100%;gap:.6rem 1rem;padding-bottom:.7rem}.main-nav a,.logout{font-size:.67rem}.hero{min-height:0;padding:2rem 1.3rem 1.5rem;background-position:65% center}.hero-copy{max-width:450px}.hero h1 img{max-width:340px}.hero .slogan{font-size:.75rem}.hero h2{font-size:1.1rem}.hero-copy>p:not(.slogan){max-width:290px}.values-strip{grid-template-columns:1fr;padding:1rem 1.3rem;gap:.8rem}.value-symbol{font-size:1.8rem}.home-community{grid-template-columns:1fr;padding:2rem 1.3rem}.section-heading{align-items:start}.section-heading h2,.leaderboard h2{font-size:1.4rem}.section-heading>a{max-width:100px;text-align:right}.community-banner{padding:3rem 1.3rem}.banner-motto{display:none}.site-footer{flex-direction:column;padding:2rem 1.3rem;gap:1rem}.site-footer .slogan{font-size:.7rem}.content{padding:2rem 1.3rem}.empty-state{padding:2rem 1.3rem}.feature-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Shared grid rows align headings, card tops and footer links across all three columns. */
.home-community{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto auto;row-gap:1.5rem}
.home-community .latest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-community .home-challenges{max-width:none;margin:0;padding:0}
.home-community .challenge-grid{grid-template-columns:minmax(0,1fr);margin:0}
.latest-catches,.home-challenges,.top-posters{display:grid;grid-template-rows:subgrid;grid-row:span 3;min-width:0}
.home-community .section-heading{margin:0;align-items:flex-start}
.home-community .section-heading .muted{margin-bottom:0}
.latest-content>.latest-grid{height:100%}
.top-posters>.leaderboard{align-self:stretch}
.leaderboard>.ranking-list{margin:0}
.community-section-footer{align-self:end}
@media(max-width:1000px){
    .home-community{grid-template-columns:1fr;grid-template-rows:none;row-gap:2rem}
    .latest-catches,.home-challenges,.top-posters{grid-template-rows:auto auto auto;grid-row:auto;gap:1.5rem}
}





/* Accessible mobile navigation; the desktop menu remains horizontal. */
.mobile-menu-toggle{display:none}
.header-action{flex-shrink:0;min-height:40px;padding:.45rem .7rem;border:1px solid var(--water);border-radius:5px;background:transparent;color:var(--ink);font-size:.68rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.header-action:hover{background:var(--water);color:#07120a}.header-action.is-enabled{background:var(--water);color:#07120a}.header-action:disabled{opacity:.55;cursor:not-allowed}
.install-action{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;background:var(--water);color:#07120a}.install-action:hover{background:#a2e664}.install-action-icon{width:1.4rem;height:1.4rem;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.notification-action{display:inline-flex;align-items:center;gap:.5rem;flex-shrink:0;min-height:40px;padding:0;border:0;background:none;color:#fff;font-size:.75rem;letter-spacing:.07em;text-transform:uppercase;cursor:pointer}.notification-action[hidden]{display:none}.notification-action:disabled{opacity:.55;cursor:not-allowed}.notification-switch{position:relative;width:2.25rem;height:1.2rem;border:1px solid var(--muted);border-radius:999px;background:var(--line);transition:background-color .2s,border-color .2s}.notification-switch-knob{position:absolute;top:2px;left:2px;width:.85rem;height:.85rem;border-radius:50%;background:var(--ink);box-shadow:0 1px 3px #0008;transition:transform .2s}.notification-action.is-enabled .notification-switch{border-color:var(--water);background:#315c19}.notification-action.is-enabled .notification-switch-knob{transform:translateX(1rem);background:var(--water)}.notification-action:hover .notification-switch,.notification-action:focus-visible .notification-switch{border-color:var(--water)}
@media(max-width:760px){
    .site-header{gap:.5rem;min-height:90px}
    .site-header>.brand{margin-right:auto}
    .site-header>.language-picker{order:1}
    .site-header>.install-action{display:inline-flex;order:1;min-height:44px}
    .site-header>.notification-action{display:none;order:4;flex-basis:100%;text-align:left}
    .mobile-menu-toggle{order:2;display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.5rem .65rem;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:5px;font-size:.75rem}
    .hamburger-icon{display:flex;flex-direction:column;justify-content:space-between;width:20px;height:16px}
    .hamburger-icon span{display:block;width:20px;height:2px;background:var(--water)}
    .mobile-menu-toggle[aria-expanded=true] .hamburger-icon span:first-child{transform:translateY(7px) rotate(45deg)}
    .mobile-menu-toggle[aria-expanded=true] .hamburger-icon span:nth-child(2){opacity:0}
    .mobile-menu-toggle[aria-expanded=true] .hamburger-icon span:last-child{transform:translateY(-7px) rotate(-45deg)}
    .site-header>.main-nav{display:none}
    .mobile-menu-toggle[aria-expanded=true]~.main-nav{display:flex;flex-direction:column;align-items:stretch;gap:0;flex-basis:100%;order:3;border-top:1px solid var(--line);padding:.5rem 0}
    .mobile-menu-toggle[aria-expanded=true]~.notification-action:not([hidden]){display:flex;flex-basis:auto}
    .site-header>.main-nav a,.site-header>.main-nav .logout{display:block;width:100%;min-height:44px;padding:.8rem .5rem;text-align:left;font-size:.75rem}
}
/* Uploaded photographs use lightweight thumbnails in all lists. */
.catch-photo-link{display:block;margin-bottom:1rem}
.catch-thumbnail{width:100%;max-width:480px;aspect-ratio:4/3;object-fit:cover;border-radius:4px;background:var(--paper)}
.home-catch .catch-thumbnail{max-width:none}
.catch-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:1.5rem;margin:1.5rem 0}
.catch-gallery img{display:block;width:100%;max-height:75vh;object-fit:contain;background:var(--surface);border-radius:6px}
.catch-gallery figcaption{color:var(--muted);padding:.5rem 0}
.upload-list{display:grid;gap:.65rem;max-width:620px;margin-top:.75rem}
.upload-item{border:1px solid var(--line);border-radius:6px;padding:.75rem;overflow-wrap:anywhere}
.upload-item>span{display:block;font-size:.8rem;color:var(--muted);margin-bottom:.35rem}
.upload-item-controls{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;align-items:center;gap:.45rem}
.upload-item-controls .form-control{width:100%;min-width:0}
.upload-item-action{display:grid;place-items:center;width:44px;height:44px;padding:0;font-size:1.55rem;line-height:1}
.upload-item-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.catch-photo-preview-overlay{cursor:default}
.catch-photo-preview-panel{width:min(100%,720px);max-height:calc(100dvh - 3rem);padding:1rem;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 64px #0008;overflow:auto}
.catch-photo-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.65rem}
.catch-photo-preview-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}
.catch-photo-preview-close{flex:none;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--ink);font-size:1.5rem;line-height:1;cursor:pointer}
.catch-photo-preview-panel img{display:block;max-width:100%;max-height:calc(100dvh - 8rem);margin:auto;object-fit:contain;border-radius:6px}
.location-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin:1rem 0; }
.location-map { height:360px; width:100%; border:1px solid var(--ul-lime, #8ed82c); border-radius:4px; margin-bottom:1rem; z-index:0; }
.location-map[hidden] { display:none; }
.location-map-container { position:relative }
.location-map-container [data-gps] { position:absolute;top:10px;right:10px;z-index:1001;box-shadow:0 2px 8px #0008 }
.location-map-container .location-map[hidden] + [data-gps] { display:none }
.location-picker { min-width:0; }
.location-precision { border:0; padding:0; margin:1rem 0; }
.location-precision legend { float:none; width:auto; font-size:1rem; margin-bottom:.65rem; }
.location-precision-options { display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; }
.location-precision-options label { display:inline-flex; align-items:center; gap:.5rem; margin:0; cursor:pointer; }
.location-precision-options input { width:1rem; height:1rem; margin:0; accent-color:#8ed82c; flex-shrink:0; }
.location-picker [data-status] { margin:1rem 0; }
@media(max-width:760px) { .location-map { height:300px; } }
.catch-map { height:440px; width:100%; border-radius:6px; border:1px solid #496047; z-index:0; }
.catch-map-section { margin:2rem 0; }
.catch-map-preview { position:relative; display:grid; place-items:center; min-height:340px; overflow:hidden; border:1px solid #496047; border-radius:6px; isolation:isolate; background:#dbe8d1; }
.catch-map-preview::before { content:""; position:absolute; inset:-12px; z-index:-2; background:url('/images/catch-map-preview.jpg') center center/cover no-repeat; filter:blur(4px); }
.catch-map-preview::after { content:""; position:absolute; inset:0; z-index:-1; background:rgba(5,18,17,.18); }
.catch-map-preview>p { max-width:min(90%,460px); margin:1rem; padding:1.3rem 1.6rem; border-radius:6px; background:rgba(5,18,17,.9); color:#fff; text-align:center; font-weight:600; }
.catch-map-preview>p a { color:var(--water); }
.catch-map-preview-credit { position:absolute; right:5px; bottom:4px; padding:0 .3rem; background:rgba(255,255,255,.88); color:#263e36; font-size:.65rem; }
.map-filters { display:flex; gap:1rem; flex-wrap:wrap; }
.map-filters label { display:flex;align-items:center;gap:.75rem;flex:0 1 390px;min-width:0;max-width:100%;margin:.35rem 0 }
.map-filters label .form-select { flex:1;min-width:0 }
.map-filters + .catch-map-section { margin-top:.5rem }
.map-filters + .catch-map-section .map-count-row { margin:.25rem 0 .6rem }
.catch-detail-heading { display:flex; align-items:center; gap:1rem; }
.catch-detail-heading h1 { margin-bottom:0; }
.catch-detail-actions { display:flex; align-items:center; gap:.7rem; margin:.7rem 0 1rem; }
.catch-detail-actions .btn { padding:.45rem .75rem; font-size:.7rem; }
.catch-delete-button { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; color:var(--muted); border:1px solid var(--line); border-radius:4px; background:transparent; cursor:pointer; }
.catch-delete-button:hover { color:#f39b94; border-color:#f39b94; }
.catch-like-button { appearance:none; display:inline-flex; align-items:center; gap:.35rem; border:0; background:none; color:#fff; font-size:1.5rem; line-height:1; padding:0; cursor:pointer; flex:none; }
.catch-like-button.is-liked { color:#4caf50; }
.catch-like-button:disabled { cursor:default; }
.catch-favorite-star { appearance:none; border:0; background:none; color:#fff; font-size:2.5rem; line-height:1; padding:0; cursor:pointer; flex:none; }
.catch-favorite-star.is-favorite { color:var(--water); }
.catch-favorite-star:disabled { opacity:.6; cursor:wait; }
.map-count-row { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem 1.25rem; margin:1rem 0; }
.map-count-row p { margin:0; }
.map-favorites-filter { display:inline-flex; align-items:center; gap:.4rem; padding:0; border:0; background:none; color:var(--ink); cursor:pointer; }
.map-favorites-star { color:#fff; font-size:1.65rem; line-height:1; }
.map-favorites-star.is-favorite { color:var(--water); }
.fish-map-marker { background:transparent; border:0; filter:drop-shadow(0 2px 3px #0008); }
.fish-map-marker img { width:56px; height:56px; object-fit:contain; display:block; }
.fish-map-marker b { position:absolute; right:-9px; top:-9px; background:#8ed82c; color:#102921; border-radius:50%; min-width:20px; text-align:center; }
.catch-map-popup { max-height:220px; overflow:auto; min-width:160px; color:#152e29; }
.catch-map-popup a { display:block; padding:5px 0; color:#285d38; }
.map-list-panel { margin-top:.75rem; border:1px solid var(--line); border-radius:6px; background:var(--surface); overflow:hidden; }
.map-list-panel summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 1rem; color:var(--ink); font-size:.85rem; font-weight:700; cursor:pointer; list-style:none; }
.map-list-panel summary::-webkit-details-marker { display:none; }
.map-list-panel summary:hover { color:var(--water); }
.map-list-chevron { width:.55rem; height:.55rem; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); transition:transform .15s; }
.map-list-panel[open] .map-list-chevron { transform:rotate(225deg); }
.map-catch-list { max-height:300px; overflow:auto; list-style:none; margin:0; padding:0 1rem; border-top:1px solid var(--line); }
.map-catch-list li { display:flex; align-items:stretch; min-width:0; border-bottom:1px solid var(--line); }
.map-catch-list li:last-child { border-bottom:0; }
.map-catch-list li.is-selected .map-catch-link { background:#8bd63f1c; box-shadow:inset 3px 0 var(--water); }
.map-catch-list img { width:42px; height:42px; object-fit:contain; flex:none; }
.map-catch-link { display:flex; align-items:center; gap:.75rem; flex:1; min-width:0; margin-left:-1rem; padding:.7rem 1rem; color:inherit; text-decoration:none; }
.map-catch-link:hover .map-catch-info strong { color:var(--water); text-decoration:underline; }
.map-catch-info { display:flex; flex-direction:column; min-width:0; font-size:.8rem; line-height:1.45; color:var(--muted); overflow-wrap:anywhere; }
.map-catch-info strong { color:var(--ink); font-size:.9rem; }
.map-exact-pin { display:inline-flex; align-items:center; vertical-align:middle; color:var(--water); }
.map-exact-pin svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.map-catch-action { display:flex; align-items:center; flex:none; margin-right:-1rem; padding:.5rem 1rem; border-left:1px solid var(--line); background:#071916; }
.map-catch-focus { display:grid; place-items:center; flex:none; width:38px; height:38px; border:1px solid var(--line); border-radius:5px; background:transparent; color:var(--water); cursor:pointer; }
.map-catch-focus:hover { border-color:var(--water); background:#8bd63f1a; }
.map-catch-focus svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.map-provider-note { font-size:.8rem; margin-top:.5rem; }
.species-illustration { float:right; width:100px; height:100px; object-fit:contain; margin:0 0 .5rem 1rem; }
.location-sharing-controls { margin:1rem 0; }
@media(max-width:760px) { .catch-map { height:340px; } }

.profile-management { display:flex; flex-wrap:wrap; gap:.65rem; margin:1.5rem 0; }
.profile-settings { margin:1.5rem 0; }
.profile-settings h2 { margin:1.25rem 0 .5rem; color:var(--muted); font-size:.85rem; font-weight:700; letter-spacing:.04em; }
.profile-settings-list { overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.profile-settings-row { display:flex; width:100%; min-height:52px; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem 1rem; border:0; border-top:1px solid var(--line); background:transparent; color:var(--ink); font:inherit; font-weight:600; text-align:left; text-decoration:none; cursor:pointer; }
.profile-settings-row:first-child { border-top:0; }
.profile-settings-row:hover, .profile-settings-row:focus-visible { background:var(--surface-alt, #20332d); color:var(--water); }
.profile-settings-row span:last-child { color:var(--water); font-size:1.4rem; line-height:1; }
.home-challenges { max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem; }
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.challenge-card { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.challenge-card p { margin: 0; }
.challenge-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.challenge-badge { display: inline-flex; align-items: center; gap: .9rem; min-width: 0; max-width: 100%; padding-block: .35rem; font-weight: 700; overflow-wrap: anywhere; }
.challenge-medal { position: relative; isolation: isolate; display: inline-grid; place-items: center; flex-shrink: 0; width: 76px; height: 76px; border: 1px solid #77956a; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #304b38, #10271f 65%, #091b16); box-shadow: inset 0 0 0 3px #0c201b, inset 0 0 0 4px #77956a55, 0 4px 12px #0003; }
.challenge-medal::before { content: ""; position: absolute; inset: 7px; z-index: -1; border: 1px solid #b4ce9826; border-radius: 50%; }
.challenge-medal img { display: block; width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 2px 3px #0006); }
.challenge-medal-star { position: absolute; bottom: -5px; left: 50%; display: grid; place-items: center; width: 23px; height: 23px; transform: translateX(-50%); border: 1px solid #77956a; border-radius: 50%; background: #193528; color: #b5d596; box-shadow: 0 0 0 3px var(--surface); font-size: 12px; line-height: 1; }
.challenge-badge.earned .challenge-medal { border-color: #d8bb76; background: radial-gradient(circle at 35% 25%, #4c4830, #1e3023 60%, #10221b); box-shadow: inset 0 0 0 3px #17271e, inset 0 0 0 4px #d8bb7670, 0 4px 14px #0004; }
.challenge-badge.earned .challenge-medal::before { border-color: #e9d69e40; }
.challenge-badge.earned .challenge-medal-star { border-color: #f0dba2; background: linear-gradient(145deg, #f0dba2, #b89149); color: #253022; }
.challenge-progress { display: block; width: 100%; }
.challenge-progress progress { display: block; width: 100%; margin-top: .4rem; accent-color: #93d938; }
.challenge-form { display: grid; gap: 1.1rem; max-width: 680px; border: 0; padding: 0; }
.challenge-form label { display: grid; gap: .4rem; }
.challenge-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.profile-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.profile-badges a { width: 110px; color: var(--ink); text-align: center; text-decoration: none; }
.profile-badges a:hover { color: var(--water); }
.profile-badges .challenge-badge { display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 100%; padding: .2rem 0; font-size: .8rem; line-height: 1.3; }
.profile-badges .challenge-medal { width: 58px; height: 58px; }
.profile-badges .challenge-medal img { width: 46px; height: 46px; }
.profile-badges .challenge-medal-star { width: 19px; height: 19px; font-size: 10px; }
.fishing-diary { display: grid; gap: 1.5rem; }
.diary-header { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.diary-header h1 { margin: .4rem 0 0; }
.diary-header p { margin: .25rem 0 0; color: var(--muted); }
.diary-years { display: flex; flex-wrap: wrap; gap: .5rem; }
.diary-years a { padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.diary-years a.selected { color: var(--paper); background: var(--water); border-color: var(--water); }
.diary-filter { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.diary-filter span { font-weight: 700; }
.diary-filter a { color: var(--water); font-size: .85rem; }
.diary-panel { min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.diary-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.diary-panel h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.diary-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .4rem; height: 200px; }
.diary-month { display: flex; flex-direction: column; justify-content: end; align-items: center; min-width: 0; height: 100%; padding: .25rem 0; border-radius: 5px; color: var(--ink); font-size: .75rem; text-decoration: none; }
.diary-month:hover, .diary-month.selected { background: #294038; color: var(--ink); }
.diary-month.selected .diary-bar { background: #d8bb76; }
.diary-month-count { color: var(--muted); }
.diary-bar { width: min(100%, 30px); min-height: 4px; border-radius: 4px 4px 0 0; background: var(--water); }
.diary-month-name { width: 100%; margin-top: .35rem; text-align: center; color: var(--muted); overflow: hidden; }
.diary-species { margin: 0; padding: 0; list-style: none; }
.diary-species li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.diary-species strong { color: var(--water); }
.diary-days { display: grid; gap: .7rem; }
.diary-day { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.diary-day h3 { margin: 0; font-size: 1rem; }
.diary-day p { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
.diary-day-links { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; }
@media (max-width: 700px) { .diary-columns { grid-template-columns: 1fr; } .diary-chart { gap: .15rem; } .diary-month { font-size: .65rem; } }
.administrator-users { margin-top: 1rem; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.administrator-user { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; min-height: 3.25rem; padding: .45rem .8rem; background: var(--surface); }
.administrator-user + .administrator-user { border-top: 1px solid var(--line); }
.administrator-user-identity, .administrator-user-actions, .administrator-user-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .7rem; }
.administrator-user-identity { min-width: 0; }
.administrator-user-identity a { font-weight: 700; }
.administrator-user-identity span, .administrator-user-actions strong { color: var(--muted); font-size: .8rem; }
.administrator-user-actions { margin-left: auto; }
.administrator-user-actions .btn { padding: .3rem .55rem; font-size: .68rem; letter-spacing: .04em; }
.administrator-user-actions p { margin: 0; font-size: .8rem; }
.administrator-user-actions .profile-management { display: flex; align-items: center; }
.administrator-user-actions .profile-management > div { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
@media (max-width: 600px) { .administrator-user-actions { width: 100%; margin-left: 0; } }
@media (max-width: 480px) { .challenge-dates { grid-template-columns: 1fr; } }
.account-management-content .form-control:disabled,
.account-management-content .form-control[readonly] {
    background-color: #10231f;
    color: var(--muted);
    border-color: #496157;
    opacity: 1;
}
.content .form-floating > .form-control ~ label {
    color: var(--muted);
}
.content .form-floating > .form-control ~ label::after {
    background-color: #10231f;
}
.account-management-content .input-group-text {
    background-color: #10231f;
    color: var(--water);
    border-color: #496157;
}
.account-management-content .btn-link {
    color: var(--water);
}
.profile-management .btn-outline-primary.active {
    background-color: var(--water);
    border-color: var(--water);
    color: #07120a;
}
.location-audience legend { font-size: 1rem; float: none; margin-bottom: .3rem; }
.location-audience-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; max-width: 620px; }
.location-audience-inline .location-audience-row { display: flex; align-items: center; gap: .75rem; white-space: nowrap; }
.location-audience-inline-label { display: inline-flex; align-items: center; gap: .2rem; flex: none; font-size: .85rem; font-weight: 600; }
.location-audience-inline .location-audience-options { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.location-audience-inline .location-audience-options label { white-space: nowrap; }
.location-audience-inline > p { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.location-audience label { display: flex; align-items: center; gap: .55rem; margin: 0; min-width: 0; }
.location-audience .form-check-input { margin: 0; flex-shrink: 0; background-color: #10231f; border-color: #496157; }
.location-audience .form-check-input:checked { background-color: var(--water); border-color: var(--water); }
.location-audience .form-check-input:focus { border-color: var(--water); box-shadow: 0 0 0 .2rem #8bd63f33; }
.location-audience p { color: var(--muted); margin: .5rem 0 0; }
.catch-species-measurements { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 620px; }
.photo-analysis-status, .photo-estimate-help { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.catch-species-measurements > label { min-width: 0; }
.catch-species-measurements .form-control, .catch-species-measurements .form-select { width: 100%; min-width: 0; }
.catch-input-fields > .location-audience { margin: .4rem 0; padding: .25rem 0 0; border-top: 1px solid var(--line); }
.catch-input-fields > .location-audience legend { font-size: .85rem; margin: 0 0 .25rem; padding: 0; }
.catch-input-fields > .location-audience label { min-height: 40px; font-size: .85rem; }
.catch-input-fields > .location-audience p { font-size: .8rem; margin: .2rem 0 0; }
.technique-tags { max-width: 620px; }
.technique-tags fieldset { margin: .75rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.technique-tags legend { font-size: .9rem; color: var(--muted); }
.technique-tags .btn { border-radius: 2rem; padding: .35rem .8rem; text-transform: none; letter-spacing: normal; }
.technique-tags .btn[aria-pressed=true] { background: var(--water); color: #07120a; }
.technique-tags .btn[aria-pressed=false],
.technique-tags .btn[aria-pressed=false]:hover,
.technique-tags .btn[aria-pressed=false]:active {
    background: transparent;
    color: var(--ink);
    border-color: var(--water);
}
.technique-tags .btn:focus { box-shadow: none; }
.technique-tags .btn:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; }
/* Compact, touch-friendly catch entry. */
@media (max-width: 800px) {
    .content:has(.catch-upload-form) { padding: 1.5rem 1rem 2rem; }
    .content:has(.catch-upload-form) > h1 { font-size: 2rem; margin-bottom: 1.25rem; }
    .catch-upload-form { max-width: 620px; margin-inline: auto; }
    .catch-upload-form .catch-input-fields { margin: 0; }
    .catch-upload-form label { font-size: .875rem; margin: .6rem 0; max-width: none; }
    .catch-upload-form .form-control, .catch-upload-form .form-select { min-height: 46px; font-size: 16px; border-radius: 8px; }
    .catch-upload-form textarea.form-control { min-height: 96px; }
    .catch-upload-form .catch-species-measurements { gap: .5rem; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
    .catch-upload-form .catch-species-measurements label { margin-top: 0; }
    .catch-upload-form .catch-species-measurements .form-control { padding-inline: .5rem; }
    .catch-upload-form .technique-tags { margin-block: .75rem; }
    .catch-upload-form .technique-tags fieldset { margin: 0; }
    .catch-upload-form .catch-notes-toggle { margin-block: .25rem; }
    .catch-upload-form .technique-tags legend { color: var(--ink); margin-bottom: .6rem; }
    .catch-upload-form .technique-tags .btn { min-height: 44px; padding: .5rem .85rem; font-size: .875rem; }
    .catch-upload-form .catch-released { display: flex; align-items: center; gap: .65rem; min-height: 44px; }
    .catch-upload-form .catch-released input { width: 20px; height: 20px; accent-color: var(--water); }
    .catch-upload-form .location-picker, .catch-upload-form .catch-photo-fields { border-top: 1px solid var(--line); padding-top: .75rem; margin: .75rem 0 .5rem; }
    .catch-upload-form .location-picker > legend, .catch-upload-form .catch-photo-fields > legend { float: left; width: 100%; font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
    .catch-upload-form .location-precision { margin: .5rem 0; }
    .catch-upload-form .location-picker > legend + *, .catch-upload-form .catch-photo-fields > legend + * { clear: both; }
    .catch-upload-form .location-precision-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
    .catch-upload-form .location-precision-options label { padding: .4rem; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; margin: 0; font-size: .75rem; gap: .3rem; white-space: nowrap; }
    .catch-upload-form .location-precision-options label:has(input:checked) { border-color: var(--water); background: #8bd63f12; }
    .catch-upload-form .location-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:.5rem 0;gap:.5rem }
    .catch-upload-form .location-actions .btn { min-height: 46px; padding: .65rem .4rem; font-size: .7rem; letter-spacing: .04em; white-space: nowrap; }
    .catch-upload-form .location-actions [data-clear] { border:1px solid var(--line);background:transparent;color:var(--ink); }
    .catch-upload-form .location-actions [data-clear]:hover { border-color:var(--water);background:#193126;color:var(--ink); }
    .catch-upload-form [data-status] { color: var(--muted); font-size: .85rem; line-height: 1.5; }
    .catch-upload-form [data-status] { margin-bottom: .5rem; }
    .catch-upload-form .location-audience { margin: .4rem 0; padding-top: .4rem; }
    .catch-upload-form .location-audience label { min-height: 44px; font-size: .8rem; }
    .catch-upload-form .location-audience legend { font-size: .85rem; line-height: 1.4; }
    .catch-upload-form .location-audience-inline .location-audience-row { gap: .45rem; }
    .catch-upload-form .location-audience-inline .location-audience-options { gap: .55rem; }
    .catch-upload-form .location-audience-inline-label, .catch-upload-form .location-audience-inline label { font-size: clamp(.64rem, 2.7vw, .8rem); }
    .catch-upload-form .location-audience-inline label { gap: .3rem; }
    .catch-upload-form input[type=file] { padding: .65rem; border: 1px dashed #496157; height: auto; }
    .catch-upload-form input[type=file]::file-selector-button { background: #223b2e; color: var(--ink); border: 0; border-radius: 5px; padding: .6rem; margin: 0 .7rem 0 0; }
    .catch-upload-form > button[type=submit] { width: 100%; min-height: 52px; font-size: .9rem; border-radius: 8px; margin-top: .5rem; }
}
.catch-notes-toggle { margin-block: 1rem; }
.catch-notes-toggle > summary { color: var(--water); cursor: pointer; padding-block: .65rem; min-height: 44px; }
.catch-notes-toggle > label { margin-top: .5rem; }
.location-crosshair-button { display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;padding:0;border:1px solid var(--water);border-radius:5px;background:#051211;color:var(--ink);cursor:pointer }
.location-crosshair-button:hover { background:var(--water);color:#07120a }
.location-crosshair-button:disabled { opacity:.7;cursor:wait }
.location-crosshair-button svg { width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round }
.catch-map-container { position:relative }
.map-locate-action { position:absolute;top:10px;right:10px;z-index:1001;box-shadow:0 2px 8px #0008 }
.map-locate-action .spinner-border { display:none }
.map-locate-action.is-loading svg { display:none }
.map-locate-action.is-loading .spinner-border { display:inline-block }
[data-map-location-status][hidden] { display:none }
.catch-processing-overlay { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 1.5rem; background: #03100ee8; cursor: wait; }
.catch-processing-panel { width: min(100%, 380px); text-align: center; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 64px #0006; }
.catch-processing-panel .spinner-border { color: var(--water); margin-bottom: 1rem; }
.catch-processing-panel h2 { font-size: 1.3rem; }
.catch-processing-panel p { color: var(--muted); margin-bottom: 0; }
.catch-processing-panel .catch-processing-cancel { margin-top: 1.25rem; cursor: pointer; }
.catch-review-overlay { cursor: default; }
.catch-review-panel { max-height: calc(100dvh - 3rem); overflow-y: auto; text-align: left; }
.catch-review-panel p { margin: .75rem 0; }
.catch-review-panel ul { margin: 1rem 0 1.5rem; padding-left: 1.25rem; }
.catch-review-panel li + li { margin-top: .75rem; }
.species-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }

/* Species rankings */
.rankings-heading p { color: var(--muted); }
.rankings-filters { display:flex; flex-wrap:wrap; gap:.5rem; margin:1.5rem 0; }
.ranking-filter { padding:.55rem 1rem; border:1px solid var(--line); border-radius:2rem; color:var(--ink); text-decoration:none; }
.ranking-filter.selected, .ranking-filter:hover { background:var(--water); border-color:var(--water); color:var(--paper); }
.rankings-summary { display:flex; align-items:center; gap:1.5rem; padding:1.5rem; background:var(--surface); border:1px solid var(--line); border-radius:12px; margin-bottom:1.5rem; }
.rankings-summary .rankings-fish { flex-shrink:0; width:110px; height:110px; object-fit:contain; }
.ranking-image > img { width:100%; height:100%; min-height:0; object-fit:contain; }
.rankings-summary h2 { margin:0 0 .25rem; }
.rankings-summary span { color:var(--muted); font-size:.85rem; }
.rankings-summary a { display:block; margin-top:.65rem; }
.rankings-stat { margin-left:auto; display:flex; flex-direction:column; gap:.25rem; }
.rankings-stat strong { font-size:1.8rem; color:var(--water); white-space:nowrap; }
.rankings-results { list-style:none; padding:0; display:grid; gap:.65rem; }
.ranking-entry { display:grid; grid-template-columns:2.5rem 100px minmax(0,1fr) auto; align-items:center; gap:1rem; padding:1rem; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.ranking-position { font-size:1.25rem; font-weight:800; text-align:center; color:var(--muted); }
.ranking-podium .ranking-position { border-radius:50%; background:#29372b; color:#d9c990; width:2.5rem; height:2.5rem; display:grid; place-items:center; }
.ranking-place-1 { border-color:#789b45; background:linear-gradient(110deg,#1d3020,var(--surface) 65%); }
.ranking-place-1 .ranking-position { background:var(--water); color:var(--paper); }
.ranking-image { height:76px; display:grid; place-items:center; overflow:hidden; border-radius:6px; background:var(--paper); }
.ranking-image .catch-photo-link { width:100%; height:100%; margin:0; }
.ranking-image .catch-thumbnail { width:100%; height:76px; object-fit:cover; margin:0; border:0; }
.ranking-details { display:flex; flex-direction:column; align-items:flex-start; gap:.3rem; min-width:0; }
.ranking-user { font-size:1.1rem; font-weight:700; color:var(--ink); overflow-wrap:anywhere; }
.ranking-date { font-size:.8rem; color:var(--muted); }
.ranking-baits { display:flex; flex-wrap:wrap; gap:.3rem; }
.ranking-baits span { font-size:.75rem; color:var(--muted); background:var(--paper); border-radius:1rem; padding:.15rem .55rem; }
.ranking-length { text-align:right; text-decoration:none; display:flex; flex-direction:column; gap:.35rem; }
.ranking-length strong { color:var(--water); font-size:1.6rem; white-space:nowrap; }
.ranking-length span { font-size:.75rem; color:var(--muted); }
.rankings-empty { padding:3rem 1rem; text-align:center; border:1px dashed var(--line); border-radius:12px; }
.rankings-empty h2 { font-size:1.2rem; margin-bottom:1.5rem; }
@media(max-width:600px) {
 .rankings-summary { flex-wrap:wrap; gap:1rem; padding:1rem; }
 .rankings-summary .rankings-fish { width:75px; height:75px; }
 .rankings-stat { margin:0; flex:1; border-top:1px solid var(--line); padding-top:.75rem; }
 .rankings-stat strong { font-size:1.4rem; }
 .ranking-entry { grid-template-columns:1.75rem 60px minmax(0,1fr) auto; gap:.55rem; padding:.75rem .5rem; }
 .ranking-podium .ranking-position { width:1.75rem; height:1.75rem; }
 .ranking-position { font-size:1rem; }
 .ranking-image, .ranking-image .catch-thumbnail { height:64px; }
 .ranking-image svg { max-width:58px; }
 .ranking-user { font-size:.95rem; }
 .ranking-length strong { font-size:1.15rem; }
 .ranking-length span { max-width:5rem; font-size:.7rem; }
}

/* Shared catch cards for the feed and homepage. */
.community-feed-heading { display:flex; align-items:center; justify-content:space-between; gap:2rem; margin-bottom:2rem; }
.community-feed-heading > div { max-width:700px; }
.community-feed-heading > div > p:last-child { color:var(--muted); margin-bottom:0; }
.community-feed-heading > .btn { flex-shrink:0; }
.community-feed-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; align-items:start; }
.community-catch { min-width:0; overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.community-catch-author { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:1rem; }
.community-catch-author > a { display:flex; align-items:center; gap:.6rem; color:var(--ink); text-decoration:none; min-width:0; font-size:.85rem; font-weight:700; }
.community-catch-author > a > span:last-child { min-width:0; overflow-wrap:anywhere; }
.community-catch-author small { display:block; font-size:.7rem; font-weight:400; color:var(--muted); }
.community-catch-author time { flex-shrink:0; font-size:.7rem; color:var(--muted); }
.community-catch-photo { position:relative; display:block; aspect-ratio:4/3; overflow:hidden; background:var(--paper); text-decoration:none; }
.community-catch-photo img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .2s ease; }
.community-catch-photo:hover img { transform:scale(1.025); }
.community-photo-count { position:absolute; right:.75rem; bottom:.75rem; padding:.2rem .65rem; border-radius:1rem; background:#061312dc; color:var(--ink); font-size:.8rem; }
.community-catch-placeholder { display:grid; height:100%; place-items:center; background:radial-gradient(ellipse at center,#243d29,var(--paper)); color:var(--muted); font-weight:700; font-size:1.5rem; }
.community-catch-body { padding:1rem 1.15rem 1.25rem; }
.community-catch-title { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.community-catch-title h3 { font-size:1.4rem; margin:0; }
.community-catch-title h3 a { color:var(--ink); text-decoration:none; }
.community-catch-open { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--line); border-radius:50%; text-decoration:none; flex-shrink:0; }
.community-catch-measures { display:flex; flex-wrap:wrap; gap:1.2rem; margin:.5rem 0; color:var(--muted); font-size:.85rem; }
.community-catch-measures strong { font-size:1.6rem; color:var(--water); font-variant-numeric:tabular-nums; }
.community-catch-bait { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin-top:.75rem; font-size:.75rem; color:var(--muted); }
.community-bait-tag { border:1px solid var(--line); border-radius:1rem; padding:.1rem .65rem; color:var(--ink); }
.community-catch-notes { color:var(--muted); font-size:.85rem; margin:.85rem 0 0; padding-top:.85rem; border-top:1px solid var(--line); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.community-feed-pages { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:1rem; margin-top:2rem; color:var(--muted); }
.latest-grid > .community-catch { height:100%; }
@media(max-width:1000px) { .community-feed-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .community-feed-heading { align-items:flex-start; flex-direction:column; gap:1rem; margin-bottom:1.5rem; }
 .community-feed-grid, .latest-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
 .community-catch-author { padding:.8rem 1rem; }
 .community-catch-author time { font-size:.75rem; }
 .community-catch-open { width:44px; height:44px; }
}
@media(prefers-reduced-motion:reduce) { .community-catch-photo img { transition:none; } .community-catch-photo:hover img { transform:none; } }

.language-picker{position:relative;display:inline-flex;align-items:center}
.language-picker-icon{position:absolute;left:.5rem;top:50%;transform:translateY(-50%);width:1rem;height:1rem;pointer-events:none;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.language-picker .form-select{width:auto;min-width:84px;min-height:34px;margin:0;padding:.25rem 1.55rem .25rem 1.8rem;font-size:.68rem;font-weight:700;letter-spacing:.06em;border-color:var(--line);border-radius:5px;cursor:pointer}
@media(max-width:760px){.site-header>.language-picker .form-select{height:44px}}

.mobile-bottom-nav{display:none}
@media(max-width:760px){
    .app-shell{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
    .site-footer{gap:.35rem;padding:.8rem 1rem;border-top-color:#1b3329;background:#061310}
    .site-footer .footer-logo img{width:104px;height:48px}
    .site-footer .slogan{display:none}
    .site-footer>div:last-child{display:flex;justify-content:center;gap:1rem;font-size:.7rem}
    .site-footer>div:last-child br{display:none}
    .site-footer>div:last-child a{color:var(--muted)}
    .mobile-bottom-nav{position:fixed;right:0;bottom:0;left:0;z-index:1200;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-height:calc(60px + env(safe-area-inset-bottom));padding:3px 4px calc(3px + env(safe-area-inset-bottom));border-top:1px solid #244034;background:#061310;box-shadow:0 -2px 8px #0003}
    .mobile-bottom-nav a{display:flex;min-width:0;min-height:54px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 1px;border-radius:5px;color:var(--muted);font-size:.59rem;line-height:1.15;text-align:center;text-decoration:none}
    .mobile-bottom-nav a svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
    .mobile-bottom-nav a span{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}
    .mobile-bottom-nav a.active{color:var(--water)}
    .mobile-bottom-nav a:hover{background:var(--surface);color:var(--water)}
}



/* Profile friends */
.profile-friends { margin:2rem 0; }
.invitation-grid { list-style:none; padding:0; margin:1rem 0 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)); gap:.75rem; }
.invitation-card { min-width:0; padding:1rem; background:var(--surface); border:1px solid var(--line); border-radius:10px; display:flex; flex-direction:column; justify-content:space-between; gap:1rem; }
.invitation-details { display:flex; align-items:center; gap:.8rem; min-width:0; }
.invitation-details > div { min-width:0; overflow-wrap:anywhere; }
.invitation-details strong, .invitation-details small { display:block; }
.invitation-details small { color:var(--muted); font-size:.8rem; margin-top:.2rem; }
.invitation-icon { display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:50%; background:#243c29; color:var(--water); font-size:1.2rem; }
.invitation-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.invitation-actions .btn { flex:1 1 auto; }
.friends-heading h2 { display:flex; align-items:center; gap:.65rem; margin-bottom:.5rem; }
.friends-count { display:inline-grid; place-items:center; min-width:28px; height:28px; padding:0 .5rem; border-radius:1rem; background:#233a27; color:var(--water); font-size:.85rem; }
.friends-heading p { color:var(--muted); font-size:.9rem; max-width:680px; }
.friends-grid { list-style:none; padding:0; margin:1rem 0 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:.75rem; }
.friend-card { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:1rem; background:var(--surface); border:1px solid var(--line); border-radius:10px; min-width:0; }
.friend-profile { display:flex; align-items:center; gap:.8rem; color:var(--ink); text-decoration:none; min-width:0; }
.friend-profile:hover strong { color:var(--water); }
.friend-avatar { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; border:1px solid #3c5736; border-radius:50%; background:#243c29; color:var(--water); font-weight:700; font-size:1.1rem; }
.friend-name { min-width:0; overflow-wrap:anywhere; }
.friend-name strong { display:block; font-size:1rem; }
.friend-name small { display:block; color:var(--muted); font-size:.8rem; }
.friend-remove { flex-shrink:0; max-width:45%; padding:.5rem .65rem; min-height:44px; background:transparent; border:1px solid var(--line); border-radius:6px; color:var(--muted); font-size:.75rem; line-height:1.4; }
.friend-remove:hover:not(:disabled) { color:#ffb6ae; border-color:#9c6862; background:#38231f; }
.friend-remove:disabled { opacity:.5; }
.friends-empty { color:var(--muted); padding:1.5rem; border:1px dashed var(--line); border-radius:10px; }
@media(max-width:600px) { .friend-card { padding:.85rem; } .friends-grid { grid-template-columns:1fr; } }

/* Compact catch grids, including two columns on phones. */
.community-catch { container-type:inline-size; height:100%; }
.community-catch-author { padding:.75rem; flex-wrap:wrap; gap:.35rem; }
.community-catch-body { padding:.75rem; }
.community-catch-title h3 { font-size:1.15rem; }
.community-catch-measures strong { font-size:1.35rem; }
@container (max-width:260px) {
 .community-catch-author { padding:.55rem .65rem; }
 .community-catch-author > a { font-size:.8rem; gap:.4rem; }
 .community-catch-author .avatar, .community-catch-author small { display:none; }
 .community-catch-author time { width:100%; font-size:.65rem; }
 .community-catch-body { padding:.55rem .65rem .7rem; }
 .community-catch-title { gap:.25rem; }
 .community-catch-title h3 { font-size:1rem; }
 .community-catch-title h3 a { display:block; padding:.35rem 0; }
 .community-catch-open { display:none; }
 .community-catch-measures { gap:.3rem .65rem; margin:.2rem 0; font-size:.75rem; }
 .community-catch-measures strong { font-size:1.15rem; }
 .community-catch-bait { margin-top:.4rem; gap:.25rem; font-size:.7rem; }
 .community-catch-notes { display:none; }
}
@media(max-width:760px) {
 .latest-grid, .community-feed-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
}


.catch-sharing-label { color:var(--muted); font-size:.72rem; margin:0 0 .5rem; padding-bottom:.5rem; border-bottom:1px solid var(--line); }


/* Compact challenge cards in a responsive grid. */
.challenge-grid { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; }
.challenge-grid > .challenge-card { min-width:0; margin:0; padding:1rem; border-radius:10px; }
.challenge-card-heading { flex-wrap:wrap; gap:.5rem; }
.challenge-card h3 { font-size:1.15rem; margin:0; }
@media(max-width:900px) {
 .challenge-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
 .home-community .challenge-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
 .challenge-grid { gap:.65rem; }
 .challenge-grid > .challenge-card { padding:.7rem; gap:.55rem; font-size:.8rem; }
 .challenge-card .challenge-badge { flex-direction:column; align-items:flex-start; gap:.45rem; font-size:.8rem; }
 .challenge-card .challenge-medal { width:56px; height:56px; }
 .challenge-card .challenge-medal img { width:44px; height:44px; }
 .challenge-card h3 { font-size:1rem; }
 .challenge-card .btn { width:100%; font-size:.65rem; letter-spacing:.04em; padding:.65rem .4rem; min-height:44px; }
 .challenge-card .challenge-progress { margin:.3rem 0; }
}

/* Shared map popup theme. */
.catch-popup .leaflet-popup-content-wrapper, .catch-popup .leaflet-popup-tip { background:var(--surface); color:var(--ink); }
.catch-popup .leaflet-popup-content-wrapper { border:1px solid var(--line); border-radius:12px; box-shadow:0 8px 28px #0007; }
.catch-popup .leaflet-popup-content { margin:14px; font: .85rem/1.4 Arial,Helvetica,sans-serif; }
.catch-popup .catch-map-popup { padding-right:12px; }
.map-popup-entry { display:flex; align-items:flex-start; gap:.75rem; padding:.65rem 0; border-top:1px solid var(--line); }
.map-popup-entry:first-child { padding-top:0; border-top:0; }
.map-popup-entry:last-child { padding-bottom:0; }
.map-popup-media { flex:none; width:64px; display:flex; flex-direction:column; align-items:center; gap:.35rem; }
.map-popup-photo { flex:none; width:64px; height:64px; border-radius:8px; object-fit:cover; }
.map-popup-location { display:flex; align-items:center; justify-content:center; gap:.2rem; width:100%; color:var(--muted); font-size:.64rem; line-height:1.15; text-align:center; white-space:nowrap; }
.map-popup-location svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; }
.map-popup-location.is-exact { color:var(--water); }
.map-popup-body { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:.12rem; }
.catch-popup a.map-popup-species { display:block; padding:0; color:var(--water); font-size:1rem; font-weight:700; line-height:1.2; text-decoration:none; }
.catch-popup .map-popup-body time { color:var(--muted); font-size:.75rem; }
.catch-popup a.map-popup-user { display:block; max-width:100%; padding:.25rem 0 0; color:var(--water); font-size:.78rem; overflow-wrap:anywhere; }
.map-popup-details { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem; margin-top:.35rem; }
.map-popup-details strong { color:var(--water); font-size:.95rem; }
.catch-popup .map-popup-details span { padding:.12rem .45rem; color:#f4f6f2; background:#243c32; border:1px solid #597362; border-radius:1rem; font-size:.72rem; font-weight:600; }
.leaflet-container .catch-popup a.leaflet-popup-close-button { color:var(--muted); width:32px; height:32px; font-size:22px; }
.catch-popup a:hover { text-decoration:underline; }



/* Keep ranking summary values aligned when labels wrap. */
.rankings-summary { display:grid; grid-template-columns:110px minmax(0,1fr) minmax(130px,auto) minmax(140px,auto); align-items:center; }
.rankings-summary .rankings-stat { margin:0; align-self:stretch; display:grid; grid-template-rows:auto 1fr; align-content:start; align-items:start; padding-top:.5rem; }
.rankings-summary .rankings-stat strong { line-height:1.3; }
@media(max-width:800px) {
 .rankings-summary { grid-template-columns:75px minmax(0,1fr); gap:1rem; }
 .rankings-summary .rankings-fish { width:75px; height:75px; }
 .rankings-summary .rankings-stat { border-top:1px solid var(--line); padding-top:.75rem; }
 .rankings-summary .rankings-stat:nth-child(3) { grid-column:1; }
 .rankings-summary .rankings-stat:nth-child(4) { grid-column:2; }
 .rankings-summary .rankings-stat strong { font-size:1.4rem; }
}
@media(max-width:800px) {
 .rankings-summary { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .rankings-summary > .rankings-fish { grid-column:1; grid-row:1; }
 .rankings-summary > div:nth-child(2) { grid-column:1 / -1; grid-row:1; margin-left:91px; }
}

.notification-preferences { display: grid; gap: .5rem; max-width: 620px; }
.notification-settings-toggle { display:flex; justify-content:space-between; width:min(100%,620px); min-height:48px; margin:.75rem 0 1rem; padding:.65rem .8rem; border:1px solid var(--line); border-radius:8px; background:#10231f; color:var(--ink); font-size:.9rem; font-weight:600; letter-spacing:normal; text-transform:none; }
.notification-preferences legend { font-size: 1rem; float: none; margin-bottom: .5rem; }
.notification-preferences label { display: flex; align-items: center; gap: .65rem; margin: 0; }
.notification-preferences .form-check-input { margin: 0; flex-shrink: 0; background-color: #10231f; border-color: #496157; }
.notification-preferences .form-check-input:checked { background-color: var(--water); border-color: var(--water); }
.notification-preferences .form-check-input:focus { border-color: var(--water); box-shadow: 0 0 0 .2rem #8bd63f33; }
.notification-preferences .btn { justify-self: start; margin-top: .5rem; }

.profile-settings-panel.is-collapsed, .notification-settings-panel.is-collapsed { display: none; }
.profile-settings-list .profile-settings-panel, .profile-settings-list .notification-settings-panel { padding:1rem; border-top:1px solid var(--line); }
.profile-settings-list .profile-settings-panel h2, .profile-settings-list .notification-settings-panel h2 { margin:0 0 .5rem; color:var(--ink); font-size:1.3rem; letter-spacing:normal; }
