/**
 * Practice Areas sidebar navigation.
 *
 * Customize by overriding the variables in your child theme, e.g.
 *   .fc-pa { --fc-pa-accent: #d4ae33; --fc-pa-title-font: 'Frank Ruhl Libre', serif; }
 *
 * All selectors are prefixed with .fc-pa and scoped under .fc-pa so they do
 * not affect, and are not affected by, Total / WPBakery list and button styles.
 */

.fc-pa {
	--fc-pa-color: #162542;
	--fc-pa-muted: #4a5670;
	--fc-pa-accent: #d4ae33;
	--fc-pa-active: var(--fc-pa-accent);
	--fc-pa-border: rgba(22, 37, 66, 0.14);
	--fc-pa-bg: transparent;
	--fc-pa-hover-bg: rgba(22, 37, 66, 0.04);
	--fc-pa-focus: #1f4fa3;
	--fc-pa-font: inherit;
	--fc-pa-title-font: inherit;
	--fc-pa-title-size: 1.25em;
	--fc-pa-area-size: 1em;
	--fc-pa-child-size: 0.9em;
	--fc-pa-line-height: 1.4;
	--fc-pa-pad-y: 0.7em;
	--fc-pa-indent: 1em;
	--fc-pa-toggle-size: 2.5rem;

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.5em;
	padding: 0;
	background: var(--fc-pa-bg);
	color: var(--fc-pa-color);
	font-family: var(--fc-pa-font);
	line-height: var(--fc-pa-line-height);
}

.fc-pa *,
.fc-pa *::before,
.fc-pa *::after {
	box-sizing: inherit;
}

/* Title (plain text, not a heading tag) */
.fc-pa .fc-pa__title {
	margin: 0;
	padding: 0 0 0.6em;
	border-bottom: 2px solid var(--fc-pa-accent);
	color: var(--fc-pa-color);
	font-family: var(--fc-pa-title-font);
	font-size: var(--fc-pa-title-size);
	font-weight: 700;
	line-height: 1.25;
}

/* Lists: reset theme list styles */
.fc-pa .fc-pa__list,
.fc-pa .fc-pa__children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fc-pa .fc-pa__group,
.fc-pa .fc-pa__item {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.fc-pa .fc-pa__group::before,
.fc-pa .fc-pa__item::before {
	content: none;
}

.fc-pa .fc-pa__group {
	border-bottom: 1px solid var(--fc-pa-border);
}

/* Area row: link on the left, arrow button on the right */
.fc-pa .fc-pa__head {
	display: flex;
	align-items: center;
	gap: 0.5em;
	min-width: 0;
}

.fc-pa .fc-pa__link {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: normal;
	color: var(--fc-pa-color);
	text-decoration: none;
	border: 0;
	box-shadow: none;
	background: none;
	transition: color 0.2s ease;
}

.fc-pa .fc-pa__link--area {
	flex: 1 1 auto;
	padding: var(--fc-pa-pad-y) 0;
	font-size: var(--fc-pa-area-size);
	font-weight: 700;
}

.fc-pa a.fc-pa__link:hover {
	color: var(--fc-pa-active);
	text-decoration: none;
}

.fc-pa a.fc-pa__link:focus-visible,
.fc-pa .fc-pa__toggle:focus-visible {
	outline: 2px solid var(--fc-pa-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Arrow button: reset Total / browser button styles */
.fc-pa .fc-pa__toggle {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--fc-pa-toggle-size);
	height: var(--fc-pa-toggle-size);
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: transparent;
	box-shadow: none;
	color: var(--fc-pa-color);
	font: inherit;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.fc-pa .fc-pa__toggle:hover,
.fc-pa .fc-pa__toggle:focus,
.fc-pa .fc-pa__toggle:active {
	background: var(--fc-pa-hover-bg);
	color: var(--fc-pa-active);
	box-shadow: none;
}

.fc-pa .fc-pa__icon {
	display: block;
	width: 1em;
	height: 1em;
	transition: transform 0.2s ease;
}

/* Closed = arrow points right, open = arrow points down */
.fc-pa .fc-pa__toggle[aria-expanded="true"] .fc-pa__icon {
	transform: rotate(90deg);
}

/* Child links */
.fc-pa .fc-pa__children {
	padding: 0 0 var(--fc-pa-pad-y) var(--fc-pa-indent);
}

.fc-pa .fc-pa__group:not(.is-open) > .fc-pa__children {
	display: none;
}

.fc-pa .fc-pa__link--child {
	padding: 0.35em 0 0.35em 0.75em;
	border-left: 2px solid transparent;
	color: var(--fc-pa-muted);
	font-size: var(--fc-pa-child-size);
}

.fc-pa .fc-pa__link--child.is-active {
	border-left-color: var(--fc-pa-active);
	color: var(--fc-pa-color);
	font-weight: 700;
}

.fc-pa .fc-pa__link--area.is-active {
	color: var(--fc-pa-active);
}

/*
 * Without JavaScript the arrows cannot work, so they stay invisible (the space
 * is kept to avoid layout shift). Area names remain normal links.
 */
.fc-pa:not(.fc-pa--enhanced) .fc-pa__toggle {
	visibility: hidden;
}

/* Visually hidden text for screen readers */
.fc-pa .fc-pa__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Setup message, visible to administrators only */
.fc-pa-notice {
	padding: 0.75em 1em;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #1d2327;
	font-size: 0.875em;
}

@media (prefers-reduced-motion: reduce) {
	.fc-pa .fc-pa__icon,
	.fc-pa .fc-pa__link {
		transition: none;
	}
}

@media (forced-colors: active) {
	.fc-pa .fc-pa__link--child.is-active {
		border-left-color: Highlight;
	}
}
