:root {
	--te-white: #fff;
	--te-surface: #f5f5f7;
	--te-ink: #141821;
	--te-navy: #173f59;
	--te-blue: #59658f;
	--te-muted: #626976;
	--te-line: #dedfe5;
	--te-shadow: 0 12px 36px rgba(20, 31, 49, .09);
}

.testudios-main, .testudios-main * { box-sizing: border-box; }
.testudios-main {
	background: var(--te-white);
	color: var(--te-ink);
	min-height: 60vh;
	padding: clamp(38px, 5vw, 72px) 20px clamp(64px, 7vw, 96px);
}
.testudios-shell { margin: 0 auto; max-width: 1180px; }

/* Quiet page heading that follows Territorial's existing white, navy and blue language. */
.testudios-hero {
	border-bottom: 1px solid var(--te-line);
	margin: 0 auto clamp(28px, 4vw, 46px);
	padding: 0 0 clamp(24px, 3vw, 34px);
	text-align: center;
}
.testudios-kicker {
	color: var(--te-blue);
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .15em;
	margin: 0 0 9px;
	text-transform: uppercase;
}
.testudios-heading {
	color: var(--te-navy);
	font-family: inherit;
	font-size: clamp(38px, 4.2vw, 58px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.035em;
	margin: 0;
}
.testudios-heading::after {
	background: var(--te-blue);
	content: '';
	display: block;
	height: 3px;
	margin: 16px auto 0;
	width: 54px;
}
.testudios-lead {
	color: var(--te-muted);
	font-family: inherit;
	font-size: clamp(15px, 1.4vw, 18px);
	font-weight: 400;
	line-height: 1.55;
	margin: 17px auto 0;
	max-width: 650px;
}

.testudios-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.testudios-card {
	background: var(--te-white);
	border: 1px solid var(--te-line);
	border-radius: 4px;
	box-shadow: var(--te-shadow);
	display: grid;
	grid-template-columns: minmax(230px, 36%) minmax(0, 1fr);
	min-width: 0;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.testudios-card:hover {
	border-color: rgba(89, 101, 143, .5);
	box-shadow: 0 16px 42px rgba(20, 31, 49, .13);
	transform: translateY(-2px);
}
.testudios-card-media {
	appearance: none;
	background: var(--te-surface);
	border: 0;
	border-right: 1px solid var(--te-line);
	cursor: pointer;
	display: block;
	font: inherit;
	min-height: 340px;
	overflow: hidden;
	padding: 0;
	position: relative;
	text-align: left;
	width: 100%;
}
.testudios-card-media img, .testudios-placeholder {
	display: block;
	height: 100%;
	object-fit: contain;
	transition: transform .28s ease;
	width: 100%;
}
.testudios-placeholder {
	align-items: center;
	background: var(--te-blue);
	color: #fff;
	display: flex;
	font-family: inherit;
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	justify-content: center;
}
.testudios-card:hover .testudios-card-media img { transform: scale(1.015); }
.testudios-card-cue {
	background: rgba(255, 255, 255, .96);
	bottom: 14px;
	color: var(--te-navy);
	font-family: inherit;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .08em;
	padding: 9px 12px;
	position: absolute;
	right: 14px;
	text-transform: uppercase;
}
.testudios-card-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: clamp(24px, 3vw, 40px);
}
.testudios-card-topline {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-bottom: 13px;
}
.testudios-card-meta {
	color: var(--te-blue);
	font-family: inherit;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.testudios-card-number { color: #b8bdc7; font: 600 18px/1 inherit; }
.testudios-card h2 {
	font-family: "Montserrat", "Avenir Next", sans-serif;
	font-size: clamp(25px, 2.6vw, 38px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.03em;
	margin: 0 0 15px;
	overflow-wrap: anywhere;
}
.testudios-title-button {
	appearance: none;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--te-navy) !important;
	cursor: pointer;
	display: inline !important;
	font: inherit;
	line-height: inherit;
	min-height: 0 !important;
	padding: 0 !important;
	text-align: left;
	text-decoration: none !important;
	text-transform: none !important;
	transition: color .2s ease !important;
	width: auto !important;
}
.testudios-title-button:hover,
.testudios-title-button:focus-visible {
	background: transparent !important;
	box-shadow: none !important;
	color: var(--te-blue) !important;
	transform: none !important;
}
.testudios-title-button:focus-visible {
	outline: 2px solid var(--te-blue) !important;
	outline-offset: 5px;
}
.testudios-card p { color: var(--te-muted); font: 400 15px/1.6 inherit; margin: 0 0 22px; }
.testudios-link, .testudios-button {
	align-items: center;
	align-self: flex-start;
	background: var(--te-blue);
	border: 1px solid var(--te-blue);
	border-radius: 3px;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	gap: 12px;
	justify-content: center;
	letter-spacing: .07em;
	margin-top: auto;
	min-height: 42px;
	padding: 0 18px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.testudios-link::after { content: '→'; font-size: 14px; }
.testudios-link:hover, .testudios-link:focus-visible, .testudios-button:hover {
	background: var(--te-navy);
	border-color: var(--te-navy);
	box-shadow: 0 8px 18px rgba(23, 63, 89, .22);
	color: #fff !important;
	transform: translateY(-1px);
}
.testudios-link:focus-visible {
	outline: 2px solid var(--te-navy);
	outline-offset: 3px;
}

/* One study stays a contained card instead of expanding into a billboard. */
.testudios-card:first-child:last-child {
	grid-column: 1 / -1;
	margin: 0 auto;
	max-width: 1040px;
	width: 100%;
}
.testudios-empty {
	border: 1px solid var(--te-line);
	color: var(--te-muted);
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	grid-column: 1 / -1;
	padding: 38px;
	text-align: center;
}
.testudios-unavailable {
	color: var(--te-muted);
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	margin-top: auto;
	text-transform: uppercase;
}
.testudios-pagination { margin-top: 42px; text-align: center; }
.testudios-pagination .page-numbers {
	border: 1px solid var(--te-line);
	color: var(--te-navy);
	display: inline-block;
	margin: 3px;
	padding: 9px 13px;
	text-decoration: none;
}
.testudios-pagination .current { background: var(--te-blue); border-color: var(--te-blue); color: #fff; }

body.testudios-modal-open { overflow: hidden; }
.testudios-modal[hidden] { display: none; }
.testudios-modal {
	display: grid;
	inset: 0;
	padding: 24px;
	place-items: center;
	position: fixed;
	z-index: 999999;
}
.testudios-modal-backdrop {
	backdrop-filter: blur(5px);
	background: rgba(9, 16, 27, .74);
	inset: 0;
	position: absolute;
}
.testudios-modal-panel {
	background: #3d4148;
	border-radius: 5px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: min(88dvh, 900px);
	max-width: 1080px;
	overflow: hidden;
	position: relative;
	width: min(94vw, 1080px);
}
.testudios-modal-header {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid var(--te-line);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	min-height: 72px;
	padding: 12px 14px 12px 22px;
}
.testudios-modal-heading { min-width: 0; }
.testudios-modal-kicker {
	color: var(--te-blue);
	font-family: inherit;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .12em;
	margin: 0 0 3px;
	text-transform: uppercase;
}
.testudios-modal-header h2 {
	color: var(--te-navy);
	font-family: inherit;
	font-size: clamp(17px, 2vw, 23px);
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.testudios-modal-actions { align-items: center; display: flex; flex: 0 0 auto; gap: 8px; }
.testudios-modal-external {
	align-items: center;
	border: 1px solid var(--te-line);
	border-radius: 3px;
	color: var(--te-navy);
	display: inline-flex;
	font-family: inherit;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	gap: 8px;
	letter-spacing: .06em;
	min-height: 40px;
	padding: 0 14px;
	text-decoration: none;
	text-transform: uppercase;
}
.testudios-modal-external:hover, .testudios-modal-external:focus-visible { background: var(--te-navy); color: #fff; }
.testudios-modal-close {
	align-items: center;
	appearance: none;
	background: var(--te-blue);
	border: 0;
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
	height: 40px;
	justify-content: center;
	padding: 0 0 3px;
	transition: background-color .2s ease;
	width: 40px;
}
.testudios-modal-close:hover, .testudios-modal-close:focus-visible { background: var(--te-navy); }
.testudios-modal-document { background: #3d4148; min-height: 0; position: relative; }
.testudios-modal-document iframe {
	border: 0;
	display: block;
	height: 100%;
	opacity: 0;
	transition: opacity .2s ease;
	width: 100%;
}
.testudios-modal-document iframe.is-ready { opacity: 1; }
.testudios-modal-loading {
	align-items: center;
	color: rgba(255, 255, 255, .8);
	display: flex;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	gap: 12px;
	inset: 0;
	justify-content: center;
	letter-spacing: .08em;
	position: absolute;
	text-transform: uppercase;
}
.testudios-modal-loading[hidden] { display: none; }
.testudios-loader {
	animation: testudios-spin .8s linear infinite;
	border: 2px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	border-top-color: #fff;
	height: 22px;
	width: 22px;
}
.testudios-modal-footer {
	align-items: center;
	background: #fff;
	border-top: 1px solid var(--te-line);
	color: var(--te-muted);
	display: flex;
	font-family: inherit;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
	justify-content: space-between;
	letter-spacing: .05em;
	min-height: 30px;
	padding: 7px 22px;
	text-transform: uppercase;
}
.testudios-modal.is-opening .testudios-modal-panel { animation: testudios-modal-in .22s ease-out both; }
@keyframes testudios-modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes testudios-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
	.testudios-grid { grid-template-columns: 1fr; }
	.testudios-card { grid-template-columns: minmax(210px, 34%) minmax(0, 1fr); }
}

@media (max-width: 620px) {
	.testudios-main { padding: 30px 14px 58px; }
	.testudios-hero { margin-bottom: 22px; padding-bottom: 22px; }
	.testudios-heading { font-size: 38px; }
	.testudios-lead { font-size: 15px; }
	.testudios-card, .testudios-card:first-child:last-child { display: flex; flex-direction: column; }
	.testudios-card-media { border-bottom: 1px solid var(--te-line); border-right: 0; min-height: 0; }
	.testudios-card-media img, .testudios-placeholder { aspect-ratio: 4 / 3.7; height: auto; object-fit: contain; }
	.testudios-card-body { padding: 22px 20px 24px; }
	.testudios-card h2 { font-size: 27px; }
	.testudios-link { align-self: stretch; }
	.testudios-modal { padding: 0; }
	.testudios-modal-panel { border-radius: 0; height: 100dvh; width: 100vw; }
	.testudios-modal-header { gap: 8px; min-height: 62px; padding: 8px 8px 8px 13px; }
	.testudios-modal-kicker { display: none; }
	.testudios-modal-header h2 { font-size: 16px; }
	.testudios-modal-external { font-size: 0; height: 40px; padding: 0; width: 40px; }
	.testudios-modal-external span:last-child { font-size: 17px; margin: auto; }
	.testudios-modal-footer { justify-content: center; padding: 7px 10px; text-align: center; }
	.testudios-modal-footer span:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.testudios-card, .testudios-card-media img, .testudios-modal-document iframe { transition: none; }
	.testudios-modal-panel, .testudios-loader { animation: none !important; }
}
