/* Synced Lines v84 (Tom 28 Oct): My Stats redesign. Every stat section is a session card (.sc-card / .sc-body from ui.css —
   same white card, 1px #B8C2D3 line, 15px radius, soft navy shadow). Pictures (fish from fishicons.js, gear from gearicons.js)
   are sized by count; the weather card is a map-style panel with the logged weather over the top. Nothing wider than the card. */
.s-cards{display:flex;flex-direction:column;gap:10px;margin:8px 0 0;min-width:0}
.s-card{min-width:0;max-width:100%}
.s-card .sc-body{gap:6px;width:100%;box-sizing:border-box}
.s-card .l-step{margin:0}
.s-card .s-t{margin:0;font-size:1.15rem;font-weight:800;line-height:1.25;color:var(--ink)}
.s-card .s-sub{margin:0;color:var(--muted);font-size:.85rem}
/* headline numbers */
.s-card .s-head{margin:2px 0 0;gap:6px 22px}
.s-card .s-head p{margin:0;color:var(--muted);font-size:.85rem;display:flex;flex-direction:column;line-height:1.15}
.s-card .s-head strong{font-size:1.7rem;font-weight:800;color:var(--ink);line-height:1.1;font-variant-numeric:tabular-nums}
/* pictures sized by count (species, methods, baits) */
.s-pics{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 18px;width:100%;min-width:0}
.s-pic{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;max-width:100%}
.s-pic-img{display:block;max-width:100%;line-height:0}
.s-pic-img svg{display:block;width:100%;height:auto}
.s-pic-lab{font-size:.8rem;font-weight:600;line-height:1.15;text-align:center;max-width:9em;overflow-wrap:anywhere;color:var(--ink)}
.s-pic-n{font-size:.78rem;color:var(--muted);font-variant-numeric:tabular-nums}
.s-pic-big .s-pic-lab{font-size:.9rem}
/* bars (fish by month / time of day / per-hour rates) live inside the cards now */
.s-card .s-bars{width:100%;margin:4px 0 0}
.s-card .s-bars li{font-size:.88rem}
.s-card .s-box{margin:10px 0 0;width:100%}
.s-card .s-box .a-h2{margin:0 0 2px;padding-top:10px;border-top:1px solid var(--line);font-size:.95rem}
/* weather: map-style panel */
.s-map{position:relative;width:100%;border-radius:12px;overflow:hidden;background:#EEF1F6;border:1px solid var(--card-line,#B8C2D3);box-sizing:border-box}
.s-map > svg{display:block;width:100%;height:auto}   /* v92: was ".s-map svg", which also squashed Leaflet's dot layer to 0x0 */
.s-map-ov{position:absolute;left:0;right:0;bottom:0;padding:8px;display:flex;flex-wrap:wrap;gap:6px;pointer-events:none}
.s-chip{background:rgba(255,255,255,.94);border:1px solid var(--card-line,#B8C2D3);border-radius:999px;padding:3px 10px;font-size:.78rem;font-weight:700;color:var(--navy,#1B2A4A);white-space:nowrap;line-height:1.3;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.s-chip-best{background:var(--navy,#1B2A4A);color:#fff;border-color:var(--navy,#1B2A4A)}
.s-map-t{position:absolute;left:10px;top:8px;right:110px;pointer-events:none}
.s-map-t strong{display:block;font-size:.95rem;color:var(--navy,#1B2A4A);line-height:1.2}
.s-map-t span{display:block;font-size:.75rem;color:var(--muted);line-height:1.2}
.s-map-none{position:absolute;left:12px;right:12px;top:50%;transform:translateY(-50%);text-align:center;font-size:.85rem;color:var(--ink);background:rgba(255,255,255,.9);border-radius:10px;padding:8px 10px;pointer-events:none}
.s-wx-src{font-size:.75rem;color:var(--muted);margin:0}
/* empty states */
.s-empty{align-items:center;text-align:center;padding:18px 14px 20px}
.s-empty .s-pic-img{width:120px;opacity:.9}
.s-empty .s-t{margin-top:4px}
.s-none{margin:4px 0 0;color:var(--muted);font-size:.9rem}
/* inline inside Sessions (#s-inline) the cards sit under the "My stats" heading */
.s-inline .s-cards{margin-top:10px}
/* v85: shop links under each top bait */
.s-shoprow{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:6px;max-width:150px}
.s-shop{font-size:.78rem;font-weight:600;text-decoration:none;border-radius:999px;padding:7px 10px;min-height:32px;display:inline-flex;align-items:center;color:var(--ink);background:var(--soft)}
.s-shop-best{background:var(--ink);color:#fff}
/* v90 items 13 + 30: personal bests and column charts */
.s-pb{display:block;font-size:.85rem;font-weight:700;color:#1B2A4A}
.s-pb-none{font-weight:400;color:var(--muted)}
.s-biggest{margin:10px 0 0;font-weight:700;color:#1B2A4A}
.s-chart{list-style:none;margin:8px 0 0;padding:0;display:flex;align-items:flex-end;gap:4px;height:150px}
.s-c-col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;height:100%;justify-content:flex-end}
.s-c-n{font-size:.72rem;color:#1B2A4A;min-height:1em}
.s-c-track{width:100%;flex:1;display:flex;align-items:flex-end}
.s-c-bar{display:block;width:100%;background:#4a76b8;border-radius:4px 4px 0 0;min-height:0}
.s-c-l{font-size:.72rem;color:var(--muted);margin-top:3px}
.s-c-toggle{margin-top:8px;min-height:44px;background:none;border:0;padding:0 4px;text-decoration:underline;color:#1B2A4A;font:inherit}
.s-c-table{width:100%;border-collapse:collapse;margin-top:6px}
.s-c-table th{text-align:left;font-weight:400}.s-c-table td{text-align:right;font-weight:700}
.s-c-table th,.s-c-table td{padding:4px 2px;border-bottom:1px solid #e3e8ef}

/* v90 item 12: real map tiles under the venue pins */
.s-map{position:relative;isolation:isolate;z-index:0}   /* v92: contains Leaflet and overlay z-indexes (200-700) so they cannot paint over the header, nav or the next cards while scrolling */
.s-map-tiles{position:absolute;inset:0;z-index:1;border-radius:inherit;overflow:hidden}
.s-map.has-tiles > svg{visibility:hidden}   /* v91: only the drawn fallback panel; the old rule also hid Leaflet's own dot layer */
.s-map .s-map-t,.s-map .s-map-ov{z-index:500}
.s-map.has-tiles .s-map-t{background:rgba(255,255,255,.85)}
.s-map-tip{font-weight:700;color:#1b2a4a}

/* v91: column charts fill the whole card width (the wrapper was shrink-wrapped to ~133px inside the flex card) */
.s-chart-wrap{width:100%;align-self:stretch}
/* v92 tidy-up of the weather map card */
.s-map.has-tiles .s-map-t{right:auto;left:10px;top:10px;max-width:calc(100% - 20px);background:rgba(255,255,255,.92);border-radius:10px;padding:6px 10px;box-shadow:0 1px 4px rgba(27,42,74,.18)}
.s-map .leaflet-control-zoom{display:none}
.s-map .leaflet-control-attribution{font-size:9px;line-height:1.25;max-width:70%;padding:1px 5px;background:rgba(255,255,255,.75)}
.s-map.has-tiles .s-map-ov{padding:8px 8px 26px;gap:5px}
.s-map.has-tiles .s-chip{font-size:.74rem;padding:2px 9px}
