/* what this site adds to ui/atlas.css: the row of animals under the masthead, and a card with a status line and the
   species of a group. Linked before masthead.css and street.css, which set the look. */
.pin{cursor:default}
.blurb{margin-top:.6rem}
.cnote{margin:10px 0 0;font-size:12px;line-height:1.5;color:var(--st-ink2,#a6adbf)}
.cnote a{color:inherit}
#static p.where{color:var(--ink-3);font-size:.86rem}
#static h4{font-family:var(--serif);font-weight:600;font-size:.95rem;margin:.7rem 0 .1rem;color:var(--ink)}

/* every line keeps its width while the drawing under it is scaled: the engine sets --w on each path and --k on the drawing */
@property --k{syntax:"<number>";inherits:true;initial-value:1}
.leaflet-pane svg path{stroke-width:calc(var(--w,1)*var(--k,1)*1px)}
.lk-zooming .leaflet-pane path{transition:none}
.leaflet-zoom-anim .leaflet-pane svg.leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1),--k .25s cubic-bezier(0,0,.25,1)}
/* the animals: one row of flat pills under the masthead. On a wide screen the row wraps; on a phone it is a single line
   that scrolls sideways with the browser's own scroll */
.picks{position:fixed;z-index:1000;top:calc(58px + env(safe-area-inset-top,0px));left:calc(24px + env(safe-area-inset-left,0px));right:calc(24px + env(safe-area-inset-right,0px));
 display:flex;flex-wrap:wrap;gap:6px;pointer-events:none}
.pick{pointer-events:auto;flex:none;min-height:32px;padding:0 .75rem;white-space:nowrap}
.glassbtn.pick{transition:transform .14s ease,opacity .45s ease,background-color .45s ease,color .45s ease}
.picks .glassbtn.pick{color:rgba(212,227,246,.72)}   /* a button's word is the colour of its animal: the pale blue, and on the chosen one the sea's dark blue */
.picks .glassbtn.pick.cur{background:#2c68a6;color:#06182b}
.glassbtn.pick.cur.press,.glassbtn.pick.cur:active{opacity:.85}
@media(max-width:599px){
 .picks{left:0;right:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;pointer-events:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  padding:0 calc(16px + env(safe-area-inset-right,0px)) 0 calc(16px + env(safe-area-inset-left,0px));scroll-padding:0 16px}
 .picks::-webkit-scrollbar{display:none}
}
html:not(.js) .picks{display:none}

/* the card: the status under the name, then the text, then the species of a group, each with the colour of its range */
.parea{margin:.5rem 0 0}
.sps{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:2px}
.sp{display:grid;grid-template-columns:12px minmax(0,1fr) auto;column-gap:10px;align-items:center;width:100%;min-height:34px;margin:0;padding:4px 8px 4px 0;
 border:0;background:none;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;font-family:var(--st-sans);font-size:14px;font-weight:600;line-height:1.3;color:var(--st-ink);
 opacity:.72;transition:opacity .45s ease}
.sp:hover,.sp.lit{opacity:1}
.sp:focus-visible{outline:1px solid rgba(var(--st-lightb),.7);outline-offset:1px}
.sp .sw{width:12px;height:12px;border-radius:3px}
.sp .st{font-family:var(--st-sans);font-weight:500;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--st-ink2);white-space:nowrap}
.pname{text-wrap:balance}

/* beside the map the card is narrow: a species' status goes under its name */
@media(min-width:600px){
 .sp{grid-template-columns:12px minmax(0,1fr);row-gap:1px;padding:5px 0}
 .sp .st{grid-column:2}
}

/* the animal on each button: Ben's drawing, as he drew it, on the chosen pill too */
.pick{gap:7px;padding:0 .75rem 0 .55rem}
/* on a button the same blue; on the chosen one the animal is a flat shape in the sea's dark blue */
.pico{filter:grayscale(1) sepia(.75) hue-rotate(180deg) saturate(1.1) brightness(1.1) contrast(1.06);opacity:.72;transition:filter .45s ease,opacity .45s ease}   /* the buttons not chosen stand back, word and animal by the same amount */
.pic{position:relative;display:block;flex:none}
.pink{position:absolute;inset:0;background:#06182b;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:0;transition:opacity .45s ease;pointer-events:none}
/* over the flat shape the engraving itself stays on faintly, its lights only: the animal keeps its modelling in dark blues */
.pico{position:relative;z-index:1}
.pick.cur .pico{opacity:.13;filter:grayscale(1) sepia(1) hue-rotate(180deg) saturate(2) brightness(1.15) contrast(1.7)}
.pick.cur .pink{opacity:1}
.pico{display:block;flex:none;height:20px;width:auto;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* the animal at the head of its card, on the right, so the words keep their one left edge */
.phead{align-items:center}
/* the animals are engravings without colour of their own: the page gives each the pale blue of the masthead's lettering,
   so a picture reads as part of the site and not as something set on it. Nothing is lit behind them. */
.plate{display:block;flex:none;margin-left:auto}
.pani{display:block;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;opacity:0;transition:opacity .9s ease;
 filter:grayscale(1) sepia(.75) hue-rotate(180deg) saturate(1.1) brightness(1.1) contrast(1.06)}
.pani.ok{opacity:1}

.relief{transition:opacity 1.4s ease}
/* the Red List's colour is for a card's one status line; in a row of species the swatch is the only colour, so the two codes never sit side by side */
.parea.s-cr{color:#ff5b47}.parea.s-en{color:#fd8a4f}.parea.s-vu{color:#f4de4d}.parea.s-nt{color:#cfe253}.parea.s-lc{color:#6fd06a}

/* the card is the black of the masthead and the buttons, so the map sits framed between them and is not run into by the sea */
html:root{--st-card:#020308}

/* behind the browser's own bars the page is the card's black, so the card does not end in a strip of the sea; the sea is the map's */
html,body{background:#020308}
/* an animal's name is the same pale blue on its card as on its button */
.pwrap .pname{color:#d4e3f6}

/* each species in a row carries its scientific name under its own, as a card for one species does under its title */
.sp .spn{grid-column:2;grid-row:1}
.sp .sc{grid-column:2;grid-row:2;font-family:var(--st-sans);font-weight:500;font-size:10.5px;line-height:1.3;letter-spacing:.06em;text-transform:uppercase;color:var(--st-ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp .st{grid-column:3;grid-row:1 / span 2;align-self:center}
.sp{row-gap:1px;min-height:42px}
@media(min-width:600px){.sp .st{grid-column:2;grid-row:3;align-self:auto}}

/* the animals keep some of the ivory they were drawn in, on the buttons and on the cards, in place of the pale blue: the same amount as on Australia Habitats */
.pico,.pani{filter:grayscale(.3) brightness(1.03)}

/* a change of the card's words: everything but the animal at its head fades out and the new fades in; the height follows slowly */
.pwrap .panel>*,.pwrap .phead>*{transition:opacity .5s ease}
.pwrap .panel.chg>*:not(.phead),.pwrap .panel.chg .phead>*:not(.plate){opacity:0;transition:opacity .22s ease}
.pwrap .flip{transition:height .75s cubic-bezier(.4,0,.2,1)}
