/* ── Nav ── */
.renova-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 2px solid #e5e5e5;
}

.renova-nav__link {
	display: inline-block;
	padding: 7px 18px;
	background: #f0f0f0;
	color: #333;
	text-decoration: none;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

.renova-nav__link:hover,
.renova-nav__link.is-active {
	background: #222;
	color: #fff;
}

/* ── Category cards grid ── */
.renova-categories {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding: 0;
}

@media (max-width: 900px) {
	.renova-categories {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.renova-categories {
		grid-template-columns: 1fr;
	}
}

.renova-category-card {
	scroll-margin-top: 80px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	transition: box-shadow 0.2s, transform 0.2s;
	background: #fff;
}

.renova-category-card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
	transform: translateY(-2px);
}

.renova-category-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.renova-category-card__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f0f0f0;
}

.renova-category-card__image--empty {
	background: #e8e8e8;
}

.renova-category-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s;
}

.renova-category-card:hover .renova-category-card__img {
	transform: scale(1.05);
}

.renova-category-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.renova-category-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
	color: #222;
}

.renova-category-card__desc {
	font-size: 0.92rem;
	color: #666;
	margin: 0 0 14px;
	flex: 1;
	line-height: 1.55;
}

.renova-category-card__cta {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #222;
	margin-top: auto;
}

.renova-category-card:hover .renova-category-card__cta {
	text-decoration: underline;
}

/* ── Back link ── */
.renova-back-link {
	display: inline-block;
	margin-bottom: 24px;
	font-size: 0.9rem;
	color: #555;
	text-decoration: none;
}

.renova-back-link:hover {
	color: #111;
	text-decoration: underline;
}

/* ── Taxonomy page layout ── */
.renova-taxonomy-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 20px;
}

.renova-taxonomy-header {
	margin-bottom: 36px;
}

.renova-taxonomy-header__image {
	width: 100%;
	max-height: 320px;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 20px;
}

.renova-taxonomy-header__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.renova-taxonomy-header__title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 8px;
}

.renova-taxonomy-header__desc {
	color: #555;
	font-size: 1rem;
}

/* ── Subcategories section ── */
.renova-subcategories {
	margin-bottom: 40px;
}

.renova-subcategories__heading {
	font-size: 1.1rem;
	font-weight: 600;
	color: #666;
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ── Entry list (taxonomy page) ── */
.renova-entries-wrap {
	padding: 0;
}

.renova-entries {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.renova-entry {
	background: #fafafa;
	border: 1px solid #ebebeb;
	border-radius: 6px;
	padding: 28px 28px 24px;
}

.renova-entry__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 10px;
}

.renova-entry__description {
	font-size: 0.95rem;
	color: #555;
	margin: 0 0 14px;
	font-style: italic;
}

.renova-entry__content {
	font-size: 1rem;
	line-height: 1.7;
	margin: 0 0 20px;
}

.renova-entry__content p:last-child {
	margin-bottom: 0;
}

/* ── Posts grid (archive mode: posts) ── */
.renova-posts-section {
	scroll-margin-top: 80px;
	margin-bottom: 56px;
}

.renova-posts-section__title {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 8px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e5e5e5;
}

.renova-posts-section__desc {
	font-size: 0.95rem;
	color: #555;
	margin: 0 0 20px;
	line-height: 1.6;
}

.renova-posts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 20px;
}

@media (max-width: 1024px) {
	.renova-posts-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 640px) {
	.renova-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.renova-post-card {
	display: flex;
	flex-direction: column;
}

.renova-post-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.renova-post-card__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0f0f0;
}

.renova-post-card__image--empty {
	background: #e8e8e8;
}

.renova-post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.renova-post-card__link:hover .renova-post-card__img {
	transform: scale(1.04);
}

.renova-post-card__body {
	padding: 10px 2px 4px;
}

.renova-post-card__title {
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0 0 4px;
	line-height: 1.35;
}

.renova-post-card__desc {
	font-size: 0.8rem;
	color: #666;
	margin: 0;
	line-height: 1.45;
}

/* ── Entry featured image row ── */
.renova-entry__row {
	display: block;
}

.renova-entry__row--has-image {
	display: grid;
	grid-template-columns: 2fr 3fr;
	gap: 32px;
	align-items: start;
}

.renova-entry__text {
	min-width: 0;
}

.renova-entry__featured {
	min-width: 0;
}

.renova-entry__featured-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

@media (max-width: 768px) {
	.renova-entry__row--has-image {
		grid-template-columns: 1fr;
	}

	.renova-entry__featured {
		order: -1;
	}
}

/* ── Gallery ── */
.renova-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 16px;
}

@media (max-width: 768px) {
	.renova-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.renova-gallery {
		grid-template-columns: 1fr;
	}
}

.renova-gallery__figure {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.renova-gallery__link {
	display: block;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 4 / 3;
	position: relative;
}

.renova-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
	cursor: pointer;
}

.renova-gallery__link:hover .renova-gallery__img {
	transform: scale(1.04);
}

/* ── Gallery captions ── */
.renova-gallery__caption--below {
	font-size: 0.8rem;
	color: #555;
	padding: 5px 2px 2px;
	text-align: center;
	line-height: 1.3;
}

.renova-gallery__caption--overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
	color: #fff;
	font-size: 0.8rem;
	padding: 20px 8px 7px;
	text-align: center;
	line-height: 1.3;
	opacity: 0;
	transition: opacity 0.25s;
	border-radius: 0 0 4px 4px;
}

.renova-gallery__link:hover .renova-gallery__caption--overlay {
	opacity: 1;
}

/* ── Lightbox ── */
.renova-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
}

.renova-lightbox__inner {
	position: relative;
	max-width: 92vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	gap: 16px;
}

.renova-lightbox__img {
	max-width: 80vw;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 4px;
	display: block;
}

.renova-lightbox__close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	opacity: 0.8;
}

.renova-lightbox__close:hover {
	opacity: 1;
}

.renova-lightbox__prev,
.renova-lightbox__next {
	background: rgba(255,255,255,0.15);
	border: none;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	padding: 10px 14px;
	cursor: pointer;
	border-radius: 4px;
	flex-shrink: 0;
	transition: background 0.2s;
	user-select: none;
}

.renova-lightbox__prev:hover,
.renova-lightbox__next:hover {
	background: rgba(255,255,255,0.3);
}

/* ── Single entry description ── */
.renova-single__desc {
	font-size: 1.05rem;
	font-weight: 600;
	font-style: italic;
	color: #444;
	line-height: 1.65;
	margin-bottom: 24px;
	border-left: 3px solid currentColor;
	padding-left: 14px;
}

/* ── Entry tags ── */
.renova-entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

.renova-entry__tag {
	display: inline-block;
	padding: 3px 10px;
	background: #f0f0f0;
	color: #444;
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 3px;
	transition: background 0.15s, color 0.15s;
}

.renova-entry__tag:hover {
	background: #222;
	color: #fff;
}

/* ── Empty state ── */
.renova-empty {
	color: #888;
	font-style: italic;
}

/* ── Post Details Cards ── */
.renova-details-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 32px;
}

.renova-details-card {
	background-color: #f6f5ef;
	border-radius: 8px;
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 180px;
	flex: 1 1 0;
}

.renova-details-card__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #555;
	font-weight: 500;
}

.renova-details-card__label svg {
	opacity: 0.75;
}

.renova-details-card__value {
	font-size: 1rem;
	font-weight: 600;
	color: #111;
	line-height: 1.35;
}
