/**
 * Research CRM skin: Corbel, Radboudumc blue, a wider canvas and the sticky
 * header bar. Loaded after crm-style-snippet.css, which is a straight copy of
 * the Winstdelen CRM stylesheet and stays untouched so it can be resynced.
 */

@font-face {
	font-family: 'Corbel';
	src: url('fonts/Corbel.woff2') format('woff2'), url('fonts/Corbel.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Corbel';
	src: url('fonts/Corbel-Bold.woff2') format('woff2'), url('fonts/Corbel-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Corbel';
	src: url('fonts/Corbel-Italic.woff2') format('woff2'), url('fonts/Corbel-Italic.woff') format('woff');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--gl-crm-blue: #006991;
	--gl-crm-blue-dark: #00516f;
	--gl-crm-cyan: #00afdc;
	--gl-crm-font: 'Corbel', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* The CRM renders its own document (templates/crm-page.php), so there are no
   theme wrappers left to fight: the bars are plain blocks on the body. */
body.wd-crm-page {
	margin: 0;
	background: #f4f7f9;
	font-family: var(--gl-crm-font);
}

body.wd-crm-page .wd-crm-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px 48px;
	font-family: var(--gl-crm-font);
	font-size: 16px;
}

body.wd-crm-page .wd-crm-wrap h1,
body.wd-crm-page .wd-crm-wrap h2,
body.wd-crm-page .wd-crm-wrap h3,
body.wd-crm-page .wd-crm-wrap h4,
body.wd-crm-page .wd-crm-wrap input,
body.wd-crm-page .wd-crm-wrap select,
body.wd-crm-page .wd-crm-wrap textarea,
body.wd-crm-page .wd-crm-wrap button {
	font-family: var(--gl-crm-font);
}

/* ----------------------------------------------------------- landingspagina */

body.gl-crm-landing-page {
	background: #fff;
}

.gl-crm-landing {
	max-width: 1280px;
	margin: 0 auto;
	padding: 72px 24px 48px;
	font-family: var(--gl-crm-font);
	color: #1d2327;
}

.gl-crm-landing-head h1 {
	margin: 0 0 10px;
	font-size: 34px;
	letter-spacing: -.01em;
	color: var(--gl-crm-blue-dark);
}

.gl-crm-landing-head p {
	margin: 0 0 36px;
	font-size: 18px;
	line-height: 1.5;
	color: #50575e;
	max-width: 600px;
}

.gl-crm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.gl-crm-card {
	display: block;
	padding: 24px;
	border: 1px solid #e3e8ec;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.gl-crm-card h2 {
	margin: 0 0 6px;
	font-size: 18px;
	color: var(--gl-crm-blue-dark);
}

.gl-crm-card p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #50575e;
}

/* A whole card that is a link gets the hover, not just the words in it. */
.gl-crm-card-link {
	transition: border-color .15s ease, box-shadow .15s ease;
}

.gl-crm-card-link:hover,
.gl-crm-card-link:focus {
	border-color: var(--gl-crm-blue);
	box-shadow: 0 2px 10px rgba(0, 105, 145, .12);
}

/* One row at the top of every card, so the headings line up across cards. */
.gl-crm-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	margin-bottom: 16px;
}

.gl-crm-card-logo {
	display: block;
	height: 30px;
	width: auto;
}

.gl-crm-card-logo-radboud {
	height: 26px;
}

.gl-crm-card-logo-winstdelen {
	height: 50px;
}

.gl-crm-linkedin {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
}

/* The profile picture as it is on the profile itself. */
.gl-crm-portret {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #e3e8ec;
}

.gl-crm-card-links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 12px;
}

.gl-crm-card-links a {
	color: var(--gl-crm-blue);
}

.gl-crm-card-hint {
	display: inline-block;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--gl-crm-blue);
}

.gl-crm-landing-foot {
	margin-top: 48px;
	padding-top: 16px;
	border-top: 5px solid var(--gl-crm-blue);
}

.gl-crm-landing-foot p {
	margin: 0;
	font-size: 13px;
	color: #646970;
}

@media (max-width: 600px) {
	.gl-crm-landing {
		padding: 40px 16px 32px;
	}

	.gl-crm-landing-head h1 {
		font-size: 28px;
	}
}

/* ------------------------------------------------------------------ header */

.gl-crm-brandbar {
	background: #fff;
	border-bottom: 1px solid #e3e8ec;
}

.gl-crm-brandbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.gl-crm-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.gl-crm-brand img {
	height: 28px;
	width: auto;
	display: block;
}

.gl-crm-project {
	color: var(--gl-crm-blue-dark);
	font-size: 17px;
	font-weight: 700;
	text-align: right;
}

.gl-crm-footer-rule {
	height: 5px;
	background: var(--gl-crm-blue);
	margin-top: 32px;
}

.gl-crm-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--gl-crm-blue);
	color: #fff;
	margin-bottom: 24px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.gl-crm-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 56px;
}

.gl-crm-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1 1 auto;
	flex-wrap: wrap;
}

.gl-crm-nav a {
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	font-size: 15px;
	padding: 6px 12px;
	border-radius: 4px;
	line-height: 1.5;
}

.gl-crm-nav a:hover,
.gl-crm-nav a:focus {
	color: #fff;
	background: rgba(255, 255, 255, .12);
}

.gl-crm-nav a.is-active {
	color: var(--gl-crm-blue);
	background: #fff;
	font-weight: 700;
}

.gl-crm-logout {
	flex: 0 0 auto;
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	font-size: 15px;
	padding: 6px 12px;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, .35);
}

.gl-crm-logout:hover,
.gl-crm-logout:focus {
	color: #fff;
	border-color: #fff;
}

@media (max-width: 860px) {
	.gl-crm-header-inner {
		flex-wrap: wrap;
		gap: 10px;
		padding: 10px 16px;
	}

	body.wd-crm-page .wd-crm-wrap {
		padding: 0 16px 32px;
	}
}

/* --------------------------------------------------------------- form rows */

/* The laid-out forms place their own rows, so the single grid is switched off
   and each row becomes a grid of three wide columns. */
body.wd-crm-page .gl-crm-form {
	display: block;
}

body.wd-crm-page .gl-crm-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px 24px;
	margin-bottom: 16px;
	align-items: start;
}

body.wd-crm-page .gl-crm-row-full {
	grid-template-columns: minmax(0, 1fr);
}

/* Notes take two thirds, the research code and the consent fields the rest. */
body.wd-crm-page .gl-crm-row-split {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

body.wd-crm-page .gl-crm-stack {
	display: grid;
	gap: 16px;
	align-content: start;
}

/* The consent tick and its date share one line, aligned on their inputs. */
body.wd-crm-page .gl-crm-pair {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 12px;
	align-items: end;
}

body.wd-crm-page .gl-crm-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

body.wd-crm-page .gl-crm-form input,
body.wd-crm-page .gl-crm-form select,
body.wd-crm-page .gl-crm-form textarea {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/* A tick keeps the same column width as the fields beside it. */
body.wd-crm-page .gl-crm-tick[hidden] {
	display: none;
}

body.wd-crm-page .gl-crm-form input[type="checkbox"] {
	width: 22px;
	height: 22px;
}

body.wd-crm-page .gl-crm-row-split textarea {
	min-height: 190px;
}

/* Save on the left, delete far over on the right. */
body.wd-crm-page .gl-crm-form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 8px;
}

body.wd-crm-page .gl-crm-form-footer .wd-crm-timeline-delete {
	margin: 0;
}

@media (max-width: 900px) {
	body.wd-crm-page .gl-crm-row,
	body.wd-crm-page .gl-crm-row-split {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --------------------------------------------------------------- form grid */

/* A section heading is a row of its own, not a cell between two fields. */
body.wd-crm-page .wd-crm-grid-form .wd-crm-form-section {
	grid-column: 1 / -1;
	margin: 20px 0 0;
	padding-top: 14px;
	border-top: 1px solid #dfe4e8;
	color: var(--gl-crm-blue-dark);
	font-size: 15px;
	font-weight: 700;
}

body.wd-crm-page .wd-crm-grid-form .wd-crm-form-section:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* Free text gets the full width; a date or a dropdown does not need it. This
   is for the plain grid forms only — a laid-out form places its own rows. */
body.wd-crm-page .wd-crm-grid-form:not(.gl-crm-form) label:has(textarea) {
	grid-column: 1 / -1;
}

/* ---------------------------------------------------------------- timeline */

/* The Winstdelen timeline ends in a right-aligned amount column; here the last
   column is the subject, which belongs on the left and takes what is left. */
body.wd-crm-page .wd-crm-timeline-table th:first-child,
body.wd-crm-page .wd-crm-timeline-table td:first-child {
	width: 160px;
}

body.wd-crm-page .wd-crm-timeline-table th:last-child,
body.wd-crm-page .wd-crm-timeline-table td:last-child {
	text-align: left;
	width: auto;
}

body.wd-crm-page .wd-crm-timeline-detail textarea {
	width: 100%;
}

/* ------------------------------------------------------- mailbox filters */

body.wd-crm-page .gl-crm-mail-filters {
	display: flex;
	gap: 6px;
	margin: 0 0 10px;
}

body.wd-crm-page .gl-crm-mail-filter {
	font-size: 14px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid #dfe4e8;
	text-decoration: none;
	color: var(--gl-crm-blue);
	background: #fff;
}

body.wd-crm-page .gl-crm-mail-filter.is-active {
	background: var(--gl-crm-blue);
	border-color: var(--gl-crm-blue);
	color: #fff;
	font-weight: 700;
}

/* ------------------------------------------------------------- nieuwsbrief */

body.wd-crm-page .gl-crm-steps {
	margin: 0 0 8px;
	padding-left: 20px;
	color: #50575e;
	font-size: 15px;
	line-height: 1.6;
}

body.wd-crm-page .gl-crm-steps code {
	background: #f4f7f9;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 13px;
}

body.wd-crm-page .gl-crm-newsletter-actions {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	margin: 16px 0 4px;
	padding-top: 14px;
	border-top: 1px solid #dfe4e8;
}

body.wd-crm-page .gl-crm-newsletter-actions form {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
}

/* ------------------------------------------------------------------ images */

/* A signature logo, at the size it was sent, never wider than the column. */
body.wd-crm-page .gl-crm-inline-image {
	display: block;
	max-width: 320px;
	height: auto;
	margin: 10px 0 0;
}

/* ------------------------------------------------------------------- links */

body.wd-crm-page .gl-crm-links {
	margin: 0 0 14px;
	padding: 10px 12px;
	background: #f4f7f9;
	border: 1px solid #e3e8ec;
	border-radius: 6px;
}

body.wd-crm-page .gl-crm-links ul {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

body.wd-crm-page .gl-crm-links li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	flex-wrap: wrap;
}

body.wd-crm-page .gl-crm-links .wd-crm-muted {
	font-size: 13px;
	word-break: break-all;
}

/* ------------------------------------------------------------- attachments */

body.wd-crm-page .gl-crm-attachments {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	gap: 8px;
}

body.wd-crm-page .gl-crm-attachments li {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 8px 12px;
	background: #f4f7f9;
	border: 1px solid #e3e8ec;
	border-radius: 6px;
}

body.wd-crm-page .gl-crm-attachment-name {
	font-weight: 700;
}

body.wd-crm-page .gl-crm-attachments form {
	margin: 0 0 0 auto;
}

body.wd-crm-page .gl-crm-link-form {
	display: flex;
	gap: 8px;
	align-items: center;
}

body.wd-crm-page .gl-crm-link-form select {
	min-width: 220px;
}

/* ------------------------------------------- Radboudumc blue in the widgets */

body.wd-crm-page .wd-crm-panel h3 {
	color: var(--gl-crm-blue-dark);
}

body.wd-crm-page .wd-crm-button {
	background: var(--gl-crm-blue);
	border-color: var(--gl-crm-blue);
	color: #fff;
}

body.wd-crm-page .wd-crm-button:hover,
body.wd-crm-page .wd-crm-button:focus {
	background: var(--gl-crm-blue-dark);
	border-color: var(--gl-crm-blue-dark);
}

/* A secondary button keeps its light shape: blue on white, not blue on blue. */
body.wd-crm-page .wd-crm-button-secondary {
	background: #fff;
	border-color: #c7d3da;
	color: var(--gl-crm-blue);
}

body.wd-crm-page .wd-crm-button-secondary:hover,
body.wd-crm-page .wd-crm-button-secondary:focus {
	border-color: var(--gl-crm-blue);
	color: var(--gl-crm-blue-dark);
}

body.wd-crm-page .wd-crm-wrap a {
	color: var(--gl-crm-blue);
}

body.wd-crm-page .wd-crm-table thead th {
	border-bottom: 2px solid var(--gl-crm-cyan);
}

body.wd-crm-page .wd-crm-login {
	max-width: 560px;
	margin: 48px auto;
}
