.title-grid.webarticle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.webarticle-grid .webarticle-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-content: start;
    overflow: hidden;
}

.webarticle-grid .webarticle-card .webarticle-media {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.webarticle-card__image {
    display: block;
    min-width: 0;
}

.webarticle-cover {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    border-radius: 12px;
    background: var(--paper);
    color: var(--muted);
}

.webarticle-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.webarticle-cover span {
    padding: 6px;
    text-align: center;
    overflow-wrap: anywhere;
    font-size: .8rem;
}

.webarticle-card h3,
.webarticle-card__summary {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.webarticle-card__source {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.webarticle-card.mini-card h3 {
    -webkit-line-clamp: 2;
}

.webarticle-card__actions,
.webarticle-detail__actions {
    align-items: center;
    flex-wrap: wrap;
}

.webarticle-card__actions {
    justify-content: space-between;
    margin-top: auto;
}

.webarticle-card__actions .button {
    white-space: nowrap;
}

.webarticle-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.webarticle-detail__actions {
    margin-top: 1rem;
}

.webarticle-detail h1,
.webarticle-table td {
    overflow-wrap: anywhere;
}

.webarticle-review__cover {
    display: block;
    width: min(180px, 100%);
}

.webarticle-card .spotlight-drag-handle {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.webarticle-detail [data-like-dependent-action][hidden],
#article-form-notice[hidden] {
    display: none;
}

.webarticle-table td:first-child {
    min-width: 12rem;
}

.webarticle-table td:last-child {
    min-width: 10rem;
}

.webarticle-table small {
    display: block;
}

.webarticle-pages {
    margin-top: 14px;
}

.site-webarticle .index-hub-row--webarticle {
    grid-template-columns: 56px minmax(0, 1fr) auto;
}

.site-webarticle .index-hub-row--webarticle .index-hub-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
}

.site-webarticle .index-hub-row--webarticle .index-hub-cover img {
    object-fit: contain;
}

.site-webarticle .index-hub-row--webarticle .cover-placeholder {
    overflow: hidden;
    white-space: nowrap;
}

.index-hub-article-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 3px;
}

.index-hub-article-actions > .bookmark-toggle-btn {
    min-height: 0;
    padding: 4px 6px;
    font-size: .72rem;
}

@media (max-width: 760px) {
    .title-grid.webarticle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .webarticle-grid .webarticle-card {
        padding: 8px;
        gap: 7px;
    }

    .webarticle-card__actions .button {
        min-height: 0;
        padding: 5px 7px;
        font-size: .77rem;
    }

    .webarticle-card .webarticle-card__primary-actions {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 4px;
    }

    .webarticle-card .webarticle-card__primary-actions > *,
    .webarticle-card .webarticle-card__primary-actions form,
    .webarticle-card .webarticle-card__primary-actions .button {
        width: auto;
    }

    .webarticle-card .webarticle-card__primary-actions .button {
        min-height: 32px;
        padding: 3px 5px;
        font-size: .72rem;
    }

    .webarticle-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-webarticle .index-hub-row--webarticle {
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .index-hub-article-actions {
        max-width: 112px;
    }
}
