/* Astronaut Articles: cards for the ntp_article post type. Matches the theme's cards-with-cta block. */
.wp-block-acf-ntp-articles { margin: 0; max-width: none; }
.block-ntp-articles.ntp-art--white { background: #fff; color: #000; }
.block-ntp-articles.ntp-art--mint { background: #f2fff9; color: #000; }

.ntp-art-head { display: flex; flex-direction: column; align-items: center; row-gap: 16px; max-width: 700px; margin: 0 auto 40px; text-align: center; }
.ntp-art-head__title { margin-block: 0; }
.ntp-art-head__desc { color: #565656; }

.ntp-art-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.ntp-art-card { position: relative; display: flex; flex-direction: column; background: #000; color: #fff; border: 1px solid #000; border-radius: 16px; overflow: hidden; transition: background-color .5s ease-in-out, color .5s ease-in-out; }
.ntp-art-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: #14291f; }
.ntp-art-card__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease-in-out; }
.ntp-art-card__body { display: flex; flex-direction: column; row-gap: 8px; flex: 1; padding: 24px 24px 32px; line-height: normal; }
.ntp-art-card__date { font-size: 14px; color: #59c399; font-weight: 600; transition: color .5s ease-in-out; }
body:not(.wp-admin) .ntp-art-card__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; color: inherit; }
.ntp-art-card__title a { color: inherit; text-decoration: none; }
.ntp-art-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ntp-art-card__title a:focus-visible { outline: none; }
.ntp-art-card:focus-within { outline: 3px solid #59c399; outline-offset: 3px; }
.ntp-art-card__excerpt { margin: 0; color: #d9d9d9; font-size: 16px; transition: color .5s ease-in-out; }
.ntp-art-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 700; color: #59c399; transition: color .5s ease-in-out; }
.ntp-art-card:hover { background: #f2fff9; color: #000; }
.ntp-art-card:hover .ntp-art-card__img { transform: scale(1.03); }
.ntp-art-card:hover .ntp-art-card__excerpt { color: #565656; }
.ntp-art-card:hover .ntp-art-card__date,
.ntp-art-card:hover .ntp-art-card__more { color: #14291f; }

.ntp-art-actions { display: flex; flex-direction: column; gap: 16px; justify-content: center; align-items: center; margin-top: 40px; }
.ntp-art-empty { text-align: center; color: #565656; }

.block-ntp-articles .pagination, .block-ntp-articles .navigation.pagination { margin-top: 40px; display: flex; justify-content: center; }
.block-ntp-articles .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.block-ntp-articles .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid #000; color: #000; text-decoration: none; }
.block-ntp-articles .page-numbers.current { background: #59c399; border-color: #59c399; }

@media (min-width: 576px) {
	.ntp-art-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
	.ntp-art-actions { flex-direction: row; }
}
@media (min-width: 992px) {
	.ntp-art-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
	.ntp-art-actions { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	.ntp-art-card, .ntp-art-card__img { transition: none; }
}
