/*
 * Dark theme, reusing rusti-new-styles.css's --rusti-* custom properties
 * directly — same posture as upcoming-wipes.css/graveyard.css (functions.php
 * enqueues this file with a dependency on that one). Covers only what's
 * specific to the hub page shell (heading/intro, the probe-select form,
 * the same-dimension cross-link nav) — server cards are
 * Servers/ServerCardRenderer.php's v2 markup, already dark-themed there,
 * and .rusto-status (empty-state message) already comes from
 * server-list.css, loaded as this file's own dependency.
 *
 * .rusto-probe-form is duplicated here rather than shared — same choice
 * upcoming-wipes.css already made for the identical class, since the
 * detail page's own styling for it (single-server.css) is scoped to
 * #primary.rusto-server-detail and never applies on this page.
 */

.rusto-hub h1 {
	color: var(--rusti-text);
	margin-bottom: 0.25rem;
}

.rusto-hub-intro {
	color: var(--rusti-muted-2);
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.rusto-probe-form {
	margin: 0 0 1.5rem;
	display: flex;
	align-items: center;
}

.rusto-probe-form label {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--rusti-muted-2);
	font-size: 0.86rem;
	font-weight: 700;
}

.rusto-probe-form select {
	height: 38px;
	padding: 0 2rem 0 0.75rem;
	color: var(--rusti-text);
	background: var(--rusti-input);
	border: 1px solid var(--rusti-border);
	border-radius: var(--rusti-radius-sm);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.rusto-probe-form select:focus-visible {
	outline: 2px solid var(--rusti-accent-hover);
	outline-offset: 2px;
}

.rusto-probe-form button {
	height: 38px;
	margin-left: 0.6rem;
	padding: 0 0.9rem;
	color: var(--rusti-text);
	background: var(--rusti-panel-hover);
	border: 1px solid var(--rusti-border-hover);
	border-radius: var(--rusti-radius-sm);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.rusto-hub-related {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
	padding: 0.85rem 1rem;
	background: linear-gradient(180deg, rgba(18, 28, 39, .97), rgba(14, 23, 32, .97));
	border-radius: var(--rusti-radius);
	border: 1px solid var(--rusti-border);
}

/* template-server-list.php's region row sits right below the page intro,
 * above the filter form, not after a card grid — the default margin-top
 * (sized for "after a grid of cards, before the FAQ") reads as too much
 * empty space up there, and this spot wants breathing room *after* it
 * instead, before the filter form starts. */
.rusto-hub-related--intro {
	margin-top: 1rem;
	margin-bottom: 1.75rem;
}

.rusto-hub-related a {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--rusti-text);
	background: var(--rusti-input);
	border: 1px solid var(--rusti-border);
	border-radius: 999px;
	padding: 0.35rem 0.85rem;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.rusto-hub-related a:hover {
	border-color: var(--rusti-accent-hover);
	color: var(--rusti-accent-hover);
}
