/**
 * AAU — targeted refinements that theme.json cannot express.
 * Keep this file small; design tokens live in theme.json.
 */

/* Smooth in-page scrolling for anchor links. */
html {
	scroll-behavior: smooth;
}

/* Sticky, lightly elevated header. */
.aau-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: saturate(140%) blur(6px);
}

/* Header navigation links: navy by default, blue on hover. */
.aau-header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
}
.aau-header .wp-block-navigation-item__content:hover,
.aau-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

/* Footer links must stay legible on the navy background. */
.aau-footer a {
	color: var(--wp--preset--color--primary-light);
	text-decoration: none;
}
.aau-footer a:hover {
	color: var(--wp--preset--color--gold);
	text-decoration: underline;
}

/* Card lift on hover for clickable grids (formations, news). */
.wp-block-query .wp-block-post-template > li > .wp-block-group {
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	overflow: hidden;
	height: 100%;
}
.wp-block-query .wp-block-post-template > li > .wp-block-group:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08), 0 16px 40px rgba(16, 24, 40, 0.1);
}

/* Visible focus outline for keyboard users (accessibility). */
:where(a, button, .wp-element-button, input, summary, .wp-block-navigation-item__content):focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
	border-radius: 4px;
}

/* FAQ marker tidy-up. */
.wp-block-details summary {
	cursor: pointer;
	list-style: none;
}
.wp-block-details summary::-webkit-details-marker {
	display: none;
}
.wp-block-details summary::after {
	content: "+";
	float: right;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}
.wp-block-details[open] summary::after {
	content: "–";
}

/* Post terms (badges) spacing in cards. */
.wp-block-post-terms a {
	text-decoration: none;
}
