
/* mobile menu bg default color white with white text color fix until theme update */
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
    background-color: #2a5993;
}

/* fix accordion panels sill showing content when closed */
.wp-block-accordion-panel[aria-hidden=true], .wp-block-accordion-panel[inert] {
display: none!important;
}

/* Custom pagelist block styles when the class caen-pagelist is added directly to a pagelist block. Should be removed when theme provides styling */
/* CAEN Page List — Clean Directory – class: caen-pagelist */

.caen-pagelist {
	--pagelist-blue: #00274c;
	--pagelist-link: #2f65a7;
	--pagelist-border: #d6dce3;
	--pagelist-child-border: #9fb3c8;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.caen-pagelist ul,
.caen-pagelist li {
	list-style-type: none!important;
}

/* Top-level pages */

.caen-pagelist > .wp-block-pages-list__item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--pagelist-border);
}

/* Top-level links */
.caen-pagelist > .wp-block-pages-list__item > .wp-block-pages-list__item__link {
	display: block;
	padding: 0.75rem 0.25rem;
	color: var(--pagelist-link);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.caen-pagelist, .caen-pagelist a {
	text-transform: none;
}

/* Nested page lists */
.caen-pagelist .wp-block-navigation__submenu-container {
	position: static;
	display: block;
	width: auto;
	height: auto;
	min-width: 0;
	visibility: visible;
	opacity: 1;
	margin: 0 0 0.75rem 0.65rem;
	padding: 0 0 0 1rem;
	border: 0;
	border-left: 2px solid var(--pagelist-child-border);
	background: transparent;
	box-shadow: none;
}

/* Nested list items */
.caen-pagelist .wp-block-navigation__submenu-container
	.wp-block-pages-list__item {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Nested links */
.caen-pagelist .wp-block-navigation__submenu-container
	.wp-block-pages-list__item__link {
	display: block;
	padding: 0.3rem 0.25rem;
	color: var(--pagelist-link);
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
}

/* A nested page that itself has children gets a little more weight */
.caen-pagelist .wp-block-navigation__submenu-container
	.has-child > .wp-block-pages-list__item__link {
	font-weight: 600;
}

/* Third level and deeper*/
.caen-pagelist .wp-block-navigation__submenu-container
	.wp-block-navigation__submenu-container {
	margin-top: 0.15rem;
	margin-bottom: 0.3rem;
	margin-left: 0.5rem;
	border-left-color: var(--pagelist-border);
}

/* Link interactions */
.entry-content .caen-pagelist a:hover, .entry-content .caen-pagelist a:focus-visible {
	color: var(--pagelist-blue);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
        box-shadow: none;
}

/* Current page */

.caen-pagelist .current-menu-item >
	.wp-block-pages-list__item__link {
	color: var(--pagelist-blue);
	font-weight: 700;
}

/* aria-current gives us a second reliable hook */
.caen-pagelist a[aria-current="page"] {
	color: var(--pagelist-blue);
	font-weight: 700;
}
