/* The NuGet module's public blocks (C5): package search and package details. Token-driven, so a site's theme restyles them. */

.nuget-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nuget-search, .nuget-package { display: grid; gap: var(--space-3); }
.nuget-search h2, .nuget-package h2 { margin: 0; }

.nuget-search-form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.nuget-search-form label { font-weight: var(--font-weight-strong); }
.nuget-search-form input { flex: 1 1 16rem; font: inherit; padding: var(--space-2) var(--space-3);
    border: var(--size-border) solid var(--color-border); border-radius: var(--size-radius); }
.nuget-search-form button { font: inherit; padding: var(--space-2) var(--space-4); border: 0; border-radius: var(--size-radius);
    background: var(--color-accent); color: var(--color-accent-text); cursor: pointer; }
.nuget-search-form button:hover, .nuget-search-form button:focus-visible { background: var(--color-accent-strong); }

.nuget-count { margin: 0; color: var(--color-text-muted); font-size: var(--font-size-small); }

.nuget-results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.nuget-result { padding: var(--space-3) var(--space-4); background: var(--color-surface); border: var(--size-border) solid var(--color-border);
    border-radius: var(--size-radius); }
.nuget-result h3 { margin: 0 0 var(--space-1); font-size: var(--font-size-body); overflow-wrap: anywhere; }
.nuget-result p { margin: 0 0 var(--space-1); }
.nuget-version { font-weight: var(--font-weight-regular); color: var(--color-text-muted); font-size: var(--font-size-small); margin-left: var(--space-2); }
.nuget-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); color: var(--color-text-muted); font-size: var(--font-size-small); }
.nuget-tag { padding: 0 var(--space-2); background: var(--color-surface-sunk); border-radius: var(--size-radius); }

.nuget-pages { display: flex; gap: var(--space-4); align-items: center; justify-content: center; }

.nuget-install { margin: 0; padding: var(--space-2) var(--space-3); overflow-x: auto; background: var(--color-surface-sunk);
    border: var(--size-border) solid var(--color-border); border-radius: var(--size-radius); font-family: var(--font-family-mono);
    font-size: var(--font-size-small); }
.nuget-description { white-space: pre-line; }
.nuget-facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-1) var(--space-3); margin: 0; }
.nuget-facts dt { font-weight: var(--font-weight-strong); }
.nuget-facts dd { margin: 0; overflow-wrap: anywhere; }
.nuget-dependencies { margin: 0; padding-left: var(--space-4); }
.nuget-versions { border-collapse: collapse; width: 100%; max-width: 36rem; }
.nuget-versions th, .nuget-versions td { text-align: left; padding: var(--space-1) var(--space-2); border-bottom: var(--size-border) solid var(--color-border); }
.nuget-versions td:last-child, .nuget-versions th:last-child { text-align: right; }
