/* IJDDPI custom styles */

/* hide PKP platform credit */
.pkp_brand_footer { display: none; }

/* journal info box on homepage (ADMET-style) */
.journal-info-box {
	background: #f2f6fb;
	border-left: 5px solid #1a4e9d;
	padding: 1.1em 1.5em;
	margin: 0 0 1.6em;
	border-radius: 0 6px 6px 0;
}
.journal-info-box p { margin: 0.35em 0; }
.journal-tagline {
	color: #1a4e9d;
	font-size: 1.3em;
	font-weight: 700;
	margin: 0 0 0.5em;
}

/* headings in brand navy */
.pkp_structure_main h2,
.pkp_structure_main h3,
.page_index_journal .current_issue_title { color: #1a4e9d; }

/* sidebar block titles: navy with green accent underline */
.pkp_block .title {
	color: #1a4e9d;
	border-bottom: 3px solid #2e7d32;
	padding-bottom: 0.35em;
	margin-bottom: 0.6em;
}

/* footer band */
.pkp_structure_footer_wrapper {
	background: #f2f6fb;
	border-top: 4px solid #1a4e9d;
}

/* keep header logo a sensible size on small screens */
.pkp_site_name .is_img img { max-width: 100%; height: auto; }

/* contact form (injected on /about/contact) */
#contact-form { margin-top: 2.5em; }
#contact-form h2 { color: #1a4e9d; }
#contact-form label {
	display: block;
	font-weight: 600;
	margin: 0.9em 0 0.25em;
	color: #1a4e9d;
}
#contact-form input[type=text],
#contact-form input[type=email],
#contact-form textarea {
	width: 100%;
	max-width: 560px;
	padding: 0.6em;
	border: 1px solid #c7d3e6;
	border-radius: 4px;
	font: inherit;
	background: #fff;
}
#contact-form textarea { min-height: 150px; }
#contact-form .ij-hp { display: none; }
#contact-form button {
	margin-top: 1.2em;
	background: #1a4e9d;
	color: #fff;
	border: none;
	padding: 0.7em 1.8em;
	border-radius: 4px;
	font-weight: 700;
	cursor: pointer;
}
#contact-form button:hover { background: #2e7d32; }
.ij-alert-ok {
	background: #e6f4ea;
	border-left: 4px solid #2e7d32;
	padding: 0.8em 1em;
	margin: 1em 0;
}
.ij-alert-err {
	background: #fdecea;
	border-left: 4px solid #c0392b;
	padding: 0.8em 1em;
	margin: 1em 0;
}

/* site-wide text alignment: justify body text for a clean, print-like look */
.pkp_structure_main p,
.pkp_structure_main li,
.obj_article_details .abstract,
.obj_issue_toc .description,
.journal-info-box p {
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}

/* keep interface/short text left-aligned where justification looks wrong */
.pkp_structure_main form p,
.pkp_structure_main form li,
.cmp_breadcrumbs li,
.cmp_pagination li,
.pkp_structure_main .item_authors,
.pkp_structure_main .meta,
#contact-form p,
.obj_article_summary .meta li {
	text-align: left;
}

/* journal info box metadata items: pipe-separated on wide screens */
.journal-info-box .ij-kv { display: inline-block; }
.journal-info-box .ij-kv + .ij-kv::before {
	content: "|";
	margin: 0 0.6em;
	color: #93a7c4;
}

/* ---------- mobile improvements ---------- */
@media (max-width: 767px) {
	/* justification creates uneven word gaps in narrow columns */
	.pkp_structure_main p,
	.pkp_structure_main li,
	.obj_article_details .abstract,
	.obj_issue_toc .description,
	.journal-info-box p {
		text-align: left;
	}

	/* info box: one metadata item per line, tighter padding */
	.journal-info-box { padding: 0.8em 1em; }
	.journal-tagline { font-size: 1.15em; }
	.journal-info-box .ij-kv { display: block; padding: 0.12em 0; }
	.journal-info-box .ij-kv + .ij-kv::before { content: none; }

	/* footer: shrink the emblems so they don't dominate the screen */
	.pkp_structure_footer_wrapper img {
		width: 88px !important;
		height: 88px !important;
	}

	/* keep media, tables, and long links inside the viewport */
	.pkp_structure_main img,
	.pkp_sidebar img { max-width: 100%; height: auto; }
	.pkp_structure_main table {
		display: block;
		width: 100%;
		overflow-x: auto;
	}
	.pkp_structure_main a,
	.pkp_structure_footer_wrapper a,
	.pkp_structure_main code {
		word-break: break-word;
		overflow-wrap: anywhere;
	}

	/* slightly smaller headings on phones */
	.pkp_structure_main h1 { font-size: 1.5em; }
	.pkp_structure_main h2 { font-size: 1.3em; }
	.pkp_structure_main h3 { font-size: 1.15em; }
}


/* Contact page: hide Principal/Support Contact blocks, show email in address (2026-07-06) */
.pkp_op_contact .contact { display: none; }

/* Hide per-author Competing Interests block on article pages (all publications) */
.ciStatement { display: none; }

/* ---------- article landing page polish v2 (2026-07-13) ---------- */

/* title in journal navy */
.obj_article_details .page_title {
	color: #1a4e9d;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.4em;
}

/* tighten the gap between title and author list */
.obj_article_details .main_entry .item.authors {
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
}

/* authors: navy names, role shown as a small pill */
.obj_article_details .authors li { margin-bottom: 1.1rem; }
.obj_article_details .authors .name {
	color: #1a4e9d;
	font-size: 1.05em;
}
.obj_article_details .authors .userGroup {
	display: inline-block;
	background: #eef3fb;
	color: #1a4e9d;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.1em 0.9em;
	border-radius: 999px;
	margin: 0.25em 0;
}

/* keywords label in navy */
.obj_article_details .item.keywords .label { color: #1a4e9d; }

/* references: left-aligned with hanging indent, tidy DOI links */
.obj_article_details .item.references .value p {
	text-align: left;
	hyphens: none;
	-webkit-hyphens: none;
	padding-left: 1.6em;
	text-indent: -1.6em;
	margin-bottom: 0.85em;
	line-height: 1.55;
}
.obj_article_details .item.references .value a {
	color: #1a4e9d;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.obj_article_details .item.references .value a:hover { text-decoration: underline; }

/* sidebar metadata: clean cards, muted small-caps labels, single navy accent */
.obj_article_details .entry_details {
	border-top: none;
	margin-left: 0;
	margin-right: 0;
}
.obj_article_details .entry_details .item {
	background: #fff;
	border: 1px solid #e5eaf1;
	border-left: 3px solid #1a4e9d;
	border-radius: 6px;
	margin: 0 0 0.9rem;
	padding: 0.9rem 1.1rem;
}
.obj_article_details .entry_details .item .label:not(.citation_formats_button),
.obj_article_details .entry_details .item .sub_item .label:not(.citation_formats_button) {
	background: none;
	border: none;
	color: #7b8798;
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	display: block;
	padding: 0;
	margin: 0 0 0.45em;
}
.obj_article_details .entry_details .item .value {
	margin: 0;
	padding: 0;
}
.obj_article_details .entry_details .sub_item + .sub_item { margin-top: 1em; }

/* narrow sidebar text: keep left-aligned, no hyphenation */
.obj_article_details .entry_details p,
.obj_article_details .entry_details .value,
.obj_article_details .entry_details .csl-entry {
	text-align: left !important;
	hyphens: none;
	-webkit-hyphens: none;
}
.obj_article_details .entry_details .csl-entry { margin: 0; }

/* citation formats dropdown: simple outline button */
.obj_article_details .citation_formats_button {
	margin-top: 0.8em;
	border: 1px solid #cdd6e4;
	border-radius: 5px;
	background: #f7f9fc;
	color: #1a4e9d;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.45em 0.9em;
}

/* PDF button: standalone and more prominent */
.obj_article_details .entry_details .item.galleys {
	border: none;
	background: none;
	padding: 0 0 0.4rem;
}
.obj_article_details .obj_galley_link {
	font-size: 1rem;
	font-weight: 600;
	padding: 0.55em 1.6em;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(16, 42, 90, 0.25);
}
.obj_article_details .citation_formats_button { padding-right: 2em; }

/* ---------- issue TOC: journal-style article listings (2026-07-13) ---------- */
.obj_article_summary {
	display: flex;
	gap: 1.4rem;
	align-items: flex-start;
	padding: 1.2rem 0;
	border-bottom: 1px solid #e5eaf1;
}
.obj_article_summary .summary_body { flex: 1 1 auto; min-width: 0; }
.obj_article_summary .cover {
	order: 2;
	flex: 0 0 230px;
	max-width: 230px;
	margin: 0;
	float: none;
}
.obj_article_summary .cover img {
	width: 100%;
	height: auto;
	border: 1px solid #e5eaf1;
	border-radius: 4px;
}
.obj_article_summary .title { margin: 0 0 0.35rem; }
.obj_article_summary .title a { color: #1a4e9d; }
.obj_article_summary .meta { margin-bottom: 0.5rem; }
.obj_article_summary .meta .authors { color: #333; }
.obj_article_summary .pubinfo {
	font-size: 0.88em;
	color: #767f8c;
	margin-top: 0.3rem;
	text-align: left;
}
.obj_article_summary .pubinfo a { color: #1a4e9d; }
@media (max-width: 767px) {
	.obj_article_summary { display: block; }
	.obj_article_summary .cover { max-width: 100%; margin: 0.8rem 0 0; }
}
