.wd-directory { max-width: 1200px; margin: 0 auto; font-size: 16px; }
.wd-directory * { box-sizing: border-box; }

.wd-filters {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #E5E7EB;
}
.wd-filters input[type="text"] {
	flex: 2 1 260px !important;
	width: auto !important;
	height: 46px !important;
	padding: 0 16px !important;
	border: 1px solid #D1D5DB !important;
	border-radius: 6px !important;
	font-size: 15px !important;
	margin: 0 !important;
}
.wd-filters select {
	flex: 1 1 170px !important;
	width: auto !important;
	height: 46px !important;
	padding: 0 12px !important;
	border: 1px solid #D1D5DB !important;
	border-radius: 6px !important;
	font-size: 15px !important;
	margin: 0 !important;
}
.wd-filters .wd-btn {
	flex: 0 0 auto !important;
	width: auto !important;
	height: 46px !important;
	margin: 0 !important;
}
.wd-btn {
	background: #D63A3A;
	color: #FFFFFF !important;
	border: none;
	padding: 0 26px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wd-clear {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #6B7280;
	text-decoration: underline;
}
.wd-count { font-size: 15px; color: #6B7280; margin: 0 0 20px; }

/* Institution grid - fixed 3 columns, bigger cards */
.wd-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 900px) {
	.wd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.wd-grid { grid-template-columns: 1fr; }
}
.wd-card {
	display: block;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 26px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.wd-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.10); transform: translateY(-2px); }
.wd-logo { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; margin-bottom: 16px; background: #EAF0FB; display: flex; align-items: center; justify-content: center; }
.wd-logo img { width: 100%; height: 100%; object-fit: contain; }
.wd-logo-placeholder { background: #EAF0FB; }
.wd-card-title { font-size: 19px; font-weight: 700; color: #1A2740; margin: 0 0 6px; line-height: 1.35; }
.wd-card-sub { font-size: 15px; color: #6B7280; margin: 0 0 14px; }

.wd-badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	border-radius: 999px;
	padding: 6px 14px;
}
.wd-badge-coordinator { background: #FBEAEA; color: #B23030; }
.wd-badge-partner { background: #EAF0FB; color: #33508C; }
.wd-badge-beneficiary { background: #EAF6EE; color: #2E7D4F; }
.wd-badge-subtheme { background: #FBEAEA; color: #B23030; margin-right: 8px; }
.wd-badge-year { background: #F5F6F8; color: #6B7280; }

.wd-load-more-wrap { text-align: center; margin-top: 32px; }
.wd-load-more { background: #FFFFFF; color: #D63A3A !important; border: 1.5px solid #D63A3A; padding: 0 30px; height: 46px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wd-load-more:hover { background: #FBEAEA; }
.wd-hidden { display: none !important; }

/* Publications list */
.wd-list { display: flex; flex-direction: column; gap: 16px; }
.wd-pub-card { border: 1px solid #E5E7EB; border-radius: 12px; padding: 24px; }
.wd-pub-tags { margin-bottom: 12px; }
.wd-pub-title { font-size: 19px; font-weight: 700; color: #1A2740; margin: 0 0 8px; line-height: 1.4; }
.wd-pub-meta { font-size: 15px; color: #6B7280; margin: 0 0 10px; }
.wd-pub-link { font-size: 14px; color: #D63A3A; font-weight: 600; text-decoration: none; }
.wd-pub-link:hover { text-decoration: underline; }

/* Forms (registration, submission) */
.wd-form { max-width: 680px; font-size: 16px; }
.wd-form p { margin-bottom: 20px; }
.wd-form label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.wd-form input[type="text"],
.wd-form input[type="email"],
.wd-form input[type="password"],
.wd-form input[type="url"],
.wd-form select,
.wd-form textarea {
	width: 100% !important;
	padding: 12px 14px !important;
	border: 1px solid #D1D5DB !important;
	border-radius: 6px !important;
	font-size: 16px !important;
	box-sizing: border-box;
}
.wd-form textarea { resize: vertical; }

/* Native WordPress login form submit button (wp_login_form) - override theme's default yellow */
.wd-form input[type="submit"],
.wd-form button[type="submit"],
.wd-form .wp-block-button__link {
	background: #D63A3A !important;
	color: #FFFFFF !important;
	border: none !important;
	padding: 0 26px !important;
	height: 46px !important;
	border-radius: 6px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
}
.wd-form input[type="submit"]:hover,
.wd-form button[type="submit"]:hover {
	background: #B93030 !important;
}
.wd-form h4 { margin-top: 34px; margin-bottom: 16px; border-bottom: 2px solid #33508C; padding-bottom: 8px; color: #1A2740; font-size: 19px; }
h4 { color: #1A2740; }

.wd-notice { padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-size: 15px; }
.wd-success { background: #EAF6EE; border: 1px solid #2E7D4F; color: #1E5E38; }
.wd-error { background: #FBEAEA; border: 1px solid #D63A3A; color: #A32A20; }
.wd-error ul { margin: 0; padding-left: 20px; }

/* Submissions table */
.wd-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.wd-table th, .wd-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #E5E7EB; }
.wd-table th { background: #F5F6F8; }
