.home-news-list {
    min-width: 0;
    border-block-end: 1px solid var(--line);
    container-type: inline-size;
}

.home-news-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
    padding-block: 1.5rem;
    border-block-start: 1px solid var(--line);
}

.home-news-cover {
    display: block;
    overflow: hidden;
    border-radius: var(--image-radius, 0.75rem);
}

.home-news-media {
    min-width: 0;
    max-width: 100%;
    border-radius: 0;
}

.home-news-media [hidden] {
    display: none !important;
}

.home-news-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--image-radius, 0.75rem);
}

.home-news-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    outline: 1px solid oklch(0 0 0 / 0.1);
    outline-offset: -1px;
}

.home-news-photo-control {
    position: absolute;
    z-index: 2;
    inset-block-end: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
}

.home-news-photo-control::before {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: rgb(0 0 0 / 15%);
    content: '';
}

.home-news-photo-control svg {
    position: relative;
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / 70%));
    pointer-events: none;
}

.home-news-photo-previous {
    inset-inline-start: 0;
}

.home-news-photo-next {
    inset-inline-end: 0;
}

.home-news-photo-control[aria-disabled="true"] {
    cursor: default;
}

.home-news-photo-control[aria-disabled="true"] svg {
    opacity: 0.4;
}

.home-news-photo-position {
    position: absolute;
    z-index: 2;
    inset-block-start: 0.5rem;
    inset-inline-end: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    background: rgb(0 0 0 / 15%);
    color: var(--white);
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
    text-shadow: 0 1px 1px rgb(0 0 0 / 70%);
}

.home-news-dots {
    position: relative;
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0.25rem auto 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.home-news-dots::-webkit-scrollbar {
    display: none;
}

.home-news-dot {
    position: relative;
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.home-news-dot::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--control-border);
    content: '';
}

.home-news-dot[aria-current="true"]::before {
    background: var(--cinnabar);
}

.public-social .home-news-photo-control:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -4px;
    box-shadow: inset 0 0 0 3px var(--white);
}

.public-social .home-news-dot:focus-visible {
    outline-offset: -2px;
}

.home-news-copy {
    min-width: 0;
}

.home-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 0.875rem;
    list-style: none;
}

.home-news-meta > li {
    min-width: 0;
    max-width: 100%;
}

.home-news-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 100%;
    min-width: 0;
    padding: 0.3rem 0.625rem;
    border-radius: 0.375rem;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.home-news-badge svg {
    flex-shrink: 0;
    width: 0.875rem;
    height: 0.875rem;
}

.home-news-badge bdi,
.home-news-badge span {
    min-width: 0;
}

.home-news-language {
    background: var(--gold-soft, var(--surface));
    color: var(--ink);
}

.home-news-category {
    background: var(--accent-soft);
    color: var(--cinnabar);
}

.home-news-date {
    white-space: nowrap;
}

.public-social #home-news-title {
    font-size: 1.5rem;
}

.public-social .home-news-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
    text-wrap: balance;
}

.home-news-title a {
    text-decoration: none;
}

.home-news-excerpt {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.public-social .home-news-read {
    min-height: 2.75rem;
    font-size: 0.875rem;
}

.home-news-pagination {
    margin-block-start: 1.5rem;
}

@container (min-width: 38rem) {
    .home-news-card:not(.home-news-card-no-cover) {
        grid-template-columns: minmax(12rem, 34%) minmax(0, 1fr);
        gap: 1.5rem;
    }
}

@media (hover: hover) {
    .home-news-title a:hover,
    a.home-news-category:hover {
        color: var(--cinnabar-dark);
        text-decoration: underline;
    }
}
