/* === DYNAMIK AGRI CARD ===
   partials/agri-card, on every article (config/agri_cards.php,
   App\Support\ArticleAgriCards: a compact text row after the intro, the full
   row with a screenshot among the most interesting part) and on the tool pages
   whose reader keeps the record a module keeps. The site's index-row pattern. */
.article-agri {
    margin: var(--space-xl) 0;
}

.article-agri .section-label {
    margin-bottom: var(--space-sm);
}

.index-row.agri-row {
    grid-template-columns: 10rem 1fr auto;
}

.index-row.agri-row .agri-shot {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
}

.index-row.agri-row h3,
.index-row.agri-row p {
    grid-column: 2;
}

.index-row.agri-row .card-link {
    grid-column: 3;
}

.article-agri-compact .index-row.agri-row {
    grid-template-columns: 1fr auto;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.article-agri-compact .index-row.agri-row h3,
.article-agri-compact .index-row.agri-row p {
    grid-column: 1;
}

.article-agri-compact .index-row.agri-row .card-link {
    grid-column: 2;
}

@media (max-width: 768px) {
    .index-row.agri-row,
    .article-agri-compact .index-row.agri-row {
        grid-template-columns: 1fr;
    }

    .index-row.agri-row .agri-shot,
    .index-row.agri-row h3,
    .index-row.agri-row p,
    .index-row.agri-row .card-link,
    .article-agri-compact .index-row.agri-row .card-link {
        grid-column: 1;
        grid-row: auto;
    }

    .index-row.agri-row .agri-shot {
        max-width: 18rem;
    }
}
