/**
 * Homepage phone + tablet layout, plus large-screen hero height lock.
 * Loaded last so it beats theme + late inline locks.
 */

/* ----- Hero: phone stacks CTAs; tablet keeps a roomy 2-col ----- */
@media (max-width: 768px) {
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block {
		align-items: center !important;
		padding: 6.5rem 1.25rem 5rem !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block > div > div,
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block .sln-home-hero-message {
		max-width: 100% !important;
		padding: 1.35rem 1.2rem !important;
		width: 100% !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block h2,
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-message h2 {
		font-size: clamp(1.65rem, 4.6vw, 2.15rem) !important;
		line-height: 1.2 !important;
		margin-bottom: 0.85rem !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block p,
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-message p {
		font-size: 0.9375rem !important;
		line-height: 1.5 !important;
		margin-bottom: 1.1rem !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-actions {
		align-items: stretch !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 0.75rem !important;
		grid-template-columns: none !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn {
		min-height: 48px !important;
		padding: 0.85rem 1rem !important;
		white-space: normal !important;
		width: 100% !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .menu-scroll-down-wrapper {
		bottom: 1.25rem;
	}
}

@media (max-width: 599px) {
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block {
		padding: 5.75rem 1rem 4.5rem !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block > div > div,
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block .sln-home-hero-message {
		padding: 1.15rem 1rem !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-actions {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		grid-template-columns: none !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn {
		width: 100% !important;
	}
}

/* ----- Metrics: 2x2 tablet, 1-col phone (beats the 4-col inline lock) ----- */
@media (max-width: 991px) {
	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready {
		padding: 3.25rem 0 !important;
	}

	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-block > .row.sln-metrics-grid {
		display: grid !important;
		gap: 0 !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		max-width: 92% !important;
		width: 92% !important;
	}

	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-block > .row > [class*="col-"] {
		float: none !important;
		max-width: none !important;
		width: 100% !important;
	}

	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-item.sln-metrics-cell {
		overflow: hidden !important;
		padding: 1.75rem 1rem !important;
	}

	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-block > .row > [class*="col-"]:nth-child(2) .metrics-item.sln-metrics-cell,
	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-block > .row > [class*="col-"]:nth-child(4) .metrics-item.sln-metrics-cell {
		border-right: none !important;
	}

	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-block > .row > [class*="col-"]:nth-child(1) .metrics-item.sln-metrics-cell,
	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-block > .row > [class*="col-"]:nth-child(2) .metrics-item.sln-metrics-cell {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-item.sln-metrics-cell > h2 {
		font-size: 2.5rem !important;
	}

	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-item.sln-metrics-cell .sln-metrics-label {
		font-size: 0.625rem !important;
		letter-spacing: 0.08em !important;
		line-height: 1.4 !important;
	}
}

@media (max-width: 767px) {
	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-block > .row.sln-metrics-grid {
		grid-template-columns: 1fr !important;
		max-width: 92% !important;
		width: 92% !important;
	}

	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-block > .row > [class*="col-"] .metrics-item.sln-metrics-cell {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		border-right: none !important;
		padding: 1.5rem 1.25rem !important;
	}

	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-block > .row > [class*="col-"]:last-child .metrics-item.sln-metrics-cell {
		border-bottom: none !important;
	}

	body.sln-home-hero-active .text-block.uptick-module2.sln-home-metrics-ready .metrics-item.sln-metrics-cell > h2 {
		font-size: 2.35rem !important;
	}
}

/* ----- Capabilities: 2-col tablet, larger tap links ----- */
@media (max-width: 991px) {
	body.sln-home-hero-active #portfolio-block-1.sln-home-capabilities-ready {
		padding: 3.5rem 0 !important;
	}

	body.sln-home-hero-active #portfolio-block-1.sln-home-capabilities-ready .sln-capabilities__inner {
		max-width: 92% !important;
		width: 92% !important;
	}

	body.sln-home-hero-active #portfolio-block-1.sln-home-capabilities-ready .sln-capabilities__heading {
		font-size: clamp(1.75rem, 4.2vw, 2.15rem) !important;
		margin-bottom: 1.75rem;
	}

	body.sln-home-hero-active #portfolio-block-1.sln-home-capabilities-ready .sln-capabilities__grid {
		gap: 0.75rem;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.sln-home-hero-active #portfolio-block-1.sln-home-capabilities-ready .sln-capabilities__card {
		padding: 1.75rem 1.5rem;
	}

	body.sln-home-hero-active #portfolio-block-1.sln-home-capabilities-ready .sln-capabilities__link {
		min-height: 44px;
		padding: 0.5rem 0;
	}
}

@media (max-width: 599px) {
	body.sln-home-hero-active #portfolio-block-1.sln-home-capabilities-ready .sln-capabilities__grid {
		grid-template-columns: 1fr !important;
	}
}

/* ----- News: arrows below the card on phone/tablet ----- */
@media (max-width: 991px) {
	body.sln-home-hero-active #news-block-4.sln-home-news-ready {
		padding: 3.5rem 0 !important;
	}

	body.sln-home-hero-active #news-block-4.sln-home-news-ready .sln-news__inner {
		max-width: 92% !important;
		width: 92% !important;
	}

	body.sln-home-hero-active #news-block-4.sln-home-news-ready .sln-news__heading {
		font-size: clamp(1.75rem, 4.2vw, 2.15rem) !important;
	}

	body.sln-home-hero-active #news-block-4.sln-home-news-ready .sln-news__view-all,
	body.sln-home-hero-active #news-block-4.sln-home-news-ready .sln-news-card__link {
		align-items: center;
		min-height: 44px;
		padding: 0.5rem 0;
	}

	body.sln-home-hero-active #news-block-4.sln-home-news-ready .owl-carousel.owl-theme .owl-nav {
		display: flex;
		gap: 0.75rem;
		justify-content: center;
		margin-top: 1.25rem;
		position: relative;
	}

	body.sln-home-hero-active #news-block-4.sln-home-news-ready .owl-carousel.owl-theme .owl-prev,
	body.sln-home-hero-active #news-block-4.sln-home-news-ready .owl-carousel.owl-theme .owl-next {
		left: auto !important;
		min-height: 44px;
		min-width: 44px;
		position: static !important;
		right: auto !important;
		top: auto !important;
		transform: none !important;
	}
}

/* ----- Careers: full-width CTA on phone ----- */
@media (max-width: 767px) {
	body.sln-home-hero-active .text-block.careers.sln-home-careers-ready {
		padding: 2.5rem 0 !important;
	}

	body.sln-home-hero-active .text-block.careers.sln-home-careers-ready .sln-careers-banner__inner {
		align-items: stretch !important;
		flex-direction: column !important;
		gap: 1.25rem;
		max-width: 92% !important;
		width: 92% !important;
	}

	body.sln-home-hero-active .text-block.careers.sln-home-careers-ready .sln-careers-banner__btn {
		min-height: 48px;
		width: 100%;
	}

	body.sln-home-hero-active #wrapper-footer .site-info,
	body.sln-home-hero-active #colophon .site-info {
		overflow-wrap: anywhere;
		white-space: normal;
	}

	body.sln-home-hero-active .grecaptcha-badge {
		opacity: 0 !important;
		pointer-events: none !important;
		visibility: hidden !important;
	}
}

/* Large screens: fixed 900px banner (same as the 1440 desktop look). */
@media (min-width: 1441px) {
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced {
		height: 900px !important;
		max-height: 900px !important;
		min-height: 900px !important;
	}

	body.sln-site-shell-enabled.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .hero-embed-container iframe,
	body.sln-site-shell-enabled.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced iframe.sln-home-header-iframe,
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .hero-embed-container iframe,
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced iframe.sln-home-header-iframe {
		aspect-ratio: 16 / 9;
		height: auto !important;
		min-height: 100% !important;
		min-width: 100% !important;
		width: max(100%, 1600px) !important;
	}
}
