/*
 * Public full-text article display styles.
 * Edit this file to change heading, paragraph, image, table, and blockquote
 * formatting for the Article Full Text HTML plugin.
 */

body.pkp_page_article .article-full-text-html-content {
	--article-full-text-collapsed-height: 36rem;
	--article-full-text-image-border-color: #0000ff;
}

body.pkp_page_article .article-full-text-html-content {
	font-size: 1rem;
	line-height: 1.65;
}

body.pkp_page_article .article-full-text-html-is-collapsed .article-full-text-html-content {
	max-height: var(--article-full-text-collapsed-height);
	overflow: hidden;
	position: relative;
}

body.pkp_page_article .article-full-text-html-is-collapsed .article-full-text-html-content::after {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
	bottom: 0;
	content: "";
	height: 4rem;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
}

body.pkp_page_article .article-full-text-html-is-expanded .article-full-text-html-content {
	max-height: none;
	overflow: visible;
}

body.pkp_page_article .article-full-text-html-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0.75rem 0 0;
}

body.pkp_page_article .article-full-text-html-toggle {
	background: transparent;
	border: 0;
	color: #006798;
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	padding: 0;
	text-decoration: none;
}

body.pkp_page_article .article-full-text-html-toggle[hidden] {
	display: none !important;
}

body.pkp_page_article .article-full-text-html-toggle:hover,
body.pkp_page_article .article-full-text-html-toggle:focus {
	color: #004d71;
	text-decoration: none;
}

body.pkp_page_article .article-full-text-html-content .article-h1 {
	font-size: 1.65rem;
	line-height: 1.25;
	margin: 1.7rem 0 0.75rem;
}

body.pkp_page_article .article-full-text-html-content .article-h2 {
	font-size: 1.35rem;
	line-height: 1.3;
	margin: 1.5rem 0 0.65rem;
}

body.pkp_page_article .article-full-text-html-content .article-h3,
body.pkp_page_article .article-full-text-html-content .article-h4,
body.pkp_page_article .article-full-text-html-content .article-h5,
body.pkp_page_article .article-full-text-html-content .article-h6 {
	font-size: 1.1rem;
	line-height: 1.35;
	margin: 1.25rem 0 0.5rem;
}

body.pkp_page_article .article-full-text-html-content .article-h3 {
	font-style: italic;
}

body.pkp_page_article .article-full-text-html-content .article-p {
	margin: 0 0 1rem;
}

body.pkp_page_article .article-full-text-html-content .article-blockquote {
	border-left: 4px solid #d8d8d8;
	margin: 1rem 0;
	padding-left: 1rem;
}

body.pkp_page_article .article-full-text-html-content .article-figure {
	margin: 1.25rem 0;
	text-align: left;
}

body.pkp_page_article .article-full-text-html-content .article-figcaption {
	font-weight: 400;
	margin: 0 0 0.5rem;
	text-align: left;
}

body.pkp_page_article .article-full-text-html-content .article-figcaption strong {
	font-weight: 700;
}

body.pkp_page_article .article-full-text-html-content .article-figcaption em {
	font-style: italic;
	font-weight: 400;
}

body.pkp_page_article .article-full-text-html-content .article-figure-placeholder {
	border: 1px dashed #9a9a9a;
	color: #c00000;
	display: inline-block;
	font-style: italic;
	padding: 0.35rem 0.6rem;
}

body.pkp_page_article .article-full-text-html-content .article-media-notes {
	font-size: 0.95em;
	font-style: italic;
	margin-top: -0.6rem;
}

body.pkp_page_article .article-full-text-html-content .article-media-note {
	margin: 0 0 0.25rem !important;
	padding: 0 !important;
}

body.pkp_page_article .article-full-text-html-content .article-table-wrapper {
	margin: 1rem 0;
}

body.pkp_page_article .article-full-text-html-content .article-table-caption {
	font-weight: 400;
	margin: 0 0 0.5rem;
	text-align: left;
}

body.pkp_page_article .article-full-text-html-content .article-table-caption .article-p {
	display: inline;
	margin: 0;
}

body.pkp_page_article .article-full-text-html-content .article-table-caption strong {
	font-weight: 700;
}

body.pkp_page_article .article-full-text-html-content .article-table-caption em {
	font-style: italic;
	font-weight: 400;
}

body.pkp_page_article .article-full-text-html-content .article-caption-ref {
	text-decoration: none;
}

body.pkp_page_article .article-full-text-html-content .article-caption-ref:hover,
body.pkp_page_article .article-full-text-html-content .article-caption-ref:focus {
	font-weight: 700;
	text-decoration: none;
}

body.pkp_page_article .article-full-text-html-content .article-img {
	border: 1px solid var(--article-full-text-image-border-color);
	height: auto;
	max-width: 100%;
}

body.pkp_page_article .article-full-text-html-content .article-full-text-html-viewer-trigger {
	cursor: zoom-in;
}

body.pkp_page_article .article-full-text-html-content .article-full-text-html-viewer-trigger:focus {
	outline: 2px solid #006798;
	outline-offset: 3px;
}

body.article-full-text-html-viewer-open {
	overflow: hidden;
}

body.pkp_page_article .article-full-text-html-viewer {
	align-items: stretch;
	background: rgba(0, 0, 0, 0.78);
	bottom: 0;
	box-sizing: border-box;
	display: none;
	flex-direction: column;
	gap: 0.75rem;
	left: 0;
	padding: 1rem;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100000;
}

body.pkp_page_article .article-full-text-html-viewer.is-open {
	display: flex;
}

body.pkp_page_article .article-full-text-html-viewer-toolbar {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

body.pkp_page_article .article-full-text-html-viewer-button {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	color: #111;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	min-height: 2rem;
	min-width: 2.25rem;
	padding: 0.35rem 0.7rem;
}

body.pkp_page_article .article-full-text-html-viewer-button:hover,
body.pkp_page_article .article-full-text-html-viewer-button:focus {
	background: #fff;
	outline: 2px solid #66b5e8;
	outline-offset: 2px;
}

body.pkp_page_article .article-full-text-html-viewer-stage {
	background: rgba(255, 255, 255, 0.08);
	box-sizing: border-box;
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 1rem;
	text-align: center;
}

body.pkp_page_article .article-full-text-html-viewer-image {
	background: #fff;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: none;
}

@media (max-width: 640px) {
	body.pkp_page_article .article-full-text-html-viewer {
		padding: 0.5rem;
	}

	body.pkp_page_article .article-full-text-html-viewer-stage {
		padding: 0.5rem;
	}

	body.pkp_page_article .article-full-text-html-viewer-button {
		font-size: 0.85rem;
		min-height: 1.9rem;
		padding: 0.3rem 0.55rem;
	}
}

body.pkp_page_article .article-full-text-html-content .article-table {
	border-collapse: collapse;
	margin: 1rem 0;
	max-width: 100%;
	width: 100%;
}

body.pkp_page_article .article-full-text-html-content .article-th,
body.pkp_page_article .article-full-text-html-content .article-td {
	border: 1px solid #d6d6d6;
	padding: 0.45rem 0.6rem;
	vertical-align: middle !important;
}

body.pkp_page_article .article-full-text-html-content .article-th .article-p,
body.pkp_page_article .article-full-text-html-content .article-td .article-p,
body.pkp_page_article .article-full-text-html-content .article-table th p,
body.pkp_page_article .article-full-text-html-content .article-table td p {
	margin: 0 !important;
	padding: 0 !important;
}

body.pkp_page_article .article-full-text-html-content .article-table th,
body.pkp_page_article .article-full-text-html-content .article-table td {
	vertical-align: middle !important;
}

body.pkp_page_article .article-full-text-html-content .article-table .article-cell-vertical {
	text-align: center !important;
	vertical-align: middle !important;
}

body.pkp_page_article .article-full-text-html-content .article-table .article-cell-vertical-btlr {
	writing-mode: sideways-lr;
}

body.pkp_page_article .article-full-text-html-content .article-table .article-cell-vertical-tbrl {
	writing-mode: vertical-rl;
}

body.pkp_page_article .article-full-text-html-content .article-table .article-cell-vertical-lrtb {
	writing-mode: vertical-lr;
}
