:root{font-family:Arial,Helvetica,sans-serif;color:#f7f8ff;background:#06101d;font-synthesis:none}*{box-sizing:border-box}html,body,.app{height:100%;margin:0}.app{position:relative;height:100dvh;overflow:hidden}#map,.map-shade{position:absolute;inset:0}.map-shade{pointer-events:none;background:linear-gradient(180deg,rgba(3,10,20,.78),transparent 30%),linear-gradient(90deg,rgba(3,10,20,.4),transparent 55%),linear-gradient(0deg,rgba(3,10,20,.94),rgba(3,10,20,.5) 23%,transparent 55%)}button,a{font:inherit}button{color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #75f5e1;outline-offset:4px}.header{position:absolute;top:max(30px,env(safe-area-inset-top));left:40px;right:40px;display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.brand{color:inherit;text-decoration:none;display:flex;align-items:stretch;gap:12px}.brand-mark{width:3px;background:#a54bfa}.brand strong,.brand small{display:block}.brand strong{font-size:20px;letter-spacing:-.03em}.brand small{margin-top:5px;color:#d1e5e4;font-size:12px}.hub-link{color:#e4f2f0;font-size:13px;text-decoration:none;border-bottom:1px solid #8da7a3;padding-bottom:5px}.map-tools{position:absolute;top:120px;left:40px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.tool-button,.text-button,.chapter-selector,.close-button{border:0;background:none;padding:0;text-align:left}.tool-button{color:#e5f4f2;font-size:13px;display:flex;align-items:center;gap:10px;text-shadow:0 1px 5px #000}.tool-icon{display:grid;place-items:center;width:27px;height:27px;border:1px solid rgba(210,237,233,.45);border-radius:50%;font-size:16px}.map-caption{position:absolute;top:42%;left:58%;color:rgba(205,231,231,.63);font-size:11px;letter-spacing:.2em;pointer-events:none;text-shadow:0 1px 6px #06101d}.story{position:absolute;left:40px;bottom:max(32px,env(safe-area-inset-bottom));width:min(510px,calc(100% - 80px));text-shadow:0 2px 12px #030914}.chapter-selector{display:flex;align-items:center;gap:12px;font-size:13px;color:#d6e8e6}.chapter-selector span:first-child{color:#75f5e1;font-weight:bold;letter-spacing:.07em}.chapter-chevron{font-size:18px}.story h1{font-size:clamp(32px,4vw,52px);line-height:1.02;letter-spacing:-.045em;margin:17px 0 12px;max-width:500px}.story-details>p{font-size:16px;line-height:1.5;color:#e0edeb;max-width:470px;margin:0}.story-details>p.story-note{color:#bed3d1;border-left:2px solid #ffb25f;padding-left:11px;margin-top:16px;font-size:13px;line-height:1.4}.story-controls{display:flex;align-items:center;gap:10px;margin-top:25px}.round-button{border:1px solid rgba(211,238,234,.55);border-radius:50%;height:42px;width:42px;display:grid;place-items:center;font-size:27px;line-height:1;background:rgba(2,15,25,.55)}.round-button.primary{background:#00e3cb;color:#052026;border-color:#00e3cb}.round-button:disabled{opacity:.35;cursor:default}.progress-wrap{flex:1;margin-left:8px}.progress-label{display:flex;justify-content:space-between;color:#d4e8e5;font-size:12px;margin-bottom:10px}.progress{display:flex;gap:5px}.progress span{height:3px;flex:1;background:rgba(218,238,235,.32)}.progress span.active{background:#75f5e1}.story-footer{display:flex;gap:9px;align-items:center;margin-top:23px;color:#b3cbc8;font-size:12px}.text-button{color:#d1e5e4;text-decoration:underline;text-underline-offset:4px}.overlay{position:absolute;inset:0;background:rgba(0,6,14,.56)}.panel{position:absolute;right:0;top:0;bottom:0;width:min(430px,100%);background:#0a1b2b;box-shadow:-12px 0 50px #0006;padding:32px;overflow:auto;z-index:3}.panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #34505b;padding-bottom:20px}.panel h2{font-size:23px;margin:0}.close-button{font-size:32px;line-height:1;color:#d1e5e4}.panel p{color:#c4d9d6;line-height:1.55;font-size:15px}.panel-list{list-style:none;padding:0;margin:22px 0}.panel-list button{display:flex;width:100%;gap:15px;padding:15px 0;border:0;border-bottom:1px solid #29414b;background:none;text-align:left;line-height:1.35}.panel-list button:hover,.panel-list button[aria-current=true]{color:#75f5e1}.panel-list .num{color:#75f5e1;font-size:12px;min-width:25px}.panel a{color:#75f5e1}.tag{color:#b8d0cd;font-size:12px}.map-error{position:absolute;right:20px;bottom:40px;background:#18303e;padding:12px;max-width:260px;font-size:13px}.maplibregl-ctrl-attrib{font-size:10px!important}.maplibregl-ctrl-bottom-right{bottom:0!important}
@media(max-width:600px){.header{left:20px;right:20px;top:max(20px,env(safe-area-inset-top))}.brand strong{font-size:18px}.brand small{font-size:11px;max-width:190px}.hub-link{font-size:12px;white-space:nowrap}.map-tools{left:20px;top:94px;gap:8px}.tool-button{font-size:12px}.tool-icon{width:28px;height:28px}.story{left:20px;bottom:max(24px,env(safe-area-inset-bottom));width:calc(100% - 40px)}.story h1{font-size:30px;margin:12px 0 8px}.story-details>p{font-size:14px;line-height:1.4}.story-details>p.story-note{font-size:12px;margin-top:10px}.story-controls{margin-top:15px}.round-button{width:39px;height:39px}.story-footer{margin-top:14px}.map-caption{left:50%;top:40%;font-size:9px}.panel{padding:24px 20px;padding-top:max(24px,env(safe-area-inset-top))}.map-shade{background:linear-gradient(180deg,rgba(3,10,20,.8),transparent 28%),linear-gradient(0deg,rgba(3,10,20,.97),rgba(3,10,20,.68) 35%,transparent 65%)}}
@media(max-height:550px){.map-tools{top:75px;flex-direction:row}.story h1{font-size:25px;margin:7px 0}.story-details>p.story-note{display:none}.story-controls{margin-top:10px}.story-footer{margin-top:8px}.story{bottom:12px}.header{top:12px}.brand small{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Keep the story legible while leaving more of the map visible. */
@media (min-width:601px) and (min-height:551px){
 .story{width:min(410px,calc(100% - 80px))}
 .story h1{font-size:clamp(27px,2.8vw,36px);line-height:1.08;margin:12px 0 9px}
 .story-details>p{font-size:14px;line-height:1.45}
 .story-details>p.story-note{font-size:12px;margin-top:11px}
 .story-controls{margin-top:17px}
 .story-footer{margin-top:16px}
 .chapter-selector{padding:6px 10px 6px 0;border-bottom:1px solid rgba(117,245,225,.45)}
}
.play-button{font-size:16px;flex-shrink:0}.story-controls .secondary{flex-shrink:0}

.story-details-toggle{display:none}
@media(max-width:600px){
 .top-controls{position:absolute;top:max(20px,env(safe-area-inset-top));left:20px;right:20px;display:grid;gap:8px;pointer-events:none}
 .top-controls .header,.top-controls .map-tools{position:static;pointer-events:auto}
 .brand small{display:block}
 .header{align-items:flex-start}
 .map-tools{justify-self:start;flex-direction:row;flex-wrap:wrap;gap:0 14px}
 .tool-button{min-height:44px;gap:6px;font-size:12px}
 .story{bottom:max(16px,env(safe-area-inset-bottom))}
 .chapter-selector{min-height:36px;font-size:12px}
 .story h1{font-size:23px;line-height:1.12;margin:4px 0 2px}
 .story-details-toggle{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0;border:0;background:none;color:#bce8e0;font-size:13px;text-decoration:underline;text-underline-offset:3px}
 .story-details{display:none;max-height:25dvh;overflow:auto;padding-bottom:4px}
 .story-details-toggle[aria-expanded="true"] + .story-details{display:block}
 .story-details>p{font-size:14px;line-height:1.4;margin:0}
 .story-details>p.story-note{margin-top:8px;font-size:12px}
 .story-controls{margin-top:5px;gap:7px}
 .round-button{width:44px;height:44px}
 .progress-wrap{margin-left:3px;min-width:0}
 .progress-label{font-size:11px;gap:6px;margin-bottom:7px}
 #progress-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .story-footer{margin-top:8px;font-size:11px}
 .maplibregl-ctrl-bottom-right{bottom:auto!important;top:145px!important}
 .maplibregl-ctrl-attrib{font-size:10px!important}
 .map-shade{background:linear-gradient(180deg,rgba(3,10,20,.72),transparent 19%),linear-gradient(0deg,rgba(3,10,20,.95),rgba(3,10,20,.57) 17%,transparent 37%)}
}
@media(max-width:600px) and (max-height:550px){.story-details-toggle{min-height:30px}.story h1{font-size:20px}.story-footer{margin-top:4px}.map-tools{top:52px}}

.story-summary{display:none}
@media(max-width:600px){.story-summary{display:block;color:#e0edeb;font-size:13px;line-height:1.35;margin:4px 0 0}.story:has(.story-details-toggle[aria-expanded="true"]) .story-summary{display:none}}

.panel-source-link{background:none;border:0;color:#75f5e1;padding:12px 0;text-decoration:underline;text-underline-offset:4px;font-size:15px}
@media(max-width:600px){
 .story-footer{display:none}
 .story{bottom:max(12px,env(safe-area-inset-bottom))}
 .maplibregl-ctrl-bottom-right{top:auto!important;bottom:max(2px,env(safe-area-inset-bottom))!important}
 .maplibregl-ctrl-attrib.maplibregl-compact{margin:0 5px 0 0}
 .progress-wrap{padding-right:28px}
}
.layer-control{display:flex;align-items:center;gap:10px;min-height:44px;color:#e5f4f2}.layer-control input{width:18px;height:18px;accent-color:#00e3cb}.data-status:not(:empty){font-size:12px;color:#ffda9d;margin-top:7px}
.distance-comparison{max-width:310px;margin-top:10px;font-size:11px;color:#d1e5e4}.distance-comparison[hidden]{display:none}.distance-comparison div{display:flex;justify-content:space-between;margin:5px 0}.distance-comparison i{display:block;height:3px;background:#75f5e1}.distance-comparison i:last-child{background:#ffca85}.distance-comparison i:first-of-type{width:99.6%}@media(max-width:600px){.distance-comparison{max-width:230px;margin-top:5px;font-size:10px}.distance-comparison div{margin:3px 0}}

/* A map annotation, separate from the narrative controls. */
.distance-comparison{position:absolute;z-index:1;top:40%;right:6%;width:min(270px,30vw);max-width:none;margin:0;padding:10px 12px;background:rgba(4,18,29,.7);border-left:2px solid rgba(117,245,225,.7);font-size:12px;text-shadow:0 1px 5px #06101d;pointer-events:none}.distance-comparison div{gap:12px;white-space:nowrap}.distance-comparison i:first-of-type{width:99.6%}.distance-comparison i:last-child{width:100%}
@media(max-width:600px){.distance-comparison{top:35%;right:20px;width:min(220px,58vw);padding:8px 10px;font-size:11px}.distance-comparison div{margin:4px 0}}
.distance-marker{padding:4px 7px;border-radius:3px;background:rgba(4,18,29,.85);color:#b4fff1;font-size:12px;font-weight:700;white-space:nowrap;text-shadow:0 1px 3px #000;pointer-events:none}.distance-endpoint{width:7px;height:7px;border-radius:50%;background:#b4fff1;box-shadow:0 0 7px #00e3cb;pointer-events:none}.distance-marker[hidden],.distance-endpoint[hidden]{display:none}
.peninsula-marker{color:#ffcf92}.peninsula-endpoint{width:10px;height:10px;background:#ffbd69;border:2px solid #071124;box-shadow:0 0 5px #071124}
.islands-marker{display:flex;align-items:center;gap:8px;color:#e7fffa;font-size:12px;font-weight:700;white-space:nowrap;pointer-events:none;text-shadow:0 1px 4px #00121c,0 0 8px #00121c}.islands-marker[hidden]{display:none}.islands-marker-dot{width:10px;height:10px;flex:none;border-radius:50%;background:#75f5e1;border:2px solid #06222d;box-shadow:0 0 0 3px #75f5e155}
.model-legend{position:absolute;top:145px;right:38px;padding:10px 12px;background:rgba(5,22,31,.9);border:1px solid #6e9390;border-radius:4px;color:#e5f4ef;font-size:11px;width:195px}.model-legend[hidden]{display:none}.model-legend strong{font-size:11px}.legend-gradient{height:7px;margin:8px 0 4px;background:linear-gradient(90deg,#16445a,#247e8b,#41c3b1,#f9cf6b,#f57542)}.legend-labels{display:flex;justify-content:space-between}.model-legend small{display:block;color:#bcd4d0;margin-top:6px}.echogram-open{border:0;background:transparent;padding:6px 0 0;color:#75f5e1;text-decoration:underline;text-underline-offset:4px;font-size:13px}.echogram-open[hidden]{display:none}.echogram-image{width:100%;height:auto;border:1px solid #496e70}.echogram-help{font-size:13px!important}.echogram-marker{width:13px;height:13px;background:#ffbd69;border:2px solid #071724;border-radius:50%;box-shadow:0 0 0 4px #ffbd6955}.echogram-marker[hidden]{display:none}@media(max-width:600px){.model-legend{top:132px;right:16px;width:162px;padding:8px;font-size:10px}.model-legend strong{font-size:10px}.echogram-open{font-size:12px}}
.survey-legend{position:absolute;right:38px;top:145px;display:flex;flex-direction:column;gap:6px;padding:11px 13px;background:rgba(5,22,31,.92);border:1px solid #668681;border-radius:4px;color:#e5f4ef;font-size:11px}.survey-legend[hidden]{display:none}.survey-legend span{display:flex;align-items:center;gap:7px}.survey-legend small{color:#bcd4d0}.survey-key{width:8px;height:8px;border-radius:50%;display:inline-block}.survey-key.noaa{background:#75f5e1}.survey-key.imr{background:#ffca85}.survey-key.bas{background:#c696ff}.survey-map-label{font-size:11px;font-weight:bold;color:white;text-shadow:0 1px 5px #000,0 0 5px #000;pointer-events:none}.survey-map-label[hidden]{display:none}@media(max-width:600px){.survey-legend{top:132px;right:16px;font-size:10px;padding:8px 10px;gap:4px}.survey-map-label{font-size:10px}}
.survey-map-label.imr-label:before{content:'';display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;background:#ffca85;box-shadow:0 0 0 2px #09202a}
.legend-data-link{display:block;background:transparent;border:0;color:#b4fff1;text-decoration:underline;text-underline-offset:3px;font-size:11px;text-align:left;padding:8px 0 0}.data-source{border-bottom:1px solid #29414b;padding:16px 0}.data-source h3{font-size:16px;margin:0;color:#f2fbf8}.data-source p{margin:7px 0 9px;font-size:14px}.data-source ul{list-style:none;padding:0;margin:0}.data-source li{margin:8px 0;line-height:1.35}.data-source a{font-size:14px}.data-access-note{font-size:12px!important;color:#a9c5c1!important}.panel-source-link{display:block}@media(max-width:600px){.legend-data-link{display:none}.data-source a{display:inline-block;padding:5px 0}}

.ice-controls{position:absolute;z-index:3;top:145px;right:38px;background:rgba(5,22,31,.93);border:1px solid #668681;border-radius:4px;padding:10px 12px;color:#e5f4ef;font-size:12px}.ice-controls[hidden]{display:none}.ice-control-row{display:flex;gap:8px;margin:8px 0}.ice-control-row label{display:flex;flex-direction:column;gap:3px}.ice-control-row select{min-height:36px;background:#112d39;color:white;border:1px solid #86a7a2;border-radius:3px;padding:4px}.ice-controls small{display:block;color:#bcd4d0;max-width:200px}@media(max-width:600px){.ice-controls{top:125px;right:12px;padding:7px 9px;font-size:11px}.ice-controls small{max-width:155px}.ice-control-row{margin:4px 0}.ice-control-row select{min-height:36px}}

.ice-control-row button{align-self:end;min-width:36px;min-height:36px;border:1px solid #86a7a2;border-radius:3px;background:#112d39;color:#b4fff1;font-size:14px}

.station-values{margin:18px 0;border-top:1px solid #35535a}.station-values div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #35535a}.station-values dt{color:#c6dedb}.station-values dd{margin:0;font-weight:700;color:#f3fffc}.station-note{font-size:13px!important;color:#bcd4d0!important}

.profiles-title{margin:22px 0 6px;font-size:16px}.station-profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.profile-chart,.profile-empty{background:#102b37;border:1px solid #35535a;border-radius:4px;padding:8px}.profile-chart h3,.profile-empty strong{font-size:13px;margin:0;color:#f3fffc}.profile-chart h3 span{font-weight:400;color:#c6dedb}.profile-chart svg{display:block;width:100%;height:auto;overflow:visible}.profile-chart svg text{font-size:11px;fill:#c6dedb}.profile-chart svg path{fill:none;stroke:#75f5e1;stroke-width:2}.profile-chart svg circle{fill:#75f5e1}.profile-chart svg .profile-axis{stroke:#8da7a3;stroke-width:1}.profile-empty p{font-size:12px!important}@media(max-width:360px){.station-profiles{grid-template-columns:1fr}}

.penguin-controls{position:absolute;z-index:3;top:145px;right:38px;background:rgba(5,22,31,.94);border:1px solid #668681;border-radius:4px;padding:10px 12px;color:#e5f4ef;font-size:12px;max-width:225px}.penguin-controls[hidden],.penguin-control-row[hidden]{display:none}.penguin-time{margin-top:5px;color:#b4fff1}.penguin-control-row{display:flex;gap:8px;align-items:center;margin:7px 0}.penguin-control-row button{min-width:38px;min-height:38px;border:1px solid #86a7a2;border-radius:50%;background:#112d39;color:#b4fff1}.penguin-control-row label{flex:1}.penguin-control-row input{width:100%;accent-color:#75f5e1}.penguin-controls small{display:block;color:#bcd4d0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.penguin-controls{top:125px;right:12px;max-width:190px;padding:7px 9px;font-size:11px}}

/* Small animal symbols mark the most recent displayed position. */
.animal-marker{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:rgba(5,22,31,.93);border:1.5px solid #75f5e1;color:#75f5e1;box-shadow:0 0 5px 1px #75f5e1,0 0 13px 3px #00e3cb88,0 1px 8px #001019;pointer-events:none}.animal-marker svg{display:block;width:23px;height:23px}.animal-marker-whale{color:#d7fff8;border-color:#8bfff0;box-shadow:0 0 5px 2px #75f5e1,0 0 15px 5px #00e3cb99,0 0 25px 8px #00e3cb44}.animal-marker-signy{color:#ffca85;border-color:#ffca85;box-shadow:0 0 5px 1px #ffca85,0 0 13px 3px #ffad5688,0 1px 8px #001019}.animal-marker[hidden]{display:none}@media(max-width:600px){.animal-marker{width:27px;height:27px}.animal-marker svg{width:21px;height:21px}}

.whale-emoji{display:block;font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:19px;line-height:1;transform:translateY(-1px)}@media(max-width:600px){.whale-emoji{font-size:17px}}

.gfw-controls small{line-height:1.35}.gfw-controls #gfw-empty{font-size:11px;line-height:1.35;margin-top:6px;color:#ffe0b3}@media(max-width:600px){.gfw-controls{max-width:180px}.gfw-controls small{font-size:10px}}
.gfw-controls{width:220px}.gfw-controls .ice-control-row{align-items:end}.gfw-controls #gfw-play{width:38px;height:38px;flex:none;border:1px solid #86a7a2;border-radius:50%;background:#10323b;color:#74f6df;font-size:15px}.gfw-controls select{width:125px}.gfw-gradient{height:7px;border-radius:1px;background:linear-gradient(90deg,#00655f,#00a996,#00e9bf,#aaff83,#ffd45e,#ff8d42)}.gfw-scale-labels,.gfw-timeline-months{display:flex;justify-content:space-between;font-size:10px;color:#bfd9d5;margin:3px 0}.gfw-timeline-title{margin-top:9px;font-size:11px;color:#d2e8e3}.gfw-timeline{display:flex;align-items:end;gap:3px;height:34px;margin-top:3px}.gfw-bar{position:relative;display:flex;align-items:end;flex:1;height:100%;padding:0;border:0;border-bottom:2px solid #456e6d;background:transparent;cursor:pointer}.gfw-bar span{display:block;width:100%;background:#18cbb1;opacity:.7}.gfw-bar.selected{border-color:#ffca85}.gfw-bar.selected span{opacity:1;background:#7ef9df}.gfw-bar.missing{border-bottom-style:dashed}.gfw-bar:focus-visible{outline:2px solid #fff;outline-offset:2px}@media(max-width:600px){.gfw-controls{width:175px;max-width:175px}.gfw-controls select{width:105px}.gfw-timeline{height:27px}.gfw-timeline-title{margin-top:6px}}
.catch-controls{width:220px}.catch-controls select{width:100%}.catch-values{display:grid;gap:5px;margin:7px 0 10px}.catch-values div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.catch-values div span{display:flex;align-items:center;gap:7px}.catch-values strong{font-variant-numeric:tabular-nums;font-size:12px}.catch-swatch{display:inline-block;width:9px;height:9px;border-radius:2px;background:#74888a}.catch-swatch.low{background:#15665f}.catch-swatch.medium{background:#179b82}.catch-swatch.high{background:#32d0a5}.catch-swatch.highest{background:#f2bb61}.catch-season{margin:6px 0;color:#ffddad;font-size:11px;line-height:1.3}.catch-season[hidden]{display:none}@media(max-width:600px){.catch-controls{width:175px}.catch-values div,.catch-values strong{font-size:11px}}
.catch-area-label{pointer-events:none;color:#f3fffc;background:rgba(4,24,31,.68);border:1px solid rgba(221,255,247,.45);border-radius:3px;padding:3px 7px;font-size:12px;font-weight:700;letter-spacing:.04em;text-shadow:0 1px 3px #00191e}.catch-area-label[hidden]{display:none}@media(max-width:600px){.catch-area-label{font-size:11px;padding:2px 5px}}
.month-slider{display:flex;flex-direction:column;gap:2px;margin:8px 0;color:#d9eeea;font-size:11px;min-width:150px}.month-slider>span:first-child{display:flex;justify-content:space-between;gap:12px}.month-slider output{font-weight:700;color:#f2fffc}.month-slider input[type=range]{width:100%;height:28px;margin:0;accent-color:#67ead5;cursor:pointer}.month-slider input[type=range]:focus-visible{outline:2px solid #fff;outline-offset:2px}.month-ends{display:flex;justify-content:space-between;font-size:10px;color:#a8c6c1}.ice-controls .ice-control-row{align-items:end}.ice-controls #ice-play{width:38px;height:38px;border:1px solid #86a7a2;border-radius:50%;background:#10323b;color:#74f6df}@media(max-width:600px){.month-slider{min-width:0;margin:5px 0}.month-slider input[type=range]{height:26px}}

.shared-legend{margin-top:9px;padding-top:8px;border-top:1px solid #466a68}.shared-legend[hidden]{display:none}.shared-legend strong{display:block;margin-bottom:5px}.shared-legend small{line-height:1.3}@media(max-width:600px){.shared-legend{margin-top:5px;padding-top:5px}.shared-legend strong{font-size:10px}.shared-legend small{font-size:10px}}

.chapter7-controls{width:220px;max-height:45vh;overflow:auto}.chapter7-controls[hidden],#observer-year-control[hidden]{display:none}.chapter7-values{display:grid;gap:4px;margin:7px 0}.chapter7-values div{display:flex;justify-content:space-between;gap:8px;font-size:12px}.chapter7-values strong{font-size:12px}.chapter7-controls p{font-size:11px;line-height:1.35;color:#c2d9d5;margin:7px 0}.chapter7-link{display:block;border:0;background:none;color:#b4fff1;text-decoration:underline;text-underline-offset:3px;font-size:11px;text-align:left;padding:6px 0 0}.chapter7-link:disabled{opacity:.5}.incident-detail{border-top:1px solid #34505b;margin-top:18px;padding-top:12px}.incident-detail h3{font-size:15px}.incident-detail p{font-size:13px}.incident-detail a{overflow-wrap:anywhere}@media(max-width:600px){.chapter7-controls{width:175px;max-height:35vh;padding:7px 9px}.chapter7-values div,.chapter7-values strong,.chapter7-controls p,.chapter7-link{font-size:10px}.chapter7-link{min-height:28px}}

.monitoring-photo{margin:20px 0 14px}.monitoring-photo img{display:block;width:100%;height:auto;max-height:240px;object-fit:contain;background:#071924;border:1px solid #35535a;border-radius:3px}.monitoring-photo figcaption{margin-top:7px;color:#bcd4d0;font-size:11px;line-height:1.45}.monitoring-photo figcaption a{color:#b4fff1}@media(max-width:600px){.monitoring-photo{margin:14px 0 10px}.monitoring-photo img{max-height:190px}.monitoring-photo figcaption{font-size:10px}}

.assessment-controls{width:220px;max-height:40vh;overflow:auto}.assessment-controls[hidden]{display:none}.assessment-values{display:grid;gap:6px;margin:8px 0}.assessment-values div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.assessment-values strong{font-size:12px;white-space:nowrap}.assessment-controls small{display:block;color:#c2d9d5;line-height:1.35}.assessment-detail{border-top:1px solid #34505b;margin-top:16px;padding-top:12px}.assessment-detail h3{margin:0;color:#f2fbf8;font-size:15px}.assessment-detail p{font-size:13px;line-height:1.45}.assessment-detail .assessment-caveat,.assessment-detail .assessment-citation{color:#bdd4d1;font-size:12px}.assessment-citation a{overflow-wrap:anywhere}@media(max-width:600px){.assessment-controls{width:175px;max-height:32vh;padding:7px 9px}.assessment-values div,.assessment-values strong,.assessment-controls small{font-size:10px}.assessment-controls .chapter7-link{min-height:28px}}
.chapter10-controls{width:220px}.chapter10-controls[hidden]{display:none}.chapter10-controls p{font-size:12px;line-height:1.4;color:#c2d9d5;margin:7px 0}.publication-year{color:#9db8b7;white-space:nowrap;margin-left:8px}@media(max-width:600px){.chapter10-controls{width:175px;max-height:28vh;overflow:auto;padding:7px 9px}.chapter10-controls p{font-size:10px}.chapter10-controls .chapter7-link{min-height:28px}}

.progress.playing .current{position:relative;background:rgba(117,245,225,.35)}
.progress.playing .current::after{content:"";position:absolute;inset:0;background:#75f5e1;transform-origin:left;animation:story-step-progress var(--step-duration) linear both}
@keyframes story-step-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}

.aker-track-controls{width:min(220px,calc(100vw - 40px))}
.aker-track-controls p{margin:4px 0 6px}
@media(max-width:600px){
 .ice-controls.aker-track-controls{top:var(--aker-track-top,155px)}
}

/* Keep mobile map controls below the title and navigation, including wrapped headers. */
@media(max-width:600px){
 .ice-controls,.penguin-controls,.model-legend,.survey-legend{top:var(--mobile-map-controls-top,155px)}
 .legend-data-link{display:block;min-height:30px;padding:6px 0 0}
}

@media(max-width:600px) and (max-height:650px){
 .ice-controls,.penguin-controls,.model-legend,.survey-legend{max-height:var(--mobile-map-controls-height,32dvh);overflow:auto;scrollbar-width:thin}
}
@media(min-width:601px) and (max-height:550px){
 .ice-controls,.penguin-controls,.model-legend,.survey-legend{max-height:calc(100dvh - 153px);overflow:auto;scrollbar-width:thin}
}
@media(max-width:600px) and (max-height:650px){
 .ice-controls .legend-data-link,.penguin-controls .legend-data-link{position:sticky;bottom:0;background:#05161f;z-index:1}
}
@media(min-width:601px) and (max-height:550px){
 .ice-controls .legend-data-link,.penguin-controls .legend-data-link{position:sticky;bottom:0;background:#05161f;z-index:1}
}

.question-card { display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .25rem 0 .55rem; border-bottom: 1px solid rgba(184, 219, 220, .1); }
.question-card h4 { flex: 1; min-width: 0; margin: 0; color: #edf7f6; font-size: .875rem; font-weight: 400; line-height: 1.25; }
.question-category > h3 { margin: .75rem 0 0; padding: .4rem .55rem; border-left: 2px solid #75f5e1; background: rgba(117, 245, 225, .08); color: #91e4d8; font-size: .7rem; font-weight: 700; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; }
.question-category:first-child > h3 { margin-top: 0; }
.question-actions { display: flex; flex: none; gap: .2rem; }
.question-action { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid transparent; border-radius: .3rem; background: transparent; color: #75f5e1; cursor: pointer; }
.question-action svg { width: 22px; height: 22px; }
.question-action:hover { background: #0b373d; border-color: #75f5e1; }
.question-action:focus-visible { outline: 2px solid #75f5e1; outline-offset: 2px; }

.manual-layer { padding: .15rem 0; border-bottom: 1px solid #294650; }
.manual-layer-header { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 44px; }
.manual-layer-header label { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .875rem; }
.manual-layer input { width: 19px; height: 19px; accent-color: #75f5e1; }
.manual-layer small { display: block; margin: .3rem 0; color: #bfd4d3; line-height: 1.35; }
.manual-layer .manual-source { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; color: #75f5e1; border-radius: .3rem; }
.manual-source svg { width: 21px; height: 21px; }
.manual-source:hover { background: #0b373d; }
.manual-intro { font-size: .8rem; margin: 0 0 .4rem; }
.manual-selects { display: flex; flex-wrap: wrap; gap: .7rem; margin: .25rem 0; }
.manual-selects label { font-size: .8rem; }
.manual-selects select { color: #f4ffff; background: #12323a; border: 1px solid #819d9d; border-radius: 3px; padding: .35rem; }
.manual-caveat { color: #cbdedc; font-size: .8rem; line-height: 1.4; }
.manual-layer-summary { position: absolute; z-index: 3; right: 20px; top: 125px; max-width: min(330px, 52vw); padding: .45rem .65rem; background: #081d29e8; border: 1px solid #638a8a; border-radius: 4px; color: #e6f9f5; text-align: left; font-size: .75rem; line-height: 1.4; }
.manual-layer-summary[hidden] { display: none; }
@media (max-width: 600px) { .manual-layer-summary { top: var(--mobile-map-controls-top,155px); right: 12px; max-width: 55vw; font-size: .7rem; } }
.manual-selects input[type=range] { display: block; width: 130px; height: 24px; }

.overlay.clear-backdrop { background: transparent; }
@media (max-width: 600px) {
 .manual-layer .manual-source { display: none; }
}

.guide-open { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid #a7cdca; border-radius: 50%; background: #09222b; color: #d7f5ef; font-size: 13px; }
.guide-highlight { position: fixed; z-index: 9; border: 2px solid #75f5e1; border-radius: 10px; box-shadow: 0 0 0 4px #06252bcc, 0 0 16px #75f5e1; pointer-events: none; }
.guide-highlight[hidden],.quick-guide[hidden] { display: none; }
.quick-guide { position: fixed; z-index: 10; top: 27%; left: 50%; transform: translateX(-50%); width: min(320px,calc(100vw - 32px)); padding: 16px 18px; border: 1px solid #6b9c99; border-radius: 8px; background: #081e2bf2; color: #f1fbf9; box-shadow: 0 8px 30px #0007; }
.guide-heading { display: flex; align-items: center; justify-content: space-between; color: #75f5e1; font-size: 12px; font-weight: 700; }
.guide-close { min-width: 32px; min-height: 32px; border: 0; background: transparent; color: #d7ecea; font-size: 25px; }
.quick-guide h2 { margin: 0 0 7px; font-size: 19px; }
.quick-guide p { margin: 0 0 12px; color: #d3e5e2; font-size: 14px; line-height: 1.45; }
.guide-preference { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #c4ddda; }
.guide-preference input { width: 18px; height: 18px; accent-color: #75f5e1; }
.guide-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.guide-actions button { min-height: 38px; padding: 0 13px; border: 1px solid #75f5e1; border-radius: 4px; background: transparent; color: #c7f8ef; }
.guide-actions #guide-next { background: #75f5e1; color: #08272b; font-weight: 700; }
.chapter-list li { display: flex; align-items: center; border-bottom: 1px solid #29414b; }
.chapter-list li > button:first-child { flex: 1; min-width: 0; border: 0; }
.chapter-list li > .chapter-play { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #739e9b; border-radius: 50%; color: #75f5e1; font-size: 15px; }
@media (max-width: 600px) { .guide-open { width: 28px; height: 28px; } .quick-guide { top: 30%; } }
@media (max-height: 550px) { .quick-guide { top: 18%; padding: 10px 14px; } .quick-guide p { margin-bottom: 6px; } .guide-actions { margin-top: 5px; } }


.story-controls .progress-wrap { min-width: 0; }
.speed-control { flex: none; min-width: 40px; min-height: 40px; padding: 4px; color: #d7f5ef; background: #0b2933; border: 1px solid #718f8d; border-radius: 4px; font-size: 12px; }
@media (max-width: 600px) { .speed-control { min-width: 36px; min-height: 40px; font-size: 11px; } }

/* Custom layers replace story overlays and their floating legends. */
.custom-layers-active :is(#ice-controls,#penguin-controls,#gfw-controls,#catch-controls,#management-legend,#chapter10-controls,#assessment-controls,#chapter7-controls,#aker-track-controls,#survey-legend,#model-legend,#echogram-open,#glodap-open) { display: none !important; }
.manual-subareas { display: flex; flex-wrap: wrap; gap: .3rem .65rem; margin: .35rem 0 .45rem 1.7rem; }
.manual-subareas label { display: inline-flex; align-items: center; gap: .25rem; min-height: 34px; font-size: .8rem; }
.manual-subareas input { width: 16px; height: 16px; }
.manual-layer-summary { top: auto; bottom: 48px; right: 20px; z-index: 2; width: max-content; max-width: min(300px,40vw); max-height: 42vh; overflow: auto; cursor: default; }
.manual-layer-summary summary { cursor: pointer; font-weight: 700; color: #dffaf5; }
.manual-layer-summary ul { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 5px; }
.manual-layer-summary li { display: flex; gap: 7px; align-items: center; }
.manual-layer-summary p { margin: 5px 0; color: #ffd39e; }
.manual-layer-summary button { border: 0; padding: 4px 0; background: transparent; color: #a5fff0; text-decoration: underline; font-size: inherit; }
.manual-legend-key { display: inline-block; width: 18px; height: 8px; border-radius: 2px; flex: none; background: #75f5e1; }
.key-fishing { background: linear-gradient(90deg,#00655f,#00e9bf,#ffd45e,#ff8d42); }
.key-penguins { background: linear-gradient(90deg,#75f5e1 50%,#ffca85 50%); }
.key-whales { background: #7db5ff; }.key-ice { background: #d5f7ff; }.key-areas { background: transparent; border: 1px solid #75f5e1; }
.key-mpa { background: #99a7ff; }.key-vrz-permanent { background: #ffbd69; }.key-vrz-seasonal { background: #61e9c8; }
.key-cemp,.key-glodap { width: 9px; height: 9px; border-radius: 50%; background: #ffca85; margin: 0 4px; }.key-cemp { outline: 2px solid #75f5e1; }
.key-obis { background: linear-gradient(90deg,#136658,#54e7b3,#ffd06b,#ff955e); }
@media(max-width:600px) { .manual-layer-summary { top: auto; bottom: 68px; right: 10px; max-width: 48vw; max-height: 32vh; font-size: 10px; } }

.custom-layer-story-note { display: none; }
.custom-layers-active .custom-layer-story-note { display: block; margin: .5rem 0 0; color: #cce2df; font-size: 12px; line-height: 1.35; }

.key-aker { background: #ffa94f; }
.manual-track-year { display: block; margin: .35rem 0; font-size: .8rem; }
.manual-track-year input { display: block; width: min(200px, 100%); height: 26px; }
.manual-track-year span { display: block; color: #bfd4d3; font-size: .7rem; }
