@import url("./arrow.css");
.ph-home .ph-card,
.ph-home .ph-card * {
    box-sizing: border-box;
}

.ph-home .ph-card {
    container-type: inline-size;
    min-width: 0;
    border: 1px solid var(--ph-blue);
    background: var(--ph-card-surface);
}

.ph-home .ph-card__link {
    display: flex;
    flex-direction: column;
    gap: var(--ph-space-small);
    height: 100%;
    padding: var(--ph-space-card);
    color: inherit;
    text-decoration: none;
}

.ph-home a.ph-card__link:focus-visible {
    outline: 3px solid var(--ph-focus);
    outline-offset: 3px;
}

.ph-home a.ph-card__link:hover .ph-card__title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ph-home .ph-card__image {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: 100%;
    overflow: hidden;
    background: var(--ph-surface-muted);
    color: var(--ph-text-secondary);
    font-size: var(--ph-font-small);
}

.ph-home .ph-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-home .ph-card__release {
    display: flex;
    align-items: center;
    gap: var(--ph-space-small);
    width: 100%;
    margin: 0;
    padding: 1.5px 5px;
    border: 1px solid var(--ph-border);
    background: var(--ph-surface);
    font-size: var(--ph-font-small);
    line-height: var(--ph-line-small);
    overflow-wrap: anywhere;
}

.ph-home .ph-card__release img {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
}

.ph-home .ph-card__title {
    display: -webkit-box;
    min-height: 2rem;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: var(--ph-font-small);
    font-weight: 400;
    line-height: var(--ph-line-small);
    overflow-wrap: anywhere;
}

.ph-home .ph-card__footer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: var(--ph-space-small);
    min-height: 42px;
    margin-top: auto;
    padding-top: var(--ph-space-card);
}

.ph-home .ph-card__detail {
    margin: 0;
    font-size: var(--ph-font-caption);
    line-height: var(--ph-line-small);
    overflow-wrap: anywhere;
}

/* Keep the year/month/week together; narrow cards retain the complete label. */
.ph-home .ph-card__release--dated span {
    white-space: nowrap;
}

@container (max-width: 190px) {
    .ph-home .ph-card__release--dated {
        gap: 3px;
        padding-inline: 3px;
        font-size: var(--ph-font-caption);
    }
}
