:root {
	--csend-brand-brown: #a89d83;
	--csend-brand-brown-dark: #6f634d;
	--csend-brand-brown-soft: #f3f0ea;
	--csend-text-muted: #52635d;
}

/* =========================================================
   1. NAV - CORES POR ITEM
   ========================================================= */

/* estado base */
#nav li a {
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* estado normal: todos os botões com fundo */
#nav li#menu-item-30527 > a {
	background: #6688CC;
	color: #fff;
}

#nav li#menu-item-30531 > a {
	background: #FFBB66;
	color: #fff;
}

#nav li#menu-item-30532 > a {
	background: #85C458;
	color: #fff;
}

#nav li#menu-item-30533 > a {
	background: #829BBF;
	color: #fff;
}

#nav li#menu-item-30534 > a {
	background: #993399;
	color: #fff;
}

/* hover mantém a mesma cor */
#nav li#menu-item-30527:hover > a {
	background: #6688CC;
	color: #fff;
}

#nav li#menu-item-30531:hover > a {
	background: #FFBB66;
	color: #fff;
}

#nav li#menu-item-30532:hover > a {
	background: #85C458;
	color: #fff;
}

#nav li#menu-item-30533:hover > a {
	background: #829BBF;
	color: #fff;
}

#nav li#menu-item-30534:hover > a {
	background: #993399;
	color: #fff;
}

/* item ativo fica sem cor */
#nav li.current-menu-item > a,
#nav li.current_page_item > a,
#nav li.current-menu-parent > a,
#nav li.current_page_parent > a,
#nav li.current-menu-ancestor > a {
	background: transparent !important;
	color: #6b7770 !important;
}

body.csend-programmes-services-child #nav li#menu-item-30527 > a {
	background: transparent !important;
	color: #6b7770 !important;
}

/* ativo não desce nem sobe */
#nav li.current-menu-item,
#nav li.current_page_item,
#nav li.current-menu-parent,
#nav li.current_page_parent,
#nav li.current-menu-ancestor {
	top: 0 !important;
}

/* submenus no hover/focus */
#nav li.menu-item-has-children {
	position: relative;
}

#nav li.menu-item-has-children > a {
	padding-right: 2.1em;
}

#nav li.menu-item-has-children > a::after {
	content: "";
	position: absolute;
	right: 0.85em;
	top: 50%;
	width: 0;
	height: 0;
	margin-top: -0.05em;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}

#nav li > .sub-menu {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1002;
	min-width: 14rem;
	padding: 0.45rem 0;
	margin-top: -1px;
	background: #fff;
	border: 1px solid #e2e7e4;
	border-top: 4px solid #c1cac5;
	box-shadow: 0 0.85rem 1.5rem rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.35rem);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
	text-align: left;
	line-height: 1.35;
}

#nav .sub-menu,
#nav .sub-menu li {
	padding-left: 0;
	margin-left: 0;
}

#nav li:hover > .sub-menu,
#nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#nav .sub-menu li {
	display: block;
	margin: 0;
	top: 0;
	width: 100%;
	transition: none;
}

#nav .sub-menu li:hover {
	top: 0;
}

#nav .sub-menu a {
	top: 0;
	display: block;
	padding: 0.65rem 1rem !important;
	border-radius: 0;
	background: transparent !important;
	color: #6b7770 !important;
	white-space: nowrap;
	font-size: 0.95rem;
	line-height: 1.25;
}

#nav .sub-menu a:hover,
#nav .sub-menu a:focus,
#nav .sub-menu .current-menu-item > a,
#nav .sub-menu .current_page_item > a {
	background: #f2f5f3 !important;
	color: #333 !important;
}

#nav .sub-menu .menu-item-has-children > a::after {
	right: 0.75rem;
	margin-top: -4px;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid currentColor;
	border-right: 0;
}

#nav .sub-menu .sub-menu {
	top: -0.45rem;
	left: 100%;
	margin-top: 0;
}

#nav li#menu-item-30527 > .sub-menu {
	border-top-color: #6688CC;
}

#nav li#menu-item-30531 > .sub-menu {
	border-top-color: #FFBB66;
}

#nav li#menu-item-30532 > .sub-menu {
	border-top-color: #85C458;
}

#nav li#menu-item-30533 > .sub-menu {
	border-top-color: #829BBF;
}

#nav li#menu-item-30534 > .sub-menu {
	border-top-color: #993399;
}

@media screen and (max-width: 980px) {
	#nav li > .sub-menu {
		position: static;
		min-width: 0;
		margin: 0.25rem 0 0 0;
		border-top-width: 1px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	#nav .sub-menu a {
		white-space: normal;
	}
}


/* =========================================================
   2. HEADER / LOGO
   ========================================================= */

#header .logo {
	position: relative;
	text-align: center;
	border-top: solid 5px transparent;
	background-image: linear-gradient(to bottom, var(--csend-brand-brown), #c0bcb6);
	background-size: 100% 5px;
	background-repeat: no-repeat;
	top: 0.65em;
}

.logo img {
	margin-top: -3rem;
}

.csend-logo-link {
	display: inline-block;
	border: 0;
	text-decoration: none;
}

.csend-logo-link:hover,
.csend-logo-link:focus {
	border: 0;
	text-decoration: none;
}

.csend-logo-link img {
	display: block;
}

@media screen and (min-width: 981px) and (max-width: 1280px) {
	#nav li {
		margin-right: 0.25em;
		margin-left: 0.25em;
	}

	#nav li a,
	#nav li span {
		padding-right: 1.05em;
		padding-left: 1.05em;
		font-size: 0.92em;
	}

	#nav li.menu-item-has-children > a {
		padding-right: 1.75em;
	}

	#nav li.menu-item-has-children > a::after {
		right: 0.65em;
	}

	#header {
		padding-top: 3.15em;
		padding-bottom: 0.65em;
	}

	.logo img {
		width: 90px;
		margin-top: -1.45rem;
	}
}

/* =========================================================
   3. BORDAS POR SECÇÃO
   ========================================================= */

.border-about {
	border-top: solid 5px var(--csend-brand-brown);
	border-bottom: solid 5px #c1cac5;
}

.border-know,
.border-resources,
.border-publications,
.border-conferences {
	border-top: solid 5px var(--csend-brand-brown);
	border-bottom: solid 5px #c1cac5;
}

.border-project {
	border-top: solid 5px var(--csend-brand-brown);
	border-bottom: solid 5px #c1cac5;
}

.border-programmes-services,
.border-programmes-services-themes,
.border-programmes-services-policy,
.border-programmes-services-resources {
	border-top: solid 5px var(--csend-brand-brown);
	border-bottom: solid 5px #c1cac5;
}

.border-group {
	border-top: solid 5px var(--csend-brand-brown);
	border-bottom: solid 5px #c1cac5;
}

.border-red {
	border-top: solid 5px var(--csend-brand-brown);
	border-bottom: solid 5px #c1cac5;
}

/* =========================================================
   4. BREADCRUMBS
   ========================================================= */

.breadcrumb,
.rank-math-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	margin-bottom: 1rem;
	list-style: none;
	background-color: #f9f9f9;
	border-radius: .25rem;
}

.breadcrumb {
	color: #343a40;
}

.breadcrumb a,
.breadcrumb a:visited {
	color: var(--csend-brand-brown-dark);
	text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
	color: var(--csend-brand-brown);
	text-decoration: underline;
}

.breadcrumb-item.active {
	color: #bfc3c6;
	text-decoration: none;
}

#breadcrumb-list {
	display: flex;
	flex-wrap: nowrap;
	overflow: hidden;
	white-space: nowrap;
}

#breadcrumb-list li {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

#breadcrumb-list li:not(:last-child) {
	flex-shrink: 0;
}

#breadcrumb-list li:last-child {
	flex-grow: 1;
}

/* =========================================================
   5. MENUS SECUNDÁRIOS
   ========================================================= */

#menu-publications a,
#menu-projects a,
#menu-programmesservices a,
#menu-about a,
#menu-conferences a,
#menu-resources a,
#menu-programmes-services-theme a {
	display: block;
	background-color: #f5f5f5;
	padding: 10px 15px;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	transition: background-color 0.3s ease;
}

#menu-publications a:hover,
#menu-projects a:hover,
#menu-programmesservices a:hover,
#menu-about a:hover,
#menu-conferences a:hover,
#menu-resources a:hover,
#menu-programmes-services-theme a:hover {
	background-color: #e0e0e0;
	color: #000;
}

#menu-programmesservices a.active,
#menu-projects a.active,
#menu-about .current-menu-item > a,
#menu-about .current_page_item > a {
	font-weight: bold;
	color: var(--csend-brand-brown-dark);
}

#menu-about .current-menu-item > a,
#menu-about .current_page_item > a,
#menu-about a.active {
	background: var(--csend-brand-brown-soft);
	border-left: 4px solid var(--csend-brand-brown);
	color: var(--csend-text-muted);
	font-weight: 700;
	padding-left: 11px;
}

#menu-about .current-menu-item > a:hover,
#menu-about .current_page_item > a:hover,
#menu-about a.active:hover {
	background: #f2eadf;
	color: #4f5d57;
}

#menu-programmes-services-theme .current-menu-item > a,
#menu-programmes-services-theme .current_page_item > a,
#menu-programmes-services-theme a.active {
	background: var(--csend-brand-brown-soft);
	border-left: 4px solid var(--csend-brand-brown);
	color: var(--csend-text-muted);
	font-weight: 700;
	padding-left: 11px;
}

#menu-programmes-services-theme .current-menu-item > a:hover,
#menu-programmes-services-theme .current_page_item > a:hover,
#menu-programmes-services-theme a.active:hover {
	background: #f2eadf;
	color: #45554f;
}

#menu-projects .current-menu-item > a,
#menu-projects .current_page_item > a,
#menu-projects a.active {
	background: var(--csend-brand-brown-soft);
	border-left: 4px solid var(--csend-brand-brown);
	color: var(--csend-text-muted);
	font-weight: 700;
	padding-left: 11px;
}

#menu-projects .current-menu-item > a:hover,
#menu-projects .current_page_item > a:hover,
#menu-projects a.active:hover {
	background: #f2eadf;
	color: #45554f;
}

/* =========================================================
   6. META / ELEMENTOS GERAIS
   ========================================================= */

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.meta > div {
	margin-bottom: 5px;
}

.start-page {
	padding-top: 0;
}

.custom-height {
	height: auto !important;
}

@media (min-width: 768px) {
	.custom-height {
		height: 7rem !important;
	}
}

/* =========================================================
   7. SIDEBAR / RESOURCES
   ========================================================= */

.sidebar section {
	margin-bottom: 0;
}

#filterForm .form-control {
	background-color: #f8f9fa;
}

#filterForm {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

#filterForm .row,
#filterForm .row.mt-3,
#filterForm .row.mt-5 {
	margin-top: 0 !important;
	margin-bottom: 0;
}

#filterForm .form-control,
#filterForm .form-control.mb-3,
#filterForm .ts-wrapper {
	margin-bottom: 0 !important;
}

#filterForm .form-control,
#filterForm .ts-control {
	border-color: #d8dfdb;
	background-color: #fff !important;
	color: #52635d;
}

#filterForm .form-control:focus,
#filterForm .ts-wrapper.focus .ts-control {
	border-color: var(--csend-brand-brown);
	box-shadow: 0 0 0 0.12rem rgba(158, 49, 0, 0.12);
}

#filterForm .btn-primary {
	background: var(--csend-brand-brown-dark);
	border-color: var(--csend-brand-brown-dark);
	color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#filterForm .btn-primary:hover,
#filterForm .btn-primary:focus {
	background: #5f543f;
	border-color: #5f543f;
	color: #fff;
}

#filterForm .btn-secondary {
	background: #e8ede9;
	border-color: #d7dfda;
	color: #5d6964;
}

#filterForm .btn-secondary:hover,
#filterForm .btn-secondary:focus {
	background: #dde5df;
	border-color: #cbd5ce;
	color: #3f4945;
}

.border-project .box.page-content article header h3 a,
.border-project .box.page-content article header h3 a:visited,
.border-pagination #post-content .content-with-image a,
.border-publications #post-content .content-with-image a,
.border-conferences #post-content .content-with-image a,
.border-resources #post-content .content-with-image a {
	color: var(--csend-brand-brown-dark);
	text-decoration: none;
}

.border-project .box.page-content article header h3 a:hover,
.border-project .box.page-content article header h3 a:focus,
.border-pagination #post-content .content-with-image a:hover,
.border-publications #post-content .content-with-image a:hover,
.border-conferences #post-content .content-with-image a:hover,
.border-resources #post-content .content-with-image a:hover {
	color: #5f543f;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.border-pagination #post-content .content-with-image p,
.border-publications #post-content .content-with-image p,
.border-conferences #post-content .content-with-image p,
.border-resources #post-content .content-with-image p {
	color: inherit;
	line-height: 1.65;
}

.border-project .box.page-content > div > h3,
.border-pagination #post-content article header h3 a,
.border-publications #post-content article header h3 a,
.border-conferences #post-content article header h3 a,
.border-resources #post-content article header h3 a {
	color: var(--csend-text-muted);
	text-decoration: none;
	transition: color 0.16s ease;
}

.border-pagination #post-content article header h3 a:hover,
.border-pagination #post-content article header h3 a:focus,
.border-publications #post-content article header h3 a:hover,
.border-publications #post-content article header h3 a:focus,
.border-conferences #post-content article header h3 a:hover,
.border-conferences #post-content article header h3 a:focus,
.border-resources #post-content article header h3 a:hover,
.border-resources #post-content article header h3 a:focus {
	color: var(--csend-brand-brown);
	text-decoration: none;
}

.border-pagination #post-content article > div a,
.border-pagination #post-content article > div a:visited,
.border-pagination #post-content article > div a p {
	color: var(--csend-brand-brown-dark);
	text-decoration: none;
}

.border-pagination #post-content article > div a:hover,
.border-pagination #post-content article > div a:focus {
	color: #5f543f;
	text-decoration: none;
}

.border-programmes-services-policy #post-content .content-with-image a,
.border-programmes-services-resources #post-content .content-with-image a {
	color: var(--csend-brand-brown-dark);
	text-decoration: none;
}

.border-programmes-services-policy #post-content .content-with-image a:hover,
.border-programmes-services-resources #post-content .content-with-image a:hover {
	color: var(--csend-brand-brown);
}

.border-programmes-services-policy #post-content .content-with-image p,
.border-programmes-services-resources #post-content .content-with-image p {
	color: inherit;
	line-height: 1.65;
}

.border-programmes-services-policy #post-content article header h3 a,
.border-programmes-services-resources #post-content article header h3 a {
	color: var(--csend-text-muted);
	text-decoration: none;
	transition: color 0.16s ease;
}

.border-programmes-services-policy #post-content article header h3 a:hover,
.border-programmes-services-policy #post-content article header h3 a:focus,
.border-programmes-services-resources #post-content article header h3 a:hover,
.border-programmes-services-resources #post-content article header h3 a:focus {
	color: var(--csend-brand-brown);
	text-decoration: none;
}

.border-programmes-services-policy #filterForm .btn-primary,
.border-programmes-services-resources #filterForm .btn-primary {
	background: var(--csend-brand-brown-dark) !important;
	border-color: var(--csend-brand-brown-dark) !important;
	color: #fff !important;
}

.border-programmes-services-policy #filterForm .btn-primary:hover,
.border-programmes-services-policy #filterForm .btn-primary:focus,
.border-programmes-services-resources #filterForm .btn-primary:hover,
.border-programmes-services-resources #filterForm .btn-primary:focus {
	background: #5f543f !important;
	border-color: #5f543f !important;
	color: #fff !important;
}

.border-programmes-services-policy #filterForm .form-control:focus,
.border-programmes-services-policy #filterForm .ts-wrapper.focus .ts-control,
.border-programmes-services-resources #filterForm .form-control:focus,
.border-programmes-services-resources #filterForm .ts-wrapper.focus .ts-control {
	border-color: var(--csend-brand-brown);
	box-shadow: 0 0 0 0.12rem rgba(158, 49, 0, 0.12);
}

.border-pagination .page-content a,
.border-pagination .page-content a:visited,
.border-publications .page-content a,
.border-publications .page-content a:visited,
.border-conferences .page-content a,
.border-conferences .page-content a:visited,
.border-resources .page-content a,
.border-resources .page-content a:visited,
.border-project .page-content a,
.border-project .page-content a:visited,
.border-programmes-services-resources .page-content a,
.border-programmes-services-resources .page-content a:visited,
.border-programmes-services-policy .page-content a,
.border-programmes-services-policy .page-content a:visited,
.box.post-summary h3 a,
.box.post-summary h3 a:visited,
.sidebar .divided a,
.sidebar .divided a:visited {
	color: var(--csend-brand-brown-dark);
	text-decoration: none;
	text-underline-offset: 0.16em;
	transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.border-pagination .page-content a:hover,
.border-pagination .page-content a:focus,
.border-publications .page-content a:hover,
.border-publications .page-content a:focus,
.border-conferences .page-content a:hover,
.border-conferences .page-content a:focus,
.border-resources .page-content a:hover,
.border-resources .page-content a:focus,
.border-project .page-content a:hover,
.border-project .page-content a:focus,
.border-programmes-services-resources .page-content a:hover,
.border-programmes-services-resources .page-content a:focus,
.border-programmes-services-policy .page-content a:hover,
.border-programmes-services-policy .page-content a:focus,
.box.post-summary h3 a:hover,
.box.post-summary h3 a:focus,
.sidebar .divided a:hover,
.sidebar .divided a:focus {
	color: #5f543f;
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.border-project .box.page-content article header h3 a,
.border-project .box.page-content article header h3 a:visited,
.border-project .box.page-content article header h3 a:hover,
.border-project .box.page-content article header h3 a:focus,
.border-pagination #post-content article header h3 a,
.border-pagination #post-content article header h3 a:visited,
.border-pagination #post-content article header h3 a:hover,
.border-pagination #post-content article header h3 a:focus,
.border-publications #post-content article header h3 a,
.border-publications #post-content article header h3 a:visited,
.border-publications #post-content article header h3 a:hover,
.border-publications #post-content article header h3 a:focus,
.border-conferences #post-content article header h3 a,
.border-conferences #post-content article header h3 a:visited,
.border-conferences #post-content article header h3 a:hover,
.border-conferences #post-content article header h3 a:focus,
.border-resources #post-content article header h3 a,
.border-resources #post-content article header h3 a:visited,
.border-resources #post-content article header h3 a:hover,
.border-resources #post-content article header h3 a:focus,
.border-programmes-services-policy #post-content article header h3 a,
.border-programmes-services-policy #post-content article header h3 a:visited,
.border-programmes-services-policy #post-content article header h3 a:hover,
.border-programmes-services-policy #post-content article header h3 a:focus,
.border-programmes-services-resources #post-content article header h3 a,
.border-programmes-services-resources #post-content article header h3 a:visited,
.border-programmes-services-resources #post-content article header h3 a:hover,
.border-programmes-services-resources #post-content article header h3 a:focus {
	color: var(--csend-text-muted);
	text-decoration: none;
}

.resource-introduction {
	margin-bottom: 2rem;
}

.selected-category-content {
	margin-bottom: 2rem;
}

.selected-category-content h3 {
	margin-bottom: 0.5rem;
}

#main .row {
    padding-bottom: 3em;
} 

@media (max-width: 768px) {
    #main {
        padding-bottom: 1.5em;
    }
}

/* =========================================================
   8. LISTAS DIVIDIDAS
   ========================================================= */

ul.divided {
	list-style: none;
	padding-left: 0;
}

ul.divided > li {
	padding-top: 0;
	margin-top: 0.1em;
	padding-left: 0;
}

ul.divided > li:first-child {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}

/* =========================================================
   9. COOKIES
   ========================================================= */

.in-modal {
	overflow: hidden;
}

.in-modal .cookies-wrapper {
	overflow: auto;
}

.cookies-wrapper {
	display: none;
	padding: 30px;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background-color: rgba(0, 0, 0, 0.6);
	font-size: 0.875rem;
}

.cookies-wrapper * {
	box-sizing: border-box;
}

.cookies-wrapper button {
	margin-bottom: 10px;
}

.cookies-box {
	max-width: 600px;
	padding: 15px 15px 30px 15px;
	position: relative;
	margin: 0 auto;
	border-radius: 4px;
	background-color: white;
}

.cookies__title {
	display: block;
	width: 100%;
	margin-bottom: 30px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-size: 24px;
	font-weight: bold;
	line-height: 30px;
}

.cookies-bar-message {
	display: block;
	float: left;
	margin-bottom: 30px;
	color: #666a6d;
	font-size: 1em;
	line-height: 20px;
}

.cookies-settings {
	display: none;
}

.cookie-info {
	display: block;
	padding-left: 1.875rem;
	line-height: 16px;
}

.cookies-policy-link {
	padding: 0 15px;
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 0 0 4px 4px;
	background-color: #eee;
	text-align: center;
}

.cookies-bar-know-more {
	color: #9a9a9a;
	font-size: 0.85em;
	line-height: 30px;
	transition: color 0.2s ease;
}

.cookies-bar-know-more:hover {
	color: #f2a3b0;
}

.cookies-message p {
	display: none;
}

.cookies-message b {
	display: block;
	margin-bottom: 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================================
   10. TOM SELECT
   ========================================================= */

.ts-wrapper {
	width: 100%;
}

.ts-wrapper.multi .ts-control,
.ts-control {
	min-height: 44px;
	padding: 6px 8px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
}

.ts-wrapper.focus .ts-control {
	border-color: var(--csend-brand-brown);
	box-shadow: 0 0 0 0.1rem rgba(158, 49, 0, 0.12);
}

.ts-control > input {
	min-width: 120px !important;
	font-size: 1rem;
}

.ts-wrapper.multi .ts-control > div {
	background: #f3f3f3;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	padding: 2px 8px;
	margin: 2px 4px 2px 0;
	color: #444;
}

.ts-wrapper.plugin-remove_button .item .remove {
	border-left: 1px solid rgba(0, 0, 0, 0.08);
	color: #666;
}

.ts-wrapper.plugin-remove_button .item .remove:hover {
	background: transparent;
	color: var(--csend-brand-brown);
}

.ts-dropdown {
	border: 1px solid #ced4da;
	border-radius: 4px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	background: #fff;
	margin-top: 4px;
}

.ts-dropdown .option,
.ts-dropdown .active {
	padding: 8px 12px;
}

.ts-dropdown .option:hover,
.ts-dropdown .option:focus,
.ts-dropdown .active,
.ts-dropdown .active.create,
.ts-dropdown [data-selectable].active,
.ts-dropdown [data-selectable]:hover {
	background-color: var(--csend-brand-brown-soft);
	color: var(--csend-brand-brown-dark);
}

.ts-dropdown .selected,
.ts-dropdown .selected.active {
	background-color: #ece6db;
	color: #5f543f;
}

.ts-dropdown .create {
	padding: 8px 12px;
}

#filterForm .ts-wrapper {
	margin-bottom: 0 !important;
}

/* =========================================================
   11. RESPONSIVO
   ========================================================= */

@media (min-width: 576px) {
	.cookies-box {
		padding: 30px 30px 60px 30px;
	}

	.cookies-settings-link,
	.cookies-settings-cancel {
		text-align: right;
	}

	.cookies-policy-link {
		padding: 0 45px;
	}
}

@media (max-width: 767px) {
	.cookies-wrapper button {
		display: block;
		width: 100%;
	}

	.cookies-bar-message {
		height: auto;
	}

	.cookies-bar-know-more {
		padding-left: 0;
	}
}

@media (max-width: 767.98px) {
	.custom-height {
		height: auto !important;
	}
}

/* =========================================================
   12. HEADER TOP
   ========================================================= */

.csend-header-top {
	width: 100%;
	background: #fff;
	padding: 0.75rem 0;
	text-align: center;
}

.csend-header-top > * {
	width: 64em;
	max-width: 100%;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.csend-header-top .wp-block-group {
	margin-bottom: 0;
}

.csend-header-top p,
.csend-header-top h1,
.csend-header-top h2,
.csend-header-top h3,
.csend-header-top h4,
.csend-header-top h5,
.csend-header-top h6 {
	margin-bottom: 0;
}

@media screen and (max-width: 1680px) {
	.csend-header-top > * {
		width: 75em;
	}
}

@media screen and (max-width: 1280px) {
	.csend-header-top > * {
		width: calc(100% - 100px);
	}
}

@media screen and (max-width: 736px) {
	.csend-header-top > * {
		width: calc(100% - 40px);
	}
}

@media screen and (max-width: 360px) {
	.csend-header-top > * {
		width: calc(100% - 30px);
	}
}



body {
	padding-top: 0;
}

#nav {
	position: sticky;
	top: 0;
}

.csend-mobile-nav {
	display: none;
}



/* =========================================================
   13. HEADER TOP SEARCH - REAL FIX
   ========================================================= */

body {
	padding-top: 0;
}

#nav {
	position: sticky;
	top: 0;
}

.csend-header-top,
.csend-header-top-inner {
	width: 100%;
	background: #f7f8f7;
	padding: 0.75rem 0 0.95rem;
	text-align: center;
	border-bottom: 1px solid #e4e9e5;
}

.csend-header-top .wp-block-columns,
.csend-header-top-inner .wp-block-columns {
	width: min(75em, calc(100% - 100px));
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 0;
	align-items: center;
	gap: 1.25rem;
}

.csend-header-top .wp-block-column,
.csend-header-top-inner .wp-block-column {
	min-width: 0;
}

.csend-header-top p,
.csend-header-top-inner p {
	margin: 0;
	line-height: 1.3;
	color: #6b7770;
}

/* form */
.csend-header-top form.wp-block-search,
.csend-header-top-inner form.wp-block-search {
	margin: 0 !important;
	width: min(100%, 300px);
	margin-left: auto !important;
}

/* wrapper interno */
.csend-header-top form.wp-block-search .wp-block-search__inside-wrapper,
.csend-header-top-inner form.wp-block-search .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	width: 100% !important;
	min-height: 32px;
	background: #fff;
	border: 1px solid #d9dfdc;
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	padding: 0;
}

/* input */
.csend-header-top form.wp-block-search input.wp-block-search__input,
.csend-header-top-inner form.wp-block-search input.wp-block-search__input {
	height: 32px;
	min-height: 32px;
	background: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 10px !important;
	font-size: 0.84rem !important;
	line-height: 32px !important;
	color: #6b7770;
}

/* botão */
.csend-header-top form.wp-block-search button.wp-block-search__button,
.csend-header-top-inner form.wp-block-search button.wp-block-search__button {
	height: 32px;
	min-height: 32px;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-left: 1px solid #d7ddda !important;
	border-radius: 0 !important;
	background: #edf1ee !important;
	color: #6b7770 !important;
	box-shadow: none !important;
	font-size: 0.82rem !important;
	line-height: 32px !important;
	font-family: 'Open Sans', sans-serif !important;
	font-weight: 600 !important;
	text-transform: none !important;
}

.csend-header-top form.wp-block-search button.wp-block-search__button:hover,
.csend-header-top-inner form.wp-block-search button.wp-block-search__button:hover {
	background: #dfe4e0 !important;
	color: #5e6862 !important;
}

.csend-header-top form.wp-block-search input.wp-block-search__input:focus,
.csend-header-top form.wp-block-search button.wp-block-search__button:focus,
.csend-header-top-inner form.wp-block-search input.wp-block-search__input:focus,
.csend-header-top-inner form.wp-block-search button.wp-block-search__button:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* mobile */
@media screen and (max-width: 980px) {
	.csend-header-top,
	.csend-header-top-inner {
		display: none;
	}

	.csend-mobile-nav {
		display: block;
		position: sticky;
		top: 0;
		z-index: 10000;
		background: rgba(255, 255, 255, 0.96);
		border-bottom: 1px solid #dfe5e1;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	}

	.csend-mobile-nav-bar {
		position: relative;
		display: flex;
		align-items: center;
		min-height: 72px;
		padding: 0.5rem 20px;
	}

	.csend-mobile-nav-bar::before {
		content: "";
		position: absolute;
		top: 50%;
		right: 20px;
		left: 84px;
		height: 4px;
		background: linear-gradient(to bottom, var(--csend-brand-brown), #c0bcb6);
		transform: translateY(-50%);
	}

	.csend-mobile-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: relative;
		z-index: 2;
		flex: 0 0 auto;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 1px solid #d8dfdb;
		border-radius: 6px;
		background: #fff;
		box-shadow: none;
	}

	.csend-mobile-logo-link {
		position: absolute;
		top: 50%;
		left: 50%;
		z-index: 2;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0 0.8rem;
		background: #fff;
		border: 0;
		text-decoration: none;
		transform: translate(-50%, -50%);
	}

	.csend-mobile-logo-link:hover,
	.csend-mobile-logo-link:focus {
		border: 0;
		text-decoration: none;
	}

	.csend-mobile-logo-link img {
		display: block;
		width: 58px;
		height: auto;
	}

	.csend-mobile-menu-icon,
	.csend-mobile-menu-icon::before,
	.csend-mobile-menu-icon::after {
		display: block;
		width: 18px;
		height: 2px;
		background: #5f6d67;
		border-radius: 2px;
		content: "";
	}

	.csend-mobile-menu-icon {
		position: relative;
	}

	.csend-mobile-menu-icon::before,
	.csend-mobile-menu-icon::after {
		position: absolute;
		left: 0;
	}

	.csend-mobile-menu-icon::before {
		top: -6px;
	}

	.csend-mobile-menu-icon::after {
		top: 6px;
	}

	.csend-mobile-menu-panel {
		display: none;
		padding: 0 20px 1rem;
	}

	.csend-mobile-nav.is-open .csend-mobile-menu-panel {
		display: block;
		background: var(--csend-brand-brown);
		border-top: 1px solid rgba(255, 255, 255, 0.32);
	}

	.csend-mobile-menu,
	.csend-mobile-menu .sub-menu {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.csend-mobile-menu-search {
		display: flex;
		width: 100%;
		margin: 0.25rem 0 0.85rem;
		border: 1px solid rgba(255, 255, 255, 0.42);
		border-radius: 6px;
		background: #fff;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
		overflow: hidden;
	}

	.csend-mobile-menu-search input[type="search"] {
		flex: 1 1 auto;
		min-width: 0;
		height: 36px;
		padding: 0 10px;
		border: 0;
		border-radius: 0;
		background: #fff;
		color: #5f6d67;
		font-size: 0.95rem;
		line-height: 36px;
		box-shadow: none;
	}

	.csend-mobile-menu-search button {
		flex: 0 0 auto;
		width: auto;
		min-width: 74px;
		height: 36px;
		margin: 0;
		padding: 0 12px;
		border: 0;
		border-left: 1px solid #d7ddda;
		border-radius: 0;
		background: #edf1ee;
		color: #5f6d67;
		font-family: 'Open Sans', sans-serif;
		font-size: 0.82rem;
		font-weight: 600;
		line-height: 36px;
		text-transform: none;
		box-shadow: none;
	}

	.csend-mobile-menu-search input[type="search"]:focus,
	.csend-mobile-menu-search button:focus {
		outline: none;
		box-shadow: none;
	}

	.csend-mobile-menu-search button:hover,
	.csend-mobile-menu-search button:focus {
		background: #dfe4e0;
		color: #5e6862;
	}

	.csend-mobile-menu a {
		display: block;
		padding: 0.72rem 0;
		border-top: 1px solid rgba(255, 255, 255, 0.28);
		color: #fff;
		text-decoration: none;
		font-family: 'Open Sans Condensed', sans-serif;
		font-weight: 700;
		text-transform: uppercase;
	}

	.csend-mobile-menu a:hover,
	.csend-mobile-menu a:focus {
		color: #fff;
		background: rgba(255, 255, 255, 0.08);
	}

	.csend-mobile-menu .sub-menu a {
		padding-left: 1rem;
		font-size: 0.95rem;
		color: rgba(255, 255, 255, 0.88);
		text-transform: none;
	}

	.csend-header-top .wp-block-columns,
	.csend-header-top-inner .wp-block-columns {
		width: calc(100% - 40px);
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.csend-header-top .wp-block-column,
	.csend-header-top-inner .wp-block-column {
		width: 100% !important;
		flex-basis: 100% !important;
	}

	.csend-header-top form.wp-block-search .wp-block-search__inside-wrapper,
	.csend-header-top-inner form.wp-block-search .wp-block-search__inside-wrapper {
		width: 100% !important;
	}

	.csend-header-top form.wp-block-search,
	.csend-header-top-inner form.wp-block-search {
		width: 100%;
		margin-left: 0 !important;
	}

	.csend-header-top form.wp-block-search input.wp-block-search__input,
	.csend-header-top-inner form.wp-block-search input.wp-block-search__input {
		flex: 1 1 auto;
		min-width: 0;
	}

	.csend-header-top form.wp-block-search button.wp-block-search__button,
	.csend-header-top-inner form.wp-block-search button.wp-block-search__button {
		flex: 0 0 auto;
		width: auto !important;
		min-width: 74px;
		padding-right: 10px !important;
		padding-left: 10px !important;
	}
}

@media screen and (max-width: 736px) {
	.csend-header-top,
	.csend-header-top-inner {
		padding: 0.5rem 0;
	}

	.csend-header-top form.wp-block-search .wp-block-search__inside-wrapper,
	.csend-header-top form.wp-block-search input.wp-block-search__input,
	.csend-header-top form.wp-block-search button.wp-block-search__button,
	.csend-header-top-inner form.wp-block-search .wp-block-search__inside-wrapper,
	.csend-header-top-inner form.wp-block-search input.wp-block-search__input,
	.csend-header-top-inner form.wp-block-search button.wp-block-search__button {
		height: 30px;
		min-height: 30px;
		line-height: 30px !important;
	}
}


/* =========================================================
   14. Buttom back
   ========================================================= */

.btn-back-publications,
.btn-back-publications:visited {
	display: block;
	text-align: center;
	padding: 10px 14px;
	margin-top: 12px; /* espaço dos authors */
	font-size: 14px;
	font-weight: 500;
	color: var(--csend-brand-brown-dark);
	background: var(--csend-brand-brown-soft);
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	margin-top: 3em;
}

.btn-back-publications:hover,
.btn-back-publications:focus {
	color: #5f543f;
	background: #ece6db;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* =========================================================
   15. Pagination
   ========================================================= */

 .page-numbers {
	display: inline-block;
	margin: 0 4px;
	padding: 6px 12px;
	border-radius: 6px;
	background: #f3f3f3;
	color: #6b7770;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	transition: all 0.2s ease;
}

.page-numbers:hover {
	background: #e0e0e0;
	color: #000;
}

/* =========================================================
   CORES DINÂMICAS POR SECÇÃO
   ========================================================= */

.border-publications .page-numbers.current,
.border-conferences .page-numbers.current,
.border-resources .page-numbers.current {
	background: var(--csend-brand-brown-dark);
	color: #fff;
}

.border-project .page-numbers.current {
	background: var(--csend-brand-brown-dark);
	color: #fff;
}

.border-programmes-services-policy .page-numbers.current,
.border-programmes-services-resources .page-numbers.current {
	background: var(--csend-brand-brown-dark);
	color: #fff;
}

/* =========================================================
   NEXT / PREV (herdam cor também)
   ========================================================= */

.border-publications .page-numbers.next,
.border-publications .page-numbers.prev,
.border-conferences .page-numbers.next,
.border-conferences .page-numbers.prev,
.border-resources .page-numbers.next,
.border-resources .page-numbers.prev {
	color: var(--csend-brand-brown-dark);
}

.border-project .page-numbers.next,
.border-project .page-numbers.prev {
	color: var(--csend-brand-brown-dark);
}

.border-programmes-services-policy .page-numbers.next,
.border-programmes-services-policy .page-numbers.prev,
.border-programmes-services-resources .page-numbers.next,
.border-programmes-services-resources .page-numbers.prev {
	color: var(--csend-brand-brown-dark);
}

/* hover */
.page-numbers.next:hover,
.page-numbers.prev:hover {
	text-decoration: underline;
	background: transparent;
}

/* container */
.nav-links {
	text-align: center;
	margin-top: 2rem;
}

.border-pagination .nav-links a,
.border-pagination .nav-links a:visited {
	color: var(--csend-brand-brown-dark);
	text-decoration: none;
}

.border-pagination .nav-links a:hover,
.border-pagination .nav-links a:focus {
	color: #5f543f;
	text-decoration: underline;
}

/* =========================================================
   TITULOS DOS SINGLES
   ========================================================= */

.single .box.page-content h2,
.single .box.page-content h2 a {
	font-size: 2.0rem;
	line-height: 1.2;
	margin-bottom: 1rem;
	word-break: break-word;
}

@media (max-width: 980px) {
	.single .box.page-content h2,
	.single .box.page-content h2 a {
		font-size: 1.8rem;
		line-height: 1.25;
	}
}

@media (max-width: 736px) {
	.single .box.page-content h2,
	.single .box.page-content h2 a {
		font-size: 1.5rem;
		line-height: 1.3;
	}
}

/* =========================================================
   404 - TITLE
   ========================================================= */

.error-404 h2 {
	font-size: 1.8rem !important;
	line-height: 1.2;
	margin-bottom: 1rem;
}

/* =========================================================
   404 - BUTTON
   ========================================================= */

.error-404 .btn-primary {
	background: #e9ecef;
	color: #6b7770;
	border: 1px solid #d7ddda;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	font-weight: 500;
}

.error-404 .btn-primary:hover {
	background: #dee2e6;
	color: #495057;
	border-color: #cfd4da;
	box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* =========================================================
   FOOTER
   ========================================================= */

#footer.csend-site-footer {
	padding: 0;
	background: #eef2ef;
	border-top: 0;
	text-align: left;
	position: relative;
}

#footer.csend-site-footer::before {
	content: "";
	display: block;
	height: 6px;
	background: linear-gradient(
		90deg,
		#6688CC 0%,
		#6688CC 20%,
		#FFBB66 20%,
		#FFBB66 40%,
		#85C458 40%,
		#85C458 60%,
		#829BBF 60%,
		#829BBF 80%,
		#993399 80%,
		#993399 100%
	);
}

.csend-footer-inner {
	width: 75em;
	max-width: calc(100% - 100px);
	margin-right: auto;
	margin-left: auto;
	padding-top: 3rem;
	padding-bottom: 2rem;
}

.csend-footer-grid {
	gap: 2rem;
	margin-bottom: 0;
	justify-content: space-between;
}

.csend-footer-brand h2,
.csend-footer-links h3,
.csend-footer-contact h3 {
	margin-bottom: 0.85rem;
	color: #5f6d67;
	line-height: 1.15;
}

.csend-footer-brand h2 {
	font-size: 2.1rem;
	letter-spacing: 0;
	color: #993399;
}

.csend-footer-brand p,
.csend-footer-contact p,
.csend-footer-bottom p {
	margin: 0;
	color: #66736e;
	line-height: 1.65;
}

.csend-footer-brand p {
	max-width: 28rem;
}

.csend-footer-links ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.csend-footer-links,
.csend-footer-contact {
	padding-top: 0.25rem;
}

.csend-footer-links li {
	margin-bottom: 0.45rem;
	padding-left: 0;
}

.csend-footer-links a,
.csend-footer-bottom a {
	color: #52635d;
	text-decoration: none;
}

.csend-footer-links a:hover,
.csend-footer-links a:focus,
.csend-footer-bottom a:hover,
.csend-footer-bottom a:focus {
	color: #993399;
	text-decoration: underline;
}

.csend-footer-social {
	gap: 0.55rem;
	margin-top: 1rem;
}

.csend-footer-social .wp-social-link {
	background: #dfe6e1;
	color: #5f6d67;
}

.csend-footer-social .wp-social-link:hover {
	background: #993399;
	color: #fff;
	transform: translateY(-1px);
}

.csend-footer-bottom {
	margin-top: 2.25rem;
	padding-top: 1.1rem;
	border-top: 1px solid #d7ded9;
	font-size: 0.88rem;
}

.csend-footer-bottom span {
	padding: 0 0.45rem;
	color: #9aa49f;
}

@media screen and (max-width: 980px) {
	.csend-footer-inner {
		max-width: calc(100% - 40px);
		padding-top: 2.25rem;
	}

	.csend-footer-grid {
		gap: 1.5rem;
	}
}

@media screen and (max-width: 736px) {
	.csend-footer-inner {
		padding-top: 2rem;
		padding-bottom: 1.5rem;
	}

	.csend-footer-bottom {
		gap: 0.45rem;
	}
}
