
/**
 * Hunt Regional - Avada TOC WCAG 2.1 AA Styles
 * @version 1.4.0
 *
 * Mobile toggle is a carbon copy of .hr-filter-toggle from
 * hunt-regional-mobile-filters.css — same colors, sizing,
 * hover/focus/active states, and responsive breakpoints.
 * Button says "Quick Links" instead of "Filters".
 *
 * Desktop: no toggle at all, column content always visible.
 */

/* ==========================================================================
   TOC Toggle Button — MOBILE ONLY
   Identical to .hr-filter-toggle
   ========================================================================== */
.hr-toc-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	width: 100%;
	padding: .875rem 1.25rem;
	margin-bottom: 1rem;
	border: 2px solid #4f2d8f;
	border-radius: 6px;
	background: #fff;
	color: #4f2d8f;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
	-webkit-appearance: none;
}

.hr-toc-toggle:hover {
	background: #4f2d8f;
	color: #fff;
}

.hr-toc-toggle:focus-visible {
	outline: 3px solid #4f2d8f;
	outline-offset: 2px;
}

/* Active / expanded state */
.hr-toc-toggle--active {
	background: #4f2d8f;
	color: #fff;
}

.hr-toc-toggle--active:hover {
	background: #3d2270;
}

/* Icon alignment */
.hr-toc-toggle svg {
	flex-shrink: 0;
}

/* ==========================================================================
   Responsive — desktop vs mobile
   ========================================================================== */
@media (min-width: 769px) {
	/* Desktop: toggle NEVER shows, panel always visible */
	.hr-toc-toggle {
		display: none !important;
	}
	
	.hr-toc-panel {
		display: block !important;
	}
}

@media (max-width: 768px) {
	.hr-toc-panel {
		margin-bottom: 1.5rem;
	}
}

/* ==========================================================================
   Focus indicators on TOC links (WCAG 2.4.7)
   ========================================================================== */
.awb-toc-el a:focus-visible {
	outline: 3px solid #4f2d8f;
	outline-offset: 2px;
	border-radius: 2px;
}

/* ==========================================================================
   Active section indicator (WCAG 1.4.1 - not color alone)
   ========================================================================== */
.awb-toc-el__list-item {
	border-left: 3px solid transparent;
	transition: border-color .15s ease, background-color .15s ease;
}

.awb-toc-el__list-item.is-active {
	border-left-color: #4f2d8f;
	background-color: #f3eef9;
}

.awb-toc-el__list-item.is-active a {
	color: #3d2270;
	font-weight: 600;
}

/* ==========================================================================
   Target heading focus styles (WCAG 2.4.7)
   ========================================================================== */
h2[tabindex="-1"]:focus-visible, h3[tabindex="-1"]:focus-visible {
	outline: 3px solid #4f2d8f;
	outline-offset: 4px;
	border-radius: 2px;
}

h2[tabindex="-1"]:focus:not(:focus-visible), h3[tabindex="-1"]:focus:not(:focus-visible) {
	outline: 2px solid #4f2d8f;
	outline-offset: 4px;
}

/* ==========================================================================
   Reduced motion (WCAG 2.3.3)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.awb-toc-el__list-item, .hr-toc-toggle {
		transition: none;
	}
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
	.hr-toc-toggle {
		display: none;
	}
	
	.hr-toc-panel {
		display: block !important;
	}
	
	.awb-toc-el a::after {
		content: none;
	}
}
