/* The lab site: the plugins index (pp-*) and the plugin pages (sp-*). Builds on lab.css (tokens,
   buttons) and, on plugin pages, content/content.css (the content cards and the subscriptions
   band). MagmaGuy's taste: a 1440px column at 1920 wide and 95vw below that, compact cards with
   the name on the picture, pictures that follow the mouse. */

.site-page { background: transparent; }
/* "Skip to content" (#main) lands under the sticky header, not behind it: 84px, one 56px row
   under 1000px (site-nav.css). The same rule as in content/content.css, for the pages that load
   only this file (the plugins index, the download pages); audit 2026-11-14, audit-a11y-5. */
#main { scroll-margin-top: 84px; }
@media (max-width: 999px) { #main { scroll-margin-top: 56px; } }

/* ================================================================
   Plugins index (Dali, 11-06): a bigger title with room under it, three big 4:5 cards to a row,
   the picture filling the card, the name and description left-aligned on a black gradient at the
   bottom, a red ribbon across the top-right corner (Free, or Coming soon), and on hover an
   orange border and a zoom. The home page's plugin cards look the same (home.css .hm-pcard).
   ================================================================ */
.pp-main {
  padding: 0 0 72px;
  position: relative;
}

/* The header (Dali, 15:56): across the whole page on his picture, slightly blurred (the blur is in
   the picture, img/plugins-header/), under a darker layer and a vignette that fades into the page;
   the title in the middle and a line under it. */
.pp-header {
  align-content: center;
  background: url("../img/plugins-header/header-1920.webp") center 40% / cover no-repeat #120c0a;
  display: grid;
  isolation: isolate;
  justify-items: center;
  margin-bottom: clamp(36px, 4vw, 64px);
  min-height: clamp(390px, 35vw, 600px); /* 30% taller (Dali, 17:59) */
  overflow: hidden;
  padding: clamp(40px, 4vw, 72px) 5vw;
  position: relative;
  text-align: center;
}
.pp-header::after {
  background:
    radial-gradient(ellipse 75% 85% at 50% 50%, transparent 30%, rgb(0 0 0 / .72) 100%),
    /* A long, eased fade into the page at the bottom (Dali, 17:59: smoother). */
    linear-gradient(180deg, rgb(0 0 0 / .25) 0%, transparent 28%, transparent 40%, rgb(0 0 0 / .06) 50%, rgb(0 0 0 / .2) 60%, rgb(0 0 0 / .42) 70%, rgb(0 0 0 / .66) 80%, rgb(0 0 0 / .87) 90%, #000 100%),
    rgb(8 6 10 / .5);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
@media (max-width: 959px) { .pp-header { background-image: url("../img/plugins-header/header-960.webp"); } }

.pp-title {
  color: #de5a29;
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 18px rgb(0 0 0 / .6);
}
.pp-lede {
  color: #fff;
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 600;
  line-height: 1.45;
  margin: 14px 0 0;
  max-width: 34em;
  text-shadow: 0 1px 10px rgb(0 0 0 / .7);
  text-wrap: balance;
}

.pp-grid {
  box-sizing: border-box;
  display: grid;
  gap: clamp(20px, 2.2vw, 32px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 1440px;
  padding: 0;
  width: 95vw;
}
@media (max-width: 959px) { .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .pp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* A landscape picture on top, the name and the description under it (Dali, 11-13: "more
   landscape format not portrait"). */
.pp-card {
  background: #0c0c11;
  border: 2px solid rgb(255 255 255 / .07);
  border-radius: 12px;
  contain: layout; /* keeps the name link's fixed ::after inside the card */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: border-color .2s ease;
}
.pp-card:hover,
.pp-card:focus-within { border-color: var(--flare); }
.pp-card:has(.pp-card__name a:focus-visible) { outline: 2px solid var(--flare); outline-offset: 3px; }

/* The picture's box has the shape of the wide cut (3012 x 1898), so the card keeps its room
   before the picture loads, and the picture's zoom stays inside it. */
.pp-card__pic {
  aspect-ratio: 3012 / 1898;
  flex: none;
  overflow: hidden;
  position: relative;
}
.pp-card__img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1.02);
  transition: transform .45s cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 100%;
}
/* The picture zooms in and leans toward the mouse (page.js sets --px/--py, -0.5..0.5). */
.pp-card:hover .pp-card__img {
  transform: scale(1.1) translate(calc(var(--px, 0) * -4%), calc(var(--py, 0) * -4%));
}

/* The ribbon: across the top-right corner at 45 degrees, red with bold white words. */
.pp-card__ribbon {
  background: var(--ember);
  box-shadow: 0 4px 14px rgb(0 0 0 / .4);
  color: #fff;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  padding: 11px 0;
  pointer-events: none;
  position: absolute;
  right: -62px;
  text-align: center;
  text-transform: uppercase;
  top: 34px;
  transform: rotate(45deg);
  width: 240px;
  z-index: 2;
}

.pp-card__text {
  padding: clamp(14px, 1.3vw, 20px) clamp(18px, 1.6vw, 24px) clamp(18px, 1.6vw, 24px);
  text-align: left;
}
.pp-card__name {
  color: #fff;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}
.pp-card__name a {
  color: inherit;
  outline: none;
  text-decoration: none;
}
/* The name's link covers the whole card. */
.pp-card__name a::after {
  content: "";
  inset: 0;
  position: fixed;
  z-index: 1;
}
.pp-card__blurb {
  color: rgb(255 255 255 / .86);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* Coming soon: no page yet, so no link, and a darker picture. It still zooms on hover. */
.pp-card--soon .pp-card__img { filter: brightness(.5) saturate(.8); }

@media (max-width: 639px) {
  .pp-main { padding-bottom: 44px; }
  .pp-header { margin-bottom: 24px; min-height: 310px; padding: 36px 20px; }
  .pp-grid { width: calc(100% - 28px); }
  .pp-card__name { font-size: 22px; }
  .pp-card__blurb { font-size: 15px; }
  .pp-card__ribbon { font-size: 13px; right: -66px; top: 26px; padding: 9px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-card__img, .pp-card:hover .pp-card__img { transform: none; transition: none; }
}

/* ================================================================
   Plugin pages. The hero is the one loud thing: the plugin's world behind it, the name huge and
   white on the picture (like the cards), and a picture that leans toward the mouse. Everything
   under it stays quiet: orange section headings, plain text, the content cards.
   ================================================================ */
.sp-main { padding: 0 0 96px; }
.sp-wrap { margin-inline: auto; max-width: 1440px; width: 95vw; }

/* ---- Hero ---- */
.sp-hero { isolation: isolate; overflow: hidden; position: relative; }
.sp-hero__bg { inset: 0; position: absolute; z-index: -1; }
.sp-hero__bg img { height: 100%; object-fit: cover; opacity: .85; width: 100%; }
/* Dali, 16:22: the picture behind the whole section with a slight gradient from the left (dark
   behind the words, the world clear on the right), and a fade into the page at the bottom. */
.sp-hero__bg::after {
  background:
    linear-gradient(90deg, rgb(0 0 0 / .86) 0%, rgb(0 0 0 / .62) 38%, rgb(0 0 0 / .18) 75%, rgb(0 0 0 / .05) 100%),
    linear-gradient(0deg, #000 0%, rgb(0 0 0 / 0) 30%);
  content: ""; inset: 0; position: absolute;
}
/* A taller section, the words on the left in its middle (Dali, 16:22). */
.sp-hero__in {
  align-items: center; display: grid; gap: clamp(28px, 4vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: clamp(540px, 46vw, 780px); padding: clamp(48px, 5vw, 88px) 0;
}
.sp-hero--solo .sp-hero__in { grid-template-columns: minmax(0, 760px); }
.sp-hero__name {
  color: #fff; font-size: clamp(34px, min(6.2vw, 74vw / var(--len, 10)), 96px); font-weight: 900; letter-spacing: -.035em; line-height: .95; margin: 0;
  overflow-wrap: anywhere; text-shadow: 0 4px 30px rgb(0 0 0 / .7);
}
/* The name fits its column on one line: --len is its length in characters (render.js). */
.sp-hero--solo .sp-hero__name { font-size: clamp(34px, min(6.2vw, 1300px / var(--len, 10)), 96px); }
.sp-hero__bio { color: var(--wall, #dcdce2); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; margin: 22px 0 0; max-width: 34em; text-wrap: pretty; }
/* Dali, 2026-11-10: "decrease the spacing between the description and the download/content
   buttons and increase the spacing between the download/content buttons and the buttons under
   it". The buttons sit 18px under the description (it was 30) and whatever follows them, the
   "Also on" chips or the docs links, starts 36px lower (it was 22): the buttons read as the
   description's, the rest as a second group. */
.sp-hero__acts { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 18px; }
.sp-hero__acts + .sp-hero__where, .sp-hero__acts + .sp-hero__more { margin-top: 36px; }
/* Download as big as "See its content" beside it (Dali, 16:22): the two hero buttons share one
   height and the lab's button type. */
.sp-hero__acts .btn { font-size: 16px; height: 50px; padding-block: 0; }
/* 16:22 again ("make the download button same size as 'See its content'"): the same width too.
   Two equal columns as wide as the wider button, in any language. */
.sp-hero__acts--pair { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; max-width: 100%; width: max-content; }
.sp-download { gap: .6em; padding-inline: 20px 16px; }
.sp-download svg { height: 1.2em; width: 1.2em; }
.sp-download__price { background: rgb(0 0 0 / .22); border-radius: 3px; font-size: 12px; font-weight: 800; line-height: 1; margin-left: .15em; padding: 4px 7px; }
.sp-pricing { background: rgb(255 255 255 / .1); border-radius: 4px; font-weight: 800; padding: 10px 14px; }
.sp-hero__where { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 22px; }
.sp-hero__also { color: var(--muted); font-size: 14px; margin: 0; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sp-chip {
  align-items: center; border: 1px solid var(--hair-strong); border-radius: 999px; color: #fff; display: inline-flex; font-size: 14px; font-weight: 700;
  gap: 6px; padding: 7px 12px 7px 14px; text-decoration: none; transition: border-color .15s, background-color .15s;
}
.sp-chip svg { color: var(--muted); height: 14px; width: 14px; }
.sp-chip:hover { background: rgb(255 255 255 / .06); border-color: #fff; }
.sp-hero__more { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; }
.sp-more { align-items: center; display: inline-flex; gap: 8px; }
.sp-more svg { color: var(--flare); flex: none; height: 19px; width: 19px; }

/* The leaning picture: a framed screenshot, tilted a little toward the pointer. */

/* ---- On this page ---- */

/* ---- Sections ---- */
/* A little more room between the sections (Dali, 16:22). */
.sp-sec { padding-top: clamp(72px, 7.5vw, 124px); }
/* 84px: the shell's header is 84px tall, and 80px left a section's top 4px under it (audit
   2026-11-14, audit-a11y-5). */
.sp-sec[id], .sp [id="memberships"] { scroll-margin-top: 84px; }
.sp h2.nb-heading { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 18px; }
.sp-prose-sec__in { align-items: start; display: grid; gap: clamp(28px, 4vw, 72px); grid-template-columns: minmax(0, 1fr); }
.sp-prose-sec.has-side .sp-prose-sec__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* MagmaGuy, 11-06: Setup mirrors About, video on the left and text on the right. Two columns
   only; stacked (960px and down) the text still comes first. */
@media (min-width: 961px) {
  #setup.sp-prose-sec.has-side .sp-side { grid-column: 1; grid-row: 1; }
  #setup.sp-prose-sec.has-side .sp-prose { grid-column: 2; grid-row: 1; }
}
.sp-prose { color: var(--wall, #dcdce2); font-size: 16.5px; line-height: 1.65; max-width: 70ch; }
.sp-prose p { margin: 0 0 1em; }
.sp-prose h3, .sp-prose h4 { color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; margin: 1.6em 0 .5em; }
.sp-prose h4 { font-size: 17px; }
.sp-prose h2 + h3 { margin-top: 0; }
.sp-prose strong { color: #fff; }
.sp-prose ol, .sp-prose ul { margin: 0 0 1.1em; padding-left: 1.4em; }
.sp-prose li { margin: .3em 0; padding-left: .2em; }
.sp-prose li::marker { color: var(--flare); font-weight: 800; }
.sp-prose a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sp-prose a:hover { color: var(--flare); }
.sp-prose code { background: rgb(255 255 255 / .08); border-radius: 4px; font: 600 .92em/1 Inconsolata, ui-monospace, Consolas, monospace; padding: 2px 6px; }
/* A path longer than a phone is wide (FreeMinecraftModels' Setup has one of 58 characters) breaks
   where it has to. content.css keeps every <code> on one line (nowrap), and unbroken that path
   made the whole page 470px wide on a 390px screen (2026-11-10). As a box of its own, a piece of
   code still moves to the next line whole, as before, and only one wider than the whole column
   wraps inside its box. line-height normal keeps the grey box the height it had as plain inline
   text. */
.sp-prose code { display: inline-block; line-height: normal; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.sp-prose__docs { margin-top: 1.4em; }
.sp-setup__more { margin: 1.6em 0 0; }
.sp-prose .sp-setup__more a.btn { text-decoration: none; }.sp-setup__more + .sp-prose__docs { margin-top: 1em; }
.sp-side { position: sticky; top: 110px; }
.sp-side .nb-video { border-radius: 12px; box-shadow: 0 24px 60px rgb(0 0 0 / .55); }

/* ---- Pictures ---- */

/* ---- Content: the content pages' cards ---- */
.sp-content__head { align-items: end; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; margin-bottom: 26px; }
.sp-content__head h2.nb-heading { margin-bottom: 6px; }
.sp-content__head p { color: var(--muted); margin: 0; }
/* An old link to content that is gone lands at the list with this one line (plugin-page.js). */
.sp-gone { border-left: 2px solid var(--ember); color: var(--fg); font-size: 15px; font-weight: 600; line-height: 1.5; margin: -6px 0 24px; padding: 2px 0 2px 12px; }
/* An old link to content that has its own page now: nothing of this page shows on the way
   there (shared/anchor.js, in the head). */
.nb-anchor-away body { visibility: hidden; }
.sp-grid.ct-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* The filter row: All, Free, then each kind with its count. */
.sp-band .ct-band { margin-top: clamp(64px, 7vw, 110px); }
.sp-missing { margin: 80px auto; text-align: center; }
/* A plugin that is not released yet: its page is the hero alone, a Coming soon tag over the
   name, on the picture its card shows, darker as on the card (MagmaGuy, 11-13). */
.sp-soon__tag {
  background: var(--ember); border-radius: 6px; color: #fff; display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .06em;
  line-height: 1; margin: 0 0 18px; padding: 9px 14px; text-transform: uppercase;
}
.sp-hero--soon .sp-hero__bg img { filter: brightness(.6) saturate(.8); }

/* ================================================================
   A plugin's download page (/plugin/<id>/download/; render.js downloadPage, download-page.js).
   Plain and quick: the heading and the store buttons, the latest changelog in a box that keeps
   its room while the text is on its way, the plugin's Setup as on its own page, and a row of
   the other plugins. No hero picture: a server owner comes here from a link in the game.
   ================================================================ */
.dl-head { padding-top: clamp(44px, 5vw, 84px); }
.dl-title { color: #fff; font-size: clamp(32px, 5vw, 64px); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; margin: 0; overflow-wrap: anywhere; }
.dl-acts { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 26px; }
.dl-store { align-items: center; display: inline-flex; gap: 10px; justify-content: center; }
.dl-store svg { flex: none; height: 20px; width: 20px; }
.dl .sp-sec { padding-top: clamp(48px, 5vw, 84px); }
.dl h2.nb-heading { font-size: clamp(24px, 2.3vw, 30px); margin-bottom: 20px; }
.dl-log__box {
  background: #0c0c11; border: 1px solid rgb(255 255 255 / .07); border-radius: 12px; box-sizing: border-box; max-width: 900px; min-height: 180px;
  padding: clamp(18px, 2vw, 28px);
}
.dl-log__note { color: var(--wall, #dcdce2); margin: 0; }
.dl-log__meta { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 14px; }
.dl-log__version { color: #fff; font-size: 20px; font-weight: 800; }
.dl-log__date { color: var(--wall, #dcdce2); }
.dl-log__text { max-width: none; overflow-wrap: anywhere; }
.dl-log__text > :last-child { margin-bottom: 0; }
.dl-more__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); list-style: none; margin: 0; padding: 0; }
.dl-tile {
  background: #0c0c11; border: 1px solid rgb(255 255 255 / .07); border-radius: 10px; color: #fff; display: block; font-weight: 800; height: 100%;
  overflow: hidden; text-decoration: none; transition: border-color .15s;
}
.dl-tile:hover { border-color: var(--flare); }
.dl-tile:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; }
.dl-tile img { aspect-ratio: 3012 / 1898; display: block; height: auto; object-fit: cover; width: 100%; }
.dl-tile span { display: block; overflow-wrap: anywhere; padding: 10px 12px 12px; }
@media (max-width: 640px) {
  .dl-acts .btn { flex: 1 1 100%; }
  .dl-more__row { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .dl-tile { transition: none; } }

@media (max-width: 1180px) {
  .sp-grid.ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .sp-hero__in, .sp-hero--solo .sp-hero__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sp-hero__name, .sp-hero--solo .sp-hero__name { font-size: clamp(30px, min(9vw, 150vw / var(--len, 10)), 80px); }
  .sp-prose-sec.has-side .sp-prose-sec__in { grid-template-columns: minmax(0, 1fr); }
  .sp-side { max-width: 720px; position: static; }
  .sp-grid.ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sp-wrap { margin-inline: 16px; width: auto; }
  .sp-hero__bg img { opacity: .4; }
  .sp-hero__bg::after { background: linear-gradient(180deg, rgb(0 0 0 / .55), rgb(0 0 0 / .8) 60%, #000); }
  .sp-hero__in { padding-top: 36px; }
  .sp-hero__acts .btn { flex: 1 1 100%; }
  .sp-hero__acts--pair { grid-auto-flow: row; width: auto; }
  .sp-grid.ct-grid { grid-template-columns: minmax(0, 1fr); }
}
