/*
 * EduDrift Core — competition hero (Design system: Direction 4 — Immersive).
 * Fonts come from Blocksy (Jost; Cormorant Garamond). The plugin adds Cormorant's italic.
 * Breakpoints: tablet ≤1024px, phone ≤640px.
 */

.edp-hero {
	--edp-ink: #090d0f;
	--edp-text: #30363a;
	--edp-line: #dce2e7;
	--edp-soft: #f6f8fa;
	--edp-mist: #dcebfb;
	--edp-haze: #eef6ff;
	--edp-blue: #0068cc;
	--edp-blue-dark: #0053a3;
	--edp-brand: #1a8fff;
	--edp-display: "Cormorant Garamond", Georgia, serif;
	--edp-tone-bg: #0053a3;
	--edp-tone-fg: #fff;
	--edp-tone-soft: #dce2e7;
	position: relative;
	box-sizing: border-box;
	padding: 14px 14px 0;
	margin-bottom: 72px;
	color: var(--edp-text);
}
.edp-hero *,
.edp-hero *::before,
.edp-hero *::after { box-sizing: border-box; }
.entry-content .edp-hero p,
.edp-hero p,
.entry-content .edp-hero h1,
.edp-hero h1,
.edp-hero ul { margin: 0; }

/* Tones */
.edp-tone--azure { --edp-tone-bg: #0053a3; --edp-tone-fg: #fff; --edp-tone-soft: #dce2e7; }
.edp-tone--slate { --edp-tone-bg: #30363a; --edp-tone-fg: #fff; --edp-tone-soft: #dce2e7; }
.edp-tone--sky   { --edp-tone-bg: #1a8fff; --edp-tone-fg: #090d0f; --edp-tone-soft: #090d0f; }
.edp-tone--mist  { --edp-tone-bg: #dcebfb; --edp-tone-fg: #090d0f; --edp-tone-soft: #30363a; }

/* Photograph */
.edp-hero__media {
	height: clamp(520px, 56vw, 760px);
	border-radius: 36px;
	overflow: hidden;
	background: var(--edp-t-photo, linear-gradient(155deg, #cfe5fb 0%, #6aaef0 38%, #0068cc 75%, #0053a3 100%));
}
.edp-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Panel + tiles overlapping the photo */
.edp-hero__grid {
	position: relative;
	max-width: 1290px;
	margin: -260px auto 0;
	padding: 0 24px;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
	align-items: end;
}
.edp-glass {
	background: rgba(255, 255, 255, 0.76);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.7);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.edp-glass { background: rgba(255, 255, 255, 0.95); }
}
.edp-hero__panel {
	grid-column: 1 / 8;
	border-radius: 32px;
	padding: 40px 44px;
	box-shadow: 0 30px 60px rgba(0, 83, 163, 0.14);
}
.edp-hero__brand { display: flex; align-items: center; gap: 18px; }
.edp-hero__logo {
	flex: none;
	width: 72px;
	height: 72px;
	padding: 8px;
	border-radius: 20px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(9, 13, 15, 0.08);
}
.edp-hero__logo img,
.edp-hero__partner-logo img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.edp-eyebrow {
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 500;
}
.edp-hero__edition { color: var(--edp-t-deep, var(--edp-blue-dark)); }

.edp-status { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.edp-hero p.edp-hero__edition + p.edp-status { margin-top: 6px; }
.edp-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--edp-brand); flex: none; }
.edp-status--closing span { background: var(--edp-ink); }
.edp-status--closed span,
.edp-status--soldout span { background: transparent; border: 1px solid var(--edp-text); }
.edp-status--opens span { background: transparent; border: 1.5px solid var(--edp-ink); }

.edp-hero h1.edp-hero__title {
	font-family: var(--edp-display);
	font-weight: 500;
	font-size: clamp(46px, 7vw, 84px);
	font-style: normal;
	line-height: 0.95;
	letter-spacing: -0.01em;
	color: var(--edp-ink);
	margin-top: 28px;
}
.edp-hero p.edp-hero__subtitle {
	font-family: var(--edp-display);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.2;
	color: var(--edp-t-deep, var(--edp-blue-dark));
	margin-top: 10px;
}
.edp-hero p.edp-hero__summary { font-size: 17px; line-height: 1.6; margin-top: 20px; max-width: 520px; }

.edp-hero__tiles {
	grid-column: 8 / 13;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.edp-hero__partner {
	grid-column: 1 / 3;
	border-radius: 28px;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.edp-hero__partner-logo {
	flex: none;
	width: 120px;
	height: 52px;
	padding: 6px;
	border-radius: 12px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.edp-hero p.edp-hero__partner-name { font-family: var(--edp-display); font-size: 24px; line-height: 1.1; color: var(--edp-ink); margin-top: 2px; }

.edp-hero__date {
	grid-column: 1 / 3;
	border-radius: 28px;
	padding: 28px 30px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	background: var(--edp-tone-bg);
	color: var(--edp-tone-fg);
}
.edp-hero__date .edp-eyebrow,
.edp-hero p.edp-hero__date-sub { color: var(--edp-tone-soft); }
.edp-hero p.edp-hero__date-main { font-family: var(--edp-display); font-size: clamp(38px, 4vw, 46px); line-height: 1; margin-top: 10px; }
.edp-hero p.edp-hero__date-sub { font-size: 14px; margin-top: 6px; }
.edp-hero p.edp-hero__date-ws {
	font-size: 13px;
	line-height: 1.4;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid color-mix(in srgb, var(--edp-tone-fg) 25%, transparent);
	color: var(--edp-tone-soft);
}
.edp-hero p.edp-hero__date-ws span { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }

.edp-tile { background: var(--edp-soft); border-radius: 28px; padding: 22px 26px; }
.edp-hero p.edp-tile__main { font-size: 20px; font-weight: 500; color: var(--edp-ink); margin-top: 8px; }
.edp-hero p.edp-tile__sub { font-size: 14px; }

/* Buttons */
.edp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	flex: none;
}
.edp-btn--light,
.edp-btn--light:visited { background: #fff; color: var(--edp-blue-dark); }
.edp-btn--light:hover { background: var(--edp-haze); color: var(--edp-blue-dark); }
.edp-tone--light .edp-btn--light { background: var(--edp-blue); color: #fff; }
.edp-tone--light .edp-btn--light:hover { background: var(--edp-blue-dark); color: #fff; }
.edp-btn--muted { border: 1px solid currentColor; opacity: 0.85; }
.edp-btn:focus-visible { outline: 2px solid var(--edp-brand); outline-offset: 3px; }

/* Fact tags */
.edp-hero ul.edp-hero__tags {
	max-width: 1290px;
	margin: 28px auto 0;
	padding: 0 24px;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.edp-hero .edp-hero__tags li { margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--edp-soft); font-size: 14px; }

/* Tablet */
@media (max-width: 1024px) {
	.edp-hero__media { height: 620px; }
	.edp-hero__grid { margin-top: -160px; grid-template-columns: 1fr; row-gap: 16px; }
	.edp-hero__panel,
	.edp-hero__tiles { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 640px) {
	.edp-hero { padding: 10px 10px 0; margin-bottom: 56px; }
	.edp-hero__media { height: 520px; border-radius: 28px; }
	.edp-hero__grid { margin-top: -120px; padding: 0 8px; }
	.edp-hero__panel { padding: 26px 22px; border-radius: 26px; }
	.edp-hero h1.edp-hero__title { margin-top: 20px; }
	.edp-hero__date { flex-direction: column; align-items: flex-start; padding: 24px; }
	.edp-hero__date .edp-btn { width: 100%; }
	.edp-tile { padding: 18px 20px; border-radius: 22px; }
	.edp-hero__partner { padding: 16px 18px; }
	.edp-hero__partner-logo { width: 96px; height: 44px; }
	.edp-hero ul.edp-hero__tags { padding: 0 8px; gap: 8px; }
}

/* 1.2.1: phone banner swap. */
.edp-hero__picture { display: block; width: 100%; height: 100%; }
