/* Kogi East Results Upload — frontend styles (mobile first, theme agnostic). */
.keru-wrap {
	--keru-accent: #0f766e;
	--keru-accent-dark: #0b5c56;
	--keru-border: #d8dee5;
	--keru-text: #16202a;
	--keru-muted: #5b6a78;
	--keru-radius: 12px;
	box-sizing: border-box;
	color: var(--keru-text);
	font-size: 16px;
	line-height: 1.5;
	max-width: 100%;
}

.keru-wrap *,
.keru-wrap *::before,
.keru-wrap *::after {
	box-sizing: border-box;
}

.keru-form {
	background: #fff;
	border: 1px solid var(--keru-border);
	border-radius: var(--keru-radius);
	display: grid;
	gap: 18px;
	padding: 20px;
}

.keru-field {
	display: grid;
	gap: 6px;
}

.keru-field label {
	font-size: 14px;
	font-weight: 600;
}

.keru-req {
	color: #c0392b;
}

.keru-form select,
.keru-form input[type="file"],
.keru-filters select {
	background: #fff;
	border: 1px solid var(--keru-border);
	border-radius: 10px;
	color: inherit;
	font: inherit;
	min-height: 46px;
	padding: 10px 12px;
	width: 100%;
}

.keru-form select:focus,
.keru-form input[type="file"]:focus,
.keru-filters select:focus,
.keru-submit:focus {
	outline: 2px solid var(--keru-accent);
	outline-offset: 2px;
}

.keru-form select[disabled] {
	background: #f4f6f8;
	color: var(--keru-muted);
}

.keru-hint {
	color: var(--keru-muted);
	font-size: 13px;
	margin: 0;
}

.keru-preview img {
	border: 1px solid var(--keru-border);
	border-radius: 10px;
	display: block;
	height: auto;
	max-height: 260px;
	object-fit: contain;
	width: 100%;
}

.keru-hp {
	height: 0;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 0;
}

.keru-submit {
	background: var(--keru-accent);
	border: 0;
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	min-height: 48px;
	padding: 12px 18px;
	transition: background 0.15s ease-in-out;
	width: 100%;
}

.keru-submit:hover:not(:disabled) {
	background: var(--keru-accent-dark);
}

.keru-submit:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.keru-submit--compact {
	width: auto;
}

.keru-message:empty,
.keru-notice:empty {
	display: none;
}

.keru-message,
.keru-notice {
	border-radius: 10px;
	font-size: 15px;
	padding: 12px 14px;
}

.keru-message--success,
.keru-notice--success {
	background: #e7f6ef;
	color: #14603f;
}

.keru-message--error,
.keru-notice--error {
	background: #fdecea;
	color: #8a1c12;
}

.keru-notice--info {
	background: #eef2f6;
	color: var(--keru-muted);
}

/* Gallery */
.keru-filters {
	display: grid;
	gap: 10px;
	margin-bottom: 20px;
}

.keru-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.keru-card {
	background: #fff;
	border: 1px solid var(--keru-border);
	border-radius: var(--keru-radius);
	margin: 0;
	overflow: hidden;
}

.keru-card__link {
	display: block;
}

.keru-card img {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.keru-card figcaption {
	display: grid;
	gap: 2px;
	padding: 10px 12px 12px;
}

.keru-card figcaption strong {
	font-size: 14px;
}

.keru-card figcaption span,
.keru-card figcaption time {
	color: var(--keru-muted);
	font-size: 12px;
}

.keru-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 20px;
}

.keru-page {
	border: 1px solid var(--keru-border);
	border-radius: 8px;
	color: inherit;
	padding: 6px 12px;
	text-decoration: none;
}

.keru-page.is-active {
	background: var(--keru-accent);
	border-color: var(--keru-accent);
	color: #fff;
}

.keru-lightbox {
	align-items: center;
	background: rgba(9, 15, 20, 0.92);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 99999;
}

.keru-lightbox[hidden] {
	display: none;
}

.keru-lightbox img {
	max-height: 92vh;
	max-width: 96vw;
	object-fit: contain;
}

.keru-lightbox__close {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 40px;
	line-height: 1;
	position: absolute;
	right: 14px;
	top: 8px;
}

@media (min-width: 640px) {
	.keru-form {
		padding: 28px;
	}

	.keru-filters {
		grid-template-columns: repeat(2, 1fr) auto;
	}

	.keru-submit {
		width: auto;
	}

	.keru-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
}

@media (min-width: 1024px) {
	.keru-filters {
		grid-template-columns: repeat(4, 1fr) auto;
	}
}

/* Kogi East-only presentation */
.keru-kogi-banner,.keru-fixed-filter{padding:12px 14px;border:1px solid #bae6fd;background:#f0f9ff;border-radius:10px;margin-bottom:16px;color:#0c4a6e}
.keru-kogi-banner strong{display:block;font-size:1rem}.keru-kogi-banner span{display:block;font-size:.82rem;opacity:.8;margin-top:2px}

.keru-kogi-banner{position:relative}.keru-network-status{float:right;font-size:.72rem;font-weight:800;padding:.25rem .5rem;border-radius:999px;background:#ecfdf5;color:#166534}.keru-network-status.is-offline{background:#fff7ed;color:#9a3412}
