/* Neighbourhood roster: the location cards above the community section.

   The stat block (.cm-stat*) and the tone colours (.cm-import and friends) are
   not redeclared here — community-tab.css owns them and both sections draw the
   same component, exactly as the product draws both from one StatBlock. Only
   what is specific to the roster lives in this file. */

.nb-root {
    margin-bottom: 1.5rem;
}

.nb-root .surface {
    border: none;
}

/* The summary head carries two totals on its opposite edge, the same shape the
   community card uses — community-tab.css scopes that rule to .cm-panel, so
   the roster needs its own copy or the two "Total" heads on this one tab would
   align differently. */
.nb-root .overview__head {
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

/* ---------- roster ---------------------------------------------------------- */
.nb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.25rem, 1fr));
    gap: 0.875rem;
    margin-top: 0.75rem;
}

.nb-grid > * {
    min-width: 0;
}

.nb-house[hidden] {
    display: none;
}

.nb-house {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    box-shadow: var(--shadow-card);
    padding: 0.625rem 0.5rem;
    text-align: center;
}

/* The visitor's own location, ringed the way NeighbourHouse.tsx rings it. */
.nb-house--you {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.nb-house__name {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nb-house__art {
    display: block;
    width: 4.5rem;
    height: 3.25rem;
    margin: 0 auto;
    object-fit: contain;
    object-position: bottom;
}

/* Reads as the ground the house stands on — side by side across the grid the
   cards line up into a street, which is the product's intent for the divider
   under each tile. */
.nb-house__ground {
    display: block;
    height: 2px;
    width: 70%;
    margin: 0.5rem auto 0.625rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--foreground) 10%, transparent);
}

.nb-house__stats {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
}

.nb-totals {
    display: flex;
    gap: 1.75rem;
}
