/* Canonical OHLП component shell. PDF rendering/navigation behavior lives in
 * js/medvise-ohlp-viewer.js; this file supplies the reusable theme layout. */
.medvise-ohlp-viewer {
	--medvise-ohlp-blue: #2f79a8;
	--medvise-ohlp-border: #d8dde7;
	--medvise-ohlp-muted: #637083;
	--medvise-ohlp-nav-width: 280px;
	--medvise-ohlp-nav-gap: 30px;
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	margin: 42px 0 28px;
	padding: 0;
	overflow: visible;
	box-sizing: border-box;
}

/* GRLS catalog */
body.class-name-page-grls-instructions-catalog #main-content.site-main,
body.class-name-page-grls-instructions-catalog #themesflat-content.page-wrap {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

body.class-name-page-grls-instructions-catalog #main.main-content {
	max-width: none;
	margin-inline: 0;
}

@media (min-width: 992px) {
	body.class-name-page-grls-instructions-catalog #themesflat-content > .container {
		width: min(1320px, calc(100% - 32px));
		max-width: 1320px;
	}
}

.medvise-grls-public {
	--grls-blue: #0877be;
	--grls-blue-dark: #075d96;
	--grls-ink: #172b36;
	--grls-muted: #61737d;
	--grls-border: #d9e5eb;
	--grls-soft: #f2f8fb;
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	color: var(--grls-ink);
}

.medvise-grls-search-hero {
	position: relative;
	z-index: 5;
	margin: 0 0 24px;
	padding: clamp(22px, 3vw, 34px) clamp(20px, 3.4vw, 40px);
	overflow: visible;
	border: 1px solid #dceaf3;
	border-radius: 20px;
	background:
		radial-gradient(circle at 97% 4%, rgba(87, 190, 225, .18), transparent 36%),
		linear-gradient(135deg, #f8fcff 0%, #eef8fd 60%, #f8fbfd 100%);
	box-shadow: 0 12px 34px rgba(18, 71, 103, .06);
}

.medvise-grls-search-kicker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	padding: 5px 12px 5px 11px;
	border-radius: 999px;
	background: rgba(8, 119, 190, .09);
	color: var(--grls-blue);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.medvise-grls-search-kicker::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	content: '';
}

.medvise-grls-search-hero h2 {
	max-width: 680px;
	margin: 0 0 8px;
	color: var(--grls-ink);
	font-size: clamp(22px, 2.6vw, 31px);
	font-weight: 760;
	line-height: 1.14;
	letter-spacing: -.01em;
}

.medvise-grls-search-lead {
	max-width: 640px;
	margin: 0 0 18px;
	color: var(--grls-muted);
	font-size: clamp(14px, 1.4vw, 16px);
	line-height: 1.5;
}

.medvise-grls-public-search {
	position: relative;
	max-width: 920px;
	margin: 0;
}

.medvise-grls-combobox {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	padding: 7px;
	border: 1px solid #c8dce7;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(19, 69, 99, .1);
	transition: border-color .18s ease, box-shadow .18s ease;
}

.medvise-grls-combobox:focus-within {
	border-color: #8fc3e6;
	box-shadow: 0 0 0 4px rgba(8, 119, 190, .13), 0 12px 30px rgba(19, 69, 99, .12);
}

.medvise-grls-search-icon {
	position: absolute;
	top: 50%;
	left: 22px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 2px solid #7293a6;
	border-radius: 50%;
	pointer-events: none;
}

.medvise-grls-search-icon::after {
	position: absolute;
	right: -6px;
	bottom: -4px;
	width: 7px;
	height: 2px;
	border-radius: 2px;
	background: #7293a6;
	content: '';
	transform: rotate(45deg);
}

.medvise-grls-public-search input[type="search"] {
	width: 100%;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 16px 0 48px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--grls-ink);
	font-size: 16px;
	outline: 0;
}

.medvise-grls-public-search input[type="search"]:focus {
	box-shadow: none;
}

.medvise-grls-public-search button {
	min-width: 126px;
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--grls-blue), #1396ce);
	box-shadow: 0 8px 18px rgba(8, 119, 190, .22);
	color: #fff;
	font-weight: 750;
	letter-spacing: .01em;
	cursor: pointer;
	transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
}

.medvise-grls-public-search button:hover,
.medvise-grls-public-search button:focus-visible {
	background: linear-gradient(135deg, var(--grls-blue-dark), #1186bd);
	box-shadow: 0 10px 22px rgba(8, 119, 190, .28);
}

.medvise-grls-public-search button:active {
	transform: translateY(1px);
}

.medvise-grls-search-help,
.medvise-grls-search-status {
	margin: 10px 2px 0;
	color: var(--grls-muted);
	font-size: 13px;
}

.medvise-grls-search-status:empty {
	display: none;
}

.medvise-grls-search-reset {
	display: inline-block;
	margin-top: 10px;
	color: var(--grls-blue-dark);
	font-size: 14px;
	font-weight: 700;
}

.medvise-grls-suggestions {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 100;
	max-height: min(60vh, 520px);
	overflow-y: auto;
	border: 1px solid #cddfe8;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 22px 55px rgba(18, 55, 77, .2);
}

.medvise-grls-suggestion {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 5px 18px;
	width: 100%;
	min-height: 72px;
	padding: 13px 16px;
	border: 0;
	border-bottom: 1px solid #e8f0f4;
	background: #fff;
	color: var(--grls-ink);
	text-align: left;
	cursor: pointer;
}

.medvise-grls-suggestion:last-child {
	border-bottom: 0;
}

.medvise-grls-suggestion:hover,
.medvise-grls-suggestion[aria-selected="true"] {
	background: #edf8fd;
}

.medvise-grls-suggestion-name {
	font-size: 16px;
	font-weight: 780;
}

.medvise-grls-suggestion-inn,
.medvise-grls-suggestion-form,
.medvise-grls-suggestion-reg {
	color: var(--grls-muted);
	font-size: 13px;
	line-height: 1.35;
}

.medvise-grls-suggestion-reg {
	grid-column: 2;
	grid-row: 1;
	white-space: nowrap;
}

.medvise-grls-suggestion-form {
	grid-column: 1 / -1;
}

.medvise-grls-suggestion mark {
	padding: 0;
	border-radius: 2px;
	background: #fff1a8;
	color: inherit;
}

.medvise-grls-public-summary {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 20px;
	color: var(--grls-muted);
}

.medvise-grls-public-summary span {
	padding: 8px 12px;
	border: 1px solid var(--grls-border);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
}

.medvise-grls-public-intro {
	margin: 0 0 18px;
	color: var(--grls-muted);
}

.medvise-grls-public-inn {
	margin: 0 0 12px;
	overflow: hidden;
	border: 1px solid var(--grls-border);
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(24, 68, 92, .05);
}

.medvise-grls-public-inn > summary,
.medvise-grls-public-trade > summary {
	cursor: pointer;
	list-style: none;
}

.medvise-grls-public-inn > summary::-webkit-details-marker,
.medvise-grls-public-trade > summary::-webkit-details-marker {
	display: none;
}

.medvise-grls-public-inn > summary {
	padding: 18px 20px;
	font-size: 20px;
	font-weight: 760;
}

.medvise-grls-public-inn[open] > summary {
	border-bottom: 1px solid var(--grls-border);
	background: var(--grls-soft);
}

.medvise-grls-public-trade {
	margin: 14px;
}

.medvise-grls-public-trade > summary {
	padding: 12px 14px;
	border-radius: 10px;
	background: #edf7fb;
	font-size: 17px;
	font-weight: 730;
}

.medvise-grls-public-form {
	margin: 12px 0 0;
	padding: 16px;
	border: 1px solid var(--grls-border);
	border-radius: 12px;
	background: #fff;
}

.medvise-grls-public-form-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	justify-content: space-between;
	margin: 0 0 12px;
}

.medvise-grls-public-form-title { font-weight: 750; }
.medvise-grls-public-meta { margin: 4px 0 0; color: var(--grls-muted); font-size: 13px; }
.medvise-grls-public-docs { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
.medvise-grls-public-doc { padding: 14px; border: 1px solid #d5eaf4; border-radius: 10px; background: var(--grls-soft); }
.medvise-grls-public-doc strong { display: block; margin: 0 0 5px; }
.medvise-grls-public-doc small { display: block; margin: 0 0 8px; color: var(--grls-muted); }
.medvise-grls-public-note { margin: 8px 0 0; color: var(--grls-muted); font-size: 13px; }
.medvise-grls-public-warning { margin: 10px 0 0; padding: 9px 11px; border: 1px solid #f1d28f; border-radius: 8px; background: #fff8e8; color: #8a4b00; }
.medvise-grls-public-link { display: inline-block; padding: 9px 12px; border: 1px solid #b9d9f3; border-radius: 8px; background: #eef7ff; color: #1262a3; font-weight: 700; text-decoration: none; }
.medvise-grls-public-pagination { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 24px 0; }
.medvise-grls-public-pagination a { display: inline-block; padding: 10px 14px; border: 1px solid var(--grls-border); border-radius: 8px; text-decoration: none; }

@media (max-width: 820px) {
	.medvise-grls-search-hero { border-radius: 19px; }
	.medvise-grls-public-docs { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.medvise-grls-search-hero { margin-inline: -8px; padding: 24px 16px; border-radius: 16px; }
	.medvise-grls-combobox { grid-template-columns: 1fr; padding: 6px; }
	.medvise-grls-search-icon { top: 32px; }
	.medvise-grls-public-search button { width: 100%; }
	.medvise-grls-suggestions { top: calc(100% - 2px); }
	.medvise-grls-suggestion { grid-template-columns: 1fr; min-height: 82px; padding: 13px; }
	.medvise-grls-suggestion-reg { grid-column: 1; grid-row: auto; white-space: normal; }
	.medvise-grls-suggestion-form { grid-column: 1; }
	.medvise-grls-public-form-head { display: block; }
	.medvise-grls-public-form-head .medvise-grls-public-link { margin-top: 10px; }
	.medvise-grls-public-pagination { align-items: flex-start; flex-direction: column; }
}

body.medvise-ohlp-layout-active #primary.content-area.medvise-ohlp-content-area,
body.medvise-ohlp-layout-active .content-area.medvise-ohlp-content-area {
	width: 100%;
	max-width: 800px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.medvise-ohlp-nav,
.medvise-ohlp-scroll {
	background: #fff;
	border: 1px solid var(--medvise-ohlp-border);
	box-shadow: 0 14px 34px rgba(23, 46, 77, 0.08);
}

.medvise-ohlp-nav {
	position: absolute;
	z-index: 2;
	top: 0;
	left: calc((var(--medvise-ohlp-nav-width) + var(--medvise-ohlp-nav-gap)) * -1);
	width: var(--medvise-ohlp-nav-width);
	height: auto;
	min-height: 0;
	max-height: none;
	overflow: visible;
	padding: 22px 20px;
	box-sizing: border-box;
}

.medvise-ohlp-nav h2 {
	margin: 0 0 16px;
	color: var(--medvise-ohlp-muted);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
}

.medvise-ohlp-nav-link {
	display: block;
	padding: 5px 8px;
	border-radius: 8px;
	color: var(--medvise-ohlp-blue);
	line-height: 1.28;
	text-decoration: underline;
}

.medvise-ohlp-nav-link[data-level="2"],
.medvise-ohlp-nav-link[data-level="3"] {
	margin-left: 16px;
	font-size: 0.94em;
}

.medvise-ohlp-nav-link[data-level="3"] {
	margin-left: 28px;
}

.medvise-ohlp-nav-link:hover,
.medvise-ohlp-nav-link.is-active {
	background: #eef6fb;
	color: #174d70;
}

.medvise-ohlp-scroll {
	width: 100%;
	height: auto;
	min-height: 0;
	max-height: none;
	overflow: visible;
	padding: 0;
	box-sizing: border-box;
}

.medvise-ohlp-pdf-document {
	width: 100%;
	height: auto;
	margin: 0 auto;
}

.medvise-ohlp-pdf-frame {
	display: block;
	width: 100%;
	height: 1100px;
	min-height: 0;
	border: 0;
	background: #fff;
}

@media (max-width: 900px) {
	.medvise-ohlp-viewer {
		margin-top: 36px;
	}

	body.medvise-ohlp-layout-active #primary.content-area.medvise-ohlp-content-area,
	body.medvise-ohlp-layout-active .content-area.medvise-ohlp-content-area {
		max-width: none;
	}

	.medvise-ohlp-nav {
		position: static;
		width: 100%;
		margin-bottom: 18px;
	}

	.medvise-ohlp-scroll {
		height: auto;
		max-height: none;
		overflow: visible;
	}
}

/* OHLП PDF viewer: narrow the main white content block on generated substance pages. */
body.single-substance #themesflat-content.page-wrap > .container:has(.medvise-ohlp-viewer),
body.single-substance .page-wrap > .container:has(.medvise-ohlp-viewer),
body.medvise-ohlp-layout-active #themesflat-content.page-wrap > .container.medvise-ohlp-container,
body.medvise-ohlp-layout-active .page-wrap > .container.medvise-ohlp-container {
	width: calc(100% - 40px);
	max-width: 800px;
	margin-left: auto !important;
	margin-right: auto !important;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-nav,
body.single-substance .medvise-ohlp-viewer .medvise-ohlp-scroll {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-pdf-document {
	height: auto !important;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-pdf-frame {
	min-height: 1100px;
	max-height: none;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-desktop-pdf {
	display: none;
	width: 100%;
	min-height: 320px;
	padding: 0;
	background: #d1d3d8;
	border: 1px solid #d8dde7;
	box-sizing: border-box;
	text-align: center;
	overflow-x: hidden;
	overflow-y: auto;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	overscroll-behavior: contain;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-desktop-pdf-page {
	position: relative;
	width: 100%;
	margin: 0 auto 18px;
	background: #fff;
	box-shadow: 0 1px 5px rgba(16, 35, 61, 0.16);
	overflow: hidden;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-desktop-pdf-page canvas {
	display: block;
	width: 100% !important;
	height: auto !important;
	margin: 0 auto;
	background: #fff;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-text-layer {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	text-align: left;
	line-height: 1;
	transform-origin: 0 0;
	-webkit-user-select: text;
	user-select: text;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-text-layer span,
body.single-substance .medvise-ohlp-viewer .medvise-ohlp-text-layer br {
	position: absolute;
	color: transparent;
	white-space: pre;
	cursor: text;
	transform-origin: 0 0;
	-webkit-user-select: text;
	user-select: text;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-text-layer ::selection {
	background: rgba(47, 121, 168, 0.28);
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-desktop-pdf-status {
	padding: 32px 16px;
	color: #637083;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-desktop-pdf-open {
	display: inline-block;
	margin: 24px;
	padding: 14px 20px;
	border-radius: 10px;
	background: #2f79a8;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-mobile-toolbar {
	display: none;
}

body.medvise-ohlp-desktop-pdf-active .medvise-ohlp-viewer .medvise-ohlp-pdf-frame {
	display: none !important;
}

body.medvise-ohlp-desktop-pdf-active .medvise-ohlp-viewer .medvise-ohlp-desktop-pdf {
	display: block;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-mobile-pdf {
	display: none;
	width: 100%;
	height: min(72vh, 680px);
	min-height: 360px;
	background: #f7f8fb;
	border: 1px solid #d8dde7;
	box-sizing: border-box;
	text-align: center;
	overflow-x: hidden;
	overflow-y: auto;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	overscroll-behavior: contain;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-mobile-pdf canvas {
	display: block;
	width: 100% !important;
	height: auto !important;
	margin: 0 auto;
	background: #fff;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-mobile-pdf-page {
	position: relative;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 1px 5px rgba(16, 35, 61, 0.14);
	overflow: hidden;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-mobile-pdf-status {
	padding: 32px 16px;
	color: #637083;
}

body.single-substance .medvise-ohlp-viewer .medvise-ohlp-mobile-pdf-open {
	display: inline-block;
	margin: 24px;
	padding: 14px 20px;
	border-radius: 10px;
	background: #2f79a8;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 900px) {
	body.single-substance #themesflat-content.page-wrap > .container:has(.medvise-ohlp-viewer),
	body.single-substance .page-wrap > .container:has(.medvise-ohlp-viewer),
	body.medvise-ohlp-layout-active #themesflat-content.page-wrap > .container.medvise-ohlp-container,
	body.medvise-ohlp-layout-active .page-wrap > .container.medvise-ohlp-container {
		width: 100%;
		max-width: none;
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready {
		margin-top: 24px;
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-toolbar {
		position: sticky;
		top: 0;
		z-index: 5;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 10px;
		align-items: center;
		margin: 0 0 12px;
		padding: 10px;
		background: #fff;
		border: 1px solid #d8dde7;
		box-shadow: 0 8px 22px rgba(23, 46, 77, 0.1);
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-toc-button {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 40px;
		padding: 8px 12px;
		border: 0;
		border-radius: 6px;
		background: #174d70;
		color: #fff;
		font-weight: 700;
		line-height: 1.2;
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-toc-icon {
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready.medvise-ohlp-nav-open .medvise-ohlp-mobile-toc-icon {
		transform: rotate(225deg) translateY(-2px);
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-current {
		min-width: 0;
		color: #10233d;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.25;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-nav {
		display: none;
		position: static !important;
		width: 100% !important;
		height: auto !important;
		max-height: min(58vh, 520px) !important;
		margin: 0 0 12px;
		overflow: auto !important;
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready.medvise-ohlp-nav-open .medvise-ohlp-nav {
		display: block;
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-scroll {
		overflow: visible !important;
	}

	body.medvise-ohlp-mobile-pdf-active .medvise-ohlp-viewer .medvise-ohlp-pdf-frame {
		display: none !important;
	}

	body.medvise-ohlp-desktop-pdf-active .medvise-ohlp-viewer .medvise-ohlp-desktop-pdf {
		display: none !important;
	}

	body.medvise-ohlp-mobile-pdf-active .medvise-ohlp-viewer .medvise-ohlp-mobile-pdf {
		display: block;
	}
}

/* --- LOCAL LAB: mobile UI/UX polish for substance article --- */
@media (max-width: 900px) {
	/* Article title: long unbreakable tokens like "Линаглиптин+Эмпаглифлозин"
	   were clipping off the right edge — let them wrap and tighten the size. */
	body.single-substance h1.entry-title {
		font-size: 23px;
		line-height: 1.28;
		margin: 2px 0 14px;
		overflow-wrap: break-word;
		word-break: break-word;
		-webkit-hyphens: auto;
		hyphens: auto;
	}

	/* Share button: drop the awkward right float, make it a tidy left-aligned
	   tap target that wraps instead of overflowing. */
	body.single-substance .main-post .text-end {
		text-align: left;
	}

	body.single-substance .podelitsya-article {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		max-width: 100%;
		padding: 11px 16px;
		font-size: 15px;
		line-height: 1.2;
		white-space: normal;
		border-radius: 8px;
	}

	/* Current section in the sticky TOC bar: allow up to 2 lines so titles
	   like "6.5. Характер и содержание..." stay readable. */
	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-current {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		white-space: normal;
		font-size: 14px;
		line-height: 1.3;
	}

	/* Reclaim a little horizontal room and give the PDF a softer frame. */
	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-pdf {
		position: relative;
		height: min(76vh, 720px);
		border-radius: 10px;
		border-color: #e2e6ee;
	}

	/* Full-document mobile render: separate the stacked pages a touch. */
	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-pdf-page {
		margin: 0 auto 10px;
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-pdf-page:last-child {
		margin-bottom: 0;
	}

	body.single-substance .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-toolbar {
		border-radius: 10px;
	}
}

/* GRLS clinical reader: responsive desktop, tablet and mobile workspace. */
body.medvise-grls-document-page {
	--medvise-reader-blue: #1478b8;
	--medvise-reader-blue-dark: #125a88;
	--medvise-reader-ink: #17324d;
	--medvise-reader-muted: #62778a;
	--medvise-reader-border: #dce6ee;
	--medvise-reader-surface: #fff;
	--medvise-reader-bg: #f3f6f9;
	background: var(--medvise-reader-bg);
}

body.medvise-grls-document-page #themesflat-content.page-wrap,
body.medvise-grls-document-page #themesflat-content.page-wrap.fullwidth {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-top: 18px;
	padding-bottom: 30px;
	background: var(--medvise-reader-bg);
}

body.medvise-grls-document-page #main-content.site-main {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

body.medvise-grls-document-page #themesflat-content.page-wrap > .container.medvise-ohlp-container,
body.medvise-grls-document-page .page-wrap > .container.medvise-ohlp-container {
	width: min(1320px, calc(100% - 48px)) !important;
	max-width: 1320px !important;
	padding: 20px 24px 26px;
	border: 1px solid rgba(220, 230, 238, 0.9);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 18px 50px rgba(20, 55, 83, 0.07);
}

body.medvise-grls-document-page #primary.content-area.medvise-ohlp-content-area,
body.medvise-grls-document-page .content-area.medvise-ohlp-content-area {
	width: 100%;
	max-width: none;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

body.medvise-grls-document-page #primary.medvise-ohlp-content-area #main.main-content,
body.medvise-grls-document-page .medvise-ohlp-content-area .main-content {
	width: 100%;
	max-width: none;
	margin-right: 0;
	margin-left: 0;
}

body.medvise-grls-document-page .medvise-ohlp-container > .row {
	margin-right: 0;
	margin-left: 0;
}

body.medvise-grls-document-page .medvise-ohlp-container > .row > [class*="col-"] {
	padding-right: 0;
	padding-left: 0;
}

body.medvise-grls-document-page h1.entry-title {
	display: none;
}

body.medvise-grls-document-page .medvise-grls-document {
	width: 100%;
}

body.medvise-grls-document-page .medvise-grls-document-back {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin: 0 0 10px;
	padding: 6px 11px;
	border: 1px solid var(--medvise-reader-border);
	border-radius: 10px;
	background: #f8fbfd;
	color: var(--medvise-reader-blue-dark);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.medvise-grls-document-page .medvise-grls-document-back:hover {
	border-color: #a9cde3;
	background: #edf7fc;
	transform: translateX(-2px);
}

body.medvise-grls-document-page .medvise-grls-document-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
	gap: 4px 24px;
	align-items: center;
	margin: 0;
	padding: 15px 18px;
	border: 1px solid var(--medvise-reader-border);
	border-radius: 14px;
	background: linear-gradient(135deg, #f8fcff 0%, #f2f8fc 100%);
	box-shadow: none;
}

body.medvise-grls-document-page .medvise-grls-document-head h2 {
	grid-column: 1;
	margin: 0;
	color: var(--medvise-reader-ink);
	font-size: clamp(23px, 1.8vw, 29px);
	font-weight: 750;
	line-height: 1.15;
	text-align: left;
}

body.medvise-grls-document-page .medvise-grls-document-head > p {
	grid-column: 1;
	margin: 0;
	color: var(--medvise-reader-muted);
	font-size: 14px;
	line-height: 1.25;
}

body.medvise-grls-document-page .medvise-grls-document-head .medvise-grls-document-eyebrow {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	margin: 0 0 2px;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(20, 120, 184, 0.1);
	color: var(--medvise-reader-blue);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.medvise-grls-document-page .medvise-grls-document-head .medvise-grls-document-form {
	color: var(--medvise-reader-ink);
}

body.medvise-grls-document-page .medvise-grls-document-meta {
	grid-column: 2;
	grid-row: 1 / span 4;
	display: grid;
	gap: 7px;
	justify-items: end;
	align-self: center;
	margin: 0;
	color: var(--medvise-reader-muted);
	font-size: 13px;
	line-height: 1.25;
	text-align: right;
}

body.medvise-grls-document-page .medvise-grls-document-meta span,
body.medvise-grls-document-page .medvise-grls-document-meta a {
	display: block;
}

body.medvise-grls-document-page .medvise-ohlp-viewer {
	display: grid;
	grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	margin: 16px 0 0;
}

body.medvise-grls-document-page .medvise-ohlp-viewer .medvise-ohlp-nav {
	position: sticky !important;
	top: 20px !important;
	left: auto !important;
	z-index: 4;
	width: 100% !important;
	height: auto !important;
	max-height: calc(100vh - 40px) !important;
	margin: 0;
	padding: 16px 12px 14px;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	border: 1px solid var(--medvise-reader-border);
	border-radius: 14px;
	background: var(--medvise-reader-surface);
	box-shadow: 0 12px 34px rgba(20, 55, 83, 0.08);
	scrollbar-width: thin;
	scrollbar-color: #b8c8d4 transparent;
}

body.medvise-grls-document-page .medvise-ohlp-nav h2 {
	position: sticky;
	top: -16px;
	z-index: 2;
	margin: 0 0 8px;
	padding: 16px 8px 11px;
	background: linear-gradient(#fff 82%, rgba(255, 255, 255, 0));
	color: var(--medvise-reader-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.09em;
}

body.medvise-grls-document-page .medvise-ohlp-nav-link {
	position: relative;
	display: block;
	margin: 2px 0;
	padding: 9px 10px 9px 13px;
	border: 0;
	border-radius: 9px;
	color: #246e9d;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.28;
	text-decoration: none;
	transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

body.medvise-grls-document-page .medvise-ohlp-nav-link::before {
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 0;
	width: 3px;
	border-radius: 4px;
	background: transparent;
	content: "";
}

body.medvise-grls-document-page .medvise-ohlp-nav-link[data-level="2"],
body.medvise-grls-document-page .medvise-ohlp-nav-link[data-level="3"] {
	margin-left: 12px;
	padding-left: 18px;
	font-size: 13px;
	font-weight: 600;
}

body.medvise-grls-document-page .medvise-ohlp-nav-link:hover {
	background: #f0f7fb;
	color: var(--medvise-reader-blue-dark);
	transform: translateX(2px);
}

body.medvise-grls-document-page .medvise-ohlp-nav-link.is-active {
	background: #e8f3fa;
	color: #104f78;
	box-shadow: inset 0 0 0 1px #cce3f1;
}

body.medvise-grls-document-page .medvise-ohlp-nav-link.is-active::before {
	background: var(--medvise-reader-blue);
}

body.medvise-grls-document-page .medvise-ohlp-nav-link:focus-visible,
body.medvise-grls-document-page .medvise-ohlp-mobile-toc-button:focus-visible {
	outline: 3px solid rgba(20, 120, 184, 0.26);
	outline-offset: 2px;
}

body.medvise-grls-document-page .medvise-ohlp-scroll {
	width: 100%;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	border: 0;
	border-radius: 14px;
	background: transparent;
	box-shadow: none;
}

body.medvise-grls-document-page .medvise-ohlp-desktop-pdf {
	height: min(78vh, 840px) !important;
	min-height: 600px;
	padding: 10px;
	overflow-y: auto;
	border: 1px solid #cfd9e2;
	border-radius: 14px;
	background: #dfe4e9;
	box-shadow: 0 14px 38px rgba(20, 55, 83, 0.1);
	scroll-padding-top: 64px;
}

body.medvise-grls-document-page .medvise-ohlp-desktop-pdf-page {
	border-radius: 3px;
	box-shadow: 0 2px 9px rgba(16, 35, 61, 0.18);
}

body.medvise-grls-document-page .medvise-ohlp-mobile-toolbar {
	display: none;
}

@media (min-width: 768px) and (max-width: 1100px) {
	body.medvise-ohlp-desktop-pdf-active .medvise-ohlp-viewer .medvise-ohlp-pdf-frame {
		display: none !important;
	}

	body.medvise-ohlp-desktop-pdf-active .medvise-ohlp-viewer .medvise-ohlp-desktop-pdf {
		display: block !important;
	}

	body.medvise-ohlp-desktop-pdf-active .medvise-ohlp-viewer .medvise-ohlp-mobile-pdf {
		display: none !important;
	}

	body.medvise-grls-document-page #themesflat-content.page-wrap {
		padding-top: 18px;
	}

	body.medvise-grls-document-page #themesflat-content.page-wrap > .container.medvise-ohlp-container,
	body.medvise-grls-document-page .page-wrap > .container.medvise-ohlp-container {
		width: calc(100% - 24px) !important;
		padding: 22px 20px 26px;
		border-radius: 15px;
	}

	body.medvise-grls-document-page .medvise-grls-document-head {
		grid-template-columns: minmax(0, 1fr);
	}

	body.medvise-grls-document-page .medvise-grls-document-meta {
		grid-column: 1;
		grid-row: auto;
		display: flex;
		justify-content: flex-start;
		justify-items: start;
		text-align: left;
	}

	body.medvise-grls-document-page .medvise-ohlp-viewer {
		grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
		gap: 16px;
	}

	body.medvise-grls-document-page .medvise-ohlp-viewer .medvise-ohlp-nav {
		top: 12px !important;
		max-height: calc(100vh - 24px) !important;
		padding-right: 9px;
		padding-left: 9px;
	}

	body.medvise-grls-document-page .medvise-ohlp-nav-link {
		padding: 8px 8px 8px 11px;
		font-size: 13px;
	}

	body.medvise-grls-document-page .medvise-ohlp-desktop-pdf {
		height: min(76vh, 760px) !important;
		min-height: 560px;
		padding: 7px;
	}
}

@media (max-width: 767px) {
	body.medvise-grls-document-page .themesflat-boxed {
		/* The theme's overflow:hidden turns this wrapper into the sticky
		 * containing block, so the TOC toolbar scrolls away with the article.
		 * `clip` preserves horizontal cropping without disabling vertical
		 * viewport stickiness. */
		overflow-x: clip;
		overflow-y: visible;
	}

	body.medvise-grls-document-page #themesflat-content.page-wrap {
		padding: 8px 0 24px;
	}

	body.medvise-grls-document-page #themesflat-content.page-wrap > .container.medvise-ohlp-container,
	body.medvise-grls-document-page .page-wrap > .container.medvise-ohlp-container {
		width: 100% !important;
		padding: 18px 14px 24px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	body.medvise-grls-document-page h1.entry-title {
		margin-bottom: 14px;
		font-size: 24px;
	}

	body.medvise-grls-document-page .medvise-grls-document-back {
		min-height: 38px;
		margin-bottom: 12px;
	}

	body.medvise-grls-document-page .medvise-grls-document-head {
		display: block;
		padding: 14px;
		border-radius: 12px;
	}

	body.medvise-grls-document-page .medvise-grls-document-head h2 {
		margin: 3px 0 6px;
		font-size: 22px;
		overflow-wrap: anywhere;
	}

	body.medvise-grls-document-page .medvise-grls-document-meta {
		display: flex;
		justify-content: flex-start;
		gap: 4px 10px;
		margin-top: 8px;
		font-size: 12px;
		text-align: left;
	}

	body.medvise-grls-document-page .medvise-ohlp-viewer {
		display: block;
		margin-top: 16px;
	}

	body.medvise-grls-document-page .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-toolbar {
		position: sticky;
		top: 8px;
		z-index: 30;
		grid-template-columns: auto minmax(0, 1fr);
		margin: 0 0 10px;
		padding: 8px;
		overflow: visible;
		overflow-anchor: none;
		border-color: var(--medvise-reader-border);
		border-radius: 12px;
		box-shadow: 0 10px 28px rgba(20, 55, 83, 0.13);
	}

	body.medvise-grls-document-page .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-toc-button {
		min-height: 42px;
		border-radius: 9px;
		background: var(--medvise-reader-blue-dark);
	}

	body.medvise-grls-document-page .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-mobile-current {
		color: var(--medvise-reader-ink);
		font-size: 13px;
	}

	body.medvise-grls-document-page .medvise-ohlp-viewer.medvise-ohlp-mobile-ready .medvise-ohlp-nav {
		position: absolute !important;
		top: calc(100% + 6px) !important;
		right: 0;
		left: 0;
		z-index: 31;
		display: none;
		width: 100% !important;
		max-height: min(56vh, 480px) !important;
		margin: 0;
		padding: 10px 9px;
		overflow: auto !important;
		overflow-anchor: none;
		background: #fff;
		border-radius: 12px;
		box-shadow: 0 16px 36px rgba(20, 55, 83, 0.22);
	}

	body.medvise-grls-document-page .medvise-ohlp-viewer.medvise-ohlp-mobile-ready.medvise-ohlp-nav-open .medvise-ohlp-nav {
		display: block;
	}

	body.medvise-grls-document-page .medvise-ohlp-nav h2 {
		top: -10px;
		margin-bottom: 4px;
		padding: 12px 8px 9px;
	}

	body.medvise-grls-document-page .medvise-ohlp-nav-link {
		padding-top: 10px;
		padding-bottom: 10px;
		font-size: 14px;
	}

	body.medvise-grls-document-page .medvise-ohlp-mobile-pdf {
		height: max(520px, calc(100dvh - 150px)) !important;
		min-height: 520px;
		padding: 5px;
		border-radius: 12px !important;
		background: #e3e8ed;
		box-shadow: 0 12px 30px rgba(20, 55, 83, 0.11);
		scroll-padding-top: 48px;
	}

	body.medvise-grls-document-page .medvise-ohlp-mobile-pdf-page {
		border-radius: 2px;
	}
}
