/**
 * Homepage hero workflow composition.
 *
 * Loaded after base.css on the front page only. The explicit mobile rules
 * retire the old two-column multicol experiment without changing base.css,
 * which intentionally remains aligned with the production copy.
 */

.arena5-home .arena5-home-hero {
	padding-block: 8px clamp(24px, 3vw, 40px);
}

.arena5-home .arena5-home-hero__grid {
	grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
	align-items: stretch;
	gap: clamp(18px, 1.6vw, 26px);
}

.arena5-home .arena5-home-hero__content {
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: none;
	columns: auto;
	overflow: visible;
}

.arena5-home .arena5-home-hero__content > * {
	min-width: 0;
}

.arena5-home .arena5-home-hero__thumb-row span {
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}

.arena5-home .arena5-home-hero h1,
.arena5-home .arena5-home-hero__content #arena5-home-hero-title {
	width: 100%;
	max-width: none;
	margin: 0;
	color: var(--arena5-text);
	font-size: clamp(2rem, 2.55vw, 3.2rem);
	font-weight: 900;
	line-height: 1.08;
	text-align: center;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.arena5-home .arena5-home-hero__workflow {
	flex: 1 1 auto;
	min-height: 0;
	margin-block-start: 15px;
}

.arena5-home .arena5-home-hero__workflow-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(148px, 1fr));
	gap: 12px;
	height: 100%;
}

.arena5-home .arena5-home-hero-step {
	position: relative;
	min-width: 0;
	padding: clamp(17px, 1.45vw, 22px);
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 15px;
	background:
		linear-gradient(150deg, rgba(53, 212, 255, 0.075), rgba(44, 124, 255, 0.025) 48%, transparent),
		rgba(10, 20, 35, 0.82);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.055),
		0 15px 38px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.arena5-home .arena5-home-hero-step::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 20px;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--arena5-cyan), rgba(44, 124, 255, 0.08));
	box-shadow: 0 0 18px rgba(53, 212, 255, 0.22);
}

.arena5-home .arena5-home-hero-step::after {
	content: "";
	position: absolute;
	inset-inline-end: -31px;
	inset-block-end: -38px;
	width: 96px;
	height: 96px;
	border: 1px solid rgba(53, 212, 255, 0.1);
	border-radius: 50%;
	pointer-events: none;
}

.arena5-home .arena5-home-hero-step__number {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 30px;
	padding-inline: 10px;
	border: 1px solid rgba(53, 212, 255, 0.25);
	border-radius: 999px;
	background: rgba(44, 124, 255, 0.13);
	color: var(--arena5-cyan);
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1;
	box-shadow: inset 0 0 16px rgba(53, 212, 255, 0.06);
}

.arena5-home .arena5-home-hero-step h2 {
	position: relative;
	z-index: 1;
	margin: 10px 0 0;
	color: var(--arena5-text);
	font-size: clamp(1rem, 1.05vw, 1.12rem);
	font-weight: 850;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.arena5-home .arena5-home-hero-step p {
	position: relative;
	z-index: 1;
	margin: 8px 0 0;
	color: var(--arena5-muted);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.arena5-home .arena5-home-hero__content .arena5-home-team-orders {
	flex: 0 0 auto;
	width: 100%;
	margin: 12px 0 0;
	padding: 0;
	border: 0;
}

.arena5-home .arena5-home-hero__content .arena5-home-team-orders::before {
	display: none;
}

.arena5-home .arena5-home-hero__content .arena5-home-team-orders__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px 16px;
	padding: 13px 15px;
}

.arena5-home .arena5-home-hero__content .arena5-home-team-orders__content {
	min-width: 0;
}

.arena5-home .arena5-home-hero__content .arena5-home-team-orders__content h2 {
	margin: 0 0 3px;
	font-size: 1.02rem;
	line-height: 1.3;
}

.arena5-home .arena5-home-hero__content .arena5-home-team-orders__content p {
	margin: 0;
	font-size: 0.83rem;
	line-height: 1.48;
	overflow-wrap: anywhere;
}

.arena5-home .arena5-home-hero__content .arena5-home-team-orders__button {
	min-width: 168px;
	min-height: 44px;
	padding-inline: 16px;
	font-size: 0.88rem;
	white-space: normal;
	text-align: center;
	line-height: 1.25;
}

html.theme-day .arena5-home .arena5-home-hero-step {
	border-color: rgba(15, 98, 254, 0.15);
	background:
		linear-gradient(150deg, rgba(15, 98, 254, 0.075), rgba(53, 212, 255, 0.025) 48%, transparent),
		rgba(255, 255, 255, 0.9);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.82),
		0 15px 38px rgba(29, 84, 150, 0.1);
}

html.theme-day .arena5-home .arena5-home-hero-step::before {
	background: linear-gradient(90deg, var(--arena5-blue), rgba(15, 98, 254, 0.06));
	box-shadow: 0 0 16px rgba(15, 98, 254, 0.12);
}

html.theme-day .arena5-home .arena5-home-hero-step::after {
	border-color: rgba(15, 98, 254, 0.09);
}

html.theme-day .arena5-home .arena5-home-hero-step__number {
	border-color: rgba(15, 98, 254, 0.2);
	background: rgba(15, 98, 254, 0.08);
	color: var(--arena5-blue);
	box-shadow: none;
}

@media (max-width: 1240px) {
	.arena5-home .arena5-home-hero__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.arena5-home .arena5-home-hero__visual {
		min-height: clamp(380px, 55vw, 500px);
	}

	.arena5-home .arena5-home-hero__content {
		width: 100%;
		max-width: none;
	}

	.arena5-home .arena5-home-hero__workflow {
		flex-grow: 0;
	}

	.arena5-home .arena5-home-hero__workflow-grid {
		grid-template-rows: none;
		height: auto;
	}

	.arena5-home .arena5-home-hero-step {
		min-height: 160px;
	}
}

@media (max-width: 700px) {
	.arena5-home .arena5-home-hero {
		padding-block: 6px 24px;
	}

	.arena5-home .arena5-home-hero__grid {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 14px;
		min-height: 0;
	}

	.arena5-home .arena5-home-hero__visual {
		height: auto;
		min-height: clamp(220px, 58vw, 300px);
		border-radius: 16px;
	}

	.arena5-home .arena5-home-hero__visual-shell {
		inset: 7px;
		border-radius: 12px;
		overflow: hidden;
	}

	.arena5-home .arena5-home-hero__showcase,
	.arena5-home .arena5-home-hero__showcase--image {
		inset: 7px 7px 76px;
		border-radius: 10px;
	}

	.arena5-home .arena5-home-hero__showcase--image picture {
		display: contents;
	}

	.arena5-home .arena5-home-hero__showcase--image img {
		width: 100%;
		height: 100%;
		max-width: none;
		max-height: none;
		object-fit: cover;
		object-position: center 62%;
		transform: none;
	}

	.arena5-home .arena5-home-hero__thumb-row {
		inset-inline: 8px;
		inset-block-end: 8px;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 5px;
		overflow: visible;
	}

	.arena5-home .arena5-home-hero__thumb-row span {
		display: block;
		min-width: 0;
		min-height: 60px;
		padding: 7px 6px;
		border-radius: 9px;
		font-size: 0.7rem;
		line-height: 1.35;
		text-align: center;
		white-space: normal;
		overflow: visible;
		overflow-wrap: anywhere;
	}

	.arena5-home .arena5-home-hero__thumb-row span::before {
		position: absolute;
		inset-block-start: 5px;
		inset-inline-start: 5px;
		width: 6px;
		height: 6px;
		margin: 0;
	}

	/* Explicitly undo the retired mobile multicol layout from base.css. */
	.arena5-home .arena5-home-hero__content {
		display: flex;
		flex-direction: column;
		columns: auto;
		column-count: auto;
		column-gap: normal;
		column-fill: auto;
		overflow: visible;
	}

	.arena5-home .arena5-home-hero__content > * {
		order: initial;
		break-inside: auto;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin-block: 0;
		overflow: visible;
	}

	.arena5-home .arena5-home-eyebrow {
		order: 1;
		min-height: 0;
		margin: 0 0 12px;
		padding: 10px 12px;
		border-radius: 12px;
		font-size: clamp(1rem, 4.8vw, 1.3rem);
		line-height: 1.3;
		letter-spacing: 0;
	}

	.arena5-home .arena5-home-hero h1,
	.arena5-home .arena5-home-hero__content #arena5-home-hero-title {
		order: 2;
		margin: 0;
		font-size: clamp(1.68rem, 7.5vw, 2.25rem);
		line-height: 1.1;
	}

	.arena5-home .arena5-home-hero__workflow {
		order: 3;
		margin-block-start: 13px;
		overflow: visible;
	}

	.arena5-home .arena5-home-hero__workflow-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		gap: 10px;
		height: auto;
		overflow: visible;
	}

	.arena5-home .arena5-home-hero-step {
		min-height: 172px;
		padding: 14px;
		border-radius: 13px;
	}

	.arena5-home .arena5-home-hero-step::before {
		inset-inline: 14px;
	}

	.arena5-home .arena5-home-hero-step__number {
		min-width: 38px;
		height: 28px;
		padding-inline: 8px;
		font-size: 0.74rem;
	}

	.arena5-home .arena5-home-hero-step h2 {
		margin-block-start: 8px;
		font-size: 1rem;
		line-height: 1.35;
	}

	.arena5-home .arena5-home-hero-step p {
		margin-block-start: 7px;
		font-size: 0.84rem;
		line-height: 1.5;
	}

	.arena5-home .arena5-home-hero__content .arena5-home-team-orders {
		order: 4;
		margin: 12px 0 0;
	}

	.arena5-home .arena5-home-hero__content .arena5-home-team-orders__panel {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 12px;
	}

	.arena5-home .arena5-home-hero__content .arena5-home-team-orders__content h2 {
		font-size: 1rem;
		line-height: 1.35;
	}

	.arena5-home .arena5-home-hero__content .arena5-home-team-orders__content p {
		font-size: 0.84rem;
		line-height: 1.5;
	}

	.arena5-home .arena5-home-hero__content .arena5-home-team-orders__button {
		width: 100%;
		max-width: none;
		min-width: 0;
		min-height: 44px;
		height: auto;
		max-height: none;
		padding: 9px 14px;
		font-size: 0.9rem;
		line-height: 1.3;
		white-space: normal;
	}
}

@media (max-width: 359px) {
	.arena5-home .arena5-home-hero__thumb-row {
		inset-inline: 4px;
		gap: 2px;
	}

	.arena5-home .arena5-home-hero__thumb-row span {
		padding-inline: 2px;
		font-size: 0.69rem;
	}

	.arena5-home .arena5-home-hero__workflow-grid {
		grid-template-columns: 1fr;
	}

	.arena5-home .arena5-home-hero-step {
		min-height: 0;
	}
}

/* Homepage content density: keep the useful catalog and editorial entry
 * points compact after the hero, without touching the drifted base.css. */
.arena5-home .arena5-home-service-area__panel {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 901px) {
	.arena5-home .arena5-home-category-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 12px;
	}

	.arena5-home .arena5-home-category-card {
		min-height: 240px;
		padding: 13px;
		gap: 10px;
	}

	.arena5-home .arena5-home-blog__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 900px) {
	.arena5-home .arena5-home-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.arena5-home .arena5-home-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.arena5-home .arena5-home-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.arena5-home .arena5-home-blog__card,
.arena5-home .arena5-home-blog__body,
.arena5-home .arena5-home-blog__title {
	min-width: 0;
}

.arena5-home .arena5-home-blog__title,
.arena5-home .arena5-home-category-card__body strong {
	overflow-wrap: anywhere;
}
