/**
 * Instruments archive (Themer layout "Instruments Archive").
 * Card styles live in the layout's Category Grid module (Custom Layout > CSS).
 */

/* Roboto 500 and 600, self-hosted (SIL OFL, see assets/fonts/roboto/OFL.txt).
   The site's Google Fonts request only carries Roboto 400. */
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/roboto/roboto-latin-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/roboto/roboto-latin-600-normal.woff2") format("woff2");
}

/* Instrument Type pages: white cards in the band. */
.mltp-card > .fl-col-content {
	border-radius: 0 0 15px 15px;
	background: #fff;
}

/* Accordion sections (PowerPack Advanced Accordion, class mltp-type-sections). */
.mltp-type-sections .pp-accordion-button {
	box-sizing: border-box;
	min-height: 73px;
}

.mltp-type-sections .pp-accordion-button-label {
	margin: 0;
}

.mltp-type-sections .pp-accordion-button:focus-visible {
	outline: 2px solid #41b6e6;
	outline-offset: -2px;
}

.mltp-type-sections .pp-accordion-button-icon {
	flex: none;
	width: 30px;
	height: 30px;
	background: url("../images/plus.svg") center / contain no-repeat;
	font-size: 0;
}

.mltp-type-sections .pp-accordion-button-icon::before {
	content: none;
}

.mltp-type-sections .pp-accordion-button-icon.pp-accordion-close {
	width: 35px;
	height: 35px;
	background-image: url("../images/minus.svg");
}

.mltp-type-sections .pp-accordion-item-active {
	overflow: hidden;
	border-radius: 0 0 15px 15px;
}

.mltp-instrument-empty {
	margin: 0;
	padding: 20px 40px 30px;
	color: #505050;
	font-size: 18px;
}

/* Product table: [mltp_instrument_table]. Wide tables scroll inside their own box. */
.mltp-table-scroll {
	overflow-x: auto;
}

.mltp-table-scroll:focus-visible {
	outline: 2px solid #41b6e6;
	outline-offset: -2px;
}

.mltp-instrument-table {
	width: 100%;
	min-width: 760px;
	margin: 0;
	border-collapse: collapse;
	border: 0;
}

.mltp-instrument-table th,
.mltp-instrument-table td {
	border: 0;
	text-align: center;
}

.mltp-instrument-table thead th {
	padding: 15px 20px;
	background: #003087;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	vertical-align: bottom;
}

.mltp-instrument-table thead th:first-child {
	width: 206px;
}

.mltp-instrument-table tbody th,
.mltp-instrument-table tbody td {
	padding: 20px;
	color: #505050;
	font-size: 20px;
	font-weight: 400;
	line-height: 22px;
	vertical-align: middle;
}

.mltp-instrument-table tbody tr {
	background: #fff;
}

.mltp-instrument-table tbody tr:nth-child(even) {
	background: #f2f2f2;
}

.fl-builder-content a.mltp-instrument-link,
a.mltp-instrument-link {
	display: block;
	color: #5696c8;
	text-decoration: none;
}

.mltp-instrument-link:hover .mltp-instrument-part,
.mltp-instrument-link:focus-visible .mltp-instrument-part {
	text-decoration: underline;
}

.mltp-instrument-link img {
	display: block;
	width: 100%;
	max-width: 166px;
	height: auto;
	margin: 0 auto 5px;
}

/* Documents & Support links. */
.mltp-doc-links p {
	margin: 0 0 20px;
}

.mltp-doc-links p:last-child {
	margin-bottom: 0;
}

.fl-builder-content .mltp-doc-links a {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	min-height: 32px;
	color: #003087;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}

.fl-builder-content .mltp-doc-links a:hover,
.fl-builder-content .mltp-doc-links a:focus-visible {
	text-decoration: underline;
}

.mltp-doc-links a::after {
	flex: none;
	width: 18px;
	height: 20px;
	background: url("../images/arrow-resources.svg") center / contain no-repeat;
	content: "";
}

@media (max-width: 1200px) {
	.mltp-instrument-table thead th {
		padding: 12px;
		font-size: 15px;
		line-height: 20px;
	}

	.mltp-instrument-table thead th:first-child {
		width: 160px;
	}

	.mltp-instrument-table tbody th,
	.mltp-instrument-table tbody td {
		padding: 14px 12px;
		font-size: 16px;
		line-height: 20px;
	}
}

/* Phones: each instrument becomes a labelled card instead of a wide table. */
@media (max-width: 768px) {
	.mltp-table-scroll {
		overflow-x: visible;
	}

	.mltp-instrument-table,
	.mltp-instrument-table tbody,
	.mltp-instrument-table tr,
	.mltp-instrument-table tbody th,
	.mltp-instrument-table tbody td {
		display: block;
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
	}

	.mltp-instrument-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.mltp-instrument-table tbody tr {
		padding: 16px 20px;
	}

	.mltp-instrument-table tbody th {
		padding: 0 0 12px;
	}

	.mltp-instrument-table tbody td {
		display: flex;
		gap: 16px;
		justify-content: space-between;
		padding: 8px 0;
		border-top: 1px solid #e2e2e2;
		text-align: right;
	}

	.mltp-instrument-table tbody td::before {
		flex: 0 0 45%;
		color: #003087;
		font-weight: 600;
		text-align: left;
		content: attr(data-label);
	}

	.mltp-type-sections .pp-accordion-button {
		min-height: 60px;
	}
}

/* A term description already carries its own paragraphs; drop the empty ones the text module adds around it. */
.mltp-card .fl-rich-text p:empty {
	display: none;
}

.mltp-card .fl-rich-text p {
	margin: 0;
}

.mltp-card .fl-rich-text p:not(:empty) + p:not(:empty) {
	margin-top: 1em;
}

/* Headline with no description: no leftover space under the heading. */
.mltp-card .fl-module.fl-module-heading:last-child {
	margin-bottom: 0;
}
