/*
 * Blog / Insights: cover images (tools/covers) in listing, archive and related cards, the single-post
 * hero image, and tap targets. Mobile first; card shell (.aa-card-post--media) is shared with home.css.
 */

/* ── Cards with cover images ─────────────────────────────────────────────── */
.aa-blog-list .aa-card-post--media,
.aa-related-posts .aa-card-post--media { padding: 0; overflow: hidden; }
.aa-card-post--media .aa-card-post__media { aspect-ratio: 16 / 9; }
.aa-card-post--media .aa-card-post__media img { aspect-ratio: 16 / 9; }
.aa-card-post--media .aa-card-post__media a:focus-visible { outline: 3px solid var(--aa-red); outline-offset: -3px; }
.aa-related-posts .aa-card-post__body { padding: 1rem 1.1rem 1.2rem; }

/* Category chip: visually small, but a 44px-tall hit area (negative margins keep the layout tight). */
.aa-card-post__cat a,
.aa-post__cat a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: -14px;
	margin-bottom: -14px;
	padding-right: 0.25rem;
}

/* Query pagination: 44×44 targets. */
.aa-pagination { gap: 0.25rem; flex-wrap: wrap; }
.aa-pagination .page-numbers,
.aa-pagination .wp-block-query-pagination-previous,
.aa-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.6rem;
	box-sizing: border-box;
}
.aa-pagination .page-numbers.current { background: var(--aa-indigo); color: #fff; }

/* ── Single post hero image ──────────────────────────────────────────────── */
.aa-post .aa-post__image {
	margin-top: 1.5rem;
	margin-bottom: 0;
	overflow: hidden;
	border-radius: 4px;
	background: var(--aa-lavender);
	box-shadow: 0 1px 0 var(--aa-line);
}
.aa-post .aa-post__image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

@media (min-width: 782px) {
	.aa-post .aa-post__image { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
	.aa-card-post--media .aa-card-post__media img { transition: none !important; }
}

/* Category chips: swipe row on phones, wrap on desktop so nothing is cut off. */
@media (min-width: 1024px) {
	.aa-cat-chips { flex-wrap: wrap; overflow-x: visible; }
}

/* ── Template review (23 Nov 2026) ───────────────────────────────────────── */

/* Post breadcrumb (Insights / category) replaces the lone category label. careers.css styles .aa-crumbs;
   repeated here because careers.css is shared but posts should not depend on it. */
.aa-post__crumbs { display: flex; flex-wrap: wrap; gap: 0 0.4rem; align-items: center; margin-bottom: -0.5rem !important; font-size: 0.8125rem; color: var(--aa-muted); }
.aa-post__crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--aa-red); font-weight: 600; text-decoration: none; }
.aa-post__crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Posts and the Insights listing already carry a newsletter card; hide the footer copy so the page
   does not ask twice (the home page does the same in home.css). */
.single-post .aa-footer__newsletter,
.blog .aa-footer__newsletter,
.archive .aa-footer__newsletter,
.aa-nl-body .aa-footer__newsletter { display: none; }

/* Wide data tables in articles scroll sideways on phones; make that obvious and keep cells readable. */
.aa-prose .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.aa-prose .wp-block-table table { min-width: 480px; }
@media (min-width: 600px) { .aa-prose .wp-block-table table { min-width: 0; } }
