/*
 * Scoped presentation for the editable Hannover Herzen contest landing page.
 * Frontend selectors use body.hhsc-template-page; editor selectors only apply
 * inside the generated .hhsc-landing content.
 */

body.hhsc-template-page .entry-header,
body.hhsc-template-page .entry-title,
body.hhsc-template-page .widget-area {
	display: none;
}

body.hhsc-template-page .site-content > .ast-container,
body.hhsc-template-page .site-content .ast-container {
	display: block;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.hhsc-template-page .content-area,
body.hhsc-template-page .site-main,
body.hhsc-template-page .entry-content {
	float: none;
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

body.hhsc-template-page .entry-content > *,
.editor-styles-wrapper .hhsc-hero,
.editor-styles-wrapper .hhsc-section,
.editor-styles-wrapper .hhsc-application-section {
	margin-top: 0;
	margin-bottom: 0;
}

.hhsc-hero {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	min-height: min(720px, 82vh) !important;
	padding: clamp(72px, 10vw, 128px) clamp(24px, 6vw, 72px);
}

.hhsc-hero-fallback {
	background:
		linear-gradient(135deg, rgba(231, 24, 33, 0.92), rgba(19, 19, 22, 0.98));
	color: #fff;
}

.hhsc-hero .wp-block-cover__inner-container,
.hhsc-hero > .hhsc-hero-content {
	margin-left: auto;
	margin-right: auto;
	max-width: 1180px;
	width: 100%;
}

.hhsc-hero-content {
	margin-left: 0 !important;
	max-width: 900px !important;
}

.hhsc-eyebrow {
	color: #e71821;
	font-size: clamp(0.78rem, 1.4vw, 0.95rem);
	font-weight: 800;
	letter-spacing: 0.18em;
	margin: 0 0 18px;
	text-align: center;
	text-transform: uppercase;
}

.hhsc-hero .hhsc-eyebrow {
	text-align: left;
}

.hhsc-hero-title {
	font-size: clamp(2.8rem, 7.2vw, 6rem) !important;
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 0.98;
	margin: 0 0 24px;
	max-width: 1000px;
	text-wrap: balance;
}

.hhsc-hero-partners {
	font-size: clamp(1.1rem, 2.4vw, 1.55rem);
	margin: 0 0 18px;
}

.hhsc-hero-deadline {
	border-left: 4px solid #e71821;
	font-size: clamp(0.95rem, 1.8vw, 1.1rem);
	margin: 0 0 30px;
	padding: 4px 0 4px 14px;
}

.hhsc-primary-button .wp-block-button__link {
	background: #e71821;
	border: 2px solid #e71821;
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 15px 30px;
	text-transform: uppercase;
	transition: transform 160ms ease, background 160ms ease;
}

.hhsc-primary-button .wp-block-button__link:hover,
.hhsc-primary-button .wp-block-button__link:focus {
	background: #c9141c;
	border-color: #c9141c;
	color: #fff;
	transform: translateY(-2px);
}

.hhsc-section,
.hhsc-application-section {
	box-sizing: border-box;
	padding: clamp(72px, 9vw, 120px) clamp(24px, 6vw, 72px);
}

.hhsc-section > *,
.hhsc-application-section > * {
	margin-left: auto;
	margin-right: auto;
	max-width: 1180px;
}

.hhsc-section-title {
	font-size: clamp(2.1rem, 5vw, 4.2rem) !important;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin: 0 auto 28px;
	text-wrap: balance;
}

.hhsc-lead {
	color: #57575d;
	font-size: clamp(1.12rem, 2vw, 1.45rem);
	line-height: 1.65;
	margin-bottom: 52px;
	max-width: 880px !important;
}

.hhsc-dark-section {
	background: #17171a;
	color: #fff;
}

.hhsc-dark-section .hhsc-section-title,
.hhsc-contact-section .hhsc-section-title {
	color: #fff !important;
}

.hhsc-dark-section .hhsc-lead {
	color: #d2d2d6;
}

.hhsc-red-section {
	background: #e71821;
	color: #fff;
}

.hhsc-red-section .hhsc-eyebrow {
	color: #fff;
	opacity: 0.82;
}

.hhsc-red-section .hhsc-section-title,
.hhsc-red-section .hhsc-timeline h3 {
	color: #fff !important;
}

.hhsc-card-grid {
	gap: 22px;
	margin-top: 48px;
}

.hhsc-card {
	background: #fff;
	border: 1px solid #e1e1e4;
	border-radius: 18px;
	box-shadow: 0 14px 38px rgba(18, 18, 22, 0.08);
	height: 100%;
	padding: 28px;
}

.hhsc-card h3 {
	font-size: 1.35rem;
	margin: 8px 0 12px;
}

.hhsc-card p:last-child {
	color: #5e5e64;
	margin-bottom: 0;
}

.hhsc-card-number {
	color: #e71821;
	font-size: 0.88rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	margin: 0;
}

.hhsc-small-note {
	color: #68686d;
	font-size: 0.92rem;
	margin-top: 36px;
	max-width: 800px !important;
}

.hhsc-timeline {
	gap: 18px;
	margin-top: 54px;
	text-align: center;
}

.hhsc-timeline .wp-block-column {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.23);
	border-radius: 16px;
	padding: 24px 18px;
}

.hhsc-timeline h3 {
	font-size: 1.15rem;
	margin: 14px 0 10px;
}

.hhsc-timeline p:last-child {
	font-size: 0.92rem;
	line-height: 1.5;
	margin-bottom: 0;
}

.hhsc-timeline-number {
	align-items: center;
	background: #fff;
	border-radius: 50%;
	color: #e71821;
	display: flex;
	font-weight: 800;
	height: 44px;
	justify-content: center;
	margin: 0 auto;
	width: 44px;
}

.hhsc-eligibility {
	gap: clamp(28px, 6vw, 72px);
	margin-top: 50px;
}

.hhsc-check-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hhsc-check-list li {
	border-bottom: 1px solid #e4e4e7;
	font-size: 1.06rem;
	line-height: 1.5;
	padding: 16px 8px 16px 40px;
	position: relative;
}

.hhsc-check-list li::before {
	color: #e71821;
	content: "✓";
	font-size: 1.25rem;
	font-weight: 800;
	left: 8px;
	position: absolute;
	top: 14px;
}

.hhsc-faq-section {
	background: #f5f5f6;
}

.hhsc-faq-section details {
	background: #fff;
	border: 1px solid #dedee2;
	border-radius: 12px;
	margin: 12px auto;
	max-width: 920px;
	padding: 0 22px;
}

.hhsc-faq-section summary {
	cursor: pointer;
	font-size: 1.05rem;
	font-weight: 750;
	padding: 20px 34px 20px 0;
}

.hhsc-faq-section details p {
	color: #5d5d63;
	line-height: 1.65;
	padding: 0 0 22px;
}

.hhsc-application-section {
	background: #fff;
}

.hhsc-application-section > .wp-block-shortcode {
	max-width: 1280px;
}

.hhsc-contact-section {
	background: #17171a;
	color: #fff;
}

.hhsc-contact-section .hhsc-lead,
.hhsc-contact-section .hhsc-small-note {
	color: #d2d2d6;
}

.hhsc-contact-section a {
	color: #fff;
}

.hhsc-contact-section .hhsc-lead a {
	white-space: nowrap;
}

.hhsc-legal-buttons .wp-block-button__link {
	background: transparent !important;
	border: 2px solid #fff !important;
	border-radius: 999px;
	color: #fff !important;
	font-weight: 700;
	padding: 12px 24px;
}

.hhsc-legal-buttons .wp-block-button__link:hover,
.hhsc-legal-buttons .wp-block-button__link:focus {
	background: #fff !important;
	color: #17171a !important;
}

@media (max-width: 960px) {
	.hhsc-card-grid,
	.hhsc-timeline {
		flex-wrap: wrap !important;
	}

	.hhsc-card-grid > .wp-block-column {
		flex-basis: calc(50% - 14px) !important;
	}

	.hhsc-timeline > .wp-block-column {
		flex-basis: calc(33.333% - 14px) !important;
	}
}

@media (max-width: 600px) {
	.hhsc-hero {
		min-height: 640px !important;
	}

	.hhsc-hero-title {
		font-size: clamp(2.5rem, 12vw, 4rem) !important;
	}

	.hhsc-card-grid > .wp-block-column,
	.hhsc-timeline > .wp-block-column {
		flex-basis: 100% !important;
	}

	.hhsc-section,
	.hhsc-application-section {
		padding-left: 18px;
		padding-right: 18px;
	}

	.hhsc-card {
		padding: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hhsc-primary-button .wp-block-button__link {
		transition: none;
	}
}
