/**
 * R44 Properties and Find Your Fit refinements.
 *
 * This file intentionally leaves the approved homepage hero untouched.
 */

.ethos-properties button.ethos-properties-advisor__select {
	font-family: inherit;
	width: 100%;
}

@media (max-width: 700px) {
	.ethos-properties-hero {
		gap: 1.1rem;
		padding:
			calc(var(--header-height, 98px) + var(--ribbon-height, 24px) + 1.35rem)
			1.25rem
			1.25rem;
	}

	.ethos-properties-hero__content {
		padding-block: 0.7rem 0.15rem;
	}

	.ethos-properties-hero h1 {
		font-size: clamp(2.65rem, 11.5vw, 3.15rem);
		line-height: 1.04;
		margin-bottom: 1.2rem;
		max-width: 10.5ch;
	}

	.ethos-properties-hero__content > p {
		font-size: 0.96rem;
		line-height: 1.5;
		margin-bottom: 1.35rem;
	}

	.ethos-properties-hero__actions {
		gap: 0.65rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ethos-properties-hero__actions .button {
		font-size: 0.64rem;
		letter-spacing: 0.09em;
		min-width: 0;
		padding-inline: 0.45rem;
		width: auto;
	}

	.ethos-properties-hero__actions .ethos-properties-text-link {
		grid-column: 1 / -1;
		justify-content: center;
		justify-self: stretch;
		width: 100%;
	}

	.ethos-properties-hero__markets {
		gap: 0.6rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: 1fr;
		min-height: 9rem;
	}

	.ethos-properties-hero__market {
		min-height: 9rem;
	}

	.ethos-properties-hero__market span {
		bottom: 0.8rem;
		font-size: 0.67rem;
		left: 0.8rem;
		letter-spacing: 0.16em;
	}

	.ethos-properties-intents {
		padding-block: 3.15rem;
	}

	.ethos-properties-intents h2 {
		font-size: clamp(2.15rem, 9.4vw, 2.8rem);
		margin-bottom: 1.8rem;
	}

	.ethos-properties-chooser {
		padding-block: 4.2rem;
	}

	.ethos-properties-chooser__header {
		margin-bottom: 2.25rem;
	}

	.ethos-properties-chooser__header h2 {
		font-size: clamp(2.35rem, 9.8vw, 3rem);
	}

	.ethos-properties-chooser__states {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ethos-properties-fit__body {
		padding-top: 2rem;
	}

	.ethos-properties-fit h2 {
		font-size: clamp(2.1rem, 9.5vw, 2.9rem);
		line-height: 1.04;
	}
}

@media (min-width: 360px) and (max-width: 700px) {
	.ethos-properties-intents__rail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ethos-properties-intents__rail > a {
		align-items: start;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto minmax(3.6rem, 1fr) auto;
		min-height: 9rem;
		padding: 1rem;
	}

	.ethos-properties-intents__rail > a + a,
	.ethos-properties-intents__rail > a:nth-child(4),
	.ethos-properties-intents__rail > a:nth-child(5) {
		border-left: 0;
		border-top: 0;
	}

	.ethos-properties-intents__rail > a:nth-child(even) {
		border-left: 1px solid rgba(199, 164, 90, 0.68);
	}

	.ethos-properties-intents__rail > a:nth-child(n + 3) {
		border-top: 1px solid rgba(199, 164, 90, 0.68);
	}

	.ethos-properties-intents__rail > a:nth-child(5) {
		grid-column: 1 / -1;
		min-height: 7.25rem;
	}

	.ethos-properties-intents__rail > a strong {
		grid-column: 1;
	}

	.ethos-properties-intents__rail > a span {
		grid-column: 1 / -1;
		margin-top: 0.65rem;
	}

	.ethos-properties-intents__rail > a svg {
		align-self: end;
		grid-column: 2;
		grid-row: 3;
	}

	.ethos-properties-fit__advisor-result > .ethos-properties-fit__result-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ethos-properties-fit__advisor-result .ethos-properties-fit__result-link--contact {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.ethos-properties-hero__actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ethos-properties-hero__actions .button {
		grid-column: auto;
		width: auto;
	}

	.ethos-properties-hero__actions .ethos-properties-text-link {
		grid-column: 1 / -1;
	}

	.ethos-properties-chooser__states {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.ethos-properties-hero__market img {
		transition: none;
	}
}
