/*
 * Theme Name: Lupus Ventures
 * Description: Custom theme for Lupus Ventures
 * Author: Michael Niggel / Lupus Research Alliance
 * Author URI: https://www.lupusresearch.org/
 * Version: 2025.12.02
*/

@font-face {
	font-display: swap;
	font-family: 'Geologica';
	font-weight: 100 900;
	src: local(''),
		url('fonts/Geologica-VariableFont_CRSV,SHRP,slnt,wght.woff2') format('woff2');
}

:root {
	--font-weight-light: 300;
	--font-weight-regular: 400;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	--color-black: 34, 34, 34;
	--color-ltgray: 238, 239, 240;
	--color-dkgray: 89, 90, 91;
	--color-white: 255, 255, 255;
	--color-purple: 100, 51, 133;
	--color-magenta: 158, 36, 123;
	--color-red: 167, 32, 39;
	--color-blue: 66, 90, 112;

	--layout-full: 80rem;
	--layout-wide: 65rem;
	--layout-content-width: 51.25rem;
}

/* ============== */
/* Element defaults */

html, body {
	overflow-x: hidden;
	overflow-x: clip;
}

html {
	scroll-padding-top: 16vh;
	scroll-behavior: smooth;
}

body {
	line-height: 1.25;
	background: rgb(var(--color-white));
	color: rgb(var(--color-black));
	font-family: 'Geologica', sans-serif;
	font-weight: var(--font-weight-light);
}

@media (max-width: 20em) {
	body {
		-ms-hyphens: auto;
		-moz-hyphens: auto;
		-webkit-hyphens: auto;
		hyphens: auto;
	}
}

a {
	color: rgb(var(--color-purple));
	font-weight: var(--font-weight-semibold);
}

h1 {
	font-size: 2em;
	font-weight: var(--font-weight-regular);
	margin: 0 0 1rem;
	line-height: 1.25;
}

h2 {
	font-size: 1.5em;
	font-weight: var(--font-weight-light);
	margin: 0 0 0.25rem;
	line-height: 1.25;
	position: relative;
}

h2::before {
	content: ' ';
	position: absolute;
	right: calc(100% + 0.5em);
	top: 0;
	width: 1em;
	height: 1.3em;
	background: 0 100% / auto 100% url(img/thick-arrowhead-r.svg) no-repeat;
}

* + h2 {
	margin-top: 1.5rem;
}

h3 {
	font-size: 1.2em;
	font-weight: var(--font-weight-semibold);
	margin: 1.25rem 0 0.25rem;
	line-height: 1.25;
	color: rgb(var(--color-red));
}

h4 {
	font-size: 1.125em;
	margin: 0.5em 0 0;
	line-height: 1.25;
}

h5 {
	font-size: 1em;
	margin: 0.5em 0 0;
	line-height: 1.25;
}

h6 {
	font-size: 0.83em;
	margin: 0.5em 0 0;
	line-height: 1.25;
}

ul, ol {
	padding-left: 1.5em;
	margin: 1em 0;
}

li {
	margin: 0.25rem 0;
}

blockquote {
	margin: 3rem 0 4rem;
	padding: 1rem 0;
	/*border-left: solid medium rgb(var(--color-white), 0.2);*/
	font-style: oblique;
	font-size: 1.25rem;
	position: relative;
	background: rgb(var(--color-ltgray));
	box-sizing: border-box;
	color: rgb(var(--color-dkgray));
	display: flow-root;
}

blockquote::before {
	content: ' ';
	position: absolute;
	top: 0;
	left: calc(50% - 50vw);
	right: calc(50% - 50vw);
	bottom: 0;
	background: rgb(var(--color-ltgray));
	z-index: -1;
}

blockquote cite {
	display: block;
	font-size: 0.85rem;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-top: 0.5em;
	font-weight: var(--font-weight-semibold);
	color: rgb(var(--color-red));
}

@media (min-width: 42em) {
	body {
		line-height: 1.6;
	}

	h1 {
		font-size: 3em;
	}

	h2 {
		font-size: 2.5em;
	}

	h2::before {
		right: calc(100% + 0.5em);
	}

	* + h2 {
		margin-top: 2rem;
	}	

	h3 {
		font-size: 1.5em;
	}

	h4 {
		font-size: 1.125em;
	}

	ul, ol {
		padding-left: 2em;
	}
}

h1, h2, h3, h4, h5, h6, blockquote {
  text-wrap: balance;
}

b, strong {
	font-weight: var(--font-weight-semibold);
}

p {
	margin: 0;
}

p + p,
ul + p,
ol + p,
p + div {
	margin-top:  1rem;
}

figure {
	margin: 0;
}

img {
	max-width: 100%;
	height: auto;
}

small {
	font-size: 0.8em;
}

button, input, select, textarea {
	color: rgb(var(--color-black));
}

::-moz-selection {
	background: rgba(var(--color-blue), 0.8);
	color: rgb(var(--color-white));
	text-shadow: none;
}

::selection {
	background: rgba(var(--color-blue), 0.8);
	color: rgb(var(--color-white));
	text-shadow: none;
}

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid rgb(var(--color-blue));
	margin: 1em 0;
	padding: 0;
}

form>ol,
fieldset>ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

form>ol>li,
fieldset>ol>li {
	margin: 0;
	padding: 0;
}

input, textarea {
	box-sizing: border-box;
	width: 30em;
	max-width: 100%;
	background: rgb(var(--color-white));
	border: solid thin rgb(var(--color-purple));
	padding: 0.5em;
}

button,
.button,
input[type="submit"],
input[type="button"] {
	background: rgb(var(--color-red));
	color: rgb(var(--color-white));
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	display: inline-block;
	border: solid 0.2em rgb(var(--color-red));
	border-radius: 0.25rem;
	padding: 0.25rem 1rem;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.8rem;
	transition: 0.2s all;
}

button:hover,
button:focus,
.button:hover,
.button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus {
	background-color:rgb(var(--color-white));
	color: rgb(var(--color-red));
	text-decoration: none;
	outline: 0;
}

:focus-visible {
	outline: solid 0.25rem rgba(var(--color-blue), 0.8);
}

/* ============== */
/* Common */


.structure-only {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute;
}


/* ============== */
/* Main layout */

body {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100vh;
}

header {
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 0;
	margin: 0;
	width: 100%;
	background: rgba(var(--color-white), 0.97);
	box-shadow: 0 0 0.25em 0.25em rgba(0, 0, 0, 0.03);
}

@supports (backdrop-filter: blur(1em)) {
	header {
		background: rgba(var(--color-white), 0.80);
		backdrop-filter: blur(1em);
	}
}

body.admin-bar {
	min-height: calc(100vh - 32px);
}

.admin-bar header {
	top: 32px;
}

@media (max-width:782px) {
	body.admin-bar {
		min-height: calc(100vh - 46px);
	}

	.admin-bar header {
		top: 46px;
	}
}

header a {
	text-decoration: none;
}

header ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

header .site-title {
	pointer-events: none;
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute;
	font-size: 1rem;
	margin: 0;
}

#skip {
	position: absolute;
	top: 0;
	z-index: 99999;
}

#skip a,
#skip a:hover,
#skip a:visited {
	position: absolute;
	left: 0;
	top: -500px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	color: #00f;
	background: #fff;
	padding: 1em;
	border: solid 1px #000;
}

#skip a:active,
#skip a:focus {
	position: static;
	width: auto;
	height: auto;
}

.header-content {
	margin: 0 auto;
	max-width: var(--layout-full);
	height: auto;
	padding: 0 1rem;
	column-gap: 1em;
}

#logo {
	grid-area: logo;
	align-self: center;
	justify-self: center;
	width: 100%;
	margin: 0.5rem 0;
	max-width: 100%;
}

#logo a {
	display: block;
	padding-bottom: clamp(4.8rem, 20vw, 9rem);
	height: 0;
	position: relative;
}

#logo svg,
#logo img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#nav-main {
	grid-area: nav;
	align-self: end;
}

#nav-main ul {
	display: flex;
	flex-wrap: wrap;
}

#nav-main li {
	padding: 0.5rem;
}

#nav-main a {
	color: rgb(var(--color-black));
}

#action-buttons {
	grid-area: buttons;
	align-self: start;
	display: flex;
	flex-wrap: wrap;
	margin: 0 -0.5rem;
}

#action-buttons li {
	margin: 0;
	padding: 0.5rem;
}

#action-buttons li a {
	display: block;
}

#action-buttons a.style-alt {
	background: rgb(var(--color-blue));
	border-color: rgb(var(--color-blue));
}

#action-buttons a.style-alt:hover,
#action-buttons a.style-alt:focus {
	background-color:rgb(var(--color-white));
	color: rgb(var(--color-blue));
}

#lra-association {
	grid-area: lra;
	align-self: start;
	justify-self: stretch;	
	background: rgb(var(--color-ltgray));
	border-radius: 0 0 .25rem .25rem;
	padding: 0;
	margin: 0 -1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	font-size: 0.875rem;
}

#lra-association > * {
	padding: 0.5rem 1rem;
}

#lra-association > a, 
#lra-association > a > img {
	display: block;
	width: 7.5rem;
}

#lra-links {
	text-align: right;
}

#lra-links li {
	margin: 0.5em 0;
}

#lra-links a {
	font-weight: var(--font-weight-regular);
	background: 100% 50% url(img/go-arrow-sm.svg) no-repeat;
	padding-right: 0.75rem;
}

#lra-links a:hover {
	text-decoration: underline;
}

#lra-links a.style-strong {
	font-weight: var(--font-weight-bold);
}

@media(min-width: 20rem) {
	.header-content {
		display: grid;
		grid-template-areas:
		"logo";
		grid-template-columns: 1fr;
	}

	#logo {
		/* max-width: 40vw; */
	}

	#nav-main li+li {
		margin-left: 1rem;
	}

	#action-buttons {
		flex-wrap: nowrap;
		margin: 0 -0.5rem;
	}

	#lra-association {
		margin: 0 0 0 auto;
	}
}

@media(min-width: 34rem) {
	.header-content {
		grid-template-columns: 1fr;
	}
}

@media(min-width: 45rem) {
	.header-content {
		display: grid;
		grid-template-areas:
		"logo";
		grid-template-columns: 1fr;
	}

	#action-buttons {
		justify-self: end;	
	}

	#lra-association {
		margin: 0 0 0 auto;	
	}
}

@media(min-width: 64rem) {
	header {
			position: sticky;
	}

	.header-content {
		display: grid;
		grid-template-areas:
		"logo";
		grid-template-columns: 1fr;
	}

	#nav-main {
		justify-self: end;	
	}	
}

main {
	margin-bottom: 2rem;
}

.post-thumb img {
	width: 100%;
}

footer {
	background: rgb(var(--color-black));
	/* background: linear-gradient(to right top, rgb(var(--color-purple)) 0%, rgb(var(--color-red)) 100%); */
	color: rgb(var(--color-white));
	font-size: 0.8rem;
	margin-top: auto;
}

footer a {
	color: inherit;
}

footer :focus-visible {
	outline: solid 0.25rem rgba(var(--color-white), 0.8);
}

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

#main-footer {
	margin: 0 auto;
	padding: 1rem;
	max-width: var(--layout-content-width);
	grid-gap: 1rem;
}

@media(min-width: 50rem) {
	#main-footer {
		display: grid;
		grid-template-areas:
		"social  nav"
		"legal   accred";
	}
}

#footer-legal {
	grid-area: legal;
	align-self: end;
}

#nav-foot {
	grid-area: nav;
	justify-self: end;
	margin: 0 -1rem;
}

#nav-foot ul {
	display: flex;
	flex-wrap: wrap;
	margin: 0.5rem;
}

#nav-foot li {
	padding: 0.5rem;
}

#footer-social {
	grid-area: social;
}

#footer-social ul {
	margin: 0 -0.5rem;
	display: flex;
}

#footer-social li {
	width: 2rem;
	height: 2rem;
	padding: 0;
	margin: 0.5rem;
}

#footer-social a, 
#footer-social img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

#footer-accreditations {
	grid-area: accred;
	justify-self: end;
	align-self: end;
}

#footer-accreditations ul {
	margin: 0 -0.5rem;
	display: flex;
}

#footer-accreditations li {
	max-width: 5rem;
	height: 4rem;
	padding: 0;
	margin: 0.5rem;
}

#footer-accreditations a, 
#footer-accreditations img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ============== */
/* Blocks */

.block-basic {
	margin: 1rem auto;
	padding: 0 1rem;
	max-width: var(--layout-content-width);
	display: block;
	display: flow-root;
}

.block-split {
	margin: 0 auto;
	padding: 0;
}

.block-split.style-reverse {
	background: rgb(var(--color-ltgray));
}

.block-split .image {
	flex: 0 0 24rem;
	min-height: 15rem;
}

.block-split .image figure {
	width: 100%;
	height: 100%;
	margin: 0;
}

.block-split .image figure img {
	display: block;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.block-split .content {
	box-sizing: border-box;
	padding: 2rem;
	max-width: var(--layout-content-width);
	display: block;
	display: flow-root;
}

.block-split.style-reverse .content {
	background: rgb(var(--color-ltgray));
}

.block-split.order-reverse .content {
	order: -1;
}

@media(min-width: 60rem) {
	.block-split {
		display: flex;
	}
}

@media(min-width: 70rem) {
	.block-split .image {
		flex: 0 0 calc(50% - 11rem);
	}
	.block-split.order-reverse .content {
		margin-left: auto;
	}
}

.block-navigation-buttons {
	margin: 1rem auto;
	padding: 0 0.5rem;
	max-width: var(--layout-wide);
}

.block-navigation-buttons ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
}

.block-navigation-buttons li {
	display: contents;
}

.block-navigation-buttons a {
	background: rgb(var(--color-purple));
	color: rgb(var(--color-white));
	font-weight: var(--font-weight-regular);
	text-decoration: none;
	border: solid 0.25rem transparent;
	border-radius: 0.5rem;
	display: block;
	padding: 0.5rem;
	margin: 0.5rem;
	flex: 1;
	transition: 0.2s all;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.block-navigation-buttons li:nth-child(3n + 2) a {
	background: rgb(var(--color-magenta));
}

.block-navigation-buttons li:nth-child(3n + 3) a {
	background: rgb(var(--color-red));
}

.block-navigation-buttons li a:hover,
.block-navigation-buttons li a:focus {
	background: rgb(var(--color-ltgray));
	color: rgb(var(--color-purple));
	border-color: rgb(var(--color-purple));
	outline: 0;
}

.block-navigation-buttons .title {
	font-size: 1.5rem;
	line-height: 1.25;
	margin: 0.5rem;
}

.block-navigation-buttons .description {
	text-transform: uppercase;
	margin: 0.5rem
}

@media (min-width: 60rem) {

}

.block-accordion {
	margin: 3rem auto;
	padding: 0 1rem;
	max-width: var(--layout-content-width);
}

.accordion {
	padding: 0;
	list-style: none;
}

.accordion>li {
	margin: 1rem 0;
}

.accordion>li+li {
	border-top: solid 0.125em rgb(var(--color-ltgray));
	padding-top: 1rem;
}

.accordion .header {
	margin: 0;
	background: transparent;
	font-size: 1.2em;
}

.accordion .content {
	overflow: hidden;
	padding: 0 0.5rem;
	display: flex;
	flex-direction: column;
}

.accordion .content .copy {
	margin: 1rem 1rem 1.5rem;
	display: block;
	display: flow-root;
}

.accordion .content .image {
	margin: 1rem;
}

@media(min-width: 22em) {
	.accordion .content .image {
		width: 16em;
	}
}

@media(min-width: 42em) {
	.accordion .content .copy {
		flex: 1 1 auto;
	}

	.accordion .content .image {
		flex: 0 0 16em;
		margin-right: 4em;
	}
}

.js-on .accordion .header {
	cursor: pointer;
	display: flex;
	justify-content: space-between;
}

.js-on .accordion .header button {
	margin: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	vertical-align: inherit;
	text-align: inherit;
	border: none;
	cursor: pointer;
	text-transform: inherit;
	letter-spacing: inherit;
	flex: 1 0 100%;
	max-width: calc(100% - 2em);
}

.js-on .accordion .header button:hover,
.js-on .accordion .header button:focus-visible {
	text-decoration: underline;
}

.js-on .accordion .header::after {
	content: " +";
	font-weight: 700;
	width: 1em;
	color: var(--color-dkgray);
}

.js-on .accordion .open .header::after {
	content: " –";
}

.block-cards {
	margin: 1rem auto;
	padding: 0 1rem;
	max-width: var(--layout-content-width);
}

.block-cards .articles {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.block-cards .articles > * {
	flex: 1 1 20em;
}

.block-cards .articles a {
	background: rgb(var(--color-ltgray));
	color: inherit;
	text-decoration: none;
	padding: 0.75rem;
	border-radius: 0.25rem;
	border: solid 0.25rem rgb(var(--color-ltgray));
	display: block;
	height: calc(100% - 2rem);
	transition: 0.2s all;
	font-weight: var(--font-weight-light);
	outline: none;
}

.block-cards .articles a:hover,
.block-cards .articles a:focus {
	background: rgb(var(--color-white));
	border-color: rgb(var(--color-purple));
}

.block-cards .article-header {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.block-cards .link-out {
	font-weight: var(--font-weight-semibold);
	color: rgb(var(--color-purple));
	margin-top: 0.5rem;
}

/* ============== */
/* Gravity Forms Style Overrirdes */

.gfield_required {
	--gf-ctrl-label-color-req: rgb(var(--color-red));
}

.gform_button {
	--gf-ctrl-btn-icon-color-primary: rgb(var(--color-white));
	--gf-ctrl-btn-bg-color-primary: rgb(var(--color-purple));
	--gf-ctrl-btn-bg-color-hover-primary: rgb(var(--color-white));
	--gf-ctrl-btn-border-color-hover-primary: rgb(var(--color-purple));
	--gf-ctrl-btn-color-hover-primary: rgb(var(--color-purple));
}

/* ============== */
/* Print Styles */

@media print {
	* {
		background: transparent !important;
		color: #000 !important; /* Black prints faster: h5bp.com/s */
		box-shadow: none !important;
		text-shadow: none !important;
	}

	main a,
	main a:visited {
		text-decoration: underline;
	}

	main a[href]:after {
		content: " (" attr(href) ")";
	}

	abbr[title]:after {
		content: " (" attr(title) ")";
	}

	main a[href^="javascript:"]:after,
	main a[href^="tel:"]:after,
	main a[href^="#"]:after {
		content: "";
	}

	pre, blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	thead {
		display: table-header-group; /* h5bp.com/t */
	}

	tr, img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	@page {
		margin: 0.5cm;
	}

	p, h2, h3 {
		orphans: 3;
		widows: 3;
	}

	h2, h3 {
		break-after: avoid;
	}

	#wpadminbar {
		display: none;
	}

	.admin-bar header {
		top: auto;
	}

	#nav-main,
	#action-buttons,
	#lra-links,
	#nav-foot,
	#footer-social {
		display: none;
	}

	#footer-accreditations {
		filter: invert(1);
	}

	.accordion>li {
		break-inside: avoid;
	}

	.accordion .content {
		display: block !important;
	}
}
