/* Partners (views/partners.ts): search, a filter by platform, the cards. Tabs and pager come from leaderboard.css. */
.partners { --text-2: var(--muted); --text-3: var(--muted); --bg: #09090b; --accent: #ff1f2e; --grad: #7f1d1d; --radius: 14px; padding-bottom: 96px; max-width: 1080px; }
.partners .section-head { margin-bottom: 28px; }

.pn-search { position: relative; max-width: 420px; margin: 0 auto 16px; }
.pn-search .icon { position: absolute; inset-inline-start: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--faint); pointer-events: none; }
.pn-search input { width: 100%; height: 44px; padding-block: 0; padding-inline: 40px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; font-size: 14.5px; }
.pn-search input:focus { outline: none; border-color: var(--border-3); }

.pn-tabs { margin-bottom: 32px; }
.pn-n { color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.lb-tab[aria-current="page"] .pn-n { color: #55555f; }

.pn-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); grid-auto-rows: 1fr; gap: 12px; margin: 0; padding: 0; }
.pn-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.025); transition: border-color 0.15s, background 0.15s; }
.pn-card:hover { border-color: var(--border-2); background: rgba(255, 255, 255, 0.04); }
.pn-who { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); }
.pn-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-overlay); }
.pn-initial { display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--muted); }
.pn-names { display: grid; gap: 1px; min-width: 0; }
.pn-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pn-title b, .pn-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-title b { min-width: 0; font-size: 15.5px; font-weight: 600; }
.pn-badge { flex: none; display: inline-grid; place-items: center; }
.pn-badge .icon { width: 18px; height: 18px; }
.pn-user { font-size: 13px; color: var(--muted); }
.pn-who:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* Every card is the same height, and the live widget, the channel link and the profile link fill the same panel. */
.pn-slot { flex: 1; display: grid; min-width: 0; }
.pn-slot .widget { margin: 0; height: 100%; min-height: 128px; }
/* No room for a button beside the text here: the whole widget is the link, as in the side by side layout. */
.pn-slot .w-has-link .w-action { position: absolute; inset: 0; z-index: 1; align-self: stretch; margin: 0; padding: 0; border: 0; border-radius: inherit; background: none; font-size: 0; }
.pn-slot .w-has-link .w-action:hover { background: rgba(255, 255, 255, 0.05); }
.pn-channel { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 128px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--text); transition: border-color 0.15s, background 0.15s; }
.pn-channel:hover { border-color: var(--border-3); background: rgba(255, 255, 255, 0.06); }
.pn-mark { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: rgba(255, 255, 255, 0.06); }
.pn-mark .icon { width: 26px; height: 26px; }
.pn-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pn-text b, .pn-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-text b { font-size: 14.5px; font-weight: 600; }
.pn-text small { font-size: 13px; color: var(--muted); }
.pn-ext { flex: none; align-self: flex-start; width: 14px; height: 14px; color: var(--faint); }
.pn-profile .pn-mark { color: var(--muted); }

.pn-apply { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.025); }
.pn-apply h2 { margin: 0 0 4px; font-size: 19px; }
.pn-apply p { margin: 0; font-size: 14px; }
.pn-apply .btn { flex: none; }

@media (max-width: 640px) {
  .pn-apply { flex-direction: column; align-items: stretch; text-align: center; }
}
