/**
 * Homepage-only styles (loaded on the front page only).
 *
 * The hero and full-width section bands break out of the header container
 * using a scrollbar-safe negative-margin technique. Body has overflow-x:hidden
 * as a final safety net so this can never cause horizontal scrolling.
 *
 * @package SSCResult
 */

/* Full-bleed hero — escapes the .sscr-container without causing overflow */
.sscr-hero {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Remove the top padding of main so the hero sits flush under the header */
body.sscr-home .sscr-main {
	padding-top: 0;
}

body.sscr-home .sscr-hero + .sscr-container,
body.sscr-home .sscr-home-body {
	padding-top: 20px;
}

/* Subtle dotted texture on the hero */
.sscr-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 22px 22px;
	pointer-events: none;
}

.sscr-hero__grid { position: relative; z-index: 1; }

/* Quick-stats band under the hero */
.sscr-quickstats {
	background: #fff;
	border: 1px solid var(--sscr-border);
	border-radius: var(--sscr-radius);
	box-shadow: var(--sscr-shadow-sm);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(50%, 150px), 1fr));
	overflow: hidden;
	margin-bottom: 20px;
}

.sscr-quickstats__item {
	text-align: center;
	padding: 14px 10px;
	border-right: 1px solid var(--sscr-border-light);
	border-bottom: 1px solid var(--sscr-border-light);
}

.sscr-quickstats__num {
	display: block;
	font-size: clamp(1.3rem, 4vw, 1.8rem);
	font-weight: 800;
	color: var(--sscr-primary);
	line-height: 1;
}

.sscr-quickstats__label {
	display: block;
	margin-top: 5px;
	font-size: 11.5px;
	color: var(--sscr-muted);
	font-weight: 600;
}

/* Homepage sections get comfortable rhythm and scroll offset for anchors */
.sscr-home-content .sscr-section {
	scroll-margin-top: calc(var(--sscr-nav-h) + 16px);
}

/* Emphasise the "at a glance" quick-info table */
.sscr-quick-info__table th { width: 42%; background: #fafbfe; color: var(--sscr-heading); }

@media (max-width: 480px) {
	.sscr-hero__status { flex-direction: column; align-items: flex-start; }
}
