/* PhovIR Gated Downloads. Colours follow the Elementor kit where available. */
:root {
	--pgd-ink: var(--e-global-color-primary, #283840);
	--pgd-blue: var(--e-global-color-secondary, #0048F8);
	--pgd-blue-dark: var(--e-global-color-36f0516, #0134B0);
	--pgd-muted: #5d6b72;
	--pgd-line: var(--e-global-color-14ef391, #E8E8E9);
	--pgd-soft: var(--e-global-color-c696dce, #F3F3F4);
	--pgd-white: #fff;
	--pgd-error: #b42318;
	--pgd-radius: 0px;
	--pgd-rule: rgba(0, 72, 248, .5);
	--pgd-heading-font: "space-grotesk-variable", "Space Grotesk", sans-serif;
}

/* ---------- Cards ---------- */
.pgd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 24px;
}
@media (min-width: 768px) {
	.pgd-grid[style*="--pgd-columns"] { grid-template-columns: repeat(var(--pgd-columns), minmax(0, 1fr)); }
}
.pgd-card {
	display: flex;
	flex-direction: column;
	background: var(--pgd-white);
	border: 1px solid var(--pgd-line);
	border-radius: var(--pgd-radius);
	padding: 28px;
	color: var(--pgd-ink);
}
.pgd-type {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pgd-blue);
}
.pgd-title {
	margin: 0 0 12px;
	font-family: var(--pgd-heading-font);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.3;
	color: var(--pgd-ink);
}
.pgd-summary { font-size: 15px; line-height: 1.6; color: var(--pgd-muted); }
.pgd-summary p { margin: 0 0 12px; }
.pgd-foot {
	margin-top: auto;
	padding-top: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.pgd-meta { margin: 0; font-size: 13px; color: var(--pgd-muted); }

/* ---------- List (matches the site's divider lists) ---------- */
.pgd-list { color: var(--pgd-ink); }
.pgd-list > .pgd-row:first-child { padding-top: 8px; }
.pgd-list > .pgd-row:last-child { border-bottom: 0; padding-bottom: 8px; }
.pgd-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px 40px;
	align-items: center;
	padding: 24px 0;
	border-bottom: 1px solid var(--pgd-rule);
}
.pgd-row .pgd-title {
	margin: 0 0 8px;
	font-family: var(--pgd-heading-font);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
}
.pgd-row .pgd-summary { font-size: 15px; line-height: 1.55; max-width: 760px; }
.pgd-row .pgd-summary p:last-child { margin-bottom: 0; }
.pgd-row .pgd-foot {
	margin: 0;
	padding: 0;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 10px;
}
@media (max-width: 767px) {
	.pgd-row { grid-template-columns: 1fr; }
	.pgd-row .pgd-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Buttons ---------- */
.pgd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 13px 22px;
	border: 0;
	border-radius: 0;
	background: var(--pgd-blue);
	color: var(--pgd-white) !important;
	font-family: var(--pgd-heading-font);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .15s ease;
}
.pgd-btn:hover, .pgd-btn:focus-visible { background: var(--pgd-blue-dark); }
.pgd-btn:focus-visible { outline: 3px solid var(--pgd-blue); outline-offset: 2px; }
.pgd-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Popup ---------- */
.pgd-modal {
	width: min(100% - 32px, 520px);
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--pgd-radius);
	background: var(--pgd-white);
	color: var(--pgd-ink);
	box-shadow: 0 24px 64px rgba(10, 20, 40, .28);
	overflow: auto;
}
.pgd-modal::backdrop { background: rgba(16, 24, 32, .6); }
.pgd-modal-inner { position: relative; padding: 32px; }
@media (max-width: 480px) { .pgd-modal-inner { padding: 24px 20px; } }
.pgd-modal .pgd-close {
	position: absolute;
	padding: 0 !important;
	box-shadow: none !important;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent !important;
	color: var(--pgd-ink) !important;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.pgd-modal .pgd-close:hover, .pgd-modal .pgd-close:focus-visible { background: var(--pgd-soft) !important; }
.pgd-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pgd-blue);
}
.pgd-modal-title { margin: 0 40px 12px 0; font-family: var(--pgd-heading-font); font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--pgd-ink); }
.pgd-intro { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--pgd-muted); }

.pgd-field { margin-bottom: 16px; }
.pgd-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.pgd-req { color: var(--pgd-blue); }
.pgd-field input {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #c9ced3;
	border-radius: 0;
	background: var(--pgd-white);
	color: var(--pgd-ink);
	font: inherit;
	font-size: 16px; /* stops iOS zooming in */
	box-sizing: border-box;
}
.pgd-field input:focus { outline: 2px solid var(--pgd-blue); outline-offset: 0; border-color: var(--pgd-blue); }
.pgd-field input[aria-invalid="true"] { border-color: var(--pgd-error); }

/* Honeypot: hidden from people, visible to bots. */
.pgd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.pgd-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.pgd-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.pgd-turnstile { margin-bottom: 16px; }
.pgd-privacy { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--pgd-muted); }
.pgd-privacy a, .pgd-success a { color: var(--pgd-blue); }
.pgd-error {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fef3f2;
	color: var(--pgd-error);
	font-size: 14px;
}
.pgd-submit { width: 100%; }
.pgd-success p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }

.pgd-modal .screen-reader-text, .pgd-card .screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
