/* =========================================
   Home - visual content layout
   ========================================= */

.home-main .layout {
    align-items: stretch;
}

.home-content {
    width: 100%;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.home-card {
    background: var(--clr-surface);
    border-radius: var(--radius);
    padding: var(--gap-l);
    box-shadow: 0 1px 4px rgb(0 0 0/.08);
}

.home-lead {
    margin-bottom: 1rem;
    padding: var(--gap-l);
}

.home-lead h1 {
    margin-bottom: .35rem;
}

.home-lead p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-featured-card__image-link {
    display: block;
}

.home-featured-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #eef3fa;
}

.home-featured-card__image--empty {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.home-featured-card__body {
    padding: .7rem 0 .25rem;
}

.home-badge {
    display: inline-block;
    margin-bottom: .45rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #174d83;
    background: #e8f2ff;
    border-radius: 999px;
    padding: .17rem .54rem;
}

.home-featured-card__title {
    margin: 0 0 .35rem;
    line-height: 1.2;
    color: var(--clr-primary);
}

.home-featured-item__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-featured-item__link:hover,
.home-featured-item__link:focus,
.home-featured-item__link:active {
    text-decoration: none;
}

.home-meta {
    margin: 0;
    font-size: .72rem;
    color: #64748b;
}

.home-intro {
    margin: .5rem 0 0;
    color: #1f2937;
    line-height: 1.45;
}

.home-label-row {
    margin-top: .55rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.home-label {
    border: 1px solid #cfe2fa;
    background: #eef5ff;
    color: #1b4d7f;
    border-radius: 999px;
    padding: .15rem .5rem;
    font-size: .73rem;
    font-weight: 600;
}

.home-featured-item {
    min-width: 0;
}

.home-featured-item:first-child {
    padding-right: .5rem;
}

.home-featured-item:last-child {
    padding-left: .5rem;
}

.home-dual-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.home-dual-grid > .home-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-grid {
    margin-top: 1rem;
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .7rem;
}

.home-section-head .title {
    margin: 0;
}

.home-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.home-price-stack,
.home-puzzle-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-price-stack > *:not(:last-child),
.home-puzzle-stack > *:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.home-price-row,
.home-puzzle-row {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: .6rem;
    align-items: center;
    height: 76px;
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    padding: .5rem 0;
    background: transparent;
    transition: background-color .15s ease;
    text-decoration: none;
}

.home-price-row:hover,
.home-price-row:focus,
.home-price-row:active,
.home-puzzle-row:hover,
.home-puzzle-row:focus,
.home-puzzle-row:active {
    text-decoration: none !important;
}

.home-price-row__image,
.home-puzzle-row img {
    width: 74px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background: #eef2f7;
}

.home-price-row__body {
    min-width: 0;
}

.home-puzzle-row > span {
    min-width: 0;
}

.home-price-row__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .45rem;
}

.home-price-row__top strong {
    color: var(--clr-primary);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-price-row__meta {
    display: block;
    margin-top: .12rem;
    font-size: .79rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-price-row__values {
    display: block;
    margin-top: .2rem;
    font-size: .86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-puzzle-row strong {
    display: block;
    color: var(--clr-primary);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-puzzle-row small {
    display: block;
    margin-top: .17rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-delta {
    font-size: .72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .15rem .45rem;
    white-space: nowrap;
}

.home-delta--down {
    color: #065f46;
    background: #dcfce7;
}

.home-delta--up {
    color: #991b1b;
    background: #fee2e2;
}

.home-delta--flat {
    color: #475569;
    background: #e2e8f0;
}

.home-content ul,
.home-content ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-content li {
    margin: 0;
}

.home-featured-item {
    transition: background-color .15s ease;
    border-radius: 6px;
}

.home-featured-item:hover {
    background: rgba(0, 0, 0, .03);
}

.home-price-row:hover,
.home-puzzle-row:hover {
    background: rgba(0, 0, 0, .03);
}

.home-article-row-link {
    display: block;
}

.home-article-row-link .artikel-row {
    border-bottom: 1px solid #e2e8f0;
    padding: var(--gap-m) 0;
    transition: background-color .15s ease;
}

.home-article-row-link:last-child .artikel-row {
    border-bottom: 0;
}

.home-article-row-link:hover .artikel-row {
    background: rgba(0, 0, 0, .03);
}

.home-grid .artikel-row-link div.artikel-title:hover,
.home-grid h2.artikel-row-title:hover,
.home-grid div.artikel-row-more:hover {
    text-decoration: none !important;
}

/* Compactere metadata in de home-lijst */
.home-grid .artikel-date {
    font-size: .72rem;
    margin-bottom: .18rem;
}

.home-stats-card {
    min-width: 0;
}

.home-stats-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: .6rem;
}

.home-stat {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: .65rem .55rem .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .2rem;
    flex: 1 1 0;
}

.home-stat__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-primary);
    line-height: 1;
}

.home-stat__label {
    font-size: .8rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.25;
}

@media (max-width: 1100px) {
    .home-stats-list {
        flex: 0 0 auto;
    }

    .home-stat {
        flex: 0 0 auto;
    }
}

@media (max-width: 1100px) {
    .home-featured-grid {
        grid-template-columns: 1fr;
    }

    .home-featured-item:first-child {
        padding-right: 0;
        padding-bottom: .75rem;
    }

    .home-featured-item:last-child {
        padding-left: 0;
        padding-top: .25rem;
    }

    .home-dual-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    /* .home-main .layout {
        /* padding-top: var(--gap-l);
        padding-bottom: var(--gap-l);
        /* row-gap: var(--gap-l); 
    } */

    .home-content {
        margin: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .home-lead {
        display: none;
    }

    .home-card {
        background: var(--clr-surface);
        border-radius: var(--radius);
        box-shadow: 0 1px 4px rgb(0 0 0/.08);
        padding: var(--gap-m);
    }

    .home-featured-section,
    .home-dual-grid,
    .home-grid {
        margin-top: var(--gap-m);
    }

    .home-featured-section {
        margin-top: 0;
    }

    .home-featured-grid,
    .home-dual-grid {
        gap: var(--gap-m);
    }

    .home-section-head {
        margin-bottom: var(--gap-xs);
    }

    .home-featured-card__image {
        height: 170px;
    }

    .home-price-row,
    .home-puzzle-row {
        padding-top: .45rem;
        padding-bottom: .45rem;
    }

    .home-article-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-xs);
    }

    .home-article-row-link .artikel-row {
        padding: .55rem .4rem;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 0;
    }

    .home-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .section.content {
        padding: 0 !important;
    }
}
