/* Isla Noctis: the new page look (Noctis Studio > Site look > Page look > New look, the usual one), made from the bug report
   page and My Noctis (2026-11-23). The Studio links this file only while the new look is picked, after each page's own
   styles and before the Site look's colours and fonts, so a colour or font picked in the Studio still wins.
   Every rule is about .layout (the main pages: home, joining, rules, pack limits and the rest, and pages made in the
   Studio) or .page-head (the title band on member and staff pages), plus the font and colour names in :root, so the bug
   report page, My Noctis, the Hub and the Studio itself don't change. Two small things reach every page: the row of
   links in the footer, and an empty Instincts board whose line ends in a link. Classic: the pages as they were.
   This file is built from night_pages_src/ (night-pages.src.css, icons.py, build.py); change it there. */

:root {
  --head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --np-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --np-ink: #e6f6f8;
  --np-soft: #cfe3e8;
  --np-deep: color-mix(in srgb, var(--bg, #0a1418) 55%, #000);
  --np-line: color-mix(in srgb, var(--cyan, #4fd8e8) 17%, transparent);
  --np-line2: color-mix(in srgb, var(--cyan, #4fd8e8) 32%, transparent);
  --np-glass: linear-gradient(180deg, color-mix(in srgb, var(--panel, #102027) 90%, transparent), color-mix(in srgb, var(--bg, #0a1418) 94%, transparent));
  --np-well: color-mix(in srgb, var(--np-deep) 62%, transparent);
  --np-cyan: var(--cyan, #4fd8e8); --np-amber: var(--amber, #e8953c); --np-green: #6cc644; --np-red: #ef5b5f; --np-violet: #c792ff;
  --np-blue: #5aa9ec; --np-gold: #f2c14e; --np-pink: #ff7fb0; --np-grey: #8fb0ba;
  --np-pad: clamp(1rem, 2.4vw, 1.7rem);
  --np-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='180'%3E%3Ccircle cx='31' cy='40' r='0.75' fill='%23eaf6ff' fill-opacity='0.9'/%3E%3Ccircle cx='80' cy='122' r='0.55' fill='%23eaf6ff' fill-opacity='0.55'/%3E%3Ccircle cx='122' cy='25' r='0.8' fill='%23eaf6ff' fill-opacity='0.75'/%3E%3Ccircle cx='164' cy='79' r='0.55' fill='%23eaf6ff' fill-opacity='0.5'/%3E%3Ccircle cx='203' cy='144' r='0.7' fill='%23eaf6ff' fill-opacity='0.7'/%3E%3Ccircle cx='231' cy='50' r='0.55' fill='%23eaf6ff' fill-opacity='0.6'/%3E%3Ccircle cx='12' cy='95' r='0.5' fill='%23eaf6ff' fill-opacity='0.4'/%3E%3Ccircle cx='250' cy='108' r='0.6' fill='%23eaf6ff' fill-opacity='0.5'/%3E%3Ccircle cx='146' cy='166' r='0.5' fill='%23eaf6ff' fill-opacity='0.45'/%3E%3Ccircle cx='57' cy='158' r='.65' fill='%23ffe2bf' fill-opacity='.65'/%3E%3C/svg%3E");
}

/* Icons (24x24 line drawings, used as masks so each takes the colour around it) */
:root {
  --np-ic-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 16H3z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E");
  --np-ic-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --np-ic-bars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M7 16v-5M12 16V6M17 16v-8'/%3E%3C/svg%3E");
  --np-ic-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 20.5a2 2 0 0 0 4 0'/%3E%3C/svg%3E");
  --np-ic-bug: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3Crect x='8' y='8' width='8' height='11.5' rx='4'/%3E%3Cpath d='M12 12v7.5M4.5 9.5 8 11.5M19.5 9.5 16 11.5M3.5 14.5H8M16 14.5h4.5M5 20l3.3-2.4M19 20l-3.3-2.4'/%3E%3C/svg%3E");
  --np-ic-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3v4M15.5 3v4'/%3E%3Cpath d='m12 12.5.9 1.8 2 .3-1.45 1.4.35 2-1.8-.95-1.8.95.35-2-1.45-1.4 2-.3z'/%3E%3C/svg%3E");
  --np-ic-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M8 10h8M8 13h5'/%3E%3C/svg%3E");
  --np-ic-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --np-ic-claw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4c-1.2 4.5-.8 10 2.5 16M11.5 3c-1 5.5-.6 11.5 2 18M17 4c-1 4.5-.6 10 2.5 16'/%3E%3C/svg%3E");
  --np-ic-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15.5 8.5-2 5-5 2 2-5z'/%3E%3C/svg%3E");
  --np-ic-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8 4 4L12 5l4.5 7 4-4-1.8 11H5.3z'/%3E%3C/svg%3E");
  --np-ic-dino: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19c0-5 3-8 7-8h3l2-3h3.5c.8 0 1.5.7 1.5 1.5S20.3 11 19.5 11H18l-1 2v3l-1.5 3M8 19v-3M12 19v-4'/%3E%3Ccircle cx='18.5' cy='9.2' r='.5'/%3E%3C/svg%3E");
  --np-ic-feather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4c-6 0-11 4-12 11l-3 5'/%3E%3Cpath d='M8 15c4 0 8-2 10-6M12 7.5 10.5 13'/%3E%3C/svg%3E");
  --np-ic-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M15 3v4h4M9 12h7M9 16h5'/%3E%3C/svg%3E");
  --np-ic-flame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c4 0 6.5-2.7 6.5-6.3 0-3.6-2.6-5.5-3.6-8.7-1.6 1.6-2.2 3.3-2.2 5C11 9.6 9.5 7.5 9.7 4 6.9 6 5.5 9.6 5.5 14.7 5.5 18.3 8 21 12 21z'/%3E%3C/svg%3E");
  --np-ic-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.5h.01'/%3E%3C/svg%3E");
  --np-ic-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-14 15-14 0 10-6 15-14 15z'/%3E%3Cpath d='M5 19 13 11'/%3E%3C/svg%3E");
  --np-ic-lifebuoy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='m5.6 5.6 3.9 3.9M14.5 14.5l3.9 3.9M18.4 5.6l-3.9 3.9M9.5 14.5l-3.9 3.9'/%3E%3C/svg%3E");
  --np-ic-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E");
  --np-ic-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --np-ic-login: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M4 12h11M11 8l4 4-4 4'/%3E%3C/svg%3E");
  --np-ic-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3Cpath d='M17 3.5v3M15.5 5h3'/%3E%3C/svg%3E");
  --np-ic-scale: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M8 20h8M5 7h14'/%3E%3Cpath d='M7 7l-3 6a3 3 0 0 0 6 0zM17 7l-3 6a3 3 0 0 0 6 0z'/%3E%3C/svg%3E");
  --np-ic-server: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='16' height='7' rx='1.5'/%3E%3Cpath d='M8 7.5h.01M8 16.5h.01'/%3E%3C/svg%3E");
  --np-ic-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v5.5c0 4.6 3.2 8.2 7.5 9.5 4.3-1.3 7.5-4.9 7.5-9.5V6z'/%3E%3Cpath d='m9 12 2.2 2.2L15.5 10'/%3E%3C/svg%3E");
  --np-ic-sparkles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z'/%3E%3Cpath d='M19 15l.8 2 2 .8-2 .8-.8 2-.8-2-2-.8 2-.8z'/%3E%3C/svg%3E");
  --np-ic-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14.3c2.1.8 3.5 2.8 3.5 5.7'/%3E%3C/svg%3E");
  --np-ic-utensils: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3v8a2 2 0 0 0 2 2v8M11 3v8a2 2 0 0 1-2 2M7 3v4M17 21V3c-2 1.5-3 4.5-3 8h3'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ page ground and spacing (main pages) */
body:has(> .layout) {
  background: radial-gradient(60rem 36rem at 100% 24rem, color-mix(in srgb, var(--cyan, #4fd8e8) 7%, transparent), transparent 70%),
              radial-gradient(52rem 40rem at 0% 70rem, color-mix(in srgb, var(--amber, #e8953c) 5%, transparent), transparent 70%),
              var(--bg, #0a1418);
}
.layout { gap: clamp(1rem, 2.2vw, 1.75rem); padding-block: clamp(1.1rem, 2.6vw, 1.9rem) 3rem; }
.layout > main { gap: clamp(1rem, 2vw, 1.4rem); }
/* With the new top bar the banner is the first thing under the menu: the cards rise onto its lower edge. */
html:has(#nx-site-bar) body > .banner ~ .layout { margin-top: calc(-1 * clamp(2.6rem, 5.5vw, 4.6rem)); }
html:has(#nx-site-bar) body > .banner:not(.short) ~ .layout { margin-top: calc(-1 * clamp(3rem, 8vw, 7.5rem)); }
/* Two columns: the last card runs down to the bottom of the side column, so a short page has no empty gap beside it */
@media (min-width: 56.01rem) {
  .layout { align-items: stretch; }
  .layout > aside { align-self: start; }
  .layout > main { display: flex; flex-direction: column; align-items: stretch; }
  .layout > main > section:is(:last-child, .np-panel) { flex: 1 0 auto; }
}
.layout p { max-width: 78ch; }
.layout strong { color: #fff; }
.layout main a:not(.btn) { text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.layout main a:not(.btn):hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------------ each section is a glass card */
.layout > main > section {
  --t: var(--np-cyan); --np-i: var(--np-ic-sparkles);
  position: relative; isolation: isolate; min-width: 0; padding: clamp(1.05rem, 2.4vw, 1.6rem) var(--np-pad) clamp(1.1rem, 2.4vw, 1.5rem);
  border-radius: 18px; border: 1px solid var(--np-line);
  --np-foot: none;
  background: var(--np-foot) right 1.6rem bottom 1.4rem / clamp(9rem, 16vw, 14rem) no-repeat,
              linear-gradient(90deg, transparent, color-mix(in srgb, var(--t) 60%, transparent), transparent) top / 100% 1px no-repeat,
              radial-gradient(ellipse 46% 15rem at 100% 0%, color-mix(in srgb, var(--t) 9%, transparent), transparent 72%), var(--np-glass);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .04);
  scroll-margin-top: calc(var(--nb-h, 3.6rem) + 1rem);
}
/* its icon again, large and faint, in the top corner */
.layout > main > section:not(:first-child, .np-lead)::after {
  content: ""; position: absolute; z-index: -1; right: .9rem; top: .7rem; width: clamp(4.5rem, 9vw, 7rem); aspect-ratio: 1; background: var(--t); opacity: .055;
  -webkit-mask: var(--np-i) center / contain no-repeat; mask: var(--np-i) center / contain no-repeat; pointer-events: none;
}
/* the last card of a page (or the open tab) has a faint moon at its foot */
.layout > main > section:is(:last-child, .np-panel) { --np-foot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fd8e8' stroke-opacity='.11' stroke-width='.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3Cpath d='M17 3.2v2.6M15.7 4.5h2.6M21 8.6v1.6M20.2 9.4h1.6' stroke-opacity='.16'/%3E%3C/svg%3E"); }
.layout > main > section > :last-child { margin-bottom: 0; }
/* Room to spare at the foot of the open card (night-pages.js measures it): one of the site's night scenes, faded in */
.layout > main > section { --np-scene: url("/assets/art-pack.jpg"); }
.layout > main > section > .np-scene { display: none; }
.layout > main > section.np-roomy { --np-foot: none; }
.layout > main > section.np-roomy:not(:first-child, .np-lead)::after { display: none; }
.layout > main > section.np-roomy > .np-scene {
  display: block; position: absolute; z-index: -1; inset: auto 0 0 0; height: var(--np-room, 0px); margin: 0; border-radius: 0 0 17px 17px; pointer-events: none;
  background: linear-gradient(0deg, color-mix(in srgb, var(--np-deep) 70%, transparent), transparent 26%), var(--np-scene) center 32% / cover no-repeat;
  -webkit-mask: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5) 26%, #000 58%); mask: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5) 26%, #000 58%);
  animation: np-in .4s ease-out;
}
.layout > main > section > :nth-last-child(2):has(+ .np-scene) { margin-bottom: 0; }
.layout :is(#strikes, #rules) { --np-scene: url("/assets/art-rules.jpg"); }
.layout :is(#appeals, #elders, #carnivores) { --np-scene: url("/assets/bg-rex.jpg"); }
.layout :is(#privacy, #herbivores, #pack-limits) { --np-scene: url("/assets/bg-trike.jpg"); }
.layout :is(#events, #join) { --np-scene: url("/assets/bg-carno.jpg"); }
.layout :is(#updates, #explore, #dino-stats, #omnivores) { --np-scene: url("/assets/art-stats.jpg"); }
/* Studio section looks keep their own character inside the card */
.layout > main > section.nx-look-glow { border-color: color-mix(in srgb, var(--cyan, #4fd8e8) 45%, transparent);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--cyan, #4fd8e8) 13%, transparent), transparent 60%), var(--np-glass);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3), 0 0 34px color-mix(in srgb, var(--cyan, #4fd8e8) 12%, transparent); }
.layout > main > section.nx-look-line { border-left: 3px solid var(--cyan, #4fd8e8); }
.layout > main > section.nx-sp-0 { margin-block: 0 !important; }

/* Which icon and colour each section gets (by its id; sections made in the Studio get the sparkles) */
.layout #welcome { --t: var(--np-amber); --np-i: var(--np-ic-moon); }
.layout #explore { --t: var(--np-cyan); --np-i: var(--np-ic-compass); }
.layout #join { --t: var(--np-green); --np-i: var(--np-ic-login); }
.layout #rules { --t: var(--np-amber); --np-i: var(--np-ic-shield); }
.layout #strikes { --t: var(--np-red); --np-i: var(--np-ic-scale); }
.layout #pack-limits { --t: var(--np-cyan); --np-i: var(--np-ic-users); }
.layout #carnivores { --t: var(--np-red); --np-i: var(--np-ic-claw); }
.layout #herbivores { --t: var(--np-green); --np-i: var(--np-ic-leaf); }
.layout #omnivores { --t: var(--np-blue); --np-i: var(--np-ic-utensils); }
.layout #dino-stats { --t: var(--np-violet); --np-i: var(--np-ic-bars); }
.layout #elders { --t: var(--np-gold); --np-i: var(--np-ic-crown); }
.layout #dinosaurs { --t: var(--np-green); --np-i: var(--np-ic-dino); }
.layout #events { --t: var(--np-pink); --np-i: var(--np-ic-calendar); }
.layout #contact { --t: var(--np-cyan); --np-i: var(--np-ic-lifebuoy); }
.layout #appeals { --t: var(--np-amber); --np-i: var(--np-ic-file); }
.layout #privacy { --t: var(--np-blue); --np-i: var(--np-ic-lock); }
.layout #updates { --t: var(--np-violet); --np-i: var(--np-ic-bell); }

/* ------------------------------------------------------------------ section headings with an icon badge */
.layout > main > section > :is(h1, h2) {
  position: relative; display: block; min-height: 2.5rem; margin: 0 0 1rem; padding: .28rem 0 .2rem 3.3rem; border: 0;
  font: italic 800 clamp(1.6rem, 2.7vw, 2.1rem)/1.02 var(--head); letter-spacing: .01em; text-transform: uppercase; color: #fff;
}
.layout > main > section > :is(h1, h2)::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; border-radius: 12px;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--t) 30%, transparent), transparent 75%), var(--np-well);
  border: 1px solid color-mix(in srgb, var(--t) 50%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--t) 24%, transparent);
}
.layout > main > section > :is(h1, h2)::after {
  content: ""; position: absolute; left: .6rem; top: 50%; width: 1.3rem; height: 1.3rem; margin-top: -.65rem; background: var(--t);
  -webkit-mask: var(--np-i) center / contain no-repeat; mask: var(--np-i) center / contain no-repeat;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--t) 70%, transparent));
}
.layout > main > section > :is(h1, h2) ~ :is(h1, h2) { margin-top: 1.6rem; }

/* ------------------------------------------------------------------ the first card on a page is its header:
   night sky, a small line above, a big title that fades into the page's colour, and the page's icon on a full moon */
.layout > main > section:is(:first-child, .np-lead) {
  min-height: 8.5rem;
  background: var(--np-stars) 0 0 / 260px 180px repeat-x,
              var(--np-foot) right 1.6rem bottom 1.4rem / clamp(9rem, 16vw, 14rem) no-repeat,
              radial-gradient(ellipse 60% 22rem at 0% 0%, color-mix(in srgb, var(--t) 18%, transparent), transparent 65%),
              radial-gradient(ellipse 45% 18rem at 100% 0%, color-mix(in srgb, var(--cyan, #4fd8e8) 13%, transparent), transparent 70%),
              linear-gradient(180deg, color-mix(in srgb, var(--panel, #102027) 72%, #000) 0, color-mix(in srgb, var(--bg, #0a1418) 80%, #000) 22rem);
  border-color: var(--np-line2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.layout > main > section:is(:first-child, .np-lead) > :is(h1, h2):first-of-type {
  min-height: 0; padding: 0; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: .95; margin-bottom: .85rem; width: fit-content; max-width: 100%;
  color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .layout > main > section:is(:first-child, .np-lead) > :is(h1, h2):first-of-type {
    background: linear-gradient(96deg, #fff 35%, color-mix(in srgb, var(--t) 62%, #fff) 100%); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55));
  }
}
.layout > main > section:is(:first-child, .np-lead) > :is(h1, h2):first-of-type::before {
  content: "Isla Noctis"; position: static; display: block; width: auto; height: auto; margin: 0 0 .7rem; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: 500 .78rem/1 var(--np-mono); font-style: normal; letter-spacing: .3em; color: var(--np-amber); -webkit-text-fill-color: var(--np-amber); text-shadow: none;
}
.layout > main > section#welcome > :is(h1, h2):first-of-type::before { content: "The Isle  ·  Evrima"; white-space: pre; }
.layout > main > section:is(:first-child, .np-lead) > :is(h1, h2):first-of-type::after { display: none; }
.layout > main > section:is(:first-child, .np-lead) > :is(h1, h2):first-of-type + p { color: var(--np-soft); font-size: 1.06rem; }
/* The moon: only when the card starts with its title (a card that starts with a picture has that instead) */
.layout > main > section:is(:first-child, .np-lead):has(> :is(h1, h2):first-child) > :is(h1, h2):first-of-type,
.layout > main > section:is(:first-child, .np-lead):has(> :is(h1, h2):first-child) > :is(h1, h2):first-of-type + p { margin-right: clamp(3.9rem, 9vw, 7rem); }
.layout > main > section:is(:first-child, .np-lead):has(> :is(h1, h2):first-child)::before {
  content: ""; position: absolute; right: clamp(.9rem, 2.6vw, 1.7rem); top: clamp(.9rem, 2.2vw, 1.5rem); width: clamp(3.2rem, 7vw, 5.6rem); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 72% 74%, rgba(8, 52, 66, .16) 0 8%, transparent 10%), radial-gradient(circle at 24% 66%, rgba(8, 52, 66, .13) 0 5%, transparent 7%),
              radial-gradient(circle at 70% 22%, rgba(8, 52, 66, .1) 0 4%, transparent 6%),
              radial-gradient(circle at 34% 30%, #f4feff 0%, #c4f1f7 36%, #74d2e0 70%, #2c8ea4 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset, inset -.5rem -.6rem 1.1rem rgba(4, 40, 52, .5),
              0 0 0 .4rem color-mix(in srgb, var(--t) 13%, transparent), 0 0 2.8rem color-mix(in srgb, var(--cyan, #4fd8e8) 46%, transparent);
  animation: np-moon 6s ease-in-out infinite alternate;
}
.layout > main > section:is(:first-child, .np-lead):has(> :is(h1, h2):first-child)::after {
  content: ""; position: absolute; right: clamp(.9rem, 2.6vw, 1.7rem); top: clamp(.9rem, 2.2vw, 1.5rem); width: clamp(3.2rem, 7vw, 5.6rem); aspect-ratio: 1;
  background: #062a34; -webkit-mask: var(--np-i) center / 50% no-repeat; mask: var(--np-i) center / 50% no-repeat; pointer-events: none;
}
@keyframes np-moon {
  from { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset, inset -.5rem -.6rem 1.1rem rgba(4, 40, 52, .5),
                     0 0 0 .4rem color-mix(in srgb, var(--t) 13%, transparent), 0 0 2.2rem color-mix(in srgb, var(--cyan, #4fd8e8) 34%, transparent); }
  to { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset, inset -.5rem -.6rem 1.1rem rgba(4, 40, 52, .5),
                   0 0 0 .7rem color-mix(in srgb, var(--t) 9%, transparent), 0 0 3.6rem color-mix(in srgb, var(--cyan, #4fd8e8) 58%, transparent); }
}

/* ------------------------------------------------------------------ smaller headings */
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > h3 {
  display: flex; align-items: center; gap: .55rem; margin: 1.4rem 0 .65rem;
  font: italic 800 1.2rem/1.1 var(--head); letter-spacing: .03em; text-transform: uppercase; color: var(--np-ink);
}
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > h3::before {
  content: ""; flex: none; width: .3rem; height: 1.05em; border-radius: 3px; background: var(--t, var(--np-cyan));
  box-shadow: 0 0 10px color-mix(in srgb, var(--t, var(--np-cyan)) 70%, transparent);
}
.layout main :is(section, .panel, .pair > div) > h3:first-child { margin-top: .35rem; }

/* ------------------------------------------------------------------ lists: numbered rows and glowing points */
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > ol:not([class]) {
  list-style: none; counter-reset: np-n; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .4rem; max-width: none;
}
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > ol:not([class]) > li {
  counter-increment: np-n; position: relative; margin: 0; padding: .55rem .85rem .55rem 3rem; min-height: 2.6rem; border-radius: 12px;
  background: var(--np-well); border: 1px solid rgba(140, 220, 230, .1); transition: border-color .15s, background .15s;
}
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > ol:not([class]) > li:hover { border-color: var(--np-line2); background: color-mix(in srgb, var(--panel, #102027) 70%, transparent); }
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > ol:not([class]) > li::before {
  content: counter(np-n); position: absolute; left: .7rem; top: .55rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%;
  font: 700 .8rem/1 var(--body); font-style: normal; color: #1d0f02; background: linear-gradient(180deg, #ffd9a8, #f4ad5c); box-shadow: 0 0 12px rgba(232, 149, 60, .45);
}
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > ol:not([class]) > li.warn {
  margin: 0; list-style: none; border-color: rgba(239, 91, 95, .5); background: rgba(239, 91, 95, .1);
}
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > ol:not([class]) > li.warn::before { background: linear-gradient(180deg, #ffb3b5, #ef5b5f); color: #2a0506; box-shadow: 0 0 12px rgba(239, 91, 95, .5); }
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > ul:not([class]) { list-style: none; padding: 0; margin: 0 0 1.1rem; max-width: 78ch; }
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > ul:not([class]) > li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; }
.layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > ul:not([class]) > li::before {
  content: ""; position: absolute; left: .2rem; top: .62em; width: .48rem; height: .48rem; transform: rotate(45deg); border-radius: 2px;
  background: var(--t, var(--np-cyan)); box-shadow: 0 0 9px color-mix(in srgb, var(--t, var(--np-cyan)) 80%, transparent);
}
.layout .no { display: inline-block; padding: .02em .42em .05em; margin-right: .1em; border-radius: 6px; font-size: .82em; letter-spacing: .08em; text-transform: uppercase;
  color: #ffd2a0; background: rgba(232, 149, 60, .14); border: 1px solid rgba(232, 149, 60, .45); }
.layout .discretion { display: flex; align-items: center; gap: .6rem; width: fit-content; max-width: 100%; padding: .55rem 1rem; border-radius: 14px;
  background: rgba(232, 149, 60, .1); border: 1px solid rgba(232, 149, 60, .4); color: #ffe2bf; }
.layout .discretion::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; background: var(--np-amber);
  -webkit-mask: var(--np-ic-alert) center / contain no-repeat; mask: var(--np-ic-alert) center / contain no-repeat; }
.layout .example { border-left: 3px solid var(--np-line2); border-radius: 0 10px 10px 0; background: var(--np-well); padding: .45rem .9rem; }
.layout code { font: 500 .85em var(--np-mono); color: #ffd2a0; background: var(--np-well); border: 1px solid rgba(232, 149, 60, .3); border-radius: 6px; padding: .08em .4em; }
.layout .muted { color: var(--muted, #93aab1); }

/* ------------------------------------------------------------------ pill tabs, the panel under them, questions that open
   .tabs is the rules page's own pair of tabs; .np-tabs are the ones night-pages.js makes from a page's sections */
.layout :is(.tabs, .np-tabs) { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 .85rem; padding: 0; border: 0; }
.layout :is(.tabs button, .np-tab) {
  --t: var(--np-cyan); display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .65rem 1.1rem; cursor: pointer; white-space: nowrap;
  border-radius: 12px; border: 1px solid rgba(140, 220, 230, .2); color: #cfe8ec;
  background: radial-gradient(ellipse 80% 90% at 50% 0%, color-mix(in srgb, var(--t) 14%, transparent), transparent 70%), color-mix(in srgb, var(--panel, #102027) 80%, transparent);
  font: 600 .8rem/1.1 var(--body); letter-spacing: .07em; text-transform: uppercase; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.layout :is(.tabs button, .np-tab)::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; background: var(--t);
  -webkit-mask: var(--np-i, var(--np-ic-sparkles)) center / contain no-repeat; mask: var(--np-i, var(--np-ic-sparkles)) center / contain no-repeat; }
.layout :is(.tabs button, .np-tab):hover { border-color: color-mix(in srgb, var(--t) 60%, transparent); transform: translateY(-1px); }
.layout :is(.tabs button, .np-tab)[aria-selected="true"] { color: #fff; border-color: var(--t);
  background: radial-gradient(ellipse 90% 110% at 50% 0%, color-mix(in srgb, var(--t) 30%, transparent), transparent 75%), color-mix(in srgb, var(--panel, #102027) 92%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--t) 32%, transparent), inset 0 -2px 0 var(--t); }
.layout .np-tab:focus-visible { outline: 2px solid var(--np-amber); outline-offset: 2px; }
.layout .np-count { min-width: 1.4rem; padding: .1rem .42rem; border-radius: 999px; font: 700 .72rem/1.3 var(--body); font-style: normal; text-align: center;
  color: #10150a; background: var(--t); box-shadow: 0 0 10px color-mix(in srgb, var(--t) 60%, transparent); font-variant-numeric: tabular-nums; }
.layout .tabs #tab-low { --t: var(--np-green); --np-i: var(--np-ic-feather); }
.layout .tabs #tab-semi { --t: var(--np-amber); --np-i: var(--np-ic-flame); }
/* A page's own tab strip sits between its cards like a toolbar; with the new top bar it stays under the menu while you read */
.layout > main > .np-tabs { position: relative; z-index: 4; margin: 0; padding: .5rem; border-radius: 16px; border: 1px solid var(--np-line2);
  background: color-mix(in srgb, var(--np-deep) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05); }
html:has(#nx-site-bar) .layout > main > .np-tabs { position: sticky; top: var(--nb-h, 3.6rem); }
html:has(#nx-site-bar) .layout > main > section > .tabs {
  position: sticky; top: var(--nb-h, 3.6rem); z-index: 4; margin-inline: calc(-1 * var(--np-pad)); padding: .6rem var(--np-pad);
  border-block: 1px solid var(--np-line); background: color-mix(in srgb, var(--np-deep) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.layout :is(.np-panel, .np-pane) { animation: np-in .25s ease-out; }
.layout :is(.np-panel, .np-pane, .stats-group)[hidden] { display: none !important; }
.layout .np-pane { display: flow-root; }
.layout :is(.np-panel, .np-pane), .layout :is(.np-panel, .np-pane) [id] { scroll-margin-top: calc(var(--nb-h, 0rem) + 5.5rem); }
/* Tabs inside a card (one per table, one per sub-heading): the icon shows only where the tab has its own */
.layout .np-sub { margin: 1.1rem 0 1rem; }
.layout .np-sub .np-tab:not([style*="--np-i"])::before { display: none; }
.layout .tabs > .np-tab { --t: var(--np-red); --np-i: var(--np-ic-scale); }
.layout > main > .np-notes { padding: 0 var(--np-pad); font-size: .86rem; color: var(--muted, #93aab1); }
.layout > main > .np-notes p { margin: 0 0 .3rem; max-width: none; }
.layout .np-tabbed caption { display: none; }
.layout .np-pane > h3:first-child { margin-top: .2rem; }
.layout .panel { margin: 0 0 1rem; padding: .35rem clamp(.8rem, 2vw, 1.2rem) 1rem; border-radius: 14px; border: 1px solid var(--np-line);
  background: var(--np-well); animation: np-in .25s ease-out; }
.layout .panel details { margin: .5rem 0; padding: 0 .9rem; border: 1px solid rgba(140, 220, 230, .14); border-radius: 12px; background: color-mix(in srgb, var(--panel, #102027) 55%, transparent); }
.layout .panel details:first-of-type { border-top: 1px solid rgba(140, 220, 230, .14); margin-top: .8rem; }
.layout .panel details[open] { border-color: var(--np-line2); }
.layout .panel summary { display: flex; align-items: center; gap: .6rem; list-style: none; padding: .8rem 0;
  font: italic 800 1.15rem/1.15 var(--head); text-transform: uppercase; letter-spacing: .03em; color: var(--np-ink); }
.layout .panel summary::-webkit-details-marker { display: none; }
.layout .panel summary::before { content: ""; flex: none; width: .3rem; height: 1.05em; border-radius: 3px; background: var(--np-amber); box-shadow: 0 0 10px rgba(232, 149, 60, .7); }
.layout .panel summary::after { content: ""; flex: none; margin-left: auto; width: 1.1rem; height: 1.1rem; background: var(--np-cyan); transition: transform .2s;
  -webkit-mask: var(--np-ic-chevron) center / contain no-repeat; mask: var(--np-ic-chevron) center / contain no-repeat; }
.layout .panel details[open] > summary::after { transform: rotate(180deg); }
.layout .panel summary:hover { color: #fff; }
.layout .panel dl { max-width: 78ch; }
.layout .panel dt { color: #fff; }
@keyframes np-in { from { opacity: 0; transform: translateY(6px); } }

/* ------------------------------------------------------------------ tables */
.layout main table:not(.stat-table) { border-collapse: separate; border-spacing: 0; border: 1px solid var(--np-line); border-radius: 14px; overflow: hidden;
  background: var(--np-well); }
.layout main table:not(.stat-table) thead th { font: 500 .68rem/1.2 var(--np-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #93aab1);
  background: color-mix(in srgb, var(--cyan, #4fd8e8) 6%, transparent); border-bottom: 1px solid var(--np-line); padding-block: .7rem; }
.layout main table:not(.stat-table) :is(td, th) { border-bottom: 0; }
.layout main table:not(.stat-table) tbody tr + tr > * { border-top: 1px solid rgba(140, 220, 230, .08); }
.layout main table:not(.stat-table) tbody tr { transition: background .15s; }
.layout main table:not(.stat-table) tbody tr:hover { background: color-mix(in srgb, var(--cyan, #4fd8e8) 6%, transparent); }
.layout main table:not(.stat-table) td.n { color: #fff; }
.layout .table-scroll { border-radius: 14px; }
/* Pack limits: one card for each diet, the tier as a small tag and the limit as a big number */
.layout .limits { gap: .8rem; }
.layout .diet { border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-top: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 16px;
  box-shadow: inset 0 3px 0 var(--c), 0 10px 28px rgba(0, 0, 0, .3); }
.layout .diet caption, .layout .stats-table caption { padding: .85rem .8rem .55rem; font: italic 800 1.2rem/1 var(--head); letter-spacing: .03em; color: var(--c); }
.layout .diet caption::before, .layout .stats-table caption::before { content: ""; display: inline-block; width: 1.15em; height: 1.15em; margin-right: .45rem;
  vertical-align: -.2em; background: var(--c); -webkit-mask: var(--np-d) center / contain no-repeat; mask: var(--np-d) center / contain no-repeat;
  filter: drop-shadow(0 0 6px var(--c)); }
.layout .carn { --np-d: var(--np-ic-claw); } .layout .herb { --np-d: var(--np-ic-leaf); } .layout .omni { --np-d: var(--np-ic-utensils); }
.layout .diet tbody td:not(.n) { font-weight: 600; color: var(--np-ink); }
/* the tier tag: a first cell with a name after it (Pack limits). A list that starts with the name (Prices) has none. */
.layout .diet tbody td:first-child:has(+ td:not(.n)) { font: 500 .74rem/1 var(--np-mono); letter-spacing: .04em; color: var(--c); }
.layout .diet tbody td:first-child:has(+ td:not(.n))::before { content: "T"; opacity: .6; }
.layout .diet tbody td.n, .layout .pair tbody td.n { font: italic 800 1.3rem/1 var(--head); letter-spacing: .02em; }
.layout .stats-group { border-radius: 16px; overflow: hidden; }
.layout .stats-group table { border: 0; border-radius: 0; background: none; }
.layout .stats-group.carn, .layout .stats-group.herb { border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.layout .stats-table tbody td:first-child { color: #fff; }
.layout .pair { gap: .9rem; }
.layout .pair > div { padding: .9rem 1rem 1rem; border-radius: 14px; background: var(--np-well); border: 1px solid rgba(140, 220, 230, .12); }

/* ------------------------------------------------------------------ cards on the Elders and Staff pages, Studio blocks */
.layout .elder-types { gap: .8rem; }
.layout .elder-types > div { border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 16px; padding: 1rem 1.1rem;
  background: radial-gradient(ellipse 90% 80% at 50% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), color-mix(in srgb, var(--panel, #102027) 80%, transparent);
  box-shadow: inset 0 3px 0 var(--c), 0 10px 26px rgba(0, 0, 0, .28); }
.layout .elder-types h3 { font: italic 800 1.3rem/1.05 var(--head); letter-spacing: .03em; }
.layout .elder-types h3::before { display: none; }
.layout .nx-cards { gap: .8rem; }
.layout .nx-cards > li { border-radius: 16px; border: 1px solid var(--np-line); padding: 1rem 1.1rem; overflow: hidden;
  background: radial-gradient(ellipse 90% 80% at 50% 0%, color-mix(in srgb, var(--cyan, #4fd8e8) 11%, transparent), transparent 70%), color-mix(in srgb, var(--panel, #102027) 82%, transparent);
  box-shadow: inset 0 3px 0 var(--cyan, #4fd8e8), 0 10px 26px rgba(0, 0, 0, .26); }
.layout .nx-cards > li > h3 { font: italic 800 1.25rem/1.05 var(--head); letter-spacing: .03em; color: #fff; }
.layout .nx-cards > li > img:first-child, .layout .nx-cards > li > figure:first-child { margin: -1rem -1.1rem .8rem; width: calc(100% + 2.2rem); }
.layout .nx-steps > li::before { background: linear-gradient(180deg, #ffd9a8, #f4ad5c); border: 0; color: #1d0f02; font: 700 .9rem/1 var(--body);
  box-shadow: 0 0 14px rgba(232, 149, 60, .5); }
.layout .nx-checks > li { margin-bottom: .55rem; }
.layout .nx-note { border-radius: 0 12px 12px 0; padding: .75rem 1.05rem; }
.layout .nx-faq { border-radius: 12px; border-color: rgba(140, 220, 230, .16); background: color-mix(in srgb, var(--panel, #102027) 60%, transparent); }
.layout .nx-faq[open] { border-color: var(--np-line2); }
.layout .nx-faq > summary { font: italic 800 1.1rem/1.25 var(--head); color: var(--np-ink); }
.layout .nx-divider { background: linear-gradient(90deg, transparent, var(--np-line2) 15%, var(--np-line2) 85%, transparent); }
/* Dinosaurs page cards */
.layout .species { border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--diet) 35%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--diet) 35%, transparent); box-shadow: inset 0 3px 0 var(--diet), 0 12px 30px rgba(0, 0, 0, .3);
  background: radial-gradient(ellipse 90% 40% at 50% 0%, color-mix(in srgb, var(--diet) 10%, transparent), transparent 70%), color-mix(in srgb, var(--panel, #102027) 86%, transparent); }
/* A dino's name is sized to its card's heading, so the longest one (Pachycephalosaurus) stays on one line even where the
   site's own narrow font hasn't loaded and a wider one stands in. */
.layout .species header { container: np-name / inline-size; }
.layout .species h3 { font: italic 800 clamp(1rem, 7.6cqi, 1.45rem)/1 var(--head); letter-spacing: .02em; }
.layout .species h3::before { display: none; }
.layout .species .facts div { background: color-mix(in srgb, var(--np-deep) 78%, transparent); }
.layout .species .facts dd { font: italic 800 1.15rem/1.1 var(--head); }
/* A table or a row of tabs wider than its box scrolls sideways (a phone): the edge fades while there is more that way
   (night-pages.js adds the two class names as it scrolls) */
.layout :is(.table-scroll, .tabs, .np-tabs, .np-pick).np-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.75rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 2.75rem), transparent); }
.layout :is(.table-scroll, .tabs, .np-tabs, .np-pick).np-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 2.75rem), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 2.75rem), transparent); }
.layout :is(.table-scroll, .tabs, .np-tabs, .np-pick).np-more-left.np-more-right {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2.75rem, #000 calc(100% - 2.75rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 2.75rem, #000 calc(100% - 2.75rem), transparent); }
.layout .table-scroll.np-more-left.np-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 2.75rem, #000 calc(100% - 2.75rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 2.75rem, #000 calc(100% - 2.75rem), transparent); }
/* A row of names over the cards (night-pages.js): All, or one dino at a time */
.layout .np-pick { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; scroll-margin-top: calc(var(--nb-h, 0rem) + 5.5rem); }
.layout .np-chip { margin: 0; padding: .4rem .85rem; cursor: pointer; white-space: nowrap; border-radius: 999px; border: 1px solid rgba(140, 220, 230, .2);
  color: var(--np-soft); background: color-mix(in srgb, var(--np-deep) 70%, transparent); font: 600 .86rem/1.2 var(--body);
  transition: border-color .15s, color .15s, background-color .15s; }
.layout .np-chip:hover { color: #fff; border-color: color-mix(in srgb, var(--t, var(--np-cyan)) 60%, transparent); }
.layout .np-chip[aria-pressed="true"] { color: #fff; border-color: var(--t, var(--np-cyan));
  background: color-mix(in srgb, var(--t, var(--np-cyan)) 24%, var(--np-deep)); box-shadow: 0 0 16px color-mix(in srgb, var(--t, var(--np-cyan)) 28%, transparent); }
.layout .np-chip:focus-visible { outline: 2px solid var(--np-amber); outline-offset: 2px; }
.layout .species[hidden] { display: none !important; }
.layout .species-grid.np-one .species { animation: np-in .25s ease-out; }
/* A dino's picture is never cropped. Once it has loaded (night-pages.js sets .np-pic and the picture's address), it sits
   whole in its box over a soft, blurred copy of itself, so a picture that isn't the box's shape leaves no bare bands.
   The copy is a fifth larger than the box and cut back to it, so the blur doesn't fade out at the edges. */
.layout .species.np-pic { position: relative; isolation: isolate; }
.layout .species.np-pic::before { content: ""; position: absolute; z-index: -1; top: 0; left: -10%; width: 120%; margin-top: -5.625%; aspect-ratio: 16 / 9;
  background: var(--np-pic) center / cover no-repeat; filter: blur(20px) brightness(.6) saturate(1.15); clip-path: inset(8.3333%); }
.layout .species.np-pic > .species-img { object-fit: contain; }
/* One dino picked: its card takes the whole row. Where the card is wide enough, the picture sits beside the numbers in a
   box of its own shape (16:9), and the numbers grow to the same height. The numbers keep at least 26.5rem, so a weight
   stays on one line. In a middling card the six facts run across under the picture; in a wide one they sit beside it.
   What the dino eats runs across the foot of the card. */
.layout .species-grid.np-one { grid-template-columns: minmax(0, 1fr); container: np-dino / inline-size; }
@container np-dino (min-width: 50rem) {
  .layout .species-grid.np-one .species:has(> .species-img) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(26.5rem, 1fr); grid-template-rows: auto 1fr; }
  .layout .species-grid.np-one .species:has(> .species-img) > * { grid-column: 2; }
  .layout .species-grid.np-one .species > .species-img { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; width: 100%; height: auto; aspect-ratio: 16 / 9;
    border-bottom: 0; border-right: 1px solid color-mix(in srgb, var(--diet) 30%, transparent); }
  .layout .species-grid.np-one .species.np-pic:has(> .species-img)::before { position: static; grid-column: 1; grid-row: 1 / span 2; width: auto; aspect-ratio: auto;
    margin: -2rem; clip-path: inset(2rem); }
  .layout .species-grid.np-one .species:has(> .species-img) > .stat-table { height: 100%; }
  .layout .species-grid.np-one .species:has(> .species-img) > .stat-table :is(th, td) { white-space: nowrap; }
  .layout .species-grid.np-one .species:has(> .species-img) > .facts { grid-column: 1 / -1; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 0; }
  .layout .species-grid.np-one .species:has(> .species-img) > .facts:last-child { border-bottom: 0; }
  .layout .species-grid.np-one .species:has(> .species-img) > .diet-list { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1.5rem; }
  .layout .species-grid.np-one .species h3 { font-size: clamp(1rem, 7.6cqi, 1.7rem); }
}
@container np-dino (min-width: 60rem) {
  .layout .species-grid.np-one .species:has(> .species-img) { grid-template-columns: minmax(0, min(58%, 44rem)) minmax(26.5rem, 1fr); grid-template-rows: auto 1fr 1fr; }
  .layout .species-grid.np-one .species > .species-img, .layout .species-grid.np-one .species.np-pic:has(> .species-img)::before { grid-row: 1 / span 3; }
  .layout .species-grid.np-one .species:has(> .species-img) > .facts { grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: stretch; border-bottom: 0; }
  .layout .species-grid.np-one .species:has(> .species-img) > .facts div { align-content: center; }
  .layout .species-grid.np-one .species:has(> .species-img) > .diet-list { border-top: 1px solid color-mix(in srgb, var(--diet) 30%, transparent); }
  .layout .species-grid.np-one .species h3 { font-size: clamp(1rem, 7.6cqi, 2rem); }
}

/* ------------------------------------------------------------------ pictures */
.layout :is(.scene, .side-art, .nx-figure, .nx-video, .nx-gallery > li) { border-radius: 16px; overflow: hidden; border: 1px solid var(--np-line2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38), 0 0 28px color-mix(in srgb, var(--cyan, #4fd8e8) 7%, transparent); }

/* On a very wide screen the picture beside a page's opening text grows with the card */
@media (min-width: 100rem) {
  .layout main .side-art, .layout #elders .side-art { width: min(36%, 25rem); }
}
/* A scene picture shows whole, in its own shape. Where it opens a card on a wide screen it sits beside the card's title
   and opening lines, so the title and tabs stay in the first screenful; tables and lists start under it. */
.layout main .scene { width: fit-content; max-width: 100%; margin-inline: auto; }
.layout main .scene img { aspect-ratio: auto; width: auto; max-width: 100%; height: auto; max-height: 62vh; }
@media (min-width: 75rem) {
  .layout main section > .scene:first-child { float: right; width: min(38%, 27rem); margin: 0 0 1.1rem 1.75rem; }
  .layout main section > .scene:first-child img { width: 100%; max-height: none; }
  .layout main section > .scene:first-child ~ :not(h1, h2, h3, p, .np-tabs) { clear: both; }
}

/* ------------------------------------------------------------------ buttons */
.layout .btn { display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.3rem; border-radius: 999px; border: 1px solid #9aa3ff;
  font: 600 .84rem/1.1 var(--body); letter-spacing: .07em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #7f8bff, #5865f2); box-shadow: 0 0 22px rgba(88, 101, 242, .45); transition: transform .15s, box-shadow .15s; }
.layout .btn:hover { color: #fff; background: linear-gradient(180deg, #8d98ff, #5d6af5); transform: translateY(-1px); box-shadow: 0 0 32px rgba(88, 101, 242, .65); }
.layout .btn[href*="discord"]::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; background: currentColor;
  -webkit-mask: var(--np-ic-chat) center / contain no-repeat; mask: var(--np-ic-chat) center / contain no-repeat; }
.layout .btn.nx-btn-gold { color: #1d0f02; border-color: #ffd9a8; background: linear-gradient(180deg, #ffd9a8, #f4ad5c); box-shadow: 0 0 20px rgba(232, 149, 60, .4); }
.layout .btn.nx-btn-gold:hover { color: #1d0f02; box-shadow: 0 0 28px rgba(232, 149, 60, .6); }
.layout .btn.nx-btn-alt { color: var(--np-ink); border-color: var(--np-line2); background: var(--np-well); box-shadow: none; }
.layout .btn.nx-btn-alt:hover { color: var(--np-cyan); border-color: var(--np-cyan); box-shadow: 0 0 18px color-mix(in srgb, var(--cyan, #4fd8e8) 25%, transparent); }

/* ------------------------------------------------------------------ "Find your way" on the home page: link tiles */
.layout .explore { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: .65rem; max-width: none; padding: 0; margin: 0; }
.layout .explore li { --t: var(--np-cyan); --np-i: var(--np-ic-arrow); position: relative; margin: 0; padding: .9rem 2.4rem .95rem 4rem; min-height: 4.5rem;
  border-radius: 14px; border: 1px solid rgba(140, 220, 230, .18); color: var(--muted, #93aab1); font-size: .93rem; line-height: 1.45;
  background: radial-gradient(ellipse 80% 90% at 0% 0%, color-mix(in srgb, var(--t) 13%, transparent), transparent 70%), color-mix(in srgb, var(--panel, #102027) 78%, transparent);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--t) 45%, transparent); transition: border-color .15s, transform .15s, box-shadow .15s; }
.layout .explore li:hover { border-color: color-mix(in srgb, var(--t) 65%, transparent); transform: translateY(-2px);
  box-shadow: inset 0 -2px 0 var(--t), 0 0 24px color-mix(in srgb, var(--t) 24%, transparent); }
.layout .explore li::before { content: ""; position: absolute; left: .85rem; top: .95rem; width: 2.5rem; height: 2.5rem; border-radius: 12px;
  background: color-mix(in srgb, var(--t) 14%, var(--np-well)); border: 1px solid color-mix(in srgb, var(--t) 45%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--t) 20%, transparent); }
.layout .explore li::after { content: ""; position: absolute; left: calc(.85rem + .6rem); top: calc(.95rem + .6rem); width: 1.3rem; height: 1.3rem; background: var(--t);
  -webkit-mask: var(--np-i) center / contain no-repeat; mask: var(--np-i) center / contain no-repeat; }
.layout .explore a { font: italic 800 1.15rem/1.1 var(--head); letter-spacing: .03em; text-transform: uppercase; color: #fff; text-decoration: none; }
.layout .explore a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.layout .explore a::after { content: ""; position: absolute; right: .85rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -.52rem; background: var(--t); opacity: .45;
  -webkit-mask: var(--np-ic-arrow) center / contain no-repeat; mask: var(--np-ic-arrow) center / contain no-repeat; transition: transform .15s, opacity .15s; }
.layout .explore li:hover a { color: var(--t); }
.layout .explore li:hover a::after { opacity: 1; transform: translateX(3px); }
.layout .explore li:has(> a[href="/join"]) { --t: var(--np-green); --np-i: var(--np-ic-login); }
.layout .explore li:has(> a[href="/rules"]) { --t: var(--np-amber); --np-i: var(--np-ic-shield); }
.layout .explore li:has(> a[href="/pack-limits"]) { --t: var(--np-cyan); --np-i: var(--np-ic-users); }
.layout .explore li:has(> a[href="/dino-stats"]) { --t: var(--np-violet); --np-i: var(--np-ic-bars); }
.layout .explore li:has(> a[href="/elders"]) { --t: var(--np-gold); --np-i: var(--np-ic-crown); }
.layout .explore li:has(> a[href="/dinosaurs"]) { --t: var(--np-green); --np-i: var(--np-ic-dino); }
.layout .explore li:has(> a[href="/events"]) { --t: var(--np-pink); --np-i: var(--np-ic-calendar); }
.layout .explore li:has(> a[href="/support"]) { --t: var(--np-cyan); --np-i: var(--np-ic-lifebuoy); }
.layout .explore li:has(> a[href="/chat"]) { --t: var(--np-blue); --np-i: var(--np-ic-chat); }
.layout .explore li:has(> a[href="/bugs"]) { --t: var(--np-amber); --np-i: var(--np-ic-alert); }

/* ------------------------------------------------------------------ the side column */
.layout > aside { gap: 1rem; top: calc(var(--nb-h, 3.6rem) + 1rem); }
.layout > aside .box { --t: var(--np-cyan); --np-i: var(--np-ic-info); position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--np-line);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--t) 60%, transparent), transparent) top / 100% 1px no-repeat,
              radial-gradient(ellipse 70% 9rem at 100% 0%, color-mix(in srgb, var(--t) 10%, transparent), transparent 72%), var(--np-glass);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .04); }
.layout > aside .box:has(dl) { --t: var(--np-amber); --np-i: var(--np-ic-server); }
.layout > aside .box:has(> iframe) { --t: #8b9cff; --np-i: var(--np-ic-chat); }
.layout > aside .box:has(ul) { --t: var(--np-cyan); --np-i: var(--np-ic-link); }
.layout > aside .box > h2 { position: relative; display: flex; align-items: center; gap: .65rem; margin: 0; padding: .95rem 1rem .55rem; border: 0;
  font: italic 800 1.2rem/1 var(--head); letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.layout > aside .box > h2::before { content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 10px;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--t) 30%, transparent), transparent 75%), var(--np-well);
  border: 1px solid color-mix(in srgb, var(--t) 50%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--t) 22%, transparent); }
.layout > aside .box > h2::after { content: ""; position: absolute; left: calc(1rem + .5rem); top: 50%; margin-top: calc(.2rem - .5rem); width: 1rem; height: 1rem;
  background: var(--t); -webkit-mask: var(--np-i) center / contain no-repeat; mask: var(--np-i) center / contain no-repeat; }
.layout > aside .box .in { padding: .35rem 1rem 1rem; }
.layout > aside .box dl { gap: 0 .9rem; }
.layout > aside .box :is(dt, dd) { padding: .48rem 0; border-top: 1px solid rgba(140, 220, 230, .08); }
.layout > aside .box :is(dt, dd):nth-of-type(1) { border-top: 0; }
.layout > aside .box dt { font: 500 .7rem/1.9 var(--np-mono); letter-spacing: .1em; text-transform: uppercase; }
.layout > aside .box dd { font-weight: 600; color: var(--np-ink); }
.layout > aside .box ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.layout > aside .box li { margin: 0; }
.layout > aside .box li a { display: flex; align-items: center; gap: .6rem; padding: .62rem .8rem; border-radius: 11px; text-decoration: none; font-weight: 600;
  color: var(--np-ink); background: var(--np-well); border: 1px solid rgba(140, 220, 230, .14); transition: border-color .15s, color .15s; }
.layout > aside .box li a::after { content: ""; flex: none; margin-left: auto; width: 1rem; height: 1rem; background: var(--np-cyan);
  -webkit-mask: var(--np-ic-arrow) center / contain no-repeat; mask: var(--np-ic-arrow) center / contain no-repeat; transition: transform .15s; }
.layout > aside .box li a:hover { color: var(--np-cyan); border-color: var(--np-line2); }
.layout > aside .box li a:hover::after { transform: translateX(3px); }
.layout > aside .box > iframe { margin: .35rem 0 0; border-top: 1px solid var(--np-line); }

/* ------------------------------------------------------------------ footer of the main pages */
body:has(> .layout) > footer { border-top: 1px solid var(--np-line); font-size: .88rem;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cyan, #4fd8e8) 45%, transparent), transparent) top / 100% 1px no-repeat,
              linear-gradient(180deg, transparent, color-mix(in srgb, var(--np-deep) 85%, transparent)); }
body:has(> .layout) > footer .wrap { padding-block: 1.4rem 2.2rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 2.5rem; align-items: center; }
body:has(> .layout) > footer .wrap > p { grid-column: 1; }
body:has(> .layout) > footer .foot-links { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }

/* ------------------------------------------------------------------ the footer's links, on every page (main, member and staff):
   a row of small pills, and "Report a bug" carries a bug in amber. */
footer .wrap > ul { gap: .45rem .5rem; }
footer .wrap > ul a { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .8rem; border-radius: 999px; font-size: .86rem; line-height: 1.3;
  color: var(--np-soft); text-decoration: none; border: 1px solid var(--np-line); background: var(--np-well); transition: border-color .15s, color .15s; }
footer .wrap > ul a:hover { color: var(--np-cyan); border-color: var(--np-line2); }
footer .wrap > ul a:focus-visible { outline: 2px solid var(--np-cyan); outline-offset: 2px; }
footer .wrap > ul a[href="/bugs"] { color: var(--np-amber); border-color: color-mix(in srgb, var(--np-amber) 38%, transparent); }
footer .wrap > ul a[href="/bugs"]::before { content: ""; flex: none; width: 1rem; height: 1rem; background: currentColor;
  -webkit-mask: var(--np-ic-bug) center / contain no-repeat; mask: var(--np-ic-bug) center / contain no-repeat; }
footer .wrap > ul a[href="/bugs"]:hover { color: #ffb561; border-color: var(--np-amber); }

/* ------------------------------------------------------------------ an empty Instincts board whose line ends in a link:
   the words run on as one sentence beside the icon (the icon, the words and the link stood in three columns). */
.in-empty:has(> a) { display: block; position: relative; padding-left: 3.5rem; }
.in-empty:has(> a) > svg { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); }
.in-empty.big:has(> a) { padding-left: 3.9rem; }
.in-empty.big:has(> a) > svg { left: 1.5rem; }

/* ------------------------------------------------------------------ member and staff pages: the title band gets the bug report page's night sky */
.page-head { border-bottom-color: var(--vine, #16303b);
  background: radial-gradient(ellipse 55% 130% at 10% 0%, rgba(232, 149, 60, .16), transparent 65%),
              radial-gradient(ellipse 50% 110% at 90% 10%, rgba(63, 227, 242, .14), transparent 70%),
              linear-gradient(180deg, #0b1620 0%, #08141b 60%, var(--night, #050d12) 100%);
  padding-block: clamp(1.9rem, 5vw, 3.2rem) clamp(1.7rem, 4.5vw, 2.7rem); }
.page-head::before { inset: 0; transform: none; filter: none; opacity: 1; background: var(--np-stars) 0 0 / 260px 180px; animation: np-twinkle 5s ease-in-out infinite alternate; }
.page-head::after {   /* a crescent moon with a soft halo, on the right */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z' fill='%23d6f0f6' fill-opacity='.42'/%3E%3C/svg%3E") 86% 46% / clamp(5.5rem, 9vw, 7.5rem) no-repeat,
              radial-gradient(circle clamp(7rem, 12vw, 10rem) at 86% 44%, rgba(63, 227, 242, .12), transparent 70%); }
@media (max-width: 40rem) {   /* on a phone the moon is small and up in the corner, clear of the heading */
  .page-head::after { opacity: .6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z' fill='%23d6f0f6' fill-opacity='.42'/%3E%3C/svg%3E") calc(100% - .9rem) .65rem / 2.6rem no-repeat,
                                               radial-gradient(circle 4rem at calc(100% - 2.2rem) 1.95rem, rgba(63, 227, 242, .12), transparent 70%); }
}
.page-head .eyebrow { display: flex; align-items: center; gap: .55rem; }
.page-head .eyebrow::before { content: ""; flex: none; width: .5rem; height: .5rem; transform: rotate(45deg); border-radius: 2px; background: var(--ember, #e8953c);
  box-shadow: 0 0 10px var(--ember, #e8953c); }
.page-head .eyebrow:empty { display: none; }
.page-head h1 { font-size: clamp(2.2rem, 5.6vw, 3.7rem); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.page-head .lede { color: #cfe3e8; opacity: 1; max-width: 62ch; }
@keyframes np-twinkle { from { opacity: 1; } to { opacity: .55; } }

/* ------------------------------------------------------------------ small screens, less motion, printing */
@media (max-width: 56rem) {
  body:has(> .layout) > footer .wrap { grid-template-columns: minmax(0, 1fr); }
  body:has(> .layout) > footer .foot-links { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: .7rem; }
}
@media (max-width: 40rem) {
  .layout > main > section { border-radius: 16px; }
  .layout > main > section > :is(h1, h2)::before { width: 2.2rem; height: 2.2rem; }
  .layout > main > section > :is(h1, h2)::after { left: .5rem; width: 1.2rem; height: 1.2rem; margin-top: -.6rem; }
  .layout main :is(section, .panel, .np-pane, details, .nx-col, .pair > div) > ol:not([class]) > li { padding-left: 2.75rem; }
  .layout :is(.tabs button, .np-tab) { padding: .6rem .85rem; }
  .layout :is(.tabs, .np-tabs) { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .layout :is(.tabs, .np-tabs)::-webkit-scrollbar { display: none; }
  .layout .np-pick { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--np-pad)); padding: .15rem var(--np-pad); }
  .layout .np-pick::-webkit-scrollbar { display: none; }
  .layout .panel { padding-inline: .6rem; }
  .layout .panel details { padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .page-head::before, .layout .panel, .layout .np-panel, .layout .np-pane, .layout > main > section::before { animation: none; }
  .layout .explore li, .layout :is(.tabs button, .np-tab), .layout .np-chip, .layout .btn { transition: none; }
  .layout .species-grid.np-one .species { animation: none; }
}
@media print {
  .layout > main > section, .layout > aside .box { background: none; box-shadow: none; border-color: #999; }
  .layout > main > section::before, .layout > main > section::after, .layout .np-tabs, .layout .np-pick, .layout .np-scene { display: none !important; }
  .layout :is(.np-panel, .np-pane, .stats-group, .species)[hidden] { display: block !important; }
}
