/*
 * Isolde Grey Books: neutral base styles.
 * These keep the book blocks tidy in ANY theme. The Isolde Grey theme adds the brand styling on top.
 * Colours inherit from the theme (currentColor), so nothing clashes if you change theme.
 */

.igb-cover { box-sizing: border-box; display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.igb-cover--empty { display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; border: 1px solid currentColor; opacity: .75; font-style: italic; }

.igb-status { display: inline-block; font-size: .75em; letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; padding: .25em .6em; line-height: 1.4; }

.igb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem 1.5rem; margin: 0; }
.igb-facts__item { min-width: 0; }
.igb-facts dt { font-size: .75em; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.igb-facts dd { margin: .15rem 0 0; overflow-wrap: anywhere; }

.igb-retailers__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.igb-button { box-sizing: border-box; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.1rem; border: 1px solid currentColor; text-decoration: none; }

.igb-warnings__list { margin: 0; padding-left: 1.2rem; }

.igb-praise__item { margin: 0 0 1.5rem; }
.igb-praise__item blockquote { margin: 0; }
.igb-praise__item figcaption { margin-top: .4rem; font-size: .85em; opacity: .8; }

.igb-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.5rem; align-items: center; }
.igb-featured__cover { display: block; max-width: 22rem; width: 100%; justify-self: center; }
.igb-featured__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 781px) {
	.igb-featured { grid-template-columns: 1fr; gap: 1.75rem; }
	.igb-featured__cover { order: -1; max-width: 14rem; }
}

.igb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 42vw), 1fr)); gap: 2rem 1.5rem; }
.igb-card { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.igb-card__link { display: flex; flex-direction: column; gap: .7rem; text-decoration: none; color: inherit; }
.igb-card__title { margin: 0; font-size: 1.2em; }
.igb-card__meta { margin: 0; font-size: .85em; opacity: .8; }
.igb-card .igb-status { align-self: flex-start; }

.igb-filters__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.igb-filters a { display: inline-block; padding: .5rem 0; min-height: 44px; }
.igb-filters a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }

.igb-editor-note { padding: .75rem 1rem; border: 1px dashed currentColor; opacity: .7; font-size: .85rem; margin: 0; }

.screen-reader-text:not(:focus) { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
