/* Non-critical general CSS (mobile breakpoints should go in respective files) */

/* Overwrite stuff that should never have made it into the old site content anyway */
span[style*="font-weight"] { font-weight: 300 !important; }

strong, b {
	font-weight: bold; /* Gutenberg now uses "bolder" by default */
}

ul.menu li.menu-cta a {
	background: var(--wp--preset--color--primary);
	border-radius: 0.5rem;
	color: var(--wp--preset--color--background) !important;
	padding: 0.25rem 1rem !important;
}

ul.menu li.menu-cta a:is(:hover, :focus) {
	background: var(--wp--preset--color--quintenary);
}

.cic--publications--results--wrapper {
}

.cic--publications--results--wrapper.loading {
	background: #eee;
	filter: blur(5px);
	opacity: 0.5;
}

.cic--publications--results--topic {
	background-color: var(--wp--preset--color--hexanary);
	margin-bottom: var(--wp--style--block-gap);
	padding: 0 0 calc(var(--wp--style--block-gap) / 4) var(--wp--style--block-gap);
}

.cic--publications--results--topic--title {
	display: inline-block;
	font-family: var(--wp--preset--font-family--sans-serif);
	font-size: var(--wp--preset--font-size--medium-plus);
	margin: calc(var(--wp--style--block-gap) / 2) var(--wp--style--block-gap) calc(var(--wp--style--block-gap) / 2) 0;
}

.cic--publications--results--count {
	background: var(--wp--preset--color--primary);
	border-radius: 1.5em;
	color: var(--wp--preset--color--background);
	display: inline-block;
	font-size: var(--wp--preset--font-size--xx-small);
	font-weight: 600;
	height: 1.75em;
	line-height: 1.75em;
	margin-left: 0.5em;
	text-align: center;
	vertical-align: middle;
	width: 1.75em;
}

.cic--publications--results--list {
	display: grid;
	gap: calc(var(--wp--style--block-gap) / 2) var(--wp--style--block-gap);
	grid-template-columns: calc(50% - calc(var(--wp--style--block-gap) / 2)) calc(50% - calc(var(--wp--style--block-gap) / 2));
	list-style: none;
	margin: 0;
	max-height: 33vh;
	overflow-y: auto;
	padding: 0 var(--wp--style--block-gap) var(--wp--style--block-gap) 0;
}
.noscroll .cic--publications--results--list {
	max-height: none;
	overflow: visible;
}
@media screen and (max-width: 640px) {
	.cic--publications--results--list {
		display: block;
		grid-template-columns: initial;
		max-height: 50vh;
	}
}

.cic--publications--results--item {
	background-color: var(--wp--preset--color--background);
	border-radius: 6px;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
	margin-bottom: calc(var(--wp--style--block-gap) / 4);
	padding: calc(var(--wp--style--block-gap) / 2) var(--wp--style--block-gap);
}

.cic--publications--results--item--title {
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--sans-serif);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.cic--publications--results--item--excerpt, .cic--publications--results--item--asset-link {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	margin: 0.25rem 0 0 0;
}

.cic--publications--results--item--description > *:first-child { margin-top: 0 !important; }
.cic--publications--results--item--description > *:last-child { margin-bottom: 0 !important; }

main > *:not(.entry-content):first-child {
	margin-top: var(--wp--preset--spacing--70);
}

#footer > .wp-block-group:not(:last-child) {
	margin-bottom: 0;
}

#footer .wp-block-social-links {
	justify-content: flex-end;
}

#footer .has-x-small-font-size, #footer .has-x-small-font-size * {
	font-weight: 300 !important;
}