/**
 * Homepage Featured Release: [sab_featured_book] (inc/featured-book.php).
 * Cover and text side by side; the title uses the site's heading font
 * (Astra h3); the button is outlined, like the Coming Soon cards'
 * "Learn more" (shop-loop.css). No underlined links (Astra underlines
 * links in page content).
 */

.sab-featured-book {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	width: var(--sab-row-width);
	max-width: 100%;
	margin: 0 auto;
	padding: 2.5rem 0 3.5rem;
}

.ast-single-post .entry-content .sab-featured-book a,
.sab-featured-book a {
	text-decoration: none;
}

.sab-featured-book__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 18px 40px -18px rgba(51, 46, 43, 0.35);
}

/* Feed Store as the site's other titles (Astra's h3 forces the thin
   "feedstore" with !important). */
.sab-featured-book__title {
	margin: 0 0 0.35rem;
	font-family: "Feed Store", Georgia, serif !important;
	font-weight: normal !important;
	font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
	line-height: 1.1;
	color: var(--sab-dark);
}

.sab-featured-book__title a {
	color: inherit;
}

.sab-featured-book__title a:hover,
.sab-featured-book__title a:focus-visible {
	color: var(--sab-navy);
}

.sab-featured-book__subtitle {
	margin: 0 0 1rem;
	font-size: 1.2rem;
	line-height: 1.35;
	color: var(--sab-muted);
}

.sab-featured-book .mmp-product-byline {
	margin: 0 0 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--sab-border);
}

.sab-featured-book .mmp-product-byline p {
	font-size: 0.95rem;
	font-style: italic;
	color: var(--sab-dark);
}

.sab-featured-book__text {
	max-width: 38em;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--sab-dark);
}

/* Sizes pasted into the short description don't change the section's type. */
.sab-featured-book__text [style*="font-size"] {
	font-size: inherit !important;
}

.sab-featured-book__text p {
	margin: 0 0 1em;
}

.sab-featured-book__text p:last-child {
	margin-bottom: 0;
}

.sab-featured-book__actions {
	margin: 2rem 0 0;
}

.sab-featured-book__button {
	display: inline-block;
	padding: var(--sab-button-padding);
	border: 1px solid var(--sab-navy);
	border-radius: var(--sab-button-radius);
	background: transparent;
	color: var(--sab-navy);
	font-size: var(--sab-button-size);
	font-weight: var(--sab-button-weight);
	letter-spacing: var(--sab-button-tracking);
	line-height: var(--sab-button-line);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sab-featured-book__button:hover,
.sab-featured-book__button:focus-visible {
	background: var(--sab-cream);
	border-color: var(--sab-cream);
	color: var(--sab-dark);
}

/* Astra's tablet breakpoint: stack, cover first and narrower. */
@media (max-width: 921px) {
	.sab-featured-book {
		grid-template-columns: 1fr;
		gap: 1.75rem;
		padding: 1.5rem 0 2.5rem;
	}

	.sab-featured-book__cover {
		max-width: 420px;
	}
}
