/* Authority Catalog — only what the forbesbooks-2022 theme does not already style.
   Theme CSS already covers: .author-card, .book-card, .about-book, .about-author, .section-title, .social-links,
   .img-author-headshot-wrapper, .button, .archive-heading. Everything here is additive and low-specificity. */

.amg-catalog .amg-rich-text > :last-child { margin-bottom: 0; }

/* Cards */
.amg-card { display: flex; flex-direction: column; background: #fff; }
.amg-card__media { display: block; overflow: hidden; background: #f3f3f3; }
.amg-card__media img { display: block; width: 100%; height: 250px; object-fit: cover; object-position: center 30%; }
.amg-card__media--cover { background: #fff; }
.amg-card__media--cover img { height: 300px; object-fit: contain; }
.amg-card__body { padding: 1rem 0 0; }
.amg-card__body h3 { margin: 0 0 .25rem; font-size: 1.25rem; line-height: 1.3; }
.amg-card__meta { margin: 0 0 .25rem; color: #535353; font-size: .95rem; line-height: 1.3; }
.amg-card__books { color: #737474; margin: 0; }
.book-card .pub-date { color: #737474; font-style: italic; margin: 0; }

/* Placeholders (no headshot / cover yet) */
.amg-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 5; background: #e9e9e9; color: #8a8a8a; font-size: 3rem; font-weight: 600; }
.amg-placeholder--cover { aspect-ratio: 2 / 3; font-size: 1rem; text-align: center; padding: 1rem; }
.img-author-headshot-wrapper.amg-placeholder { height: auto; padding-top: 0; }

/* Author hero */
.amg-author .img-author-headshot-wrapper { position: relative; overflow: hidden; }
.amg-author .img-author-headshot { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.amg-author__summary { font-size: 1.05rem; }
.amg-verticals { margin: .5rem 0 0; }
.amg-badge { display: inline-block; margin: 0 .35rem .35rem 0; padding: .2rem .6rem; border: 1px solid #d9d9d9; border-radius: 999px; font-size: .8rem; color: #333; text-decoration: none; }
.amg-badge:hover { border-color: #0086ca; color: #0086ca; }

/* Book hero + rows */
.amg-book__cover { width: 100%; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.amg-book__byline a { font-weight: 600; }
.amg-book-row__cover, .amg-author-row__headshot { width: 100%; max-width: 220px; height: auto; }
.amg-author-row__headshot { object-fit: cover; aspect-ratio: 4 / 5; }

/* Retailers */
.amg-retailers__list { gap: .5rem 1.5rem; }
.amg-retailers__item img { display: block; width: auto; max-width: 160px; max-height: 44px; height: auto; filter: grayscale(1); opacity: .8; transition: opacity .15s, filter .15s; }
.amg-retailers__item a:hover img { filter: none; opacity: 1; }
.amg-retailers__text { font-weight: 600; }

/* Filter bar */
.amg-filter-bar { border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; background: #fafafa; }
.amg-filter-bar__form .form-control, .amg-filter-bar__form .form-select { min-height: 44px; }
.amg-archive__count { letter-spacing: .02em; text-transform: uppercase; }
.amg-archive__empty { padding: 3rem 0; text-align: center; }
.pagination-wrapper .nav-links { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: center; }
.pagination-wrapper .page-numbers { display: inline-block; padding: .4rem .8rem; border: 1px solid #ddd; text-decoration: none; color: #333; }
.pagination-wrapper .page-numbers.current { background: #000; border-color: #000; color: #fff; }

/* 5-column grid helper for the shortcodes */
@media (min-width: 992px) { .col-lg-2-4 { flex: 0 0 auto; width: 20%; } }

@media (max-width: 767.98px) {
	.amg-card__media img { height: 200px; }
	.amg-card__media--cover img { height: 220px; }
}
