/* Shop / breed archive hero on phones and tablets (template-parts/section-hero-woo.php).
   style.css swaps the desktop hero for .is-mobile at 1000px; everything here lives under
   that same breakpoint so the desktop hero is untouched. */
@media only screen and (max-width: 1000px) {
	.section-hero.hero-woo-m {
		display: flex;
		align-items: center;
		min-height: 0;
		padding: 2rem 1.25rem 1.75rem;
		overflow: hidden;
	}

	/* Neutral charcoal scrim (not the generic hero's green tint) so the photo reads
	   true-to-color and white type stays legible on busy shots. */
	.section-hero.hero-woo-m::before {
		opacity: 1;
		background: linear-gradient(180deg, rgba(20, 20, 20, .5) 0%, rgba(10, 10, 10, .68) 100%);
	}

	.hero-woo-m__content {
		width: 100%;
		max-width: 34rem;
		margin: 0 auto;
	}

	.hero-woo-m__title {
		margin: 0 0 1.25rem;
		font-size: clamp(1.75rem, 7.6vw, 2.375rem);
		font-weight: 700;
		line-height: 1.1;
		letter-spacing: -.01em;
		color: #fff;
		text-shadow: 0 1px 14px rgba(0, 0, 0, .18);
	}

	.hero-woo-m__eyebrow {
		display: block;
		margin-bottom: .5rem;
		font-size: .8125rem;
		font-weight: 600;
		line-height: 1.3;
		letter-spacing: .12em;
		text-transform: uppercase;
		opacity: .9;
	}

	/* Generic boilerplate: tablets only. Phones keep the puppies near the top; the
	   same sentence is still in the page via the desktop hero markup. */
	.hero-woo-m__lead {
		display: none;
		max-width: 30rem;
		margin: -.5rem auto 1.5rem;
		font-size: .9375rem;
		line-height: 1.6;
		opacity: .92;
	}

	.hero-woo-m__actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: .5rem;
	}

	.hero-woo-m__actions .btn {
		display: inline-flex;
		flex: 1 1 auto;
		align-items: center;
		justify-content: center;
		gap: .5rem;
		max-width: 16rem;
		min-height: 2.75rem;
		padding: .5rem 1.125rem;
		font-size: .9375rem;
		line-height: 1.2;
		white-space: nowrap;
	}

	.hero-woo-m__ghost,
	.hero-woo-m__ghost:focus {
		border: 1.5px solid rgba(255, 255, 255, .8);
		background: rgba(255, 255, 255, .12);
		color: #fff;
	}

	.hero-woo-m__ghost:hover,
	.hero-woo-m__ghost:active,
	.hero-woo-m__ghost[aria-expanded="true"] {
		border-color: #fff;
		background: #fff;
		color: var(--bs-primary, #018c6e);
	}

	.hero-woo-m__ghost svg {
		transition: transform .25s ease;
	}

	.hero-woo-m__ghost[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	.hero-woo-m__actions .btn:focus-visible {
		outline: 2px solid #fff;
		outline-offset: 2px;
	}

	/* Below lg the filter sidebar is an off-canvas panel, but its empty column still
	   carried pt-4 and doubled the gap between the hero and the puppy grid. */
	.col-lg-3 > .sidebar {
		padding-top: 0 !important;
	}
}

/* Phones: a touch tighter so both buttons share one row down to ~360px. They still wrap
   (e.g. tag pages' longer "Back to Available Puppies", or very narrow screens). */
@media only screen and (max-width: 575.98px) {
	.section-hero.hero-woo-m {
		padding-right: 1rem;
		padding-left: 1rem;
	}

	.hero-woo-m__actions .btn {
		gap: .4375rem;
		padding: .5rem .75rem;
		font-size: .875rem;
	}
}

@media only screen and (min-width: 576px) and (max-width: 1000px) {
	.section-hero.hero-woo-m {
		padding: 2.75rem 2rem 2.5rem;
	}

	.hero-woo-m__lead {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-woo-m__ghost svg {
		transition: none;
	}
}
