/* ModResources Maven: one sheet for the front page and the folder pages. */
:root {
  --bg: #f7f8fb; --bg-2: #eef0f6; --panel: #ffffff; --panel-2: #f3f5fa; --line: #e1e5ee; --line-2: #cfd5e2;
  --text: #141924; --muted: #5d6779; --faint: #8c95a6;
  --accent: #2563eb; --accent-2: #7c3aed; --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --ok: #15803d; --code: #f5f7fb; --code-bar: #eceff6;
  --hl-s: #0f7b52; --hl-k: #7c3aed; --hl-c: #8c95a6; --hl-t: #2563eb;
  --shadow: 0 1px 2px rgb(16 24 40 / 5%), 0 4px 16px rgb(16 24 40 / 5%);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --scheme: light; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e14; --bg-2: #10141c; --panel: #121722; --panel-2: #171d2a; --line: #222a39; --line-2: #2e3749;
    --text: #e8ebf2; --muted: #98a2b5; --faint: #6b7487;
    --accent: #6aa8ff; --accent-2: #a78bfa; --ok: #4ade80; --code: #0d1119; --code-bar: #121722;
    --hl-s: #7ee2a8; --hl-k: #c4b5fd; --hl-c: #6b7487; --hl-t: #7cc4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    --scheme: dark; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0e14; --bg-2: #10141c; --panel: #121722; --panel-2: #171d2a; --line: #222a39; --line-2: #2e3749;
  --text: #e8ebf2; --muted: #98a2b5; --faint: #6b7487;
  --accent: #6aa8ff; --accent-2: #a78bfa; --ok: #4ade80; --code: #0d1119; --code-bar: #121722;
  --hl-s: #7ee2a8; --hl-k: #c4b5fd; --hl-c: #6b7487; --hl-t: #7cc4ff;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  --scheme: dark; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, select { font-family: var(--mono); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }

/* Top bar (both kinds of page) */
.bar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.5rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--text); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand > span:not(.mark) { color: var(--muted); font-weight: 500; }
.mark { width: 1.35rem; height: 1.35rem; border-radius: 6px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 18%); }
.bar nav { display: flex; align-items: center; gap: 0.3rem; }
.bar nav a { padding: 0.35rem 0.65rem; border-radius: 8px; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.bar nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.theme { width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); position: relative; }
.theme::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: linear-gradient(90deg, var(--text) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--text); }
@media (max-width: 30rem) { .bar nav a:first-child { display: none; } }

/* Front page */
.hero { position: relative; padding: 4.5rem 0 3rem; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40rem 20rem at 15% 0%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%),
              radial-gradient(40rem 22rem at 95% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
              linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0 / 100% 2.5rem; mask-image: linear-gradient(#000, transparent 95%); }
.eyebrow { display: inline-block; margin: 0 0 1rem; padding: 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--muted); font-size: 0.78rem; font-weight: 600; }
h1 { max-width: 40rem; margin: 0; font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; }
.lead { max-width: 38rem; margin: 1rem 0 1.2rem; color: var(--muted); font-size: 1.06rem; }
.stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.6rem; }
.stats span { padding: 0.25rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--muted); font-size: 0.82rem; }
.stats b { color: var(--text); font-weight: 700; }
.repo { display: flex; align-items: center; gap: 0.6rem; max-width: 42rem; padding: 0.4rem 0.4rem 0.4rem 0.5rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.repo-label { flex: none; padding: 0.2rem 0.5rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; font-weight: 700; }
.repo code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 0.88rem; scrollbar-width: none; }
@media (max-width: 30rem) { .repo-label { display: none; } }
.copy { flex: none; padding: 0.35rem 0.75rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); font-size: 0.8rem; font-weight: 600; transition: border-color 0.15s, color 0.15s; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.copy.done { color: var(--ok); border-color: var(--ok); }

main > section { padding-top: 3rem; }
.step-head { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.step-head .grow { flex: 1; min-width: 12rem; }
.step { display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; margin-top: 0.1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: 0.85rem; }
h2 { margin: 0; font-size: 1.3rem; letter-spacing: -0.01em; }
.sub { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.92rem; }

.dsl { display: inline-flex; gap: 0.2rem; padding: 0.2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.dsl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 0 0 0.9rem; }
.dsl-head { display: flex; align-items: center; gap: 0.4rem; }
.dsl-head h3 { margin: 0; font-size: 0.86rem; line-height: 1.4; }
.help { position: relative; display: inline-flex; }
.help-icon { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--panel-2); color: var(--muted); font: 700 0.68rem/1 var(--sans); cursor: help; transition: color 0.15s, border-color 0.15s; }
.help-icon:hover, .help-icon:focus-visible { border-color: var(--accent); color: var(--accent); }
.tip { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 30; width: max-content; max-width: min(19rem, 80vw); padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); box-shadow: 0 10px 30px rgb(0 0 0 / 28%); color: var(--muted);
  font-size: 0.76rem; font-weight: 400; line-height: 1.45; opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
.tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--line-2); }
.help:hover .tip, .help-icon:focus-visible + .tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tip code { font-size: 0.72rem; padding: 0 0.25rem; border-radius: 4px; background: var(--panel-2); color: var(--text); }
@media (max-width: 30rem) { .tip { left: auto; right: -6rem; transform: translateY(4px); } .help:hover .tip, .help-icon:focus-visible + .tip { transform: none; } .tip::after { left: auto; right: 6.2rem; } }
.dsl button { padding: 0.3rem 0.8rem; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.dsl button small { color: var(--faint); font: 0.75rem var(--mono); margin-left: 0.2rem; }
.dsl button[aria-checked="true"] { background: var(--panel-2); color: var(--text); box-shadow: var(--shadow); }

.code { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--code); overflow: hidden; }
.copy.icon { position: absolute; top: calc(2.4rem + 0.55rem); right: 0.55rem; z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
  border-color: var(--line); background: color-mix(in srgb, var(--code) 80%, var(--panel-2)); color: var(--muted); }
.copy.icon svg { grid-area: 1 / 1; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.15s, transform 0.15s; }
.copy.icon .i-done { opacity: 0; transform: scale(0.6); stroke-width: 2.5; }
.copy.icon.done .i-copy { opacity: 0; transform: scale(0.6); }
.copy.icon.done .i-done { opacity: 1; transform: none; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.4rem; padding: 0.3rem 0.4rem 0.3rem 0.9rem;
  border-bottom: 1px solid var(--line); background: var(--code-bar); color: var(--faint); font: 0.76rem var(--mono); }
.code pre { margin: 0; padding: 0.9rem 3.2rem 0.9rem 1rem; overflow-x: auto; font-size: 0.84rem; line-height: 1.7; }
.code .s { color: var(--hl-s); } .code .k { color: var(--hl-k); } .code .c { color: var(--hl-c); font-style: italic; } .code .t { color: var(--hl-t); }

.find { width: 100%; max-width: 18rem; padding: 0.55rem 0.8rem 0.55rem 2.1rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; font-size: 0.9rem;
  background: var(--panel) no-repeat 0.7rem center / 0.9rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c95a6' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
@media (max-width: 40rem) { .find { max-width: none; } }

/* Loader colours, for the dots on the build tools and the loader buttons */
.dot { display: inline-block; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--faint); }
.dot.fabric { background: #d4a86a; } .dot.forge { background: #5b8def; } .dot.neoforge { background: #f0743a; } .dot.common { background: #94a3b8; }
.dots { display: inline-flex; gap: 0.2rem; margin-right: 0.4rem; }

.projects { display: grid; gap: 1.1rem; }
.proj { position: relative; display: grid; gap: 1.1rem; min-width: 0; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, hsl(var(--h) 80% 60%) 5%, var(--panel)), var(--panel) 9rem); box-shadow: var(--shadow); overflow: hidden; }
.proj::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 50) 80% 64%)); }
.proj header { display: flex; align-items: center; gap: 0.9rem; }
.avatar { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; color: #fff; font-weight: 800; font-size: 1.2rem;
  background: linear-gradient(135deg, hsl(var(--h) 80% 58%), hsl(calc(var(--h) + 50) 75% 52%)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%), 0 4px 14px hsl(var(--h) 80% 50% / 25%); }
.avatar.logo { width: 3rem; height: 3rem; padding: 0; border-radius: 12px; background: none; box-shadow: 0 4px 14px rgb(0 0 0 / 22%); object-fit: cover; }
.title { flex: 1; min-width: 0; }
.name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.proj h3 { margin: 0; font-size: 1.2rem; letter-spacing: -0.015em; }
.kind { padding: 0.08rem 0.55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.72rem; font-weight: 700; }
.kind.plugin, .kind.catalog { background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--accent-2); }
.meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0; margin: 0.25rem 0 0; color: var(--muted); font-size: 0.8rem; }
.meta > * + *::before { content: "·"; margin: 0 0.5rem; color: var(--faint); }
.meta code { font-size: 0.78rem; overflow-wrap: anywhere; }
.files-link { flex: none; align-self: flex-start; padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.files-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.fields { display: flex; flex-wrap: wrap; gap: 0.9rem 1.6rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.label { color: var(--faint); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.seg button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.7rem; border: 0; border-radius: 8px; background: none; color: var(--muted);
  font-size: 0.84rem; font-weight: 600; transition: background 0.15s, color 0.15s; }
.seg.mono button { font: 600 0.8rem var(--mono); }
.seg button:hover:not(:disabled):not([aria-pressed="true"]):not([aria-disabled="true"]) { background: var(--panel-2); color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent); }
.seg button[aria-pressed="true"] .dot { box-shadow: 0 0 0 1.5px #fff; }
.seg button.dim:not([aria-pressed="true"]) { opacity: 0.5; }
.seg button[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }
.seg button[aria-disabled="true"]:hover { background: none; color: var(--muted); }
select { max-width: 100%; height: 2.3rem; padding: 0 2rem 0 0.75rem; border: 1px solid var(--line); border-radius: 11px; color: var(--text); font: 600 0.8rem var(--mono);
  appearance: none; background: var(--panel) no-repeat right 0.7rem center / 0.7rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c95a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); cursor: pointer; }
select:hover { border-color: var(--line-2); }
.ver { display: inline-flex; align-items: center; height: 2.3rem; color: var(--text); font: 600 0.84rem var(--mono); }
.missing { margin: 0; padding: 1rem 1.1rem; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 0.88rem; }
.snippet { display: grid; gap: 0.6rem; min-width: 0; }
.snippet > .note { margin: -0.1rem 0 0; color: var(--faint); font-size: 0.8rem; }
@media (max-width: 30rem) { .proj { padding: 1rem; } .fields { padding: 0.8rem; } .files-link { display: none; } }
.empty { color: var(--muted); }
/* Search with suggestions, and the grid / list switch (build tools and projects) */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.search { position: relative; flex: 1; min-width: min(100%, 16rem); max-width: 26rem; }
.search .find { max-width: none; }
.hotkey { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); padding: 0 0.4rem; border: 1px solid var(--line-2); border-radius: 5px;
  color: var(--faint); font: 0.72rem/1.5 var(--mono); pointer-events: none; }
.search:focus-within .hotkey { display: none; }
.find::-webkit-search-cancel-button { cursor: pointer; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: 22rem; margin: 0; padding: 6px; overflow-y: auto; list-style: none;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 40px rgb(0 0 0 / 28%); }
.suggest[hidden] { display: none; }
.suggest li { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: 9px; cursor: pointer; font-size: 0.9rem; }
.suggest li:hover { background: var(--panel-2); }
.suggest li[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.suggest .s-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.suggest .s-main.mono { font: 600 0.84rem var(--mono); }
.suggest small { flex: none; margin-left: auto; color: var(--faint); font-size: 0.76rem; }
.suggest mark { background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.suggest .dots { margin: 0; }
.suggest .dot { margin: 0 0.25rem; }
.avatar.tiny { width: 1.6rem; height: 1.6rem; border-radius: 6px; font-size: 0.75rem; box-shadow: none; }
.mc-badge { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 6px; background: color-mix(in srgb, #3fa34d 18%, transparent);
  color: #3fa34d; font: 800 0.62rem var(--mono); }
.view { display: inline-flex; gap: 2px; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.view button { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.view svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }
.view button:hover:not([aria-checked="true"]) { background: var(--panel-2); color: var(--text); }
.view button[aria-checked="true"] { background: var(--panel-2); color: var(--text); box-shadow: var(--shadow); }

/* Projects: closed ones as tiles (grid) or rows (list); the open one as its full card, across the grid */
.projects.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.9rem; }
.projects.grid > .proj { grid-column: 1 / -1; }
.projects.list { gap: 0.5rem; }
/* An open project (the back button and its card) looks the same from the grid and the list. */
.projects.opened { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.item { position: relative; display: flex; gap: 0.9rem; width: 100%; min-width: 0; padding: 1.05rem; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow); text-align: left; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.item::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; opacity: 0; transition: opacity 0.15s;
  background: linear-gradient(90deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 50) 80% 64%)); }
.item:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 10px 30px rgb(0 0 0 / 18%); }
.item:hover::before, .item:focus-visible::before { opacity: 1; }
.avatar.small { width: 2.6rem; height: 2.6rem; font-size: 1.05rem; }
.item-main { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.item-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.item-name b { font-size: 1.02rem; letter-spacing: -0.01em; }
.item-group { overflow: hidden; color: var(--faint); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.item-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.fact { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; color: var(--text); font-size: 0.84rem; }
.fact small { color: var(--faint); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.fact code { font-size: 0.8rem; }
.fact .dots { margin: 0.3rem 0 0; gap: 0.3rem; }
.fact .dot { width: 0.6rem; height: 0.6rem; }
.chev { flex: none; width: 0.55rem; height: 0.55rem; border: solid var(--faint); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.15s, border-color 0.15s; }
.chev.left { transform: rotate(135deg); }
.back { display: inline-flex; align-items: center; gap: 0.55rem; justify-self: start; scroll-margin-top: 5rem; padding: 0.45rem 0.85rem 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--muted); font-size: 0.86rem; font-weight: 600; transition: border-color 0.15s, color 0.15s; }
.back:hover { border-color: var(--accent); color: var(--accent); }
.back:hover .chev { border-color: var(--accent); }
.projects.grid > .back { grid-column: 1 / -1; }
.item:hover .chev { border-color: var(--accent); }

.projects.grid .item { flex-direction: column; }
.projects.grid .item .chev { position: absolute; top: 1.4rem; right: 1.2rem; }
.projects.grid .item-facts { margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.projects.list .item { align-items: center; padding: 0.75rem 1rem; }
.projects.list .item-main { flex: 1; }
.projects.grid .fact.none { display: none; }
.projects.list .item-facts { display: grid; flex: none; grid-template-columns: 8.5rem 8.5rem 4.5rem; }
@media (max-width: 48rem) { .projects.list .item-facts { display: none; } }
.proj.opening { animation: open 0.2s ease-out; }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .proj.opening { animation: none; } .item, .item:hover { transition: none; transform: none; } }
.foot { margin-top: 3.5rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* Folder pages */
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin: 2rem 0 1rem; font: 600 0.95rem var(--mono); }
.path a { padding: 0.15rem 0.45rem; border-radius: 6px; color: var(--text); }
.path a:hover { background: var(--panel-2); text-decoration: none; }
.path a:last-child { color: var(--accent); background: var(--accent-soft); }
.path .sep { color: var(--faint); }
.tools-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; color: var(--muted); font-size: 0.85rem; }
.tools-row label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.files { list-style: none; margin: 0 0 3rem; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.files li { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.95rem; border-top: 1px solid var(--line); font: 0.86rem var(--mono); }
.files li:first-child { border-top: 0; }
.files li:hover { background: var(--panel-2); }
.files li::before { content: ""; flex: none; width: 1rem; height: 1rem; background: var(--faint);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  --icon: 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-linejoin='round'%3E%3Cpath d='M6 2h8l5 5v15H6z'/%3E%3Cpath d='M14 2v5h5'/%3E%3C/svg%3E"); }
.files li.dir::before { background: var(--accent);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5a1 1 0 0 1 1-1h6l2 2h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.files li.jar::before { background: var(--accent-2); }
.files li a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.files li span { flex: none; color: var(--faint); font-size: 0.8rem; }
.files li.dir a { font-weight: 600; color: var(--text); }
.files li.sum a { color: var(--muted); }
.files.hide-sums li.sum { display: none; }
@media (max-width: 40rem), (hover: none) { .hotkey { display: none; } }
@media (max-width: 30rem) { .meta { gap: 0.1rem 0.8rem; } .meta > * + *::before { content: none; } }

/* The build tool switch above a snippet */
.tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; }
.seg.small { padding: 2px; border-radius: 9px; }
.seg.small button { gap: 0.35rem; padding: 0.22rem 0.6rem; border-radius: 7px; font-size: 0.78rem; }
.seg.small .dots { gap: 0.15rem; margin: 0; }
.seg.small .dot { width: 0.42rem; height: 0.42rem; }
.seg button[aria-checked="true"] { background: var(--accent); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent); }
.seg button[aria-checked="true"] .dot { box-shadow: 0 0 0 1.5px #fff; }
.seg button:hover:not([aria-checked="true"]):not([aria-pressed="true"]):not([aria-disabled="true"]) { background: var(--panel-2); color: var(--text); }

/* The floating tooltip (unavailable loaders and versions, build tools) */
.float-tip { position: absolute; z-index: 50; max-width: min(20rem, calc(100vw - 16px)); padding: 0.55rem 0.7rem; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--panel); box-shadow: 0 10px 30px rgb(0 0 0 / 28%); color: var(--text); font-size: 0.78rem; line-height: 1.45;
  opacity: 0; visibility: hidden; transform: translateY(3px); transition: opacity 0.12s, transform 0.12s, visibility 0.12s; pointer-events: none; }
.float-tip.on { opacity: 1; visibility: visible; transform: none; }
.float-tip::after { content: ""; position: absolute; top: 100%; left: var(--arrow, 50%); margin-left: -5px; border: 5px solid transparent; border-top-color: var(--line-2); }
.float-tip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--line-2); }
