/* Waise Mods on the public site (control/site/mods.mjs), on top of landing.css and growth.css. Light page; code is shown as text. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.md-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 999px; color: var(--ok); background: #ecfdf5; border: 1px solid #a7f3d0; vertical-align: middle; white-space: nowrap; }
.md-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.md-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.md-search input[type="search"] { flex: 1 1 260px; min-width: 0; }
.md-search input, .md-search select { font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.md-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.md-chip { font-size: 14.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.md-chip:hover { border-color: var(--violet); }
.md-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.md-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.md-card__a { display: grid; gap: 8px; align-content: start; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); }
.md-card__a:hover, .md-card__a:focus-visible { border-color: var(--violet); box-shadow: var(--soft); }
.md-card__cat { font-size: 12.5px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .04em; }
.md-card__t { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.md-card__s { color: var(--muted); font-size: 15.5px; overflow-wrap: anywhere; }
.md-card__by { color: var(--muted); font-size: 14px; }
.md-card__n { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.md-card__n > span { display: inline-flex; align-items: center; gap: 4px; }
.md-more { text-align: center; margin-top: 18px; }

.md-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 30px); }
.md-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 6px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.md-head__cat { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--violet); margin: 0; }
.md-head__sum { font-size: 19px; color: var(--muted); margin: 0 0 12px; }
.md-head__meta { font-size: 15px; color: var(--muted); margin: 0; }
.md-head__meta span { white-space: nowrap; }
.md-head__go { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--page); border: 1px solid var(--line); font-size: 15.5px; }
.md-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 6px; border-bottom: 1px solid var(--line); }
.md-tabs a { padding: 10px 2px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.md-tabs a:hover { border-color: var(--violet); }
.md-sec { margin-top: 26px; scroll-margin-top: calc(var(--nav) + 12px); }
.md-sec h2 { font-size: 24px; margin: 0 0 12px; }

.md-readme { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 3vw, 30px); font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.md-readme > * + * { margin-top: 14px; }
.md-readme h2, .md-readme h3, .md-readme h4, .md-readme h5 { margin-top: 24px; line-height: 1.25; }
.md-readme code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; background: var(--page); padding: 1px 6px; border-radius: 6px; }
.md-readme blockquote { margin: 0; padding: 8px 16px; border-inline-start: 4px solid var(--violet); background: var(--page); border-radius: 0 10px 10px 0; }
.md-readme ul, .md-readme ol { padding-inline-start: 1.3em; }
.md-plain { margin: 8px 0 0; padding-inline-start: 1.2em; }
.md-ext { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.md-ext summary { cursor: pointer; font-weight: 600; }

/* files: a read-only tree and the chosen file as text */
.md-files { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.md-tree { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; font-size: 14.5px; }
.md-tree ul { list-style: none; margin: 0; padding: 0; }
.md-tree__f > span { display: block; font-weight: 700; color: var(--muted); margin: 6px 0 4px; }
.md-tree__f ul { padding-inline-start: 10px; }
.md-tree li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 3px 0; }
.md-tree a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.md-tree a[aria-current] { color: var(--brand); font-weight: 700; }
.md-tree small { color: var(--muted); white-space: nowrap; }
.md-file { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.md-file__h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); background: var(--page); }
.m-code { margin: 0; padding: 12px 0; overflow: auto; max-height: 560px; font: 13.5px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #17162b; color: #e8e6ff; counter-reset: ln; tab-size: 2; direction: ltr; text-align: left; }
.m-code code { display: block; min-width: max-content; }
.m-ln { display: block; padding: 0 16px 0 0; white-space: pre; }
.m-ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 3.4em; margin-inline-end: 14px; text-align: right; color: #6c6a8f; user-select: none; }
.m-code--md { max-height: none; padding: 12px 16px; }
.m-c { color: #8d8bb0; font-style: italic; } .m-s { color: #8be9b6; } .m-k { color: #a5b4fc; } .m-a { color: #f0abfc; }
.m-n { color: #fcd34d; } .m-t { color: #7dd3fc; } .m-p { color: #8d8bb0; }

.md-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.md-versions li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.md-versions p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.md-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.md-comments li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.md-c__h { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.md-c__b { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .md-files { grid-template-columns: minmax(0, 1fr); }
  .md-head h1 { font-size: 28px; }
}

/* Waise Mods v2: creator badges, official / Waise pick / sealed marks, "Built on Waise" */
.md-badge--first-mod, .md-badge--installs-100, .md-badge--installs-1000, .md-badge--stars-50 { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.md-badge--waise-pick { color: #5b21b6; background: #f5f3ff; border-color: #ddd6fe; }
.md-badge--official { color: #075985; background: #f0f9ff; border-color: #bae6fd; }
.md-badge--sealed { color: #374151; background: #f3f4f6; border-color: #d1d5db; }
.md-card__marks { display: flex; flex-wrap: wrap; gap: 6px; }
.md-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.md-sealed { margin: 0; padding: 14px 16px; border: 1px solid #d1d5db; border-radius: 12px; background: #f9fafb; }
.md-head__built { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
