/* Offset site-top and footer from sidebar */
.site-top,
.site-footer {
    margin-left: 280px;
}

/* ── Sidebar: fixed left ── */
.home-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    overflow-y: auto;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--bg);
    z-index: 50;
}
.home-sidebar__brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: sofia-pro, sans-serif;
    padding: 0.5rem 0.7rem 1rem;
    margin-bottom: 0.25rem;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1;
    padding-top: 25px;
}
.home-sidebar__brand-label {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.5;
}
.home-sidebar__brand-title {
    font-size: 1rem;
    font-weight: 700;
}
.home-sidebar__search {
    padding: 0 0.7rem 0.5rem;
}
.home-sidebar__search-input {
    width: 100%;
    font-family: sofia-pro, sans-serif;
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--bg-subtle);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.home-sidebar__search-input::placeholder {
    color: var(--text-muted);
}
.home-sidebar__search-input:focus {
    border-color: var(--text-tertiary);
}
.home-sidebar__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
    font-family: sofia-pro, sans-serif;
}
.home-sidebar__item:hover {
    background: var(--bg-subtle);
}
.home-sidebar__item.is-active {
    background: var(--bg-muted);
}
.home-sidebar__pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.home-sidebar__pic--empty {
    display: block;
    background: var(--bg-muted);
}
.home-sidebar__handle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-sidebar__item.is-active .home-sidebar__handle {
    color: var(--text);
    font-weight: 600;
}

/* ── Main content: offset by sidebar ── */
.home-main {
    margin-left: 280px;
    overscroll-behavior: none;
}

/* ── Region filter bar ── */
.home-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 1rem 0.75rem;
    margin-top: 70px;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 40;
}
.home-filter {
    font-family: sofia-pro, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}
.home-filter:hover {
    border-color: var(--text-muted);
    color: var(--text);
}
.home-filter.is-active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* ── 4-wide grid ── */
.home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

/* ── Card ── */
.home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 440px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-raised);
    transition: box-shadow 0.15s;
    padding-bottom: 2rem;
}
.home-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.home-card__visual {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-card__img {
    width: 90%;
    height: 90%;
    margin: auto;
    object-fit: cover;
    background: var(--bg-muted);
    transition: opacity 0.2s;
    border-radius: 50%;
}
.home-card__dek {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-raised);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 2;
    border-radius: 6px;
}
.home-card:hover .home-card__dek {
    opacity: 1;
}
.home-card__body {
    padding: 0.7rem 0.75rem 0.5rem;
}
.home-card__headline {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-card__handles {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem 0.65rem;
    position: relative;
    z-index: 3;
}
.home-card__date {
    position: absolute;
    bottom: 0.6rem;
    left: 0.75rem;
}
.home-card__region {
    position: absolute;
    bottom: 0.6rem;
    right: 0.75rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.home-card__handle-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .home-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .home-sidebar {
        width: 180px;
    }
    .home-main {
        margin-left: 180px;
    }
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .site-top,
    .site-footer {
        margin-left: 0;
    }
    .home-sidebar {
        display: none;
    }
    .home-main {
        margin-left: 0;
    }
    .home-filters {
        margin-top: 0;
        padding: 0.75rem 0.75rem 0;
    }
    .home-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    .home-card {
        height: auto;
    }
    .home-card__img {
        aspect-ratio: 4 / 3;
    }
    .home-card__headline {
        font-size: 0.9rem;
    }
}
