/**
 * ApeChain Comics — homepage (Understrap / Bootstrap).
 */

.apechain-hero {
	background: var(--apechain-hero-bg);
	color: var(--apechain-text-on-primary);
	padding: 3.5rem 0 4rem;
}

.apechain-hero__eyebrow {
	color: var(--apechain-gm-blue);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.apechain-hero__title {
	font-weight: 700;
	line-height: 1.1;
}

.apechain-hero__lead {
	color: rgba(255, 255, 255, 0.9);
	max-width: 36rem;
}

.apechain-hero__search .form-control {
	border: none;
	box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.12);
}

.apechain-hero__search .btn-primary {
	background-color: var(--apechain-surface-elevated);
	border-color: var(--apechain-surface-elevated);
	color: var(--apechain-primary);
	font-weight: 600;
}

.apechain-hero__search .btn-primary:hover,
.apechain-hero__search .btn-primary:focus {
	background-color: var(--apechain-gm-blue);
	border-color: var(--apechain-gm-blue);
	color: var(--apechain-secondary);
}

.apechain-hero .btn-primary.btn-lg {
	background-color: var(--apechain-surface-elevated);
	border-color: var(--apechain-surface-elevated);
	color: var(--apechain-primary);
}

.apechain-hero .btn-primary.btn-lg:hover,
.apechain-hero .btn-primary.btn-lg:focus {
	background-color: var(--apechain-gm-blue);
	border-color: var(--apechain-gm-blue);
	color: var(--apechain-secondary);
}

.apechain-stat {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 0.5rem;
	border: 1px solid rgba(226, 240, 255, 0.25);
}

.apechain-stat__value {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--apechain-gm-blue);
	line-height: 1.2;
}

.apechain-stat__label {
	display: block;
	font-size: 0.8rem;
	opacity: 0.9;
	margin-top: 0.25rem;
}

/* ~20% surface sections */
.apechain-home-section--muted {
	background: var(--apechain-gm-blue);
}

.apechain-home-section--accent {
	background: linear-gradient(180deg, var(--apechain-gm-blue) 0%, var(--apechain-surface-elevated) 100%);
}

.apechain-section-header h2 {
	font-weight: 700;
	color: var(--apechain-secondary);
}

.apechain-series-card {
	border: none;
	box-shadow: var(--apechain-card-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	color: inherit;
	overflow: hidden;
	background: var(--apechain-surface-elevated);
}

.apechain-series-card:hover,
.apechain-series-card:focus {
	transform: translateY(-4px);
	box-shadow: var(--apechain-card-shadow-hover);
	color: inherit;
	text-decoration: none;
}

.apechain-series-card__cover {
	aspect-ratio: 2 / 3;
	background: var(--apechain-secondary);
	overflow: hidden;
	position: relative;
}

.apechain-series-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.apechain-series-card__placeholder {
	align-items: center;
	color: var(--apechain-gm-blue);
	display: flex;
	font-size: 3rem;
	font-weight: 700;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.apechain-series-card .card-title {
	color: var(--apechain-secondary);
	font-weight: 600;
}

.apechain-issue-card {
	border: none;
	box-shadow: var(--apechain-card-shadow);
	overflow: hidden;
	background: var(--apechain-surface-elevated);
}

.apechain-issue-card__link {
	color: inherit;
	display: block;
	text-decoration: none;
}

.apechain-issue-card__link:hover {
	color: inherit;
	text-decoration: none;
}

.apechain-issue-card__link img {
	aspect-ratio: 2 / 3;
	object-fit: cover;
	width: 100%;
}

.apechain-issue-card__placeholder {
	aspect-ratio: 2 / 3;
	background: linear-gradient(145deg, var(--apechain-gm-blue), #c5daf5);
}

.apechain-issue-card .card-title {
	font-size: 0.8rem;
	line-height: 1.3;
	color: var(--apechain-secondary);
}

.apechain-publisher-pill {
	font-size: 0.9rem;
	font-weight: 500;
	padding: 0.5rem 0.85rem;
	text-decoration: none;
	background: var(--apechain-surface-elevated);
	color: var(--apechain-secondary);
	border: 1px solid rgba(0, 39, 135, 0.12);
}

.apechain-publisher-pill:hover {
	background: var(--apechain-primary);
	color: var(--apechain-text-on-primary);
	border-color: var(--apechain-primary);
	text-decoration: none;
}

.apechain-series-index a {
	font-weight: 500;
	text-decoration: none;
	color: var(--apechain-secondary);
}

.apechain-series-index a:hover {
	color: var(--apechain-primary);
	text-decoration: underline;
}

.apechain-home-cta {
	background: var(--apechain-surface-elevated);
	border-top: 3px solid var(--apechain-anchor-black);
}

.apechain-home-section:not(.apechain-home-section--muted):not(.apechain-home-section--accent):not(.apechain-home-section--opensea) {
	background: var(--apechain-surface-elevated);
}

.apechain-home-prose {
	color: var(--apechain-secondary);
	max-width: 48rem;
}

.apechain-home-prose--hero {
	color: rgba(255, 255, 255, 0.92);
	max-width: 40rem;
}

.apechain-home-prose--hero p:last-child {
	margin-bottom: 0;
}

.apechain-check-list {
	padding-left: 1.25rem;
}

.apechain-check-list.columns-2 {
	columns: 2;
	column-gap: 2rem;
}

@media (max-width: 575.98px) {
	.apechain-check-list.columns-2 {
		columns: 1;
	}
}

.apechain-crypto-coins li {
	background: var(--apechain-primary);
	border-radius: 0.35rem;
	color: var(--apechain-text-on-primary);
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	padding: 0.65rem 1rem;
	text-align: center;
}

.apechain-faq .card {
	border: 1px solid rgba(0, 39, 135, 0.12);
	margin-bottom: 0.5rem;
	overflow: hidden;
}

.apechain-faq .btn-link {
	color: var(--apechain-secondary);
	font-weight: 600;
	text-decoration: none;
	white-space: normal;
}

.apechain-faq .btn-link:hover,
.apechain-faq .btn-link:focus {
	color: var(--apechain-primary);
	text-decoration: none;
}

.apechain-marketing-cta h2 {
	color: var(--apechain-secondary);
	font-weight: 700;
}

.apechain-marketing-page .display-5 {
	color: var(--apechain-secondary);
	font-weight: 700;
}

.apechain-site-disclaimer {
	line-height: 1.5;
	max-width: 52rem;
}

@media (max-width: 767.98px) {
	.apechain-hero {
		padding: 2.5rem 0 3rem;
	}

	.apechain-hero__title {
		font-size: 1.65rem;
	}

	.apechain-stat__value {
		font-size: 1.35rem;
	}
}
