/* Keep the content feed centered while anchoring both desktop rails to the viewport edges. */
.home-topbar {
    padding-inline: 20px;
}

/* Shared desktop header: brand at the left edge, search truly centered in the viewport,
   account/translation controls at the right edge. The equal outer columns prevent
   asymmetric controls from pushing the search off-center. */
@media (min-width: 681px) {
    .topbar.home-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 560px) minmax(0, 1fr);
        align-items: center;
        column-gap: 20px;
    }

    .topbar.home-topbar > .brand {
        grid-column: 1;
        justify-self: start;
        margin: 0;
    }

    .topbar.home-topbar > .header-search {
        grid-column: 2;
        width: 100%;
        max-width: 560px;
        min-width: 0;
        margin: 0;
        justify-self: center;
    }

    .topbar.home-topbar > .compact-account,
    .topbar.home-topbar > .account-menu {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
        min-width: 0;
    }
}

.home .home-shell {
    width: 100%;
    max-width: none;
    grid-template-columns: var(--rail) minmax(0, var(--feed)) var(--right);
    justify-content: space-between;
}

@media (max-width: 1180px) {
    .home .home-shell {
        grid-template-columns: var(--rail) minmax(0, var(--feed));
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .home .home-topbar {
        padding-inline: 12px;
    }
}
