/* RUST HUB — homepage only. No navbar, footer or authentication styling. */

body > main.rh-home {
    --rh-accent: #db3c19;
    --rh-surface: #111619;
    --rh-border: #343c41;
    --rh-muted: #aeb8be;
    --rh-heading-font: Impact, "Arial Narrow", "Roboto Condensed", sans-serif;

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #f5f5f3;
    background: #0b0f11;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.rh-home,
.rh-home *,
.rh-home *::before,
.rh-home *::after {
    box-sizing: border-box;
}

.rh-home .rh-home-wrap {
    width: min(1400px, calc(100% - 48px));
    margin-inline: auto;
}

.rh-home .rh-home-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.rh-home svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rh-home a:focus-visible,
.rh-home button:focus-visible,
.rh-home input:focus-visible {
    outline: 2px solid var(--rh-accent);
    outline-offset: 5px;
}

/* Hero: decorative scene separate from live HTML heading and button. */
.rh-home .rh-home-hero {
    position: relative;
    isolation: isolate;
    width: min(1400px, calc(100% - 48px));
    margin-inline: auto;
    min-height: 470px;
    overflow: hidden;
    background: #0c1012;
    border-bottom: 1px solid #3a3835;
}

.rh-home .rh-home-hero-art {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -3;
    width: 64%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.rh-home .rh-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, #0b1012 0%, #0b1012 28%, rgba(11, 16, 18, .94) 35%, rgba(11, 16, 18, .42) 52%, rgba(11, 16, 18, .06) 74%),
        linear-gradient(0deg, rgba(7, 10, 12, .6), transparent 32%, rgba(7, 10, 12, .1));
}

.rh-home .rh-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(115deg, transparent 0 7px, rgba(255, 255, 255, .012) 7px 8px);
}

.rh-home .rh-home-hero-inner {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 470px;
    padding-block: 62px;
}

.rh-home .rh-home-hero-copy {
    position: relative;
    width: 60%;
    max-width: 690px;
}

/* Hero typography locked to the approved mock-up direction. */
.rh-home .rh-home-hero-kicker {
    display: block;
    margin: 0 0 18px;

    color: #c7cfd3;

    font-size: clamp(12px, 1vw, 15px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rh-home .rh-home-title {
    margin: 0 0 22px;

    color: #f4f4f1;
    font-family: var(--rh-heading-font);
    font-size: clamp(68px, 6.35vw, 108px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    text-shadow: 0 3px 1px rgba(0, 0, 0, 0.45);
}

.rh-home .rh-home-title > span {
    display: block;
    white-space: nowrap;
}

.rh-home .rh-home-title > span + span {
    margin-top: 10px;
}

.rh-home .rh-home-accent {
    color: #df3918;
}

.rh-home .rh-home-hero-description {
    margin: 0;
    max-width: 650px;

    color: #e0e4e5;

    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 400;
    line-height: 1.55;
}

.rh-home .rh-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--rh-accent);
    border-radius: 3px;
    color: #fff;
    background: #101619;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .035em;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease;
}

.rh-home .rh-home-button-outline {
    border-color: var(--rh-accent);
    background: rgba(10, 15, 18, .85);
}

.rh-home .rh-home-button-solid {
    border-color: var(--rh-accent);
    background: linear-gradient(135deg, #b82e13, #c93316);
}

.rh-home .rh-home-button-outline:not(:disabled):hover {
    background: #21282d;
}

.rh-home .rh-home-button-solid:not(:disabled):hover {
    background: #db3c19;
}



/* Stats and search strip: same outer width as the hero and directory. */
.rh-home .rh-home-discovery {
    width: min(1400px, calc(100% - 48px));
    margin-inline: auto;
    border-bottom: 1px solid #30363b;
    background: linear-gradient(110deg, #141a1d, #0e1316);
}

.rh-home .rh-home-discovery-inner {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(280px, 1.2fr);
    align-items: center;
    min-height: 136px;
    gap: 24px;
    padding: 24px 28px;
}

.rh-home .rh-home-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 76px;
    padding-right: 24px;
    border-right: 1px solid #2a3238;
}

.rh-home .rh-home-stat > div {
    flex: 1 1 auto;
    min-width: 0;
}

.rh-home .rh-home-stat-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    color: #b7c0c3;
    stroke-width: 1.8;
}

.rh-home .rh-home-stat-label {
    display: block;
    margin-bottom: 6px;
    color: #a9b4bb;
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .055em;
    overflow-wrap: break-word;
}

.rh-home .rh-home-stat-value {
    display: block;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rh-home .rh-home-stat-note {
    display: block;
    margin-top: 6px;
    color: #b8c1c7;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.rh-home .rh-home-community-note {
    color: #e0e4e5;
    font-size: 14px;
    line-height: 1.6;
}

/* The form is the single visible search control, including its icon button. */
.rh-home .rh-home-search {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    border: 1px solid #475158;
    border-radius: 3px;
    background: #1a2024;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.rh-home .rh-home-search:focus-within {
    border-color: var(--rh-accent);
    outline: 1px solid var(--rh-accent);
    outline-offset: 0;
}

.rh-home .rh-home-search input {
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 12px 8px 12px 16px;
    border: 0;
    border-radius: 2px 0 0 2px;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
}

.rh-home .rh-home-search input::placeholder {
    color: #bac2c7;
    opacity: 1;
}

.rh-home .rh-home-search button {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 2px 2px 0;
    color: #d3dadf;
    background: transparent;
    cursor: pointer;
}

/* Override the page-wide control outlines only inside this shared search box.
   Its wrapper retains a visible focus ring for both mouse and keyboard use. */
.rh-home .rh-home-search input:focus,
.rh-home .rh-home-search input:focus-visible,
.rh-home .rh-home-search button:focus,
.rh-home .rh-home-search button:focus-visible {
    outline: none;
    box-shadow: none;
}

.rh-home .rh-home-search button:hover,
.rh-home .rh-home-search button:focus-visible {
    color: #fff;
    background: #2a343b;
}

/* Move search to a full-width row before the four sections become cramped. */
@media (max-width: 1200px) {
    .rh-home .rh-home-discovery-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
        padding: 24px;
    }

    .rh-home .rh-home-stat {
        padding-right: 20px;
    }

    .rh-home .rh-home-community-stat {
        padding-right: 0;
        border-right: 0;
    }

    .rh-home .rh-home-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .rh-home .rh-home-discovery-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding: 22px 20px;
    }

    .rh-home .rh-home-stat:nth-child(2) {
        padding-right: 0;
        border-right: 0;
    }

    .rh-home .rh-home-community-stat {
        grid-column: 1 / -1;
        min-height: 0;
        padding-top: 20px;
        border-top: 1px solid #2a3238;
    }

    .rh-home .rh-home-community-note br {
        display: none;
    }
}

/* Keep the two totals readable on phones instead of shrinking their text. */
@media (max-width: 480px) {
    .rh-home .rh-home-discovery-inner {
        gap: 18px 16px;
        padding: 20px 16px;
    }

    .rh-home .rh-home-stat:not(.rh-home-community-stat) {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: 0;
        padding-right: 14px;
    }

    .rh-home .rh-home-stat:nth-child(2) {
        padding-right: 0;
    }

    .rh-home .rh-home-stat-icon {
        width: 30px;
        height: 30px;
    }

    .rh-home .rh-home-stat-label {
        font-size: 11px;
        letter-spacing: .035em;
    }

    .rh-home .rh-home-stat:not(.rh-home-community-stat) .rh-home-stat-label {
        min-height: 2.8em;
    }

    .rh-home .rh-home-stat-value {
        font-size: clamp(24px, 6vw, 30px);
    }

    .rh-home .rh-home-stat-note {
        font-size: 12px;
    }

    .rh-home .rh-home-community-note {
        font-size: 13px;
    }
}

/* Directory, cards and pagination. */
.rh-home .rh-home-directory {
    padding-top: 46px;
    padding-bottom: 12px;
    scroll-margin-top: 24px;
}

.rh-home .rh-home-directory-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.rh-home .rh-home-section-title {
    margin: 0;
    font-family: var(--rh-heading-font);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.rh-home .rh-home-section-title > span {
    color: var(--rh-accent);
}




.rh-home .rh-home-demo-notice {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 26px;
    padding: 12px 15px;
    border: 1px solid #3a302b;
    border-left: 3px solid var(--rh-accent);
    border-radius: 2px;
    color: #c2c8cc;
    background: #171615;
    font-size: 12px;
    line-height: 1.6;
}

.rh-home .rh-home-demo-notice strong {
    flex-shrink: 0;
    color: #f0e5dc;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rh-home .rh-home-search-summary {
    margin: -5px 0 22px;
    color: #bcc7ce;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.rh-home .rh-home-server-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 26px 24px;
}

.rh-home .rh-home-server-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #39454b;
    border-radius: 6px;
    background: #11171b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .16), inset 0 0 0 1px rgba(255, 255, 255, .025);
    transition: border-color .2s ease;
}

.rh-home .rh-home-server-card:hover {
    border-color: #655248;
}

.rh-home .rh-home-card-art {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 2.3 / 1;
    overflow: hidden;
    isolation: isolate;
    background: #172026;
}

.rh-home .rh-home-card-art > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.rh-home .rh-home-card-art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(4, 8, 12, .68), rgba(4, 8, 12, .05) 88%),
        linear-gradient(0deg, #11171b 0%, rgba(17, 23, 27, .04) 32%);
}

 .rh-home .rh-home-card-statuses {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    max-width: calc(100% - 24px);
}

.rh-home .rh-home-server-status,
.rh-home .rh-home-wipe-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;
    padding: 5px 10px;

    border: 1px solid currentColor;
    border-radius: 2px;
    background: rgba(8, 12, 14, .92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .28);

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rh-home .rh-home-is-online { color: #a4e795; }
.rh-home .rh-home-is-offline { color: #ff7777; }

.rh-home .rh-home-wipe-status {
    border-color: #db3c19;
    color: #ff9b7d;
    background: rgba(37, 14, 9, .94);
}

.rh-home .rh-home-wipe-status[hidden] {
    display: none !important;
}

.rh-home .rh-home-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 6px 18px 18px;
}

.rh-home .rh-home-card-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    margin-bottom: 12px;
}

.rh-home .rh-home-card-heading h3 {
    min-width: 0;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.rh-home .rh-home-card-population {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 14px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rh-home .rh-home-region {
    display: inline-block;
    padding: 1px 4px;
    border: 1px solid #4b555b;
    border-radius: 2px;
    color: #c4cfd5;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .02em;
}

.rh-home .rh-home-capacity { color: #b2bcc3; }

 .rh-home .rh-home-card-map {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: -3px 0 10px;
    color: #aab5bb;
    font-size: 11px;
    line-height: 1.45;
}

.rh-home .rh-home-card-map-label {
    color: #6f7b82;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rh-home .rh-home-card-tags {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 28px;
    margin: 0 0 17px;
    padding: 0;
    list-style: none;
}

.rh-home .rh-home-card-tags li {
    padding: 4px 8px;
    border: 1px solid #37424a;
    border-radius: 3px;
    color: #d5dce0;
    background: linear-gradient(#242d32, #1b2327);
    font-size: 11px;
    line-height: 1.5;
}

.rh-home .rh-home-card-actions {
    display: grid;
    margin-top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rh-home .rh-home-card-actions .rh-home-button {
    gap: 10px;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .025em;
}

.rh-home .rh-home-card-actions .rh-home-button:disabled {
    cursor: not-allowed;
    opacity: .78;
}

.rh-home .rh-home-directory-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.rh-home .rh-home-result-count {
    margin: 0;
    color: #b6c2c8;
    font-size: 13px;
}

.rh-home .rh-home-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rh-home .rh-home-pagination a,
.rh-home .rh-home-pagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #47535a;
    border-radius: 3px;
    color: #e2e8eb;
    background: #141b20;
    font-size: 14px;
    text-decoration: none;
}

.rh-home .rh-home-pagination a:hover {
    background: #263139;
}

.rh-home .rh-home-pagination [aria-current="page"] {
    border-color: var(--rh-accent);
    color: #fff;
    background: #b93015;
}

.rh-home .rh-home-pagination > .rh-home-page-disabled {
    border-color: #293136;
    color: #56646c;
}

.rh-home .rh-home-empty {
    padding: 64px 24px;
    border: 1px solid #344049;
    border-radius: 5px;
    background: #11181d;
    text-align: center;
}

.rh-home .rh-home-empty h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.rh-home .rh-home-empty p {
    margin: 0 0 22px;
    color: #bdc7cd;
}

/* Tablet */
@media (max-width: 1100px) {
    .rh-home .rh-home-card-heading { flex-wrap: wrap; gap: 4px 10px; }
    .rh-home .rh-home-card-body { padding-inline: 14px; }
    .rh-home .rh-home-card-actions { gap: 8px; }
    .rh-home .rh-home-art-name { left: 16px; font-size: 32px; }
}

@media (max-width: 900px) {
    .rh-home .rh-home-hero-art { width: 85%; opacity: .75; }
    .rh-home .rh-home-hero::before {
        background: linear-gradient(90deg, #0b1012 0%, rgba(11, 16, 18, .95) 18%, rgba(11, 16, 18, .54) 65%, rgba(11, 16, 18, .2)),
            linear-gradient(0deg, rgba(7, 10, 12, .6), transparent 60%);
    }
    .rh-home .rh-home-hero-copy { width: 80%; }
    .rh-home .rh-home-hero,
    .rh-home .rh-home-hero-inner { min-height: 410px; }
    .rh-home .rh-home-hero-inner { padding-block: 48px; }
    .rh-home .rh-home-title { font-size: clamp(62px, 8vw, 86px); }
    .rh-home .rh-home-server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-home .rh-home-art-name { font-size: clamp(34px, 5vw, 44px); }
    .rh-home .rh-home-card-heading { flex-wrap: nowrap; }
    .rh-home .rh-home-demo-notice { align-items: flex-start; }
    .rh-home .rh-home-directory-bottom { grid-template-columns: 1fr auto; }
}

/* Phone */
@media (max-width: 600px) {
    .rh-home .rh-home-hero-kicker {
        margin-bottom: 14px;
        font-size: 11px;
        letter-spacing: .26em;
        white-space: normal;
    }
    .rh-home .rh-home-hero,
    .rh-home .rh-home-hero-inner { min-height: 440px; }
    .rh-home .rh-home-hero-inner { padding-block: 48px; }
    .rh-home .rh-home-hero-art { width: 100%; opacity: .55; object-position: 58% center; }
    .rh-home .rh-home-hero-copy { width: 100%; }
    .rh-home .rh-home-title { font-size: clamp(46px, 12vw, 66px); line-height: .9; }
    .rh-home .rh-home-hero-description { font-size: 14px; }
    .rh-home .rh-home-hero-description br { display: none; }
    .rh-home .rh-home-directory { padding-top: 30px; }
    .rh-home .rh-home-directory-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .rh-home .rh-home-section-title { font-size: clamp(27px, 7.2vw, 34px); }
    .rh-home .rh-home-directory-heading p { font-size: 12px; }
    .rh-home .rh-home-demo-notice { flex-direction: column; gap: 3px; }
    .rh-home .rh-home-server-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .rh-home .rh-home-card-art { aspect-ratio: 2.1 / 1; }
    .rh-home .rh-home-art-name { font-size: clamp(36px, 9vw, 48px); }
    .rh-home .rh-home-card-body { padding: 8px 16px 16px; }
    .rh-home .rh-home-card-heading { gap: 8px; }
    .rh-home .rh-home-card-heading h3 { font-size: 15px; }
    .rh-home .rh-home-card-population { gap: 6px; font-size: 12px; }
    .rh-home .rh-home-card-actions .rh-home-button { min-height: 46px; font-size: 11px; }
    .rh-home .rh-home-directory-bottom { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
}

@media (max-width: 360px) {
    .rh-home .rh-home-card-heading { flex-wrap: wrap; }
    .rh-home .rh-home-title { font-size: 43px; }
}

@media (prefers-reduced-motion: reduce) {
    .rh-home .rh-home-button,
    .rh-home .rh-home-server-card { transition: none; }
}

/* Live-directory data states. Visual polish comes after the end-to-end flow is proven. */
.rh-home .rh-home-server-status.rh-home-is-checking{border-color:#59636a;background:rgba(19,24,28,.92);color:#c3cbd0}.rh-home .rh-home-population-unknown{color:#89949b}.rh-home .rh-home-card-actions a.rh-home-button{box-sizing:border-box;text-decoration:none}.rh-home .rh-home-card-actions button:disabled{opacity:.5;cursor:not-allowed}


/* Non-clickable card actions must look identical to normal Rust Hub buttons.
   Use a styled element rather than the browser's native disabled-button UI. */
.rh-home .rh-home-card-actions .rh-home-button-unavailable {
    cursor: default;
    opacity: 1;
    user-select: none;
    pointer-events: none;
}


/* Compact server action icon rail.
   Icons only exist when the corresponding configured value exists. */
.rh-home .rh-home-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: auto;
    padding-top: 16px;

    border-top: 1px solid rgba(255,255,255,0.06);
}

.rh-home .rh-home-action-icon {
    position: relative;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;

    border: 1px solid #3a4248;
    border-radius: 0;
    background: #151a1e;

    color: #ffffff;
    text-decoration: none;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.rh-home .rh-home-action-icon:hover,
.rh-home .rh-home-action-icon:focus-visible {
    border-color: #db3c19;
    background: #1b2024;
    transform: translateY(-2px);
}

.rh-home .rh-home-action-icon:focus-visible {
    outline: 2px solid #db3c19;
    outline-offset: 3px;
}

.rh-home .rh-home-action-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.rh-home .rh-home-action-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}


/* Bare server-card action icons: no square button chrome */
.rh-home .rh-home-card-actions {
    gap: 14px;
}

.rh-home .rh-home-action-icon {
    width: auto;
    height: auto;
    min-width: 0;
    flex: 0 0 auto;

    padding: 0;

    border: 0;
    background: transparent;

    box-shadow: none;
}

.rh-home .rh-home-action-icon:hover,
.rh-home .rh-home-action-icon:focus-visible {
    border: 0;
    background: transparent;
    transform: translateY(-2px) scale(1.08);
}

.rh-home .rh-home-action-icon:focus-visible {
    outline: 2px solid #db3c19;
    outline-offset: 5px;
}

.rh-home .rh-home-action-icon img {
    width: 34px;
    height: 34px;

    object-fit: contain;
    display: block;

    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

@media (max-width: 600px) {
    .rh-home .rh-home-action-icon img {
        width: 32px;
        height: 32px;
    }
}


/* Server card layout polish */
.rh-home .rh-home-card-heading {
    display: block;
    min-width: 0;
}

.rh-home .rh-home-card-heading h3 {
    margin: 0;

    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 16px;
    line-height: 1.25;
}

.rh-home .rh-home-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 12px;
}

.rh-home .rh-home-card-tags {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    min-width: 0;

    list-style: none;
}

.rh-home .rh-home-card-tags li {
    margin: 0;
}

.rh-home .rh-home-card-population {
    margin-left: auto;

    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;

    white-space: nowrap;
}

.rh-home .rh-home-player-count {
    display: inline-flex;
    align-items: baseline;
}

.rh-home .rh-home-region {
    flex: 0 0 auto;
}

.rh-home .rh-home-card-map {
    display: none !important;
}

@media (max-width: 520px) {
    .rh-home .rh-home-card-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .rh-home .rh-home-card-population {
        margin-left: 0;
    }
}


/* Card spacing + metadata polish */
.rh-home .rh-home-card-body {
    padding-top: 16px;
}

.rh-home .rh-home-card-heading {
    margin-bottom: 6px;
}

.rh-home .rh-home-card-heading h3 {
    font-size: 15px;
    line-height: 1.25;
}

.rh-home .rh-home-card-meta-row {
    margin-top: 4px;
    gap: 8px;
}

.rh-home .rh-home-card-tags {
    gap: 5px;
}

.rh-home .rh-home-card-tags li,
.rh-home .rh-home-meta-chip {
    min-height: 22px;
    padding: 0 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #343c41;
    border-radius: 0;
    background: #171c20;

    color: #aeb8be;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.15px;
}

.rh-home .rh-home-card-population {
    gap: 5px;
}

.rh-home .rh-home-region-chip {
    width: 30px;
    padding: 0 5px;
}

.rh-home .rh-home-region-chip img {
    width: 18px;
    height: 12px;

    display: block;
    object-fit: cover;

    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.rh-home .rh-home-player-count {
    color: #f2f4f5;
    font-variant-numeric: tabular-nums;
}

.rh-home .rh-home-player-count strong {
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.rh-home .rh-home-capacity {
    margin-left: 2px;

    color: #9ca6ad;

    font-size: 9px;
    font-weight: 800;
}


/* Larger, easier-to-read server tags and metadata chips */
.rh-home .rh-home-card-tags li,
.rh-home .rh-home-meta-chip {
    min-height: 28px;
    padding: 0 10px;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.rh-home .rh-home-player-count strong {
    font-size: 12px;
    font-weight: 900;
}

.rh-home .rh-home-capacity {
    font-size: 11px;
    font-weight: 900;
}

.rh-home .rh-home-region-chip {
    width: 36px;
    padding: 0 7px;
}

.rh-home .rh-home-region-chip img {
    width: 22px;
    height: 14px;
}

/* Server card hover */
.rh-home .rh-home-server-card {
    border: 1px solid #343c41;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.rh-home .rh-home-server-card:hover {
    transform: translateY(-6px);

    border-color: #db3c19;

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(219, 60, 25, 0.18);
}
