/* JellyComet's site: night blue, a still starfield, one glow colour per plugin (highlights.toml).
   The plugins' blue and Ubuntu, as in their windows; the manuals' PDFs keep Ubuntu Light. */

@font-face { font-family: "Ubuntu"; src: url("fonts/ubuntu-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("fonts/ubuntu-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("fonts/ubuntu-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #060a11;
  --panel: #0d1521;
  --line: #1e2b3f;
  --line-soft: #16202f;
  --text: #e9eff9;
  --text-2: #c3cfe0;
  --dim: #96a4ba;
  --dim-2: #75849b;
  --cyan: #6fd8ff;
  --blue: #3d9bff;
  --violet: #b49bff;
  --green: #6fe0b0;
  --accent: var(--cyan);
  --sans: "Ubuntu", system-ui, sans-serif;
  --mono: ui-monospace, "DejaVu Sans Mono", monospace;
  --wrap: 1200px;
  --header: 64px;
  --subnav: 52px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 72% -8%, rgba(61, 155, 255, 0.16), transparent 62%),
    radial-gradient(900px 620px at 4% 6%, rgba(180, 155, 255, 0.08), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  overflow-x: clip;
}
::selection { background: rgba(111, 216, 255, 0.25); }
img { display: block; max-width: 100%; height: auto; }
/* A screenshot's <picture> (its WebP copy) lays out as the <img> alone would. */
picture { display: contents; }
picture source { display: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
strong, b { font-weight: 500; }
code { font-family: var(--mono); font-size: 0.86em; }
p code, li code, dd code {
  padding: 2px 6px;
  background: rgba(111, 216, 255, 0.08);
  border: 1px solid rgba(111, 216, 255, 0.14);
  border-radius: 6px;
  color: #bfeaff;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.grad { background: linear-gradient(100deg, #9be8ff 0%, #6fd8ff 38%, #b49bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nowrap { white-space: nowrap; }
.tentacles { color: var(--cyan); }
svg { flex: none; }

/* The starfield behind every page (stars.py draws the tiles): three still layers, far to near. */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.stars { position: absolute; inset: 0; background-repeat: repeat; }
.far { background-image: url("stars-far.svg"); opacity: 0.45; }
.mid { background-image: url("stars-mid.svg"); opacity: 0.5; }
.near { background-image: url("stars-near.svg"); opacity: 0.6; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 10, 17, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 43, 63, 0.65);
}
.header-inner { height: var(--header); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 14px rgba(95, 208, 255, 0.35)); }
.brand .comet { color: var(--blue); }
.nav { display: flex; gap: 28px; margin-left: 8px; }
.nav a { font-size: 14px; color: var(--dim); transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--dim); border: 1px solid transparent; }
.icon-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.icon-link svg { width: 17px; height: 17px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 20px;
  border-radius: 11px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #9be7ff, #56c2ef);
  color: #04121c;
  box-shadow: 0 10px 34px -10px rgba(95, 208, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -10px rgba(95, 208, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: #2c3f5a; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn .note { font-weight: 400; opacity: 0.65; font-size: 12.5px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--cyan); }
.text-link svg { width: 14px; height: 14px; transition: transform 0.15s; }
.text-link:hover svg { transform: translateX(3px); }
.text-link.dim { color: var(--dim); }
.text-link.dim:hover { color: var(--text); }

/* Shared section parts */
.eyebrow {
  display: flex; align-items: center; gap: 9px; margin-bottom: 18px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.19em; text-transform: uppercase; color: var(--dim-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.section { padding-block: 88px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
.section-note { max-width: 300px; font-size: 14px; line-height: 1.55; color: var(--dim); padding-bottom: 6px; }
.ring { position: absolute; border-radius: 50%; pointer-events: none; }

/* A plugin's window, framed */
.shot-frame {
  position: relative; display: block;
  border-radius: 16px; border: 1px solid rgba(160, 200, 255, 0.18);
  background: #04070c; overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95), 0 0 70px -20px rgba(61, 155, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.shot-frame img { width: 100%; }
.shot-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 35%); pointer-events: none; }
.stat-chip {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 7px; padding: 8px 12px;
  border-radius: 999px; border: 1px solid rgba(140, 190, 240, 0.22);
  background: rgba(10, 18, 28, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; color: #cfdaea; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.9);
}
.stat-chip svg { width: 14px; height: 14px; color: var(--accent); }
.chip-1 { left: -14px; top: -38px; }
.chip-2 { right: -18px; top: 42%; }
.chip-3 { left: 34%; bottom: -18px; }

/* Front page: the hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(46px, 5.6vw, 76px); line-height: 0.98; letter-spacing: -0.042em; margin-bottom: 22px; }
.hero-tag { font-size: clamp(20px, 2.1vw, 26px); font-weight: 300; line-height: 1.3; letter-spacing: -0.015em; color: var(--text-2); }
.hero-sub { max-width: 46ch; font-size: 16px; line-height: 1.65; color: var(--dim); margin-top: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 0; margin: 30px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line-soft); }
.hero-meta li { font-size: 13px; color: var(--dim-2); padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line-soft); }
.hero-meta li:last-child { border: 0; margin: 0; padding: 0; }
.hero-meta strong { display: block; font-weight: 500; font-size: 13px; color: var(--dim); }

.hero-visual { position: relative; padding: 24px 0 0; }
.ring-a { width: 520px; height: 520px; right: -60px; top: -40px; border: 1px dashed rgba(111, 216, 255, 0.16); }
.ring-b { width: 330px; height: 330px; right: 60px; top: 50px; border: 1px solid rgba(180, 155, 255, 0.12); }
.ring-a::after { content: ""; position: absolute; left: 9%; top: 16%; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px 3px rgba(111, 216, 255, 0.6); }
/* The windows lie on one another; the tallest sets the height, so switching moves nothing below. */
.hero-shots { display: grid; }
.shot { grid-area: 1 / 1; position: relative; align-self: center; transition: opacity 0.3s, visibility 0s; }
.shot.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s, visibility 0s linear 0.3s; }
.tilt { transform: perspective(1300px) rotateY(-5deg) rotateX(1.5deg); transform-origin: center left; }
/* The switcher: one row for a few plugins; with more, the names wrap onto a second row instead of being cut. */
.plugin-switch {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 7px;
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: rgba(9, 15, 24, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.plugin-switch a { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 9px; font-size: 13px; color: var(--dim); transition: background 0.15s, color 0.15s; }
.plugin-switch a b { font-weight: 400; white-space: nowrap; }
.plugin-switch a span { margin-left: auto; font-size: 11px; color: var(--dim-2); }
.plugin-switch a i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.plugin-switch a:hover { color: var(--text); }
.plugin-switch a[aria-current="true"] { background: rgba(255, 255, 255, 0.055); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.plugin-switch a[aria-current="true"] span { color: var(--dim); }

/* Front page: one wide panel per plugin */
.features { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.feature {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 44px; align-items: center;
  padding: 28px;
  border: 1px solid var(--line-soft); border-radius: 20px;
  background: linear-gradient(180deg, rgba(17, 27, 42, 0.92), rgba(10, 16, 26, 0.94));
  overflow: clip;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.6; }
.feature:hover { border-color: #2a3d57; box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.95), 0 0 60px -34px var(--accent); }
.feature:nth-child(even) .feature-image { order: 2; }
.feature-image { display: block; border-radius: 12px; border: 1px solid rgba(160, 200, 255, 0.14); background: #04070c; overflow: hidden; }
.feature-image img { width: 100%; transition: transform 0.4s ease; }
.feature-image:hover img { transform: scale(1.015); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 11px var(--accent); flex: none; }
.card-ver { font: 500 11px/1 var(--mono); color: var(--dim-2); letter-spacing: 0.02em; }
.card-type { margin-left: auto; font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2); border: 1px solid var(--line-soft); padding: 5px 7px; border-radius: 5px; }
.feature h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.feature h2 a:hover { color: var(--accent); }
.feature h2 .tagline { display: block; margin-top: 8px; font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--accent); }
.summary { font-size: 15px; line-height: 1.65; color: var(--dim); margin-bottom: 16px; }
.summary strong { color: var(--text); }
.card-list { display: grid; gap: 7px; margin: 0 0 22px; padding: 0; list-style: none; }
.card-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: #b7c4d8; line-height: 1.45; }
.card-list svg { width: 14px; height: 14px; color: var(--accent); margin-top: 2px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.card-foot .text-link { margin-left: auto; }

/* Front page: install */
.install-panel {
  position: relative;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center;
  padding: 52px;
  border: 1px solid var(--line-soft); border-radius: 22px;
  background: radial-gradient(700px 380px at 88% 10%, rgba(61, 155, 255, 0.14), transparent 65%), linear-gradient(180deg, rgba(16, 25, 39, 0.9), rgba(9, 15, 24, 0.92));
  overflow: clip;
}
.install-panel .ring { width: 460px; height: 460px; right: -120px; bottom: -200px; border: 1px dashed rgba(111, 216, 255, 0.14); }
.install-copy h2 { font-size: clamp(30px, 3.2vw, 40px); margin-bottom: 16px; }
.install-copy p { font-size: 15px; line-height: 1.65; color: var(--dim); max-width: 42ch; margin-bottom: 12px; }

/* A terminal window: the front page's install steps, and the code blocks on a plugin's page. */
.terminal, .term {
  position: relative; min-width: 0;
  border: 1px solid rgba(120, 170, 220, 0.22); border-radius: 14px;
  background: rgba(5, 9, 15, 0.92);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.term { margin: 14px 0 18px; box-shadow: none; border-color: rgba(120, 170, 220, 0.16); }
/* A README's long download lines wrap rather than scroll; Copy still copies them whole. */
.term pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px 18px; line-height: 1.85; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(30, 43, 63, 0.8); background: rgba(255, 255, 255, 0.018); }
.term-bar > i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.term-bar > i:nth-child(1) { background: #ff6b6b66; border: 1px solid #ff6b6b; }
.term-bar > i:nth-child(2) { background: #ffc46b55; border: 1px solid #ffc46b; }
.term-bar > i:nth-child(3) { background: #6fe0b055; border: 1px solid #6fe0b0; }
.term-name { margin-left: 6px; font: 400 11.5px var(--mono); color: var(--dim-2); }
.term-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; min-width: 0; }
.term-tabs[hidden] { display: none; }
.term-tabs button { padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; background: none; font: 400 11.5px var(--mono); color: var(--dim-2); cursor: pointer; white-space: nowrap; }
.term-tabs button:hover { color: var(--text); }
.term-tabs button[aria-pressed="true"] { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.copy { margin-left: auto; font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 5px 8px; background: none; cursor: pointer; flex: none; }
.copy:hover { color: var(--text); border-color: #2c3f5a; }
.copy[hidden] { display: none; }
.terminal pre, .term pre { margin: 0; padding: 20px; overflow-x: auto; font: 400 13px/2 var(--mono); color: #c6d6ea; background: none; border: 0; }
.terminal pre code, .term pre code { font-size: inherit; }
.terminal .c { color: #5c718c; }
.terminal .cmd::before { content: "$ "; color: var(--cyan); user-select: none; }
.terminal .hl { color: #ffe0a8; }
.term-foot { padding: 11px 18px; border-top: 1px solid rgba(30, 43, 63, 0.8); font-size: 12px; color: var(--dim-2); }

/* Front page: about */
.about-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; border-top: 1px solid var(--line-soft); padding-top: 56px; }
.about-panel h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 20px; }
.about-panel .lead { font-size: 15.5px; line-height: 1.7; color: var(--dim); max-width: 50ch; margin-bottom: 14px; }
.about-links { display: flex; gap: 22px; margin-top: 22px; }
.about-grid { display: grid; gap: 12px; }
.about-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(12, 19, 31, 0.6); }
.about-item svg { width: 18px; height: 18px; color: var(--cyan); margin-top: 2px; }
.about-item b { display: block; font-size: 14px; margin-bottom: 2px; }
.about-item span { font-size: 13px; color: var(--dim-2); line-height: 1.5; }

/* Footer */
.site-footer { margin-top: 56px; padding: 56px 0 26px; border-top: 1px solid var(--line-soft); background: rgba(5, 9, 15, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { font-size: 13.5px; line-height: 1.65; color: var(--dim-2); max-width: 30ch; margin-top: 14px; }
.footer-col h2 { font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 16px; }
.footer-col a { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-col svg { width: 15px; height: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--dim-2); }
.footer-bottom a:hover { color: var(--text); }

/* A plugin's page: the top */
.breadcrumb { display: flex; align-items: center; gap: 9px; padding-top: 24px; font-size: 13px; color: var(--dim-2); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: 0.45; }
.breadcrumb .here { color: var(--dim); }
.product-hero { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center; padding-top: 34px; padding-bottom: 72px; }
.product-hero h1 { font-size: clamp(42px, 4.6vw, 62px); letter-spacing: -0.04em; line-height: 1; }
.product-sub { display: block; margin-top: 14px; font-size: clamp(19px, 2vw, 24px); line-height: 1.25; letter-spacing: -0.02em; color: #b9c6d9; }
.product-summary { max-width: 54ch; margin-top: 20px; font-size: 16px; line-height: 1.7; color: var(--dim); }
.product-summary strong { color: #dbe5f4; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.meta-chips li { font: 400 11.5px/1 var(--mono); color: var(--dim); border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.02); padding: 7px 10px; border-radius: 6px; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.product-shot { position: relative; }
.product-shot .ring { width: 430px; height: 430px; right: -80px; top: -70px; border: 1px solid rgba(111, 216, 255, 0.12); }
.hero-image { cursor: zoom-in; }

/* A plugin's page: the section bar */
.subnav {
  position: sticky; top: var(--header); z-index: 40;
  background: rgba(6, 10, 17, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.subnav-inner { display: flex; align-items: center; gap: 24px; height: var(--subnav); }
.subnav-links { display: flex; align-items: center; gap: 26px; height: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { position: relative; display: flex; align-items: center; height: 100%; font-size: 13.5px; color: var(--dim); white-space: nowrap; }
.subnav-links a:hover, .subnav-links a.active { color: var(--text); }
.subnav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.subnav .btn { margin-left: auto; flex: none; }
.plugin-page [id] { scroll-margin-top: calc(var(--header) + var(--subnav) + 20px); }

/* A plugin's page: the text and the side box */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; padding-top: 56px; }
.article { max-width: 760px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.75; color: #b3c0d3; }
.prose p { margin-bottom: 14px; }
.prose strong { color: #e2eaf6; }
.prose a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(111, 216, 255, 0.4); }
.prose a:not(.btn):hover { text-decoration-color: var(--cyan); }
.prose h2 { font-size: 30px; letter-spacing: -0.025em; margin: 56px 0 18px; }
.prose h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: 12px; }
.prose pre:not(.term pre) { margin: 14px 0 18px; padding: 16px 18px; overflow-x: auto; background: rgba(5, 9, 15, 0.92); border: 1px solid rgba(120, 170, 220, 0.16); border-radius: 12px; font: 400 13px/1.8 var(--mono); }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 14px 0 20px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); color: #b3c0d3; }
.prose th { color: var(--dim-2); font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.intro-text > p:first-child { font-size: 18.5px; line-height: 1.7; color: var(--text-2); }
.intro-text > p:first-child strong { color: var(--text); }

.use-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.use-card { padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(12, 19, 31, 0.55); }
.use-num { display: block; margin-bottom: 10px; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; color: var(--accent); }
.use-card b { display: block; margin-bottom: 4px; font-size: 15px; color: var(--text); }
.use-card > span:last-child { font-size: 14px; line-height: 1.6; color: var(--dim); }
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; padding: 0 !important; list-style: none; }
.prose .feature-cols li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; line-height: 1.6; color: var(--dim); }
.feature-cols svg { width: 15px; height: 15px; color: var(--accent); margin-top: 4px; }
.feature-cols b { color: var(--text); }

.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary, .earlier summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 2px; cursor: pointer; list-style: none; font-size: 16px; color: #dbe5f3; }
.faq summary::-webkit-details-marker, .earlier summary::-webkit-details-marker { display: none; }
.faq summary svg, .earlier summary svg { width: 15px; height: 15px; color: var(--dim-2); transition: transform 0.2s; }
.faq details[open] summary svg, .earlier[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq summary:hover, .earlier summary:hover { color: var(--text); }
.faq .answer { padding: 0 2px 16px; }
.faq .answer p { color: var(--dim); }

.release-date { color: var(--dim-2); font-size: 13.5px !important; }
.release-date a { color: var(--dim); }
.notes { padding: 4px 0 0; }
.earlier { margin-top: 18px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.earlier h3 { font-size: 16px; margin-top: 18px; }
.earlier h3 a { text-decoration: none; }
.earlier .release-date { font-weight: 400; margin-left: 6px; }

.rail { display: grid; gap: 14px; }
@media (min-height: 860px) and (min-width: 941px) {
  .rail { position: sticky; top: calc(var(--header) + var(--subnav) + 24px); }
}
.rail-card { padding: 20px; border: 1px solid var(--line-soft); border-radius: 16px; background: linear-gradient(180deg, rgba(15, 24, 37, 0.9), rgba(9, 15, 24, 0.92)); }
.rail-card h2 { margin-bottom: 12px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim-2); }
.glance { margin: 0 0 16px; }
.glance div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.glance div:last-child { border-bottom: 0; }
.glance dt { color: var(--dim-2); }
.glance dd { margin: 0; color: #d4dfee; text-align: right; }
.glance .green { color: var(--green); }
.rail-card .btn { width: 100%; }
.rail-card .btn + .btn { margin-top: 8px; }
.rail-foot, .rail-foot p { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--dim-2); }
.rail-foot a { color: var(--dim); }
.rail-foot a:hover { color: var(--text); }
.req { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.req li { display: flex; gap: 9px; font-size: 13px; line-height: 1.5; color: var(--dim); }
.req svg { width: 13px; height: 13px; margin-top: 3px; color: var(--accent); }

/* Screenshots */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 12px; border: 1px solid var(--line-soft); overflow: hidden; background: #04070c; text-decoration: none; }
.gallery img { border-radius: 0; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { margin-top: 8px; color: var(--dim-2); font-size: 13px; line-height: 1.45; }

/* More from JellyComet */
.more-plugins { margin-top: 88px; }
.more-plugins .h2 { margin-bottom: 24px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; margin: 0 0 20px; padding: 0; list-style: none; }
.more-card { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 20px; height: 100%; padding: 14px; border: 1px solid var(--line-soft); border-radius: 16px; background: rgba(11, 18, 29, 0.7); transition: border-color 0.2s, background 0.2s; }
.more-card:hover { border-color: #2b405c; background: rgba(16, 25, 39, 0.8); }
.more-card img { width: 100%; border-radius: 8px; border: 1px solid var(--line-soft); aspect-ratio: 1.6; object-fit: cover; object-position: top; }
.other-name { display: block; font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.other-tagline { display: block; font-size: 13.5px; color: var(--dim); line-height: 1.5; }
.more-card .arrow { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--accent); }
.more-card .arrow svg { width: 14px; height: 14px; transition: transform 0.15s; }
.more-card:hover .arrow svg { transform: translateX(3px); }

/* A manual's page: one column, a line length for reading. */
.manual.wrap { max-width: calc(820px + 64px); padding-top: 36px; }
.manual h1 { font-size: clamp(36px, 4.4vw, 52px); letter-spacing: -0.04em; margin-bottom: 8px; }
.manual img { margin: 20px 0; border: 1px solid var(--line-soft); }
.manual .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }
.manual .actions a { text-decoration: none; }
.manual-others { max-width: calc(820px + 64px); }
.toc { padding: 18px 22px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(12, 19, 31, 0.55); margin-bottom: 8px; }
.toc ul { margin: 0; }

/* The 404 and the old /plugins/ address */
.intro { padding-top: 88px; }
.intro h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em; margin-bottom: 16px; }
.intro p { max-width: 52ch; font-size: 17px; color: var(--dim); }
.intro p a { color: var(--cyan); }

/* The lightbox (lightbox.js): a plugin page's pictures over the page, big. */
.zoomable { cursor: zoom-in; }
.lightbox-open { overflow: hidden; }
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.lightbox::backdrop { background: rgba(4, 7, 12, 0.97); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; margin: 0; padding: 56px 72px 40px; }
.lightbox img { max-width: 100%; max-height: calc(100% - 48px); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.lightbox figcaption { max-width: 60em; color: var(--dim); font-size: 15px; line-height: 1.4; text-align: center; }
.lightbox-count { position: absolute; top: 18px; left: 24px; margin: 0; color: var(--dim); font-size: 14px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(13, 21, 33, 0.9); color: var(--text); font: 300 26px/1 var(--sans); cursor: pointer; }
.lightbox button:hover { color: var(--cyan); border-color: #2c3f5a; }
.lightbox-close { top: 12px; right: 16px; }
.lightbox-prev { left: 16px; top: calc(50% - 22px); }
.lightbox-next { right: 16px; top: calc(50% - 22px); }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next { display: none; }

@media (max-width: 1080px) {
  .hero { gap: 40px; }
  .ring-a { width: 420px; height: 420px; right: -60px; }
  .feature { gap: 32px; }
}
@media (max-width: 940px) {
  .nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 52px; }
  .hero h1 { font-size: clamp(42px, 8vw, 64px); }
  .tilt { transform: none; }
  .ring-b { display: none; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 18px 18px 22px; }
  .feature:nth-child(even) .feature-image { order: 0; }
  .install-panel { grid-template-columns: minmax(0, 1fr); padding: 36px; gap: 32px; }
  .about-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .product-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article { max-width: none; }
}
@media (max-width: 680px) {
  .wrap { padding-inline: 16px; }
  :root { --header: 58px; }
  .header-inner { gap: 12px; }
  .brand { font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .section { padding-block: 60px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .hero { padding-top: 36px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .stat-chip { display: none; }
  .ring-a { width: 280px; height: 280px; right: -8px; top: -10px; }
  .plugin-switch { gap: 4px; padding: 5px; }
  .plugin-switch a { padding: 8px; gap: 6px; font-size: 12px; }
  .plugin-switch a span { display: none; }
  .card-foot .text-link { margin-left: 0; flex-basis: 100%; }
  .install-panel { padding: 22px 16px; border-radius: 18px; }
  .terminal pre { font-size: 11.5px; padding: 16px 14px; }
  .term-name { display: none; }
  .term-bar { flex-wrap: wrap; }
  .term-tabs { order: 3; flex-basis: 100%; margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-hero { padding-bottom: 52px; }
  .product-shot .ring { display: none; }
  .subnav-inner { gap: 12px; }
  .subnav .btn .note { display: none; }
  .use-grid, .feature-cols { grid-template-columns: minmax(0, 1fr); }
  .prose h2 { font-size: 26px; margin-top: 44px; }
  .more-card { grid-template-columns: 120px 1fr; gap: 14px; }
  .lightbox figure { padding: 60px 12px 72px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
