.challenge-single {
	background: #f8fafc;
	color: #0f172a;
}

.challenge-detail-container {
	width: min(1290px, calc(100% - 48px));
	margin-inline: auto;
}

.challenge-detail-hero {
	position: relative;
	min-height: 390px;
	background: linear-gradient(120deg, #071127, #102d46 60%, #0d766e);
	background-position: center;
	background-size: cover;
	color: #fff;
	overflow: hidden;
}

.challenge-detail-hero-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.challenge-detail-hero-overlay {
	background: linear-gradient(120deg, rgba(7, 17, 39, .88), rgba(16, 45, 70, .62) 60%, rgba(13, 118, 110, .42));
}

.challenge-detail-hero-inner {
	position: relative;
	z-index: 1;
	padding: 54px 0 72px;
}

.challenge-detail-breadcrumb {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 42px;
	color: #cbd5e1;
	font-size: 13px;
}

.challenge-detail-breadcrumb a {
	color: #94a3b8;
	text-decoration: none;
}

.challenge-detail-status {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 18px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .95);
	color: #15803d;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
}

.challenge-detail-status i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
}

.challenge-detail-status.is-closed {
	color: #b91c1c;
}

.challenge-detail-status.is-closed i {
	background: #ef4444;
}

.challenge-detail-hero h1 {
	max-width: 850px;
	margin: 0 0 16px;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.08;
}

.challenge-detail-hero-inner > p {
	max-width: 680px;
	margin: 0;
	color: #cbd5e1;
	font-size: 18px;
	line-height: 1.55;
}

.challenge-detail-meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: -36px;
	position: relative;
	z-index: 2;
	padding: 22px 28px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.challenge-detail-organizer,
.challenge-detail-meta-items,
.challenge-detail-meta-items > div {
	display: flex;
	align-items: center;
}

.challenge-detail-organizer {
	gap: 12px;
	min-width: 220px;
}

.challenge-detail-avatar,
.challenge-detail-avatar-image {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.challenge-detail-avatar {
	display: grid;
	place-items: center;
	background: #dbeafe;
	overflow: hidden;
}

.challenge-detail-organizer span,
.challenge-detail-meta-items span {
	display: block;
	margin-bottom: 4px;
	color: #64748b;
	font-size: 11px;
}

.challenge-detail-organizer strong,
.challenge-detail-meta-items strong {
	display: block;
	color: #0f172a;
	font-size: 14px;
}

.challenge-detail-meta-items {
	gap: 28px;
	flex-wrap: wrap;
}

.challenge-detail-meta-items > div {
	align-items: flex-start;
	flex-direction: column;
}

.challenge-detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 32px;
	padding-top: 54px;
}

.challenge-detail-article,
.challenge-detail-sidebar {
	min-width: 0;
}

.challenge-detail-content-card,
.challenge-detail-side-card,
.challenge-detail-action-card {
	margin-bottom: 24px;
	padding: 28px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
}

.challenge-detail-content-card h2,
.challenge-detail-side-card h3,
.challenge-detail-action-card h2 {
	margin: 0 0 18px;
	color: #0f172a;
}

.challenge-detail-content {
	color: #475569;
	font-size: 16px;
	line-height: 1.75;
}

.challenge-detail-content p:first-child {
	margin-top: 0;
}

.challenge-detail-content p:last-child {
	margin-bottom: 0;
}

.challenge-detail-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.challenge-detail-section-heading span {
	color: #0d9488;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.challenge-detail-section-heading strong {
	color: #0d9488;
	font-size: 14px;
}

.challenge-detail-criteria {
	border-top: 1px solid #e2e8f0;
}

.challenge-detail-criterion {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
}

.challenge-detail-criterion:not(:last-child) {
	border-bottom: 1px solid #e2e8f0;
}

.challenge-detail-criterion strong {
	color: #1e293b;
}

.challenge-detail-criterion p {
	margin: 6px 0 0;
	color: #64748b;
	font-size: 14px;
}

.challenge-detail-criterion b {
	white-space: nowrap;
	color: #0d9488;
}

.challenge-detail-terms {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding: 16px 20px;
	border: 1px solid #bae6fd;
	border-radius: 10px;
	background: #f0f9ff;
	color: #475569;
	font-size: 14px;
}

.challenge-detail-terms a {
	color: #0369a1;
	font-weight: 700;
	text-decoration: none;
}

.challenge-detail-action-card {
	background: linear-gradient(135deg, #0f766e, #123a56);
	color: #fff;
}

.challenge-detail-action-card span {
	color: #99f6e4;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.challenge-detail-action-card h2 {
	margin-top: 12px;
	color: #fff;
	font-size: 24px;
	line-height: 1.25;
}

.challenge-detail-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #43b263, #3b7ab5, #814272);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.challenge-detail-side-card dl {
	margin: 0;
}

.challenge-detail-side-card dt {
	margin-top: 16px;
	color: #64748b;
	font-size: 12px;
}

.challenge-detail-side-card dt:first-child {
	margin-top: 0;
}

.challenge-detail-side-card dd {
	margin: 4px 0 0;
	color: #1e293b;
	font-weight: 600;
}

.challenge-submission-card {
	scroll-margin-top: 100px;
}

.challenge-submission-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.challenge-form-field,
.challenge-form-contact,
.challenge-form-consent,
.challenge-submission-form > .challenge-detail-button,
.challenge-form-notice,
.challenge-form-locked {
	grid-column: 1 / -1;
}

.challenge-form-field label,
.challenge-form-grid label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
}

.challenge-form-field em {
	color: #dc2626;
	font-style: normal;
}

.challenge-form-field input,
.challenge-form-field textarea,
.challenge-form-field select,
.challenge-form-grid input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	background: #fff;
	color: #0f172a;
}

.challenge-form-contact {
	padding-top: 18px;
	border-top: 1px solid #e2e8f0;
}

.challenge-form-contact h3 {
	margin: 0 0 14px;
	font-size: 16px;
}

.challenge-form-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.challenge-form-consent {
	color: #475569;
	font-size: 13px;
}

.challenge-repeater {
	display: grid;
	gap: 8px;
}

.challenge-repeater-list {
	display: grid;
	gap: 10px;
}

.challenge-repeater-row {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 14px 42px 14px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
}

.challenge-repeater-row label {
	min-width: 0;
}

.challenge-repeater-remove {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0 !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 50%;
	background: #fff !important;
	color: #64748b !important;
	font-size: 17px;
	line-height: 1;
}

.challenge-repeater-remove:hover,
.challenge-repeater-remove:focus {
	background: #fee2e2 !important;
	color: #b91c1c !important;
}

.challenge-repeater button {
	justify-self: start;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0d9488;
	cursor: pointer;
	font-weight: 700;
}

.challenge-form-notice,
.challenge-form-locked {
	padding: 16px;
	border-radius: 8px;
	background: #f1f5f9;
}

.challenge-form-notice.is-success {
	background: #ecfdf5;
	color: #166534;
}

.challenge-form-notice.is-error {
	background: #fef2f2;
	color: #b91c1c;
}

.challenge-form-locked h3 {
	margin: 0 0 8px;
	font-size: 17px;
}

.challenge-form-locked p {
	margin: 0 0 16px;
	color: #64748b;
}

.challenge-detail-related {
	padding-top: 54px;
	padding-bottom: 80px;
}

.challenge-detail-related > h2 {
	margin: 0 0 20px;
}

.challenge-detail-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.challenge-detail-related-card {
	padding: 20px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
}

.challenge-detail-related-card > span {
	color: #0d9488;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.challenge-detail-related-card h3 {
	display: -webkit-box;
	height: calc(1.35em * 2);
	margin: 10px 0;
	color: #0f172a;
	font-size: 17px;
	line-height: 1.35;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.challenge-detail-related-card small {
	color: #64748b;
}

@media (max-width: 900px) {
	.challenge-detail-layout {
		grid-template-columns: 1fr;
	}

	.challenge-detail-meta-bar {
		align-items: flex-start;
		flex-direction: column;
	}

	.challenge-detail-related-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.challenge-detail-container {
		width: min(100% - 32px, 1290px);
	}

	.challenge-detail-hero-inner {
		padding-top: 32px;
		padding-bottom: 58px;
	}

	.challenge-detail-breadcrumb {
		margin-bottom: 30px;
		font-size: 11px;
	}

	.challenge-detail-meta-items,
	.challenge-submission-form,
	.challenge-form-grid,
	.challenge-detail-related-grid {
		grid-template-columns: 1fr;
	}

	.challenge-detail-meta-items {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.challenge-detail-content-card,
	.challenge-detail-side-card,
	.challenge-detail-action-card {
		padding: 20px;
	}

	.challenge-detail-terms {
		align-items: flex-start;
		flex-direction: column;
	}

	.challenge-repeater-row {
		grid-template-columns: 1fr;
	}
}

.challenge-detail-avatar.has-logo {
	padding: 4px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
}

.challenge-detail-avatar.has-logo .challenge-detail-avatar-image {
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: contain;
}

.challenge-detail-organizer strong a {
	color: inherit;
}

.challenge-detail-prize {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.challenge-detail-resources {
	margin: 0;
	padding: 0;
	list-style: none;
}

.challenge-detail-resources li + li {
	margin-top: 10px;
}

.challenge-detail-resources a {
	color: #166534;
	font-weight: 600;
	text-decoration: none;
}

.challenge-detail-update + .challenge-detail-update {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.challenge-detail-update time {
	display: block;
	margin-bottom: 6px;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
}

.challenge-detail-faq details {
	border-bottom: 1px solid #e2e8f0;
}

.challenge-detail-faq summary {
	padding: 16px 28px 16px 0;
	position: relative;
	color: #0f172a;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.challenge-detail-faq summary::-webkit-details-marker {
	display: none;
}

.challenge-detail-faq summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 14px;
	color: #166534;
	font-size: 20px;
	line-height: 1;
}

.challenge-detail-faq details[open] summary::after {
	content: "−";
}

.challenge-detail-faq details .challenge-detail-content {
	padding-bottom: 16px;
}

.challenge-detail-timeline {
	margin: 0;
	padding: 0;
	list-style: none;
}

.challenge-detail-timeline li {
	position: relative;
	padding: 0 0 18px 22px;
	border-left: 2px solid #bbf7d0;
	margin-left: 5px;
}

.challenge-detail-timeline li:last-child {
	padding-bottom: 0;
	border-left-color: transparent;
}

.challenge-detail-timeline li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #22c55e;
}

.challenge-detail-timeline li.is-past::before {
	background: #cbd5e1;
}

.challenge-detail-timeline li.is-deadline span {
	color: #b91c1c;
}

.challenge-detail-timeline time {
	display: block;
	color: #64748b;
	font-size: 12px;
}

.challenge-detail-timeline span {
	display: block;
	margin-top: 2px;
	color: #1e293b;
	font-weight: 600;
	font-size: 14px;
}

/* Imported content carries inline fonts from the old editor. */
.challenge-detail-content *,
.challenge-room-about-text * {
	font-family: inherit !important;
}
