/* Phyla design system, round 3. Dark page; white text; yellow for the key thing. Charts may use the chart colours below. One typeface. */
/* Fonts: fonts.css, linked by each page. These pages also have Manrope at 700 and 800 (same files). */
@font-face{font-family:'Manrope';font-style:normal;font-weight:700 800;font-display:swap;src:url(/fonts/schibsted-grotesk-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700 800;font-display:swap;src:url(/fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700 800;font-display:swap;src:url(/fonts/manrope-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700 800;font-display:swap;src:url(/fonts/manrope-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700 800;font-display:swap;src:url(/fonts/manrope-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700 800;font-display:swap;src:url(/fonts/manrope-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
:root {
  --bg:#0b0c0e; --panel:#14161a; --line:rgba(255,255,255,.12); --line2:rgba(255,255,255,.26);
  --ink:#f4f2ec; --dim:#9d9a92; --faint:#5f5d58;
  --accent:#f2c84b;                    /* yellow: this animal, the highlight, the active control */
  --shelf:#1b1a14;                     /* the pinned-animals shelf: its own warm dark tone */
  /* chart colours: relations */
  --hunt:#ff6b5e; --food:#3ecf9a; --kin:#6ea8ff; --para:#b48cff;
  /* chart colours: kinds of food, one each */
  --f-leaves:#62c95a; --f-seeds:#e0b23c; --f-fruit:#ff8fb0; --f-nectar:#f6e27a; --f-bugs:#c98bdb; --f-fish:#4fb3e8;
  --f-reptiles:#35c2b0; --f-warm:#ff6b5e; --f-vert:#ff9d66; --f-carrion:#9aa0a6;
  /* chart colours: the day */
  --night:#27305c; --dusk:#b56f58; --day:#e6d38b; --awake:#f8d472;
  /* the globe */
  --sea:#0e2147; --sea-rim:#2a4f9c; --land:#1d2f55;
  --sans:'Manrope',system-ui,sans-serif;
}
* { box-sizing:border-box; }
html,body { margin:0; color:var(--ink); font:400 15px/1.4 var(--sans); background:radial-gradient(ellipse at 60% 30%, #1d1f24 0%, #111215 55%, #08090a 100%) fixed var(--bg); font-variant-numeric:tabular-nums; }
a { color:inherit; text-decoration:none; }
h1,h2,h3 { margin:0; font-weight:600; letter-spacing:-.01em; } h1 { font-size:2.4rem; line-height:1.05; } h2 { font-size:1.35rem; } h3 { font-size:1rem; }
.lab { font:600 11px/1.3 var(--sans); letter-spacing:.08em; text-transform:uppercase; color:var(--dim); }   /* a widget's name: the only label a collapsed widget is sure to carry */
.val { font:600 1.7rem/1 var(--sans); } .val b { color:var(--accent); font-weight:600; } .val small { font:500 .8rem var(--sans); color:var(--dim); margin-left:.25em; }
.dim { color:var(--dim); }
/* widget: compact card; mostly a picture */
.widget { position:relative; background:rgba(16,17,20,.78); border:1px solid var(--line); border-radius:10px; padding:14px 16px 16px; }
.widget > .lab { margin-bottom:10px; display:flex; justify-content:space-between; align-items:center; }
.widget .expand { width:22px; height:22px; border-radius:6px; border:1px solid var(--line2); display:grid; place-items:center; color:var(--dim); font-size:12px; line-height:1; }
.widget .expand::after { content:'↗'; }
/* expanded view */
.full { min-height:100vh; padding:28px 40px 48px; position:relative; }
.full .close { position:absolute; top:24px; right:32px; width:34px; height:34px; border-radius:8px; border:1px solid var(--line2); display:grid; place-items:center; color:var(--ink); font-size:16px; }
.full .close::after { content:'✕'; }
/* icon switch: icons only, no words */
/* the switch (core: Phyla.switch / ctx.switch): a recessed track, one raised knob that slides */
.psw { position:relative; display:inline-flex; align-items:center; flex:none; height:28px; padding:2px; box-sizing:border-box; border-radius:999px; vertical-align:middle;
  background:rgba(0,0,0,.38); box-shadow:inset 0 1px 2px rgba(0,0,0,.65), inset 0 0 0 1px var(--line2), 0 1px 0 rgba(255,255,255,.05);
  cursor:pointer; outline:none; -webkit-user-select:none; user-select:none; -webkit-tap-highlight-color:transparent; }
.psw:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.psw-k { position:absolute; left:0; top:2px; width:30px; height:24px; border-radius:999px; background:var(--accent); pointer-events:none;
  box-shadow:0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.35);
  transition:transform 220ms cubic-bezier(.2,.85,.25,1), width 220ms cubic-bezier(.2,.85,.25,1), background-color 220ms linear; }
.psw-c { position:relative; z-index:1; min-width:30px; height:24px; display:grid; place-items:center; color:var(--dim); transition:color 220ms linear; }
.psw-c.txt { padding:0 10px; font:700 12.5px/1 var(--sans); font-variant-numeric:tabular-nums; white-space:nowrap; }
.psw-c.on { color:#14120c; }
.psw-c svg, .psw-k svg { display:block; }
/* on/off: iOS proportions; the icon rides on the knob */
.psw.tog { width:44px; height:26px; padding:0; transition:background-color 220ms linear; }
.psw.tog .psw-k { left:2px; top:2px; width:22px; height:22px; background:var(--dim); display:grid; place-items:center; color:#14120c; transform:translateX(0); }
.psw.tog.on { background:color-mix(in srgb, var(--accent) 35%, rgba(0,0,0,.38)); }
.psw.tog.on .psw-k { background:var(--accent); transform:translateX(18px); }
.psw-init, .psw-init * { transition:none !important; }
/* the same on/off look for an existing [role=switch] inside .iswitch (Life cycle's human) */
.iswitch { display:inline-flex; flex:none; }
.iswitch > [role="switch"] { position:relative; display:block; width:44px; height:26px; border-radius:999px; cursor:pointer; outline:none;
  background:rgba(0,0,0,.38); box-shadow:inset 0 1px 2px rgba(0,0,0,.65), inset 0 0 0 1px var(--line2), 0 1px 0 rgba(255,255,255,.05); transition:background-color 220ms linear; }
.iswitch > [role="switch"]::before { content:''; position:absolute; left:2px; top:2px; width:22px; height:22px; border-radius:50%; background:var(--dim);
  box-shadow:0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.35); transition:transform 220ms cubic-bezier(.2,.85,.25,1), background-color 220ms linear; }
.iswitch > [role="switch"] svg { position:absolute; left:6.5px; top:6.5px; width:13px; height:13px; color:#14120c; z-index:1; transition:transform 220ms cubic-bezier(.2,.85,.25,1); }
.iswitch > [role="switch"].on { background:color-mix(in srgb, var(--accent) 35%, rgba(0,0,0,.38)); }
.iswitch > [role="switch"].on::before { transform:translateX(18px); background:var(--accent); }
.iswitch > [role="switch"].on svg { transform:translateX(18px); }
.iswitch > [role="switch"]:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media (prefers-reduced-motion: reduce) { .psw, .psw *, .iswitch > [role="switch"], .iswitch > [role="switch"]::before, .iswitch > [role="switch"] svg { transition:none !important; } }
/* portraits */
.face { border-radius:50%; object-fit:cover; background:#22252a; border:2px solid var(--line2); display:block; }
.face.me { border-color:var(--accent); } .face.hunt { border-color:var(--hunt); } .face.food { border-color:var(--food); } .face.kin { border-color:var(--kin); } .face.para { border-color:var(--para); }
.est { border-style:dashed !important; }                       /* not measured on this animal: dashed or hollow, never a word */
/* mockup chrome, not part of the design */
.mock-bar { font:600 11px/1.5 var(--sans); letter-spacing:.06em; color:#111; background:var(--accent); padding:6px 40px; }

/* A/B look switch (review only) */
.abswitch { margin-right:8px; } .abswitch span { font-size:11.5px; font-weight:700; }
/* look B: a soft light on this animal's yellow marks. Widgets put class "glow" on the group holding only those marks. */
:root[data-style="b"] .glow { filter: drop-shadow(0 0 3px rgba(242,200,75,.55)); }
/* photo album: button on the stage; the album opens in core's overlay over the middle column, like an expanded widget; never cropped */
.albtn { position:absolute; right:10px; bottom:10px; z-index:3; width:32px; height:32px; border-radius:50%; border:1px solid var(--line2); background:rgba(16,17,20,.7); color:var(--ink); display:grid; place-items:center; cursor:pointer; padding:0; }
.albtn:hover, .al-nav:hover { border-color:var(--accent); }
/* the bird's call: beside the name */
.sndbtn { display:inline-grid; place-items:center; width:32px; height:32px; margin:0 0 0 12px; padding:0; border:1px solid var(--line2); border-radius:50%; background:rgba(16,17,20,.7); color:var(--ink); vertical-align:middle; cursor:pointer; }
.sndbtn:hover { border-color:var(--accent); }
.sndw { white-space:nowrap; }
/* the platform's mute (ambient.js): above this page's layers; the top bar leaves it room */
body > #ambient-sw { z-index:40; }
.al-body { padding:68px 24px 24px; }
.al-grid { display:flex; flex-wrap:wrap; gap:6px; }
.al-grid::after { content:''; flex:1e4 1 0; }   /* the last row keeps its natural size */
.al-it { position:relative; padding:0; border:0; background:var(--panel); cursor:zoom-in; overflow:hidden; }
.al-it img { display:block; width:100%; height:100%; }
.al-end { height:1px; }
.al-lv { position:absolute; inset:0; z-index:2; background:rgba(11,12,14,.97); container-type:size; }
.al-fig { position:absolute; inset:0; }
.al-zv { position:absolute; left:0; top:0; right:0; bottom:34px; overflow:hidden; }
.al-zv img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; display:block; }
.al-cr { position:absolute; left:50%; bottom:9px; transform:translateX(-50%); font:400 12.5px/1.3 var(--sans); color:var(--dim); border-bottom:1px solid var(--line); max-width:calc(100% - 32px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.al-nav { position:absolute; z-index:1; top:50%; margin-top:-19px; width:38px; height:38px; border-radius:50%; border:1px solid var(--line2); background:rgba(16,17,20,.7); color:var(--ink); display:grid; place-items:center; cursor:pointer; padding:0; }
.al-prev { left:14px; } .al-next { right:14px; } .al-nav[hidden] { display:none; }
@container (max-width:560px) { .al-prev { left:18px; } .al-next { right:18px; } }   /* narrow column: arrows over the photo's edges */

/* photo zoom (core photoZoom): main photo stage and the album's large view; the model stage's cursor */
.stage.ph .sphoto { object-fit:cover; object-position:50% 20%; }   /* full column width; only photos taller than the cap are cropped */
/* a 3D animal's photo, shown in the model's 400 px stage until the scan appears (or while the model is still loading):
   fills the stage from the top bar down instead of being letterboxed with empty strips above and below */
.stage .svid { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; pointer-events:none; }
.stage .svid.on { opacity:1; }
.stage:not(.ph) .sphoto { object-fit:cover; object-position:50% 20%; }
.pz { cursor:grab; touch-action:none; -webkit-user-select:none; user-select:none; } .pz.panning { cursor:grabbing; }

/* fact line: every property, may wrap to a second row; filled icons are cropped to their shape by core (fitGlyph) */
.idblk .facts { flex-wrap:wrap; align-items:center; height:auto; min-height:20px; row-gap:8px; column-gap:20px; margin-top:10px; }
.idblk .facts.empty { display:none; }
.idblk .fg { flex-wrap:nowrap; align-items:center; gap:12px; }
.idblk .fi { width:20px; height:20px; flex:none; }   /* filled icons set their own width (wide glyphs get a wider box, same ink area) */
/* an empty widget cell: a passage of the article (core naText). Name top-left as on every cell; the section heading in the
   article's yellow; the text in the article's face, clamped to whole lines */
.naw { position:absolute; inset:0; padding:40px 16px 14px; overflow:hidden; pointer-events:none; }
.naw-h { font:600 13px/1.3 var(--sans); color:var(--accent); margin-bottom:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.naw-h .wlink { pointer-events:auto; vertical-align:-1px; }
.naw-t { font:400 14px/1.55 var(--sans); color:var(--ink); display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; -webkit-user-select:text; user-select:text; }
.naw-t b { font-weight:700; } .naw-t i { font-style:italic; }
.na.na-s { font-size:15px; font-weight:600; letter-spacing:.02em; }   /* nothing left in the article: a small dim N/A */
/* the empty cell's "no data" state: a quiet N/A tag on the name line, a hairline under the header, the passage a step
   dimmer than the article area (it is secondary: shown because there is no data) */
.lab .natag { margin-left:8px; font:500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing:.06em; font-variant:small-caps; color:var(--dim); pointer-events:auto; position:relative; top:-1px; }
.full-head .lab .natag { font-size:11px; }
.naw::before { content:''; position:absolute; left:16px; right:16px; top:34px; height:1px; background:var(--line); }
.naw { padding-top:44px; }
.naw-h { opacity:.85; }
.naw-t { color:color-mix(in srgb, var(--ink) 78%, var(--bg)); }
.naw-t b, .naw-t i { color:inherit; }
