/**
 * plugins/themes/digitopub/styles/digitopub-article-layout.css
 *
 * Phase 5 layout + component override for the Abstract / View Article page.
 *
 * Loaded directly by templates/frontend/pages/article.tpl so the new
 * full-width layout and modern card design take effect immediately while the
 * dynamically compiled theme stylesheet cache refreshes.
 */

/* Stretch the OJS page structure to full width on article pages */
.pkp_page_article.pkp_op_view .pkp_structure_content,
.pkp_page_article.pkp_op_download .pkp_structure_content,
.pkp_page_article.pkp_op_view .pkp_structure_footer,
.pkp_page_article.pkp_op_download .pkp_structure_footer {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.pkp_page_article.pkp_op_view .pkp_structure_main,
.pkp_page_article.pkp_op_download .pkp_structure_main {
	float: none;
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

.pkp_page_article.pkp_op_view .pkp_structure_main:before,
.pkp_page_article.pkp_op_download .pkp_structure_main:before,
.pkp_page_article.pkp_op_view .pkp_structure_main:after,
.pkp_page_article.pkp_op_download .pkp_structure_main:after {
	display: none;
}

/* Shared spacious container for article pages */
.digitopub-article-page .digitopub-container {
	width: 92%;
	max-width: 1700px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

/* Breadcrumb alignment */
.pkp_page_article .cmp_breadcrumbs {
	width: 92%;
	max-width: 1700px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

/* Footer alignment on article pages */
.pkp_page_article .digitopub-footer__inner {
	max-width: 1700px;
}

/* Article Header */
.digitopub-article-header {
	padding: 3rem 0 2.5rem;
	background: linear-gradient(135deg, #ffffff 0%, #f6f8fa 100%);
	border-bottom: 1px solid #d7dde5;
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.digitopub-article-header__card {
	background-color: #ffffff;
	border: 1px solid #d7dde5;
	border-radius: 0.75rem;
	padding: 2.5rem;
	box-shadow: 0 4px 12px rgba(10, 31, 61, 0.08), 0 2px 4px rgba(10, 31, 61, 0.04);
	transition: all 200ms ease;
}

.digitopub-article-header__card:hover {
	box-shadow: 0 12px 28px rgba(10, 31, 61, 0.12), 0 4px 8px rgba(10, 31, 61, 0.06);
}

.digitopub-article-header__type {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #ffffff;
	background-color: #2a7f7f;
	padding: 0.375rem 0.875rem;
	border-radius: 9999px;
	margin-bottom: 1.25rem;
}

.digitopub-article-header__title {
	font-family: "Newsreader", Georgia, "Times New Roman", serif;
	font-size: clamp(1.875rem, 3.5vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	color: #0a1f3d;
	margin: 0 0 0.75rem;
}

.digitopub-article-header__subtitle {
	font-family: "Newsreader", Georgia, "Times New Roman", serif;
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-weight: 400;
	line-height: 1.4;
	color: #5a6578;
	margin: 0 0 1.5rem;
}

.digitopub-article-header__authors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin-bottom: 1.5rem;
}

.digitopub-article-header__author {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
}

.digitopub-article-header__author-name {
	font-size: 1.0625rem;
	font-weight: 600;
	color: #1a202c;
}

.digitopub-article-header__author-affiliation {
	font-size: 0.9375rem;
	color: #5a6578;
}

.digitopub-article-header__author-sep {
	color: #5a6578;
}

.digitopub-article-header__orcid {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.8125rem;
}

.digitopub-article-header__orcid a {
	color: #2a7f7f;
	text-decoration: none;
}

.digitopub-article-header__orcid a:hover,
.digitopub-article-header__orcid a:focus {
	text-decoration: underline;
}

.digitopub-article-header__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin-bottom: 1.25rem;
	font-size: 0.9375rem;
	color: #5a6578;
}

.digitopub-article-header__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.digitopub-article-header__meta-item svg {
	flex-shrink: 0;
	color: #2a7f7f;
}

.digitopub-article-header__doi a {
	color: #2a7f7f;
	font-weight: 600;
	text-decoration: none;
}

.digitopub-article-header__doi a:hover,
.digitopub-article-header__doi a:focus {
	text-decoration: underline;
}

.digitopub-article-header__keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.digitopub-article-header__keyword {
	font-size: 0.8125rem;
	color: #5a6578;
	background-color: #f6f8fa;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	border: 1px solid #d7dde5;
}

.digitopub-article-header__license {
	font-size: 0.9375rem;
	color: #5a6578;
	line-height: 1.6;
}

.digitopub-article-header__license a {
	color: #2a7f7f;
	text-decoration: none;
}

.digitopub-article-header__license a:hover,
.digitopub-article-header__license a:focus {
	text-decoration: underline;
}

.digitopub-article-header__license-text {
	display: block;
	margin-bottom: 0.5rem;
}

/* Article Body */
.digitopub-article-body {
	padding: 2.5rem 0 5rem;
	background-color: #f6f8fa;
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.digitopub-article-body__grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 2.5rem;
	align-items: start;
}

.digitopub-article-body__main {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
}

.digitopub-article-body__sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: sticky;
	top: 1rem;
	align-self: start;
}

/* Article blocks (cards) */
.digitopub-article-block {
	background-color: #ffffff;
	border: 1px solid #d7dde5;
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px rgba(10, 31, 61, 0.08), 0 1px 2px rgba(10, 31, 61, 0.06);
	transition: all 200ms ease;
	overflow: hidden;
}

.digitopub-article-block:hover {
	box-shadow: 0 4px 12px rgba(10, 31, 61, 0.08), 0 2px 4px rgba(10, 31, 61, 0.04);
}

.digitopub-article-block__title {
	font-family: "Newsreader", Georgia, "Times New Roman", serif;
	font-size: 1.375rem;
	font-weight: 700;
	color: #0a1f3d;
	margin: 0;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #d7dde5;
}

.digitopub-article-block__body {
	padding: 1.5rem;
	color: #1a202c;
	line-height: 1.7;
}

.digitopub-article-block__body p:last-child {
	margin-bottom: 0;
}

.digitopub-article-block__body img {
	max-width: 100%;
	height: auto;
	display: block;
}

.digitopub-article-block--abstract .digitopub-article-block__body {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.digitopub-article-block--cover .digitopub-article-block__body {
	padding: 0;
}

.digitopub-article-block--cover .digitopub-article-block__body img {
	width: 100%;
}

.digitopub-article-block--downloads .digitopub-article-block__body {
	padding: 1.25rem;
}

/* Article actions / download buttons */
.digitopub-article-actions {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.digitopub-article-actions .digitopub-btn,
.digitopub-article-actions .obj_galley_link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	text-decoration: none;
	line-height: 1.25;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 9999px;
	text-align: center;
	transition: all 200ms ease;
	gap: 0.5rem;
}

.digitopub-article-actions .obj_galley_link {
	background-color: transparent;
	color: #0a1f3d;
	border-color: #d7dde5;
}

.digitopub-article-actions .digitopub-btn:hover,
.digitopub-article-actions .obj_galley_link:hover,
.digitopub-article-actions .digitopub-btn:focus,
.digitopub-article-actions .obj_galley_link:focus {
	background-color: #f6f8fa;
	border-color: #0a1f3d;
	color: #0a1f3d;
	transform: translateY(-1px);
}

.digitopub-article-actions .obj_galley_link.pdf {
	background: #0a1f3d;
	color: #ffffff;
	border-color: transparent;
}

.digitopub-article-actions .obj_galley_link.pdf:hover,
.digitopub-article-actions .obj_galley_link.pdf:focus {
	background: #06172b;
	box-shadow: 0 4px 14px rgba(10, 31, 61, 0.2);
}

.digitopub-article-actions .obj_galley_link.html {
	background: #2a7f7f;
	color: #ffffff;
	border-color: transparent;
}

.digitopub-article-actions .obj_galley_link.html:hover,
.digitopub-article-actions .obj_galley_link.html:focus {
	background: #1f6161;
	box-shadow: 0 4px 14px rgba(42, 127, 127, 0.25);
}

/* Metadata list */
.digitopub-article-meta-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.digitopub-article-meta-list li {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.digitopub-article-meta-list__label {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a6578;
}

.digitopub-article-meta-list__value {
	font-size: 0.9375rem;
	color: #1a202c;
	line-height: 1.5;
}

.digitopub-article-meta-list__value a {
	color: #2a7f7f;
	text-decoration: none;
	font-weight: 600;
}

.digitopub-article-meta-list__value a:hover,
.digitopub-article-meta-list__value a:focus {
	text-decoration: underline;
}

/* Author bios */
.digitopub-author-bios {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.digitopub-author-bio__name {
	font-size: 1.0625rem;
	font-weight: 700;
	color: #0a1f3d;
	margin: 0 0 0.5rem;
}

.digitopub-author-bio__text {
	font-size: 0.9375rem;
	color: #1a202c;
	line-height: 1.65;
}

/* References */
.digitopub-article-block--references .digitopub-article-block__body p {
	margin-bottom: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #d7dde5;
}

.digitopub-article-block--references .digitopub-article-block__body p:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* Galley view header styling */
.pkp_page_article .header_view {
	background: #0a1f3d;
	border-bottom: 1px solid #d7dde5;
	padding: 0.875rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.pkp_page_article .header_view .return {
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.pkp_page_article .header_view .title {
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pkp_page_article .header_view .download {
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	background: #2a7f7f;
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	transition: all 200ms ease;
}

.pkp_page_article .header_view .download:hover,
.pkp_page_article .header_view .download:focus {
	background: #1f6161;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
	.digitopub-article-body__grid {
		grid-template-columns: 1fr 300px;
		gap: 2rem;
	}
}

@media (max-width: 991px) {
	.digitopub-article-page .digitopub-container,
	.pkp_page_article .cmp_breadcrumbs {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.digitopub-article-header {
		padding: 2rem 0 1.5rem;
	}

	.digitopub-article-header__card {
		padding: 1.75rem;
	}

	.digitopub-article-header__title {
		font-size: 1.75rem;
	}

	.digitopub-article-body {
		padding: 1.5rem 0 3rem;
	}

	.digitopub-article-body__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.digitopub-article-body__sidebar {
		position: static;
		order: 2;
	}

	.digitopub-article-body__main {
		order: 1;
	}

	.digitopub-article-actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.digitopub-article-actions .digitopub-btn,
	.digitopub-article-actions .obj_galley_link {
		flex: 1 1 calc(50% - 0.3125rem);
		width: auto;
	}
}

@media (max-width: 767px) {
	.digitopub-article-page .digitopub-container,
	.pkp_page_article .cmp_breadcrumbs {
		width: 100%;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.digitopub-article-header__card {
		padding: 1.5rem;
	}

	.digitopub-article-header__authors {
		flex-direction: column;
		gap: 0.75rem;
	}

	.digitopub-article-header__author-sep {
		display: none;
	}

	.digitopub-article-actions .digitopub-btn,
	.digitopub-article-actions .obj_galley_link {
		flex: 1 1 100%;
	}

	.pkp_page_article .header_view {
		padding: 0.75rem 1rem;
		flex-wrap: wrap;
	}

	.pkp_page_article .header_view .title {
		width: 100%;
		order: 3;
		font-size: 0.9375rem;
	}
}
