/* MediScanIO Lab Tests — inherits the theme's fonts; colours can be overridden with the variables below. */
.mlt-box, .mlt-index, .mlt-table-wrap, .mlt-checker {
	--mlt-accent: #4a8c6f;
	--mlt-accent-soft: #eef6f2;
	--mlt-border: #dfe6e2;
	--mlt-muted: #5f6b66;
	--mlt-low: #b4590f;
	--mlt-low-bg: #fdf3ea;
	--mlt-high: #b3261e;
	--mlt-high-bg: #fcefee;
	--mlt-ok: #2e7d4f;
	--mlt-ok-bg: #edf7f0;
	box-sizing: border-box;
}
.mlt-box *, .mlt-index *, .mlt-checker * { box-sizing: border-box; }

.mlt-box {
	border: 1px solid var(--mlt-border);
	border-radius: 12px;
	padding: 18px 20px;
	margin: 0 0 1.5em;
	background: #fff;
}
.mlt-quick { background: var(--mlt-accent-soft); border-color: transparent; border-left: 4px solid var(--mlt-accent); }
.mlt-quick-lead { font-size: 1.06em; margin: 0 0 .8em; }
.mlt-facts { margin: 0; display: grid; gap: 8px; }
.mlt-facts > div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; }
.mlt-facts dt { font-weight: 600; margin: 0; }
.mlt-facts dd { margin: 0; }
@media (max-width: 560px) { .mlt-facts > div { grid-template-columns: 1fr; gap: 0; } }

.mlt-h2 { margin-top: 1.6em; margin-bottom: .6em; }
.mlt-h3 { font-size: 1.15em; margin: 0 0 .6em; }

.mlt-table-wrap { overflow-x: auto; margin: 0 0 .6em; -webkit-overflow-scrolling: touch; }
.mlt-table { width: 100%; border-collapse: collapse; font-size: .97em; margin: 0; }
.mlt-table th, .mlt-table td { padding: 10px 12px; border-bottom: 1px solid var(--mlt-border); text-align: left; vertical-align: top; }
.mlt-table thead th { background: var(--mlt-accent); color: #fff; font-weight: 600; border-bottom: 0; }
.mlt-table thead th:first-child { border-top-left-radius: 8px; }
.mlt-table thead th:last-child { border-top-right-radius: 8px; }
.mlt-table tbody th { font-weight: 600; }
.mlt-table tbody tr:nth-child(even) { background: #fafcfb; }
.mlt-table a { text-decoration: none; }
.mlt-table a:hover { text-decoration: underline; }

.mlt-note { margin: .4em 0 .6em; }
.mlt-note-muted { color: var(--mlt-muted); font-size: .9em; }

.mlt-related { margin-top: 2em; }
.mlt-partof { margin: 0 0 .9em; }
.mlt-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mlt-chips li { margin: 0; }
.mlt-chips a { display: inline-block; padding: 6px 12px; border: 1px solid var(--mlt-border); border-radius: 999px; text-decoration: none; font-size: .92em; }
.mlt-chips a:hover { border-color: var(--mlt-accent); color: var(--mlt-accent); }

.mlt-sources { font-size: .92em; }
.mlt-trust { background: #fafcfb; font-size: .92em; }
.mlt-reviewed { margin: 0 0 .5em; }
.mlt-disclaimer { margin: 0; color: var(--mlt-muted); }

/* Hub */
.mlt-cards { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mlt-card { margin: 0; }
.mlt-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border: 1px solid var(--mlt-border); border-radius: 12px; text-decoration: none; color: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.mlt-card a:hover { border-color: var(--mlt-accent); box-shadow: 0 4px 14px rgba(74, 140, 111, .12); }
.mlt-card-title { font-weight: 700; color: var(--mlt-accent); }
.mlt-card-text { font-size: .9em; color: var(--mlt-muted); }
.mlt-card-count { margin-top: auto; font-size: .82em; font-weight: 600; }

.mlt-search { display: block; margin: 0 0 1em; }
.mlt-search input { width: 100%; max-width: 520px; padding: 11px 14px; border: 1px solid var(--mlt-border); border-radius: 10px; font: inherit; }
.mlt-search input:focus { outline: 2px solid var(--mlt-accent); outline-offset: 1px; }
.mlt-az { columns: 3 240px; column-gap: 28px; }
.mlt-az-group { break-inside: avoid; margin: 0 0 1em; }
.mlt-az-letter { font-size: 1.1em; color: var(--mlt-accent); border-bottom: 1px solid var(--mlt-border); padding-bottom: 4px; margin: 0 0 6px; }
.mlt-az ul { list-style: none; margin: 0; padding: 0; }
.mlt-az li { margin: 0; padding: 3px 0; }
.mlt-az a { text-decoration: none; }
.mlt-az a:hover { text-decoration: underline; }
.mlt-empty { column-span: all; color: var(--mlt-muted); }
.mlt-index [hidden] { display: none !important; }

/* Checker */
.mlt-checker-grid { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr 1fr; margin: 12px 0; }
@media (max-width: 720px) { .mlt-checker-grid { grid-template-columns: 1fr 1fr; } .mlt-checker-grid label:first-child { grid-column: 1 / -1; } }
.mlt-checker label { display: flex; flex-direction: column; gap: 4px; font-size: .9em; font-weight: 600; margin: 0; }
.mlt-checker select, .mlt-checker input { width: 100%; padding: 10px 12px; border: 1px solid var(--mlt-border); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; min-height: 44px; }
.mlt-checker select:disabled { background: #f4f6f5; }
.mlt-result:empty { display: none; }
.mlt-result { border-radius: 10px; padding: 14px 16px; background: #f4f6f5; }
.mlt-result p { margin: 0 0 .4em; }
.mlt-result-status { font-weight: 700; font-size: 1.1em; }
.mlt-result.is-normal { background: var(--mlt-ok-bg); } .mlt-result.is-normal .mlt-result-status { color: var(--mlt-ok); }
.mlt-result.is-low { background: var(--mlt-low-bg); } .mlt-result.is-low .mlt-result-status { color: var(--mlt-low); }
.mlt-result.is-high { background: var(--mlt-high-bg); } .mlt-result.is-high .mlt-result-status { color: var(--mlt-high); }
.mlt-result a { display: inline-block; margin: .2em 0 .6em; font-weight: 600; }

.mlt-inline-range { white-space: normal; }

/* Unit-system labels in range tables */
.mlt-sys { display: block; font-size: .74em; font-weight: 500; opacity: .85; margin-top: 2px; }

/* Article sections written by the importer */
.mlt-sec { border-radius: 14px; padding: 20px 22px 8px; margin: 26px 0; }
.mlt-sec > :first-child, .mlt-sec > .wp-block-group__inner-container > :first-child { margin-top: 0 !important; }
.mlt-sec > :last-child, .mlt-sec > .wp-block-group__inner-container > :last-child { margin-bottom: 12px; }
.mlt-sec h2 { margin-top: 0; }
.mlt-sec h3 { font-size: 1.02em; margin: 16px 0 6px; }
.mlt-sec ul { margin: 0 0 14px; padding-left: 20px; }
.mlt-sec li { margin: 0 0 5px; }
.mlt-sec-high { background: #fff2ef; }
.mlt-sec-high h2 { color: #b83a33; }
.mlt-sec-low { background: #eef6fc; }
.mlt-sec-low h2 { color: #1f6aa3; }
.mlt-sec-doctor { background: #fff7e6; border: 1px solid #f3d9a6; padding-bottom: 6px; }
.mlt-sec-doctor h2 { color: #8a5200; }
.mlt-sec ul.mlt-diet { list-style: none; padding-left: 0; }
.mlt-sec ul.mlt-diet li { position: relative; padding-left: 28px; }
.mlt-sec ul.mlt-diet li::before { content: ''; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: #2e7d4f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 600px) { .mlt-sec { padding: 16px 16px 6px; margin: 20px -4px; } }
