.jms-editorial-archive {
	padding: 2rem 0 3rem;
}

.jms-editorial-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jms-editorial-archive__item {
	margin: 0;
}

.jms-editorial-archive__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.jms-editorial-archive__link:hover .jms-editorial-archive__cover,
.jms-editorial-archive__link:focus .jms-editorial-archive__cover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}

.jms-editorial-archive .btText {
	margin-bottom: 1.5rem;
}

.jms-editorial-archive__cover {
	position: relative;
	aspect-ratio: 3 / 4;
	background: #f2f2f2;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Beat .btContentHolder img { height: auto } from Medicare (loads after plugin CSS). */
.jms-editorial-archive .jms-editorial-archive__cover img,
.jms-editorial-archive .jms-editorial-archive__cover img.wp-post-image {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center top;
}

.jms-editorial-archive__cover--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 0.875rem;
}

.jms-editorial-archive__title {
	margin: 0.75rem 0 0;
	font-size: 1rem;
	line-height: 1.35;
	text-align: center;
}

.jms-editorial-archive__empty {
	margin: 2rem 0;
	text-align: center;
}

.jms-editorial-boletim {
	margin: 1.5rem 0;
}

.jms-editorial-boletim__title {
	margin: 0 0 0.75rem;
}

.jms-editorial-boletim__description,
.jms-editorial-edition__description {
	margin-top: 2.5rem;
}

.jms-editorial-flipbook-shell {
	width: 100%;
	max-width: 960px;
	margin: 1.5rem auto 2.5rem;
}

.jms-editorial-flipbook {
	width: 100%;
	height: min(70vh, 720px);
	margin: 0;
	background: #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
}

.jms-editorial-flipbook.is-loading {
	display: flex;
	align-items: center;
	justify-content: center;
}

.jms-editorial-flipbook.is-loading::after {
	content: "Carregando…";
	color: #666;
	font-size: 0.95rem;
}

.jms-editorial-flipbook.is-error {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #a00;
	padding: 1rem;
	text-align: center;
}

@media (max-width: 640px) {
	.jms-editorial-archive__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.jms-editorial-flipbook {
		height: min(60vh, 480px);
	}
}
