/*
 * LAPOP STYLE *
 * **********/


@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@100..700&display=swap');

@font-face {
  font-family: "Theinhardt";
  src: url("fonts/theinhardt-regular.otf") format("opentype");
}
@font-face {
  font-family: "Theinhardt Bold";
  src: url("fonts/theinhardt-bold.otf") format("opentype");
}
@font-face {
  font-family: "Theinhardt Medium";
  src: url("fonts/theinhardt-medium.otf") format("opentype");
}

.ui-igtrialwatermark {
	display: none;
}
h1,h2,h3,h4 {
	font-family: "Libre Caslon Display", serif;
}
body {
	font-family: "Inter", sans-serif !important;
}

/* Reusable visually-hidden utility — keeps content in the accessibility tree */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ============================================================
 * SEARCH PANEL
 * ============================================================ */

.fSelectorWrap {
	max-width: 1000px;
	margin: 0 auto 32px;
	box-sizing: border-box;
	background: #f7f5f1;
	border: 1px solid #d0dbd1;
	border-left: 4px solid #4D6850;
	border-radius: 12px;
	padding: 22px 26px 18px;
	box-shadow: 0 2px 12px rgba(61, 80, 63, 0.07);
	text-align: left;
}

/* Override the inline 60px — keep the serif but at a readable size */
.fSelectorWrap > h1 {
	font-size: 1.75rem !important;
	font-family: "Libre Caslon Display", serif;
	color: #1e2e1f;
	margin-bottom: 16px;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.entry-content a {
	color: #4D6850 !Important;
}
	.entry-content a:hover {
		color: #3A4F3D !important;
	}
.btn-primary {
	background-color: #4D6850 !important;
	border-color: #3A4F3D !important;
}
	.btn-primary:hover {
		background-color: #3A4F3D !important;
	}
.wp-block-navigation li a {
	font-family: "Theinhardt Medium" !important;
	font-size: 15px;
	transition: box-shadow .2s cubic-bezier(0.645, 0.045, 0.355, 1), color .2s cubic-bezier(0.645, 0.045, 0.355, 1);
	text-decoration: none !important;
}
	.wp-block-navigation li a:hover {
		color: #946e24 !important;
	}
	.wp-block-navigation li.current-menu-item a {
		color: #946e24 !important;
	}

/* menu triangle */

.wp-block-navigation li a {
  position: relative;
  padding-right: 1.2em;
}

.wp-block-navigation li a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid #C8A46A;
  border-bottom: 2px solid #C8A46A;
}

/* end menu triangle */

/* ============================================================
 * SEARCH INPUTS
 * ============================================================ */

.firstSRow,
.secondSRow,
.thirdSRow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.secondSRow {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5ece5;
}
.thirdSRow {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #e5ece5;
}

/* Main text search input */
.searchTitle {
	border-radius: 8px;
	border: 1.5px solid #b0beb1;
	padding: 7px 12px;
	height: 38px;
	min-width: 200px;
	font-size: 14px;
	font-family: inherit;
	color: #1e2e1f;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}
.searchTitle:focus {
	border-color: #4D6850;
	box-shadow: 0 0 0 3px rgba(77, 104, 80, 0.15);
	outline: none;
}
.searchTitle::placeholder {
	color: #9aaa9b;
}

/* Search icon */
.feyeglass {
	vertical-align: middle;
	font-size: 20px;
	color: #4D6850;
	margin-right: 5px;
	position: relative;
	top: -1px;
}

/* All filter selects — consistent height and style */
select {
  font-family: "Theinhardt", sans-serif;
  font-size: 14px;
  color: #1e2e1f;
  background: #fff;
}
select option {
  font-family: "Theinhardt", sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 7px 36px 7px 10px;
  border: 1.5px solid #b0beb1;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
  font-family: inherit;
  color: #1e2e1f;
  height: 38px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus {
  box-shadow: 0 0 0 3px rgba(77, 104, 80, 0.15);
  outline: none;
  border-color: #4D6850 !important;
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%235a6b5c'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  padding-right: 34px;
}

/* igCombo */
.ui-igcombo.ui-corner-all {
  border-radius: 8px !important;
  overflow: hidden;
}
.ui-igcombo .ui-igcombo-fieldholder-ltr {
  border-radius: 8px 0 0 8px !important;
}
.ui-igcombo .ui-igcombo-fieldholder-rtl {
  border-radius: 0 8px 8px 0 !important;
}
.ui-igcombo .ui-igcombo-button-ltr {
  border-radius: 0 8px 8px 0 !important;
}
.ui-igcombo .ui-igcombo-button-rtl {
  border-radius: 8px 0 0 8px !important;
}
.ui-igcombo-dropdown.ui-corner-all {
  border-radius: 8px !important;
  overflow: hidden;
}
.ui-igcombo input.ui-igcombo-field::placeholder {
  color: #9aaa9b;
  opacity: 1;
  font-size: 14px;
  padding-left: 6px;
}

/* Outer wrapper: let it self-size from the inner elements so the dropdown
   can expand freely — height constrained here clips the dropdown internals */
.ui-igcombo.ui-corner-all {
  box-sizing: border-box;
}
.ui-igcombo .ui-igcombo-fieldholder-ltr,
.ui-igcombo .ui-igcombo-fieldholder-rtl {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center;
}
.ui-igcombo input.ui-igcombo-field {
  height: 34px !important;
  padding: 0 8px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  border: none !important;
  box-sizing: border-box;
}
.ui-igcombo .ui-igcombo-button-ltr,
.ui-igcombo .ui-igcombo-button-rtl {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Study-year free-text input (second row) */
.pubyearSearch {
  height: 38px;
  border: 1.5px solid #b0beb1;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1e2e1f;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pubyearSearch:focus {
  border-color: #4D6850;
  box-shadow: 0 0 0 3px rgba(77, 104, 80, 0.15);
  outline: none;
}
/* end select */

/* Reset — outlined green button, fills on hover */
.dsReset {
	background: transparent !important;
	border: 1.5px solid #4D6850 !important;
	color: #4D6850 !important;
	border-radius: 8px !important;
	padding: 6px 16px !important;
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: background 0.18s, color 0.18s !important;
	cursor: pointer;
	height: 38px;
	line-height: 1;
}
.dsReset:hover {
	background: #4D6850 !important;
	color: #ffffff !important;
}

/* Filter labels (Project, Search by Study Year, Merged, Off-Cycle) */
.projlabel span,
.searchbylabel {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #5a6b5c;
	margin-right: 5px;
}

/* Checkbox filter row */
.checkWrap {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-right: 12px;
}
.checkWrap input[type="checkbox"] {
	accent-color: #4D6850;
	width: 15px;
	height: 15px;
	cursor: pointer;
}

/* stylize select row */
.fdivider {
	border-top: solid black 1px;
	padding-top: 10px;
}
	.fdivider.fdown {
		margin-top: 10px;
		margin-bottom: 10px;
	}
	.fdivider.nobord {
		border-top: none !important;
	}
.fdivider h2 {
	text-align: center;
	margin: 0 auto;
}
.fopts .checkbox-inline {
	display: inline-block;
	margin-right: 10px;
}
.fscrollbox {
	display: inline-block;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, .125);
	border-radius: .25rem;
}

.crow {
	border-bottom: solid grey 1px;
}
	.crow:hover {
		cursor: pointer;
		background: #dfdcdc;
	}
	.crow .fdel {
		font-size: 14px;
		float: right;
	}
		.crow .fdel:hover {
			color: black;
			font-size: 14px;
			font-weight: bold;
		}

/**
 * wp-core-ui select *
 */

.backDsetEdit_wrapper select {
  background-position: right 1px top 55% !important;
  width: 40px;
  margin-right: 7px;
}

/**
 * hide file changes *
 */

.formFile, .fileinput-exists {
	display: none;
}
.langCount, .datName {
	display: contents;
}
.removeQuest, .removeDat {
	display: none;
}
.dfirsthide {
	visibility: hidden;
}
.removeDatDiv {
	width: 100%;
}

/* label utility */
.label-on-left {
	display: flex;
	align-items: center;
}
.fdata {
	margin-right: 10px;
}

/* ============================================================
 * CATALOGUE CARDS
 * ============================================================ */

/* Grid wrapper — breaks out of the constrained content column just like
   fSelectorWrap, but wider (1200px cap) so each of the 2 columns gets
   a comfortable ~580px at typical desktop widths. */
.boxyWrapper {
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.box {
	background: #f7f5f1;
	border: 1px solid #d8e4d9;
	border-left: 4px solid #4D6850;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(61, 80, 63, 0.06);
	color: #2a3020;
	display: block;
	padding: 18px 20px 16px;
	margin-bottom: 0;
	height: initial;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.boxyWrapper > .box:only-child {
	grid-column: 1 / -1;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.box:hover {
	box-shadow: 0 6px 22px rgba(61, 80, 63, 0.13);
	transform: translateY(-2px);
}

/* Card action icons — float right, icon-button style */
.dataLink,
.dataSend,
.dataDelete,
.allcat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	color: #6b826d !important;
	text-decoration: none !important;
	font-size: 0;
	float: right;
	margin-left: 4px;
	transition: background 0.15s, color 0.15s;
}
.dataLink .material-symbols-outlined,
.dataSend .material-symbols-outlined,
.allcat .material-symbols-outlined {
	font-size: 17px;
}
.dataDelete .material-symbols-outlined {
	font-size: 17px;
}
.dataLink:hover,
.dataSend:hover,
.allcat:hover {
	background: #eef3ee;
	color: #3A4F3D !important;
}
.dataDelete:hover {
	background: #fdecea;
	color: #b91c1c !important;
}

/* Nav tabs — underline style, no box border */
.dnav.nav-tabs {
	border-bottom: 2px solid #e0e8e1 !important;
	margin-top: 8px;
	margin-bottom: 14px;
	clear: both;
}
.dnav .nav-link {
	color: #4f6654 !important;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	margin-bottom: -2px;
	padding: 5px 16px;
	font-size: 11px !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	border-radius: 0 !important;
	background: transparent !important;
	transition: color 0.15s, border-color 0.15s;
}
.dnav .nav-link.active {
	color: #4D6850 !important;
	border-bottom-color: #4D6850 !important;
	background: transparent !important;
}
.dnav .nav-link:hover:not(.active) {
	color: #3A4F3D !important;
	border-bottom-color: #b0c8b2 !important;
	background: transparent !important;
}

/* Dataset metadata table */
.dsetTable {
	width: 100%;
	margin-top: 0;
	border-collapse: collapse;
}
.dsetTable td {
	padding: 7px 8px;
	border: none;
	vertical-align: top;
	font-size: 14px;
	line-height: 1.4;
}
.dsetTable.is-bordered td {
	border: 1px solid #e0e8e1;
}

/* Label column */
.tdfirst {
	width: 36%;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #526454;
	padding-top: 9px;
	white-space: nowrap;
}

/* Alternating row shading (Excel zebra-stripe) */
.tdarker {
	background: #ebe6de;
}
.tlight {
	background: transparent;
}
.tdarker:hover,
.tlight:hover {
	background: #e2ddd5;
}

/* Study title row — make it the card's visual headline */
.tabDiv[tabno="1"] .dsetTable tbody tr:first-child td {
	padding-bottom: 10px;
	border-bottom: 2px solid #e0e8e1;
}
.tabDiv[tabno="1"] .dsetTable tbody tr:first-child .shownValue {
	color: #1a2e1c;
}

.dpresent {
	display: block;
}
.dficon {
	float: right;
}
.tabDiv {
	display: none;
}
.tabDiv.active {
	display: block;
}

/**
 * edit dataset
 */
.editTools {
	float: right;
}
	.ahide {
		display: none !important;
	}
	.ainprogress {
		display: none !important;
	}
	.editbox {
		display: inline-block;
	}

/* Visually hidden but kept in the accessibility tree for WCAG heading structure. */
.wp-block-post-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	color: #1a1a1a;
}

/**
 * adding files *
 */
.file_generator {
	margin-top: 14px
}
.newfile {
}
.nofile {
	display: none;
}
.fnupload {
	margin-right: 5px;
}

/* ============================================================
 * FEATURE BADGES (yearbox pills)
 * ============================================================ */

.pubyear {
	width: 50%;
}
.pubblockContainer {
	display: inline-block;
	margin-top: 6px;
	float: right;
	width: 300px;
}

/* Pill badge — base */
.yearbox {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	border-radius: 20px;
	border: 1.5px solid #c0cfc1;
	padding: 3px 10px 3px 8px;
	margin-right: 5px;
	margin-bottom: 4px;
	background: #f4f8f4;
	color: #3a5c3e;
	transition: background 0.15s, border-color 0.15s;
}

/* "Yes" features — green tint */
.yearbox[type="yes"] {
	background: #eaf2ea;
	border-color: #4D6850;
	color: #2d4d30;
}

/* "No"/antonym features — neutral grey */
.yearbox[type="no"] {
	background: #f7f7f7;
	border-color: #c8c8c8;
	color: #636363;
}

.yearname {
	font-size: 12px;
	font-weight: 500;
}

/* Study-year edit mode hovers (admin only) */
.currYearEdit .yearbox:not(.currYearEdit .editbox .yearbox):hover,
.dsetTable .colspan .yearbox:hover {
	background: #2a3020;
	color: white;
	border-color: #2a3020;
	cursor: pointer;
}
.dsetTable .colspan .editbox .yearbox {
	box-shadow: 4px 3px 3px rgba(0,0,0,0.15) !important;
}
.dsetTable .colspan .editbox .yearbox:active {
	transform: translateY(.35rem);
	box-shadow: 0 0 0 #1f4fbf, inset 0 .12rem .35rem rgba(0,0,0,.3);
}

.ui-igcombo-highlight {
	pointer-events: auto !important;
	cursor: pointer;
}
.instusecancel {
	font-size: 8pt !important;
	vertical-align: 2px;
	cursor: pointer;
	opacity: 0.55;
}
.shownValue .yearbox .instusecancel {
	display: none;
}

/* Year badge grouping in edit mode */
.yboxwrap {
	margin-top: 10px;
}

/* Resources tab section headers */
.badgeheader {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b826d;
	padding: 10px 0 5px;
	border-bottom: 1px solid #e8ede8;
	margin-bottom: 8px;
	text-align: left !important;
}

/***
 * ip editing *
 **/
.editIpTools .itools .material-symbols-outlined {
	font-size: 20px;
}
.iprow .editBox {
	display: none;
}
/**
 * ip address fancybox *
 */
#homepagePopup {
	text-align: center;
}

/**
 * project selector *
 */
.projlift {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Study-year search label positioning */
.syearlabel {
	position: relative;
	margin-right: 6px;
}
.pubStore {
	display: inline-block;
	position: relative;
}

/***
 * add country *
 **/
#countrySubmit, .btn.addtax {
	margin: 10px;
}

/***
 * delete dataset *
 */
/* (handled above with .dataDelete) */

/**
 * catalogue "all" icon *
 */
.allcat {
	font-size: 0;
	margin-left: 2px;
}

/**
 * mobile cleanup *
 */
.fmobileSep {
	display: inline-block;
}
.dsReset.mob {
	display: none;
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

/* Narrow (≤ 1300px): stack search rows into blocks, single-column card grid */
@media all and (max-width: 1300px) {
	.firstSRow .fmobileSep,
	.secondSRow .fmobileSep {
		margin-bottom: 12px !important;
	}
	.fmobileSep {
		display: block;
	}
	.fSelectorWrap {
		text-align: left;
		margin: 0 auto 24px;
		box-sizing: border-box;
	}
	.secondSRow .fmobileSep .ui-igcombo-wrapper {
		width: 175px !important;
		margin-left: 50px;
	}
	#projsearch {
		margin-left: 168px;
		width: 175px;
	}
	.dsReset.mob {
		display: inline-flex;
	}
	.dsReset.desk {
		display: none;
	}
	#yearSearcher {
		width: 218px;
	}
	#countrySearcher {
		width: 175px;
	}
	.checkWrap {
		margin-left: 0;
	}
	.boxyWrapper {
		grid-template-columns: 1fr;
	}
}

/* Phone (≤ 480px): full-width inputs, drop all hardcoded offsets */
@media all and (max-width: 480px) {
	.fSelectorWrap {
		padding: 16px 14px 14px;
		border-left-width: 3px;
	}
	/* Search input + type selector: flex row that wraps naturally */
	.firstSRow .fmobileSep:first-child {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 6px;
	}
	.searchTitle {
		flex: 1 1 120px;
		min-width: 0;
	}
	.dsSearch.textSearchSelector {
		width: 100%;
	}
	/* Country / year selects: full width */
	#countrySearcher,
	#yearSearcher {
		width: 100% !important;
		margin-left: 0 !important;
	}
	/* Project select: remove the hardcoded left indent */
	#projsearch {
		margin-left: 0 !important;
		width: 100% !important;
	}
	/* igCombo study-year widget: full width, no indent */
	.secondSRow .fmobileSep .ui-igcombo-wrapper {
		width: 100% !important;
		margin-left: 0 !important;
	}
	/* Year badge block: full width, stop floating right */
	.pubblockContainer {
		width: 100%;
		float: none;
		display: block;
		margin-top: 6px;
	}
}

/* Fancybox modal: keep the close button on-screen on narrow viewports */
@media all and (max-width: 600px) {
	/* Top padding equal to toolbar height so content never hides under the button */
	.fancybox-slide {
		padding: 50px 10px 10px !important;
	}
	.fancybox-slide--html .fancybox-content {
		max-width: 100% !important;
		width: auto !important;
		padding: 20px !important;
		box-sizing: border-box;
	}
	/* Stretch toolbar across full viewport so the close button stays at top-right */
	.fancybox-toolbar {
		width: 100%;
		box-sizing: border-box;
	}
}

/**
 * WordPress theme — WCAG AA contrast fixes
 */

/* Skip-to-content link — ensure visible-on-focus colors meet 3:1 against white */
a.skip-link,
a.skip-link:link,
a.skip-link:visited {
	color: #1a1a1a !important;
	background-color: #ffffff !important;
}

/**
 * Ultimate Member — WCAG AA contrast fixes
 */

/* "Keep me signed in" label */
.um-form .um-field-checkbox-option,
.um .um-field-checkbox-option {
	color: #333333 !important;
}

/* Primary login / submit button */
.um-form #um-submit-btn,
.um #um-submit-btn,
.um-form .um-button:not(.um-alt),
.um .um-button:not(.um-alt) {
	background-color: #4D6850 !important;
	border-color: #3A4F3D !important;
	color: #ffffff !important;
}
.um-form #um-submit-btn:hover,
.um #um-submit-btn:hover,
.um-form .um-button:not(.um-alt):hover,
.um .um-button:not(.um-alt):hover {
	background-color: #3A4F3D !important;
}

/* Secondary / alt button — outlined style, dark text on white */
.um-form .um-button.um-alt,
.um .um-button.um-alt {
	color: #4D6850 !important;
	border-color: #4D6850 !important;
	background-color: transparent !important;
}
.um-form .um-button.um-alt:hover,
.um .um-button.um-alt:hover {
	color: #3A4F3D !important;
	border-color: #3A4F3D !important;
}

/* "Forgot your password?" link */
.um .um-link-alt,
.um .um-link-alt:link,
.um .um-link-alt:visited {
	color: #4D6850 !important;
}
.um .um-link-alt:hover {
	color: #3A4F3D !important;
}
