.ngoec-wrapper {
	--ngoec-accent: #2A4E7C;
	font-family: inherit;
}

.ngoec-list {
	display: flex;
	flex-direction: column;
}

.ngoec-row {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 4px;
	border-bottom: 1px solid #e6e6e6;
	transition: background 0.2s ease;
	cursor: pointer;
}

.ngoec-row:focus-visible {
	outline: 2px solid var(--ngoec-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

.ngoec-row:first-child {
	border-top: 1px solid #e6e6e6;
}

.ngoec-row:hover {
	background: rgba(0, 0, 0, 0.02);
}

/* ---------- Columna de fecha ---------- */
.ngoec-row-date {
	flex-shrink: 0;
	width: 50px;
	text-align: center;
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.ngoec-row-month {
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--ngoec-accent);
	letter-spacing: 0.03em;
}

.ngoec-row-day {
	font-size: 24px;
	font-weight: 700;
	color: #333;
}

/* ---------- Miniatura ---------- */
.ngoec-row-thumb {
	flex-shrink: 0;
	width: 76px;
	height: 58px;
	border-radius: 8px;
	overflow: hidden;
}

.ngoec-row-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Contenido ---------- */
.ngoec-row-body {
	flex: 1;
	min-width: 0;
}

.ngoec-row-title {
	margin: 0 0 3px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #1a1a1a;
}

.ngoec-row:hover .ngoec-row-title {
	color: var(--ngoec-accent);
}

.ngoec-row-subtitle {
	font-size: 13.5px;
	color: #777;
	text-transform: capitalize;
}

/* ---------- Vacío ---------- */
.ngoec-empty {
	text-align: center;
	padding: 32px 16px;
	color: #888;
	font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
	.ngoec-row-thumb {
		display: none;
	}
}

/* ================= Modal (popup) ================= */
.ngoec-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ngoec-modal.is-open {
	display: flex;
}

.ngoec-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 25, 0.55);
}

.ngoec-modal-box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 520px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: ngoec-modal-in 0.2s ease;
}

@keyframes ngoec-modal-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.ngoec-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	color: #333;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ngoec-modal-close:hover {
	background: #fff;
}

.ngoec-modal-photo {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
}

.ngoec-modal-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ngoec-modal-body {
	padding: 24px 26px 28px;
}

.ngoec-modal-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

.ngoec-modal-date {
	font-size: 14px;
	color: var(--ngoec-accent);
	font-weight: 600;
	margin-bottom: 16px;
	text-transform: capitalize;
}

.ngoec-modal-desc {
	font-size: 14.5px;
	color: #444;
	line-height: 1.6;
}

.ngoec-modal-desc p {
	margin: 0 0 12px;
}

.ngoec-modal-desc p:last-child {
	margin-bottom: 0;
}

.ngoec-modal-link {
	display: inline-block;
	margin-top: 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ngoec-accent) !important;
	text-decoration: underline !important;
}

body.ngoec-modal-open {
	overflow: hidden;
}
