/* 2026-08-14 Patrick Baker review remediation. */

/* Use a two-color focus indicator that remains visible on white, blue, and
   gold surfaces. The dark outer ring and white inner separation each provide
   a dependable contrast edge without relying on yellow. */
.pkp_structure_page a:focus-visible,
.pkp_structure_page button:focus-visible,
.pkp_structure_page input:focus,
.pkp_structure_page select:focus,
.pkp_structure_page textarea:focus {
	outline: 3px solid #101820 !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 3px #fff !important;
}

/* Keep long article-title focus rings inside the content column. */
.jcl-recent .media-body,
.jcl-recent .media-heading,
.obj_issue_toc .media-body,
.obj_issue_toc .media-heading {
	overflow: visible;
}

.jcl-recent .media-heading a,
.obj_issue_toc .media-heading a {
	max-width: calc(100% - 8px);
	margin-right: 8px;
}

/* Put the public navigation in visual and keyboard order: Home (brand),
   journal sections, Register, then Login. */
#navigationUser[hidden] {
	display: none !important;
}

#main-navigation > .jcl-register-nav-item > a {
	border: 2px solid currentColor;
	border-radius: 5px;
}

#main-navigation > .jcl-login-nav-item > a {
	border: 2px solid #fdba11;
	border-radius: 6px;
	background: #fdba11;
	color: #101820;
}

#main-navigation > .jcl-login-nav-item > a:hover,
#main-navigation > .jcl-login-nav-item > a:focus {
	border-color: #ffd15b;
	background: #ffd15b;
	color: #101820;
}

.jcl-menu-close {
	display: none;
}

@media (min-width: 992px) {
	#nav-menu.collapse,
	#nav-menu.collapse.in,
	#nav-menu:not(.in) {
		flex: 1 1 auto;
	}

	#main-navigation {
		width: 100%;
	}

	#main-navigation > .jcl-register-nav-item {
		margin-left: auto;
	}

	#main-navigation > .jcl-register-nav-item > a,
	#main-navigation > .jcl-login-nav-item > a {
		margin: 17px 4px;
		padding: 8px 13px;
	}
}

@media (max-width: 991px) {
	.jcl-menu-close {
		display: flex;
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		margin: 8px 12px 4px auto;
		padding: 0;
		border: 2px solid #003c69;
		border-radius: 5px;
		background: #fff;
		color: #003c69;
		font-size: 30px;
		font-weight: 700;
		line-height: 1;
	}

	#main-navigation > .jcl-register-nav-item > a,
	#main-navigation > .jcl-login-nav-item > a {
		margin: 6px 12px;
		padding: 11px 14px;
	}

	#main-navigation > .dropdown.open > .dropdown-menu {
		position: static;
		float: none;
		width: auto;
		margin: 0 12px 8px;
		border: 1px solid #d0d4dc;
		box-shadow: none;
	}

	#main-navigation > .dropdown.open > .dropdown-toggle,
	#main-navigation > .dropdown.open > .dropdown-toggle:hover,
	#main-navigation > .dropdown.open > .dropdown-toggle:focus {
		background: #e8edf7;
		color: #003c69;
	}

	#main-navigation > .dropdown.open > .dropdown-menu > li > a {
		padding: 12px 18px;
		background: #fff;
		color: #111820;
	}

	#main-navigation > .dropdown.open > .dropdown-menu > li > a:hover,
	#main-navigation > .dropdown.open > .dropdown-menu > li > a:focus {
		background: #e8edf7;
		color: #003c69;
	}
}

@media (min-width: 992px) {
	#main-navigation > .dropdown.open > .dropdown-toggle,
	#main-navigation > .dropdown.open > .dropdown-toggle:hover,
	#main-navigation > .dropdown.open > .dropdown-toggle:focus {
		background: rgba(255, 255, 255, 0.18);
		color: #fff;
	}
}

/* Make required fields explicit and give auth controls consistent breathing
   room. */
.pkp_form.login .jcl-required-fields,
.pkp_form.register .jcl-required-fields {
	margin: 0 0 16px;
	font-size: 15px;
}

.pkp_form.login .form-group,
.pkp_form.register .form-group {
	margin-bottom: 16px;
}

.pkp_form.login [data-jcl-password-toggle],
.pkp_form.register [data-jcl-password-toggle] {
	display: block;
	margin-top: 12px;
}

.pkp_form.login .buttons,
.pkp_form.register .buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 16px;
}

/* Register is the secondary action wherever it appears beside Login. */
.page_login .register-button,
.page_register .pkp_form.register .buttons .submit {
	border: 2px solid #2456b8;
	background: #fff;
	color: #2456b8;
}

.page_login .register-button:hover,
.page_login .register-button:focus,
.page_register .pkp_form.register .buttons .submit:hover,
.page_register .pkp_form.register .buttons .submit:focus {
	border-color: #003c69;
	background: #eef3ff;
	color: #003c69;
}

/* Maintain 12-16px between article metadata and its action. */
.jcl-recent .article-summary .meta,
.obj_issue_toc .article-summary .meta {
	margin-bottom: 14px;
}

/* Remove the decorative rule under page titles and establish a clear,
   consistent gap before the next section. */
.page > .page-header:first-of-type {
	margin-bottom: 36px;
	padding-bottom: 0;
}

.page > .page-header:first-of-type::after {
	display: none;
}

.page_about_submissions h2,
.page_about h2,
.page_submissions h2 {
	margin-top: 56px;
	margin-bottom: 20px;
}

/* Align the two contact blocks at the same visual baseline. */
.pkp_op_contact .contact_section {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}

.pkp_op_contact .contact_section .contact,
.pkp_op_contact .contact_section .contact h2 {
	margin-top: 0;
}

@media (max-width: 767px) {
	.pkp_op_contact .contact_section {
		grid-template-columns: 1fr;
	}
}

/* Keep one accent rule under each issue-table-of-contents section heading. */
.pkp_page_issue.pkp_op_view .issue-toc .page-header > h2::after {
	display: none;
}

/* Keep issue section labels, accent rules, and article lists visually grouped. */
.pkp_page_issue.pkp_op_view .issue-toc .page-header {
	padding-bottom: 10px;
	margin-bottom: 16px;
}

.pkp_page_issue.pkp_op_view .issue-toc .page-header > h2 {
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Keep every homepage article subsection close to its first article. */
.jcl-recent .section .page-header {
	margin-bottom: 12px;
}

.jcl-recent .section .page-header > h2 {
	margin-bottom: 0;
}

/* Keep the authenticated task count above WCAG AA's 4.5:1 threshold. */
.navbar .dropdown-toggle .badge {
	background-color: #155a8a;
	color: #fff;
}

/* 2026-08-11 production-readiness completion pass. */

/* Present the most recent issue first in the public archive. */
.pkp_page_issue.pkp_op_archive .issues.media-list {
	display: flex;
	flex-direction: column-reverse;
}

/* Meet the 44px minimum target size in the custom theme footer. */
.footer nav[aria-label="Journal information"] p {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: center;
	margin: 0 0 16px;
	font-size: 0;
}

.footer nav[aria-label="Journal information"] a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding: 8px 10px;
	border: 1px solid currentColor;
	border-radius: 4px;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
}

.footer nav[aria-label="Journal information"] a:hover,
.footer nav[aria-label="Journal information"] a:focus-visible {
	text-decoration: underline;
}

/* Reserve the Creative Commons badge dimensions before image load. */
a[rel="license"] img[alt="Creative Commons License"] {
	display: block;
	width: 88px;
	height: 31px;
}

@media (max-width: 767px) {
	.footer nav[aria-label="Journal information"] p {
		gap: 8px;
	}

	.footer nav[aria-label="Journal information"] a {
		padding: 10px 12px;
	}
}

/* 2026-08-08 comprehensive accessibility and responsive remediation. */

/* Keep rich-text images inside the reading column, even when an editor supplied
   fixed width and height attributes. */
.pkp_structure_main img {
	max-width: 100%;
	height: auto;
}

/* The Editor Spotlight portrait was authored at 800px wide inside a narrow
   Bootstrap column. Target it explicitly so older rich text can remain intact. */
img[src*="bill-poucher-headshot"] {
	display: block;
	width: min(100%, 720px) !important;
	height: auto !important;
	margin: 0 auto 1.5rem;
	object-fit: cover;
}

/* Search controls need visible labels and mobile-sized hit areas. */
.page_search .form-inline select,
.page_search input[type="search"],
.page_search input[name="authors"],
.page_search input[type="submit"] {
	min-height: 44px;
	font-size: 16px;
}

.page_search .form-inline select {
	margin: 0 6px 8px 0;
	padding: 8px 28px 8px 10px;
}

/* Improve small, repeated navigation targets without inflating inline article
   citations and reference links. */
.pkp_structure_footer nav a,
.breadcrumb a,
.obj_article_summary .galley-link,
.obj_issue_toc .galley-link,
.obj_announcement_summary h2 a,
.obj_announcement_summary h3 a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
}

.obj_announcement_summary h2 a,
.obj_announcement_summary h3 a {
	font-size: 16px;
	line-height: 1.35;
}

/* The ORCID plugin injects its logo as an inline SVG. Its own stylesheet is
   not present on the authorization result route, so constrain the icon here
   as a journal-level fallback. */
.page_message .orcid a {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.page_message .orcid svg.orcid_icon,
.page_message svg.orcid_icon {
	display: inline-block !important;
	flex: 0 0 24px;
	width: 24px !important;
	height: 24px !important;
	max-width: 24px !important;
	max-height: 24px !important;
	margin: 0 !important;
	vertical-align: middle;
}

/* Use a readable logo size on phones while preserving header height. */
@media (max-width: 767px) {
	.navbar-brand-logo {
		display: inline-flex;
		min-height: 52px;
		align-items: center;
	}

	.navbar-brand-logo img {
		width: auto;
		max-width: 132px;
		max-height: 44px;
	}

	.page_index_journal .jcl-hero h1,
	.page_index_journal .homepage_about h1 {
		font-size: clamp(1.55rem, 7vw, 2.15rem);
		line-height: 1.18;
		overflow-wrap: normal;
	}

	.pkp_structure_footer nav a {
		margin: 2px 4px;
		padding: 10px 4px;
	}
}

/* 2026-08-09 audit remediation: navigation, footer, type, and mobile targets. */

/* OJS renders section labels in <small> elements. Keep their visual hierarchy
   while preventing them from shrinking below readable body text on phones. */
.jcl-recent .page-header h2 small,
.obj_issue_toc .page-header h2 small {
	color: #334155;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.jcl-announcements .media-heading,
.jcl-announcements .media-heading a {
	font-size: 18px;
	line-height: 1.4;
}

/* Convert the rich-text footer's dot-separated line into a wrapped set of
   independent, accessible touch targets. The separators are text nodes, so
   zeroing the paragraph font-size removes them without changing saved HTML. */
.pkp_structure_footer nav[aria-label="Journal information"] p {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: center;
	margin: 0 0 16px;
	font-size: 0;
}

.pkp_structure_footer nav[aria-label="Journal information"] a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 4px;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
}

.pkp_structure_footer nav[aria-label="Journal information"] a:hover,
.pkp_structure_footer nav[aria-label="Journal information"] a:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	text-decoration: underline;
}

/* Give article-title and announcement links a usable target even when the text
   occupies a single short line. */
.jcl-recent .media-heading a,
.jcl-announcements .media-heading a,
.jcl-announcements .jcl-announcements__all a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
}

/* Keep the brand legible without making the navigation bar taller. */
.navbar-brand-logo img {
	width: auto;
	max-width: 112px;
	max-height: 52px;
}

@media (max-width: 767px) {
	.jcl-recent .page-header h2 small,
	.obj_issue_toc .page-header h2 small {
		font-size: 16px;
	}

	.jcl-announcements .media-heading,
	.jcl-announcements .media-heading a {
		font-size: 18px;
	}

	.pkp_structure_footer nav[aria-label="Journal information"] p {
		gap: 8px;
	}

	.pkp_structure_footer nav[aria-label="Journal information"] a {
		margin: 0;
		padding: 10px 12px;
	}
}

/* 2026-08-10 production-readiness remediation. */

/* Meet WCAG 2.2 AA contrast on the light journal footer and breadcrumbs. */
.pkp_structure_footer nav[aria-label="Journal information"] a,
.pkp_structure_footer nav[aria-label="Journal information"] a:visited {
	color: #174a7e;
}

.breadcrumb > .active,
.breadcrumb > li.active {
	color: #46505a;
}

/* Keep text visible while the Bootstrap theme's local fonts are loading. */
@font-face {
	font-family: "Glyphicons Halflings";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/plugins/themes/bootstrap3/bootstrap/fonts/glyphicons-halflings-regular.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans Pro";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: local("Source Sans Pro Light"),
		url("/plugins/themes/bootstrap3/fonts/source-sans-pro-v14-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans Pro";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local("Source Sans Pro"),
		url("/plugins/themes/bootstrap3/fonts/source-sans-pro-v14-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans Pro";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: local("Source Sans Pro Bold"),
		url("/plugins/themes/bootstrap3/fonts/source-sans-pro-v14-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2") format("woff2");
}
