.home-editorial {
    --home-ink: #132746;
    --home-blue: #1d4ed8;
    --home-muted: #52647c;
    --home-line: #dce5f1;
    --home-rhythm: clamp(1.6rem, 3.7vw, 3.5rem);
    display: grid;
    gap: var(--home-rhythm);
    margin-block-start: clamp(1.25rem, 2.5vw, 2rem);
}

.home-editorial > * { min-inline-size: 0; }

.home-editorial-heading,
.home-editorial .home-updates-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: .75rem 1.25rem;
    margin-block-end: 1.125rem;
}

.home-editorial-heading h2,
.home-editorial .home-updates-heading h2,
.home-seller-panel h2 {
    color: var(--home-ink);
    font-size: clamp(1.55rem, 3.2vw, 2.4rem);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-wrap: balance;
}

#home-categories-heading { scroll-margin-block-start: 7rem; }

.home-editorial-heading p,
.home-editorial .home-updates-heading p {
    margin-block-start: .5rem;
    color: var(--home-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.home-editorial-heading > a,
.home-editorial .home-updates-heading > a {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    min-block-size: 44px;
    padding: .5rem .875rem;
    border: 1px solid var(--home-line);
    border-radius: .75rem;
    background: #fff;
    color: #1b428e;
    font-size: .85rem;
    font-weight: 650;
    text-decoration: none;
}

.home-editorial-heading > a:hover,
.home-editorial .home-updates-heading > a:hover {
    border-color: #93b4f3;
    background: #edf4ff;
    text-decoration: none;
}

.home-editorial .home-category-grid {
    display: grid;
    background: transparent;
    box-shadow: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.5rem, 1.4vw, 1rem);
}

.home-category-tile {
    position: relative;
    min-inline-size: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: .9rem;
    background: #fff;
    color: var(--home-ink);
    text-decoration: none;
}

.home-category-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 2.15 / 1;
    height: auto;
    object-fit: cover;
}

.home-category-tile:hover,
.home-category-tile:focus-visible {
    border-color: #8daee2;
    color: #1b428e;
    text-decoration: none;
}

.home-category-label {
    display: flex;
    align-items: center;
    min-block-size: 2.65rem;
    padding: .4rem .55rem;
    font-size: clamp(.72rem, 1.4vw, 1rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.home-category-arrow {
    display: none;
    color: var(--home-blue);
}

[dir="rtl"] .home-editorial-arrow { transform: scaleX(-1); }

.home-inventory-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(.625rem, 1.5vw, 1.125rem);
}

.home-inventory-card {
    min-inline-size: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 1.125rem;
    background: #fff;
    box-shadow: 0 5px 18px #17386109;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.home-inventory-card:hover {
    border-color: #9bb8eb;
    box-shadow: 0 8px 22px #17386117;
}

.home-inventory-link,
.home-inventory-link:hover {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: var(--home-ink);
    text-decoration: none;
}

.home-editorial .home-inventory-link:focus-visible { outline-offset: -3px; border-radius: inherit; }

.home-inventory-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9f0fa;
}

.home-inventory-media img,
.home-inventory-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-inventory-placeholder {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 50%, #f4f8ff, #dfebfb);
    color: #5c7ba5;
}

.home-inventory-placeholder svg { width: 29%; height: 29%; }

.home-inventory-category,
.home-inventory-sold {
    position: absolute;
    inset-block-start: .625rem;
    inset-inline-start: .625rem;
    max-inline-size: calc(100% - 1.25rem);
    border-radius: .5rem;
    padding: .25rem .55rem;
    background: #fff;
    color: #1b3f70;
    font-size: .72rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.home-inventory-sold {
    inset-block: auto .625rem;
    background: #9f1239;
    color: #fff;
}

.home-inventory-copy {
    flex: 1;
    padding: clamp(.75rem, 1.6vw, 1.125rem);
}

.home-inventory-price {
    color: #123979;
    font-size: clamp(.95rem, 2vw, 1.45rem);
    font-weight: 760;
    line-height: 1.17;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.home-inventory-price span,
.home-inventory-price--unavailable { font-size: .75rem; letter-spacing: 0; }

.home-inventory-copy h3 {
    display: -webkit-box;
    min-block-size: 2.7em;
    overflow: hidden;
    margin-block: .375rem .65rem;
    font-size: clamp(.85rem, 1.3vw, 1.025rem);
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-inventory-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .75rem;
    color: var(--home-muted);
    font-size: .75rem;
}

.home-inventory-place { display: inline-flex; align-items: flex-start; gap: .25rem; overflow-wrap: anywhere; min-inline-size: 0; }
.home-inventory-place svg { flex: none; width: .9rem; height: .9rem; margin-block-start: .125rem; color: #3564af; }

.home-inventory-seller {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .375rem;
    border-block-start: 1px solid #e9eff6;
    padding: .6rem clamp(.75rem, 1.6vw, 1.125rem);
    background: #f8fafd;
    color: #435773;
    font-size: .75rem;
}
.home-inventory-seller > span:first-child { min-inline-size: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-inventory-seller > span:last-child { color: var(--home-blue); font-size: .95rem; }

.home-editorial .home-updates { margin-block-start: 0; }

.home-editorial .home-businesses {
    padding: clamp(1rem, 2.8vw, 2rem);
    border: 1px solid #cdddf5;
    border-radius: 1.375rem;
    background: linear-gradient(130deg, #e9f1ff, #f5f8ff);
}

.home-editorial :is(.home-business-card, .home-update-card) { border-color: var(--home-line); border-radius: 1rem; }
.home-editorial .home-business-grid { gap: .75rem; }
.home-editorial .home-business-card { padding: .75rem; box-shadow: 0 3px 12px #17386108; }
.home-editorial .home-business-card .business-avatar { background: #e9f1ff; color: #1d468e; }
.home-editorial .home-business-card .home-business-location { margin-block-start: .125rem; }
.home-editorial .home-business-card .home-business-types { margin-block-start: .5rem; }
.home-editorial .home-business-card .home-business-visit { display: inline-flex; align-items: center; gap: .4rem; min-block-size: 44px; }
.home-editorial .home-business-card .home-business-bio { margin-block: .5rem .25rem; }
.home-editorial .home-update-copy { gap: .5rem; }
.home-editorial .home-update-copy h3 { color: var(--home-ink); }

.home-editorial .home-updates-grid-community .home-update-cover { aspect-ratio: 5 / 3; }
.home-editorial .home-updates-grid-community .home-update-card { border-block-start: 3px solid #aac5f3; }

.home-seller-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: clamp(1.25rem, 4vw, 2.75rem);
    border: 1px solid var(--home-line);
    border-inline-start: 4px solid #2563eb;
    border-radius: 1.25rem;
    background: #fff;
    color: var(--home-muted);
}
.home-seller-panel h2 { text-align: start; }
.home-seller-panel p { max-inline-size: 62ch; margin-block-start: .75rem; line-height: 1.65; }
.home-seller-panel > a {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-block-size: 44px;
    border-radius: .75rem;
    padding: .625rem 1rem;
    border: 1px solid #c2d6f6;
    background: #eff5ff;
    color: #173b81;
    font-weight: 700;
    text-decoration: none;
}
.home-seller-panel > a:hover { background: #dbeaff; color: #123269; }

.home-about {
    border-block-start: 1px solid var(--home-line);
    color: var(--home-muted);
    font-size: .875rem;
    line-height: 1.65;
}
.home-about summary { padding-block: .875rem; color: var(--home-ink); font-weight: 650; cursor: pointer; }
.home-about-content { display: grid; gap: .625rem; max-inline-size: 76rem; }
.home-about-content h3 { color: var(--home-ink); font-weight: 650; }
.home-about-categories { display: flex; flex-wrap: wrap; gap: .875rem 2rem; }
.home-about-categories ul { margin-block-start: .25rem; }
.home-about-categories a { color: var(--home-blue); }
.home-about-categories a:hover { text-decoration: underline; }

@media (max-width: 639px) {
    .home-inventory-link,
    .home-inventory-link:hover {
        display: grid;
        grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
        grid-template-rows: 1fr auto;
    }
    .home-inventory-media { grid-row: span 2; min-block-size: 7.25rem; aspect-ratio: auto; }
    .home-inventory-media img, .home-inventory-placeholder { position: absolute; inset: 0; }
    .home-inventory-category, .home-inventory-sold { font-size: .65rem; }
}

@media (min-width: 640px) {
    .home-inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
    .home-inventory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 740px) {
    .home-editorial .home-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .home-inventory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-category-label { padding-inline: .75rem 1.75rem; }
    .home-category-arrow { display: block; position: absolute; inset-inline-end: .65rem; inset-block-end: .65rem; }

    .home-editorial .home-updates-grid-blog:has(> :nth-child(3)) {
        grid-template-columns: 1fr 1fr;
    }
    .home-updates-grid-blog:has(> :nth-child(3)) > .home-update-card:first-child {
        grid-row: span 2;
    }
    .home-updates-grid-blog:has(> :nth-child(3)) > .home-update-card:not(:first-child) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
    }
    .home-updates-grid-blog:has(> :nth-child(3)) > .home-update-card:not(:first-child) .home-update-cover {
        aspect-ratio: auto;
        height: 100%;
    }
    .home-updates-grid-blog:has(> :nth-child(3)) > .home-update-card:not(:first-child) .home-update-copy:only-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .home-category-tile { border-radius: .8rem; }
    .home-inventory-card { border-radius: .85rem; }
    .home-editorial-heading > a { padding-inline: .625rem; font-size: .75rem; }
}
