/* The small hero (template-parts/legal/hero.php): the legal pages and
   Contact (user, 2026-10-21). */

/* ---------- The band: short, red, torn top and bottom; the h1 and its
   line centred (user, 2026-10-20) ---------- */
.lg-hero {
	position: relative;
	margin-top: -0.5rem;
	padding: 7.125rem var(--acs-gutter) calc(var(--l-tear) + 4.875rem); /* the title clears the hanging logo; 100px taller (user, 2026-10-20) */
	overflow: hidden;
	/* the red stops 4px short of the bottom, under the torn edge, so it never
	   shows as a thin line below the tear (user, 2026-10-20) */
	background: linear-gradient(var(--acs-red) calc(100% - 4px), transparent 0);
	color: var(--acs-white);
	text-align: center;
}

.lg-hero::before,
.lg-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	height: var(--l-tear);
	background: 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}

.lg-hero::before {
	top: -1px;
	background-image: url("../directions/a/media/masks/hero-top.png");
}

.lg-hero::after {
	bottom: -3px; /* 3px over the red: no red hairline under the tear on any zoom or width (user, 2026-10-21) */
	background-image: url("../directions/a/media/masks/hero-bottom.png");
}

.lg-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--l-wrap);
	margin-inline: auto;
}

.lg-hero__title {
	margin: 0;
	font-family: var(--acs-font-display);
	font-weight: 400;
	font-size: var(--acs-h1-size);       /* the style guide's H1 (user, 2026-10-20; was the blog H1) */
	line-height: var(--acs-h1-lh);
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--acs-white);
}

/* the word and letter spans legal.js writes the h1 on with: a word never
   breaks, each letter moves on its own; no kerning so nothing shifts when
   the plain text comes back */
.lg-hero .lg-word {
	display: inline-block;
	white-space: nowrap;
}

.lg-hero .lg-letter {
	display: inline-block;
}

.lg-hero__title {
	font-kerning: none;
	font-variant-ligatures: none;
}

.lg-hero__sub {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	line-height: 1.5rem;
}

@media (min-width: 1024px) {
	.lg-hero {
		margin-top: 0;
		padding: calc(var(--l-tear) + 5.625rem) var(--acs-gutter) calc(var(--l-tear) + 5.125rem); /* 100px taller (user, 2026-10-20) */
	}
}
