/* ==========================================================================
   ZAJESE / Federal University of Education, Zaria — Journal Style Sheet
   For: Settings → Website → Appearance → Advanced → "Journal style sheet"
   OJS version: 3.4.x
   --------------------------------------------------------------------------
   This file is applied on top of whatever theme is active (default or the
   Zaria child theme), so it is safe to upload even without a custom theme
   installed — it works standalone.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand variables — change these three lines only if colors ever change,
      everything below references them automatically.
   -------------------------------------------------------------------------- */
:root {
	--brand-green: #006634;
	--brand-green-dark: #00502a;
	--brand-green-light: #e6f2ec;
	--brand-gold: #f9ec00;
	--brand-gold-dark: #d9ce00;
	--brand-black: #231f1e;
	--brand-white: #ffffff;
	--brand-grey: #6b6b6b;
	--brand-border: #e0e0e0;
	--radius: 6px;
	--shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   2. Base typography — improves readability without fighting the theme's
      existing font stack (we only adjust sizing/spacing, not the font
      family, to avoid conflicts with the active theme's webfonts).
   -------------------------------------------------------------------------- */
body {
	color: var(--brand-black);
	line-height: 1.6;
}

a {
	color: var(--brand-green);
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

a:hover,
a:focus {
	color: var(--brand-green-dark);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   3. Header / masthead bar
   -------------------------------------------------------------------------- */
.pkp_structure_head,
.pkp_site_name_wrapper {
	background-color: var(--brand-green);
	border-bottom: 3px solid var(--brand-gold);
}

.pkp_site_name a,
.pkp_site_name_wrapper a,
.pkp_site_name_wrapper .is_text {
	color: var(--brand-white) !important;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   3b. Journal title next to the logo
   --------------------------------------------------------------------------
   When a logo image is uploaded, OJS's default theme template replaces the
   journal-title text entirely — it isn't just hidden by CSS, the text node
   is genuinely absent from the page. So instead of "unhiding" it, we lay
   the logo + a generated title out side-by-side, and generate the title
   text with CSS's content property. This needs zero template edits.

   IMPORTANT: update the text inside content: "" below to your journal's
   exact name if it ever changes.
   -------------------------------------------------------------------------- */
.pkp_site_name_wrapper {
	display: flex;
	align-items: center;
	gap: 0.75em;
}

.pkp_site_name_wrapper .pkp_site_name,
.pkp_site_name_wrapper a.is_img {
	display: flex;
	align-items: center;
	gap: 0.75em;
}

.pkp_site_name_wrapper a.is_img::after,
.pkp_site_name_wrapper .pkp_site_name a::after {
	content: "Zaria Journal of Empirical Studies in Education";
	display: inline-block;
	color: var(--brand-white);
	font-size: 1.4em;
	font-weight: 700;
	line-height: 1.2;
	white-space: normal;
	max-width: 420px;
}

/* On small screens, keep the logo but drop the generated title so the
   header doesn't overflow or wrap awkwardly on mobile */
@media (max-width: 600px) {
	.pkp_site_name_wrapper a.is_img::after,
	.pkp_site_name_wrapper .pkp_site_name a::after {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   4. Primary navigation
   -------------------------------------------------------------------------- */

/* The secondary bar (Current / Archives / About / Search) renders in its
   own wrapper, separate from the green masthead above it. By default this
   is OJS's stock blue — these selectors cover every element the default
   theme is known to use for that wrapper across 3.3.x/3.4.x installs, so
   it's overridden no matter which one your install uses. */
.pkp_navigation_primary_wrapper,
#navigationPrimary,
nav#navigationPrimary,
.pkp_structure_head nav,
.pkp_navigation_primary {
	background-color: var(--brand-green-dark) !important;
	border-top: 1px solid var(--brand-gold);
	border-bottom: 1px solid var(--brand-gold);
}

.pkp_navigation_primary > li > a {
	color: var(--brand-white);
	font-weight: 500;
	transition: color 0.15s ease-in-out;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
	color: var(--brand-gold);
}

/* Dropdown submenus — kept on a solid background so text never overlaps
   the page content behind it */
.pkp_navigation_primary .submenu,
.pkp_navigation_primary ul ul {
	background-color: var(--brand-white);
	border: 1px solid var(--brand-border);
	box-shadow: var(--shadow);
	border-radius: var(--radius);
}

.pkp_navigation_primary .submenu a,
.pkp_navigation_primary ul ul a {
	color: var(--brand-black);
}

.pkp_navigation_primary .submenu a:hover,
.pkp_navigation_primary ul ul a:hover {
	color: var(--brand-green);
	background-color: var(--brand-green-light);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.pkp_button,
.pkp_button.pkp_button_primary,
a.pkp_button,
button.pkp_button {
	border-radius: var(--radius);
	font-weight: 600;
	padding: 0.5em 1.2em;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.pkp_button_primary,
.pkp_button.pkp_button_primary {
	background-color: var(--brand-green);
	border-color: var(--brand-green-dark);
	color: var(--brand-white);
}

.pkp_button_primary:hover,
.pkp_button.pkp_button_primary:hover,
.pkp_button_primary:focus,
.pkp_button.pkp_button_primary:focus {
	background-color: var(--brand-green-dark);
	color: var(--brand-white);
}

/* The default (non-primary) button variant — this is what "Make a
   Submission" uses out of the box, which otherwise renders in a flat
   grey that clashes with the rest of the palette. Styled here as a gold
   call-to-action so it stands out against the green sidebar/header. */
.pkp_button:not(.pkp_button_primary) {
	background-color: var(--brand-gold);
	border: 1px solid var(--brand-gold-dark);
	color: var(--brand-black);
}

.pkp_button:not(.pkp_button_primary):hover,
.pkp_button:not(.pkp_button_primary):focus {
	background-color: var(--brand-gold-dark);
	border-color: var(--brand-gold-dark);
	color: var(--brand-black);
}

/* --------------------------------------------------------------------------
   6. Sidebar blocks — consistent gold header bar on every block
      (works for built-in blocks and Custom Block Manager blocks alike,
      since both share this markup structure in OJS 3.4)
   -------------------------------------------------------------------------- */
.pkp_block {
	background-color: var(--brand-white);
	border: 1px solid var(--brand-border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 1.5em;
	box-shadow: var(--shadow);
}

.pkp_block > .title {
	background-color: var(--brand-gold);
	color: var(--brand-black);
	font-weight: 700;
	font-size: 0.9em;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 0.65em 1em;
	margin: 0;
	border-bottom: 1px solid var(--brand-gold-dark);
}

.pkp_block > .content {
	padding: 1em;
}

.pkp_block > .content a {
	color: var(--brand-green);
}

.pkp_block > .content a:hover {
	color: var(--brand-green-dark);
}

/* --------------------------------------------------------------------------
   7. Article / issue listings
   -------------------------------------------------------------------------- */
.obj_article_summary {
	padding: 1em 0;
	border-bottom: 1px solid var(--brand-border);
}

.obj_article_summary:last-child {
	border-bottom: none;
}

.obj_article_summary .title,
.obj_article_summary .title a {
	color: var(--brand-green);
	font-weight: 600;
	line-height: 1.4;
}

.obj_article_summary .title a:hover {
	color: var(--brand-green-dark);
}

.obj_article_summary .authors {
	color: var(--brand-grey);
	font-size: 0.95em;
}

/* Section / issue headings */
.page_issue_toc .section .title,
.pkp_page_title {
	color: var(--brand-green);
	border-bottom: 2px solid var(--brand-gold);
	padding-bottom: 0.3em;
	margin-bottom: 0.8em;
}

/* --------------------------------------------------------------------------
   8. Search bar
   -------------------------------------------------------------------------- */
.pkp_search input[type="text"],
.pkp_search input[type="search"] {
	border: 1px solid var(--brand-border);
	border-radius: var(--radius) 0 0 var(--radius);
	padding: 0.5em 0.8em;
}

.pkp_search button,
.pkp_search .pkp_button {
	background-color: var(--brand-green);
	border-color: var(--brand-green-dark);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: var(--brand-white);
}

.pkp_search button:hover {
	background-color: var(--brand-green-dark);
}

/* --------------------------------------------------------------------------
   9. Forms — consistent focus states, no overlapping labels/inputs
   -------------------------------------------------------------------------- */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--brand-green);
	box-shadow: 0 0 0 2px rgba(0, 102, 52, 0.15);
}

label {
	display: block;
	margin-bottom: 0.3em;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Pagination
   -------------------------------------------------------------------------- */
.pkp_page_navigation .page a,
.pkp_page_navigation .page.current {
	border-radius: var(--radius);
}

.pkp_page_navigation .page.current {
	background-color: var(--brand-green);
	color: var(--brand-white);
	border-color: var(--brand-green-dark);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.pkp_structure_footer_wrapper {
	background-color: var(--brand-green);
	color: var(--brand-white);
	padding-top: 2em;
	padding-bottom: 1.5em;
}

.pkp_structure_footer_wrapper a {
	color: var(--brand-gold);
}

.pkp_structure_footer_wrapper a:hover {
	color: var(--brand-white);
}

.pkp_structure_footer_wrapper h2,
.pkp_structure_footer_wrapper h3,
.pkp_structure_footer_wrapper h4 {
	color: var(--brand-gold);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 0.4em;
	margin-bottom: 0.6em;
}

/* --------------------------------------------------------------------------
   12. Responsive safety — prevents header/nav overlap on small screens.
       Kept minimal and additive so it cannot conflict with the active
       theme's own responsive rules.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.pkp_structure_head {
		padding: 0.5em 1em;
	}

	.pkp_navigation_primary > li > a {
		padding: 0.6em 0.8em;
	}

	.pkp_block > .title {
		font-size: 0.85em;
	}
}

/* --------------------------------------------------------------------------
   13. Accessibility — visible keyboard focus outline sitewide
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.pkp_button:focus-visible {
	outline: 2px solid var(--brand-gold);
	outline-offset: 2px;
}
