.wr-list-page {
    padding: 1.75rem 0 4rem;
}

.wr-list-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: 0;
}

.wr-news-index {
    border-top: 1px solid var(--wr-ink);
}

.wr-news-row {
    border-bottom: 1px solid var(--wr-rule);
}

.wr-news-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    gap: 0.75rem 1rem;
    min-height: 7.5rem;
    align-items: start;
    padding: 1.25rem 0;
    color: var(--wr-ink);
    text-decoration: none;
}

.wr-news-row-meta {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    color: var(--wr-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875rem;
}

.wr-news-row-meta span {
    width: fit-content;
    color: var(--wr-rose-dark);
    font-family: "Noto Sans TC", system-ui, sans-serif;
    font-weight: 700;
}

.wr-news-row-copy {
    min-width: 0;
}

/* Title and excerpt are clamped to two lines with an ellipsis, and long
   unbroken strings (URLs, repeated characters) wrap instead of overflowing
   the row. */
.wr-news-row-copy h2,
.wr-news-row-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wr-news-row-copy h2 {
    margin: 0;
    font-family: var(--wr-font-body);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.5;
    transition: color 140ms ease;
}

.wr-news-row-copy p {
    max-width: 52rem;
    margin: 0.6rem 0 0;
    color: var(--wr-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.wr-news-row-arrow {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid var(--wr-rule);
    border-radius: 50%;
    color: var(--wr-ink);
    font-size: 1rem;
    transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.wr-news-link:hover .wr-news-row-copy h2,
.wr-news-link:focus-visible .wr-news-row-copy h2 {
    color: var(--wr-rose-dark);
}

.wr-news-link:hover .wr-news-row-arrow,
.wr-news-link:focus-visible .wr-news-row-arrow {
    border-color: var(--wr-rose);
    color: var(--wr-rose-dark);
    transform: translate(2px, -2px);
}

@media (min-width: 768px) {
    .wr-list-page {
        padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(5rem, 10vw, 8rem);
    }

    .wr-list-header {
        margin-bottom: clamp(2.5rem, 7vw, 4rem);
    }

    .wr-news-link {
        grid-template-columns: 10rem minmax(0, 1fr) 2.75rem;
        gap: clamp(1rem, 4vw, 3.5rem);
        min-height: 8.5rem;
        padding: clamp(1.5rem, 4vw, 2.4rem) 0;
    }

    .wr-news-row-meta {
        display: grid;
        grid-column: auto;
        gap: 0.4rem;
    }

    .wr-news-row-copy h2 {
        font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    }
}

/* Optional thumbnail for posts with an uploaded image. On narrow screens it
   sits full-width between the meta line and the title, so the arrow stays
   beside the copy exactly as on rows without an image. */
.wr-news-row-thumb {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow: hidden;
    border-radius: 0.6rem;
    background: rgba(24, 63, 64, 0.04);
}

.wr-news-row-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (min-width: 768px) {
    .wr-news-row--has-image .wr-news-link {
        grid-template-columns: 10rem minmax(0, 1fr) 11rem 2.75rem;
    }

    .wr-news-row-thumb {
        grid-column: auto;
        grid-row: auto;
        width: 11rem;
    }

    .wr-news-row-thumb img {
        aspect-ratio: 4 / 3;
    }
}
