.branch-path {
	--branch-path-border: #dcdcde;
	--branch-path-surface: #fff;
	--branch-path-text: inherit;
	max-width: 760px;
	margin: 1.5em auto;
	color: var(--branch-path-text);
}

.branch-path__card {
	box-sizing: border-box;
	padding: clamp(1rem, 3vw, 1.75rem);
	border: 1px solid var(--branch-path-border);
	border-radius: 12px;
	background: var(--branch-path-surface);
}

.branch-path__heading {
	margin: 0 0 0.75rem;
	font-size: clamp(1.2rem, 2.5vw, 1.55rem);
	line-height: 1.4;
}

.branch-path__heading:focus {
	outline: none;
}

.branch-path__help,
.branch-path__description {
	white-space: pre-line;
}

.branch-path__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.branch-path button,
.branch-path__link {
	box-sizing: border-box;
	min-height: 44px;
	padding: 0.7rem 1rem;
	border-radius: 8px;
	font: inherit;
	cursor: pointer;
}

.branch-path__choice {
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
}

.branch-path__choice:hover,
.branch-path__choice:focus-visible,
.branch-path__secondary:hover,
.branch-path__secondary:focus-visible,
.branch-path__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.branch-path__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.branch-path__secondary {
	border: 1px solid var(--branch-path-border);
	background: transparent;
	color: inherit;
}

.branch-path__summary {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--branch-path-border);
}

.branch-path__summary h4 {
	margin: 0 0 0.5rem;
}

.branch-path__summary ul {
	margin-bottom: 0;
}

.branch-path__link {
	display: inline-flex;
	align-items: center;
	margin-top: 1rem;
	text-decoration: underline;
}

.branch-path--invalid {
	padding: 1rem;
	border: 1px solid var(--branch-path-border);
}

@media (max-width: 520px) {
	.branch-path__choices {
		grid-template-columns: 1fr;
	}
}
