/**
 * "First Volume / Most Recent Volume" feature module on the series page.
 *
 * Two side-by-side volume-highlight cards (rolled-back design per 2026-07
 * mock): grey padded cover on the left with a badge over its top-left
 * corner; series title, big volume title, grey description, then a single
 * "Read now for $X.XX" line, outlined Add to Cart, and a retailer-partners
 * link pinned to the card's bottom edge.
 */

.series-featured-volumes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	margin-block: var(--section-gap);
}

/* Column is a flex stack so both cards stretch to equal height */
.series-featured-volumes__column {
	display: flex;
	flex-direction: column;
}

/* Label voice (smallcaps via .kodansha--smallcaps in the template) over the
   same 2px rule the other series modules use for their headers. */
.series-featured-volumes__heading {
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--color-text);
	color: var(--color-text);
}

/* ── Volume-highlight card ─────────────────────────────────────────────── */

.volume-highlight {
	flex: 1;
	display: flex;
	gap: 2rem;
}

/* Grey padded cover panel; badge overlaps its top-left corner */
.volume-highlight__cover-wrapper {
	position: relative;
	flex: 0 0 clamp(160px, 46%, 320px);
	padding: 2.25rem 1.75rem;
	box-sizing: border-box;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
}

.volume-highlight__badge {
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	z-index: 1;
}

/* Coming Soon badge — solid black (the other badges are outline). Doubled
   class beats .kd-badge--outline regardless of stylesheet order. */
.kd-badge.volume-highlight__badge--coming-soon {
    color: var(--color-white);
    background: var(--color-black);
    border-color: var(--color-black);
}

.volume-highlight__cover {
	display: block;
	width: 100%;
}

.volume-highlight__cover-image {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
}

/* ── Content column ────────────────────────────────────────────────────── */

.volume-highlight__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding-block: 0.5rem;
}

.volume-highlight__series {
	font-family: "Maax Bold";
	font-weight: 400;
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--color-text);
	margin-bottom: 0.375rem;
}

.volume-highlight__title {
	font-family: "Maax Bold";
	font-weight: 400;
	font-size: 2rem;
	line-height: 1.1;
	letter-spacing: -0.5px;
	margin: 0 0 0.875rem;
}

.volume-highlight__title a {
	color: var(--color-text);
	text-decoration: none;
}

.volume-highlight__title a:hover {
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-decoration-skip-ink: auto;
	text-underline-offset: 0.15em;
}

.volume-highlight__description-wrap {
	position: relative;
}

.volume-highlight__description {
	color: var(--color-text-2);
	font-size: 0.875rem;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	overflow: hidden;
}

/* "… more details" overlay on the clamp's last line. Hidden until JS
   (assets/js/volume-highlight.js) confirms the text actually overflows;
   the solid background hard-cuts the underlying text and covers the
   native ellipsis it replaces. Description voice (including its grey, so
   the link doesn't compete with the title for attention), but with the
   cta-link underline treatment (2px, offset) — the class itself also brings
   padding/line-height that misalign the overlay, so just these two. */
/* :visited included — the global a:visited (elements.css) outranks the bare
   class and would flip visited links back to the inherited black. */
.volume-highlight__more,
.volume-highlight__more:visited {
	display: none;
	position: absolute;
	right: 0;
	bottom: 0;
	padding-left: 0.375rem;
	background: var(--color-background);
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--color-text-2);
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-decoration-skip-ink: auto;
	text-underline-offset: 0.3rem;
}

/* inline-block: atomic inline, so the link's underline doesn't paint
   through the ellipsis lead-in. */
.volume-highlight__more::before {
	content: "… ";
	display: inline-block;
	white-space: pre;
}

.volume-highlight__description-wrap.is-clamped .volume-highlight__more {
	display: inline-block;
}

.volume-highlight__read-account {
	margin: 0.75rem 0 0;
}

/* ── Commerce block, pinned to the card's bottom edge ──────────────────── */

.volume-highlight__commerce {
	margin-top: auto;
	padding-top: 2rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.volume-highlight__price-line {
	font-family: "Maax Medium";
	font-weight: 400;
	font-size: 1.125rem;
	color: var(--color-text);
	margin: 0;
}

/* Sale: retail struck through ahead of the sale price (matches .chapter-buy-card__price--original/--sale) */
.volume-highlight__price--original {
    font-family: "Maax";
    font-weight: 400;
    text-decoration: line-through;
    color: var(--color-text-2);
}

.volume-highlight__price--sale {
    color: var(--color-red);
}


/* .button's 1rem loads after .kodansha--smallcaps and wins — restate the
   smallcaps size here. */
.volume-highlight__button {
	min-width: min(15rem, 100%);
	padding: 0.875rem 1.5rem;
	font-size: 0.75rem;
	letter-spacing: 2px;
}

/* Underline comes from .kodansha--smallcaps--cta-link in the template;
   this only greys the link (cta-link's black is same-specificity but this
   file loads later). */
.volume-highlight__retailers {
	color: var(--color-text-2);
}

@media (max-width: 768px) {

	.series-featured-volumes {
		grid-template-columns: 1fr;
	}
}

/* Phones: stack like the All Volumes cards below — full-width grey cover
   panel on top, content underneath. The side-by-side layout can't hold the
   content column and the button at these widths. */
@media (max-width: 480px) {

	.volume-highlight {
		flex-direction: column;
		gap: 1.25rem;
	}

	/* flex-basis would become the panel's height in the column direction */
	.volume-highlight__cover-wrapper {
		flex-basis: auto;
	}

	.volume-highlight__button {
		width: 100%;
	}
}
