@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ============================================================
   INCAAMV modern stylesheet for the OJS 3.5 Default theme
   Made with the INCAAMV theme customizer.
   Upload: Appearance > Advanced > Journal style sheet,
   or Site Settings > Appearance > Site style sheet.
   You can also edit the values in :root by hand.
   ============================================================ */
/* incaamv-settings: {"primary":"#1d5c7a","accent":"#b86e00","bg":"cool","header":"gradient","font":"inter","size":"16","radius":14,"buttons":"pill","shadow":true,"cards":true,"grid":true} */

:root {
	--primary: #1d5c7a;
	--primary-dark: #16455c;
	--primary-soft: #eff4f6;
	--accent: #b86e00;
	--accent-soft: #f8f1e6;
	--footer: #0d2937;
	--ring: #99b6c3;

	--bg: #f3f5f7;
	--surface: #ffffff;
	--text: #18202a;
	--muted: #5d6876;
	--border: #e3e7ec;
	--border-strong: #c9d0d8;

	--radius: 8px;
	--radius-lg: 14px;
	--btn-radius: 999px;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
	--shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
	--shadow-lg: 0 12px 24px -6px rgba(16, 24, 40, 0.14);
	--content-shadow: var(--shadow);

	--header-bg: linear-gradient(135deg, #1d5c7a 0%, #16455c 100%);
	--header-text: #ffffff;
	--header-muted: rgba(255, 255, 255, 0.85);
	--header-row: rgba(0, 0, 0, 0.12);
	--header-hover: rgba(255, 255, 255, 0.16);
	--header-border: 0;

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-heading: var(--font);
}

/* ============================================================
   Layout and typography
   ============================================================ */
html,
body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.page_title {
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
	color: var(--text);
}

.pkp_structure_main h1,
.page_title {
	font-size: 2rem;
}

a {
	color: var(--primary);
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--ring);
	outline-offset: 2px;
}

/* Content area as one white card */
.pkp_structure_page {
	background: transparent;
}

.pkp_structure_content {
	background: var(--surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--content-shadow);
	margin-top: 2rem;
	margin-bottom: 3rem;
}

.pkp_structure_main::before,
.pkp_structure_main::after {
	display: none !important;
}

@media (min-width: 992px) {
	.pkp_structure_content {
		padding-top: 2.5rem;
	}
}

.cmp_breadcrumbs {
	font-size: 0.875rem;
	color: var(--muted);
}

.cmp_breadcrumbs a {
	color: var(--muted);
}

/* ============================================================
   Header
   ============================================================ */
.pkp_structure_head {
	background: var(--header-bg);
	border-bottom: var(--header-border);
}

.pkp_site_name .is_text,
.pkp_site_name .is_text:hover,
.pkp_site_name .is_text:focus {
	color: var(--header-text);
	font-family: var(--font-heading);
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.pkp_site_nav_toggle > span {
	border-bottom-color: var(--header-text);
}

.pkp_site_nav_toggle > span::before,
.pkp_site_nav_toggle > span::after {
	background: var(--header-text);
}

/* Mobile menu panel */
.pkp_site_nav_menu {
	background: var(--primary-dark);
}

.pkp_navigation_user > li > a,
.pkp_navigation_user > li > a:hover {
	font-size: 0.875rem;
}

@media (min-width: 992px) {
	.pkp_site_nav_menu {
		background: transparent;
	}

	.pkp_navigation_user > li > a,
	.pkp_navigation_user > li > a:hover,
	.pkp_navigation_user > li > a:focus {
		color: var(--header-muted);
	}

	.pkp_navigation_primary_row {
		background: var(--header-row);
	}

	.pkp_navigation_primary > li > a {
		margin: 0.5rem 0.25rem;
		padding: 0.45rem 0.9rem;
		border: 0;
		border-radius: var(--btn-radius);
		color: var(--header-text);
		font-weight: 600;
		font-size: 0.9375rem;
		transition: background 0.15s ease;
	}

	.pkp_navigation_primary > li:first-child a {
		margin-left: -0.9rem;
	}

	.pkp_navigation_primary > li > a:hover,
	.pkp_navigation_primary > li > a:focus {
		background: var(--header-hover);
		color: var(--header-text);
	}

	.pkp_nav_list ul {
		border: 1px solid var(--border);
		border-radius: var(--radius);
		box-shadow: var(--shadow-lg);
		overflow: hidden;
	}

	.pkp_nav_list ul a {
		color: var(--text);
		border-left-width: 3px;
	}

	.pkp_nav_list ul a:hover,
	.pkp_nav_list ul a:focus {
		background: var(--primary-soft);
		border-color: var(--primary);
		color: var(--primary);
	}

	.pkp_navigation_search_wrapper a {
		color: var(--header-text);
		border: 0;
		border-radius: var(--btn-radius);
		padding: 0.45rem 0.9rem;
	}

	.pkp_navigation_search_wrapper a:hover,
	.pkp_navigation_search_wrapper a:focus {
		background: var(--header-hover);
		color: var(--header-text);
	}
}

/* ============================================================
   Buttons, links styled as buttons, forms
   ============================================================ */
.cmp_button,
.cmp_button_wire,
.obj_galley_link,
.pkp_structure_main .cmp_form .buttons button,
.block_make_submission a,
.page_index_journal .read_more,
.cmp_notification a.cmp_button {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em 1.1em;
	border: 1px solid var(--primary);
	border-radius: var(--btn-radius);
	background: var(--primary);
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: none;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cmp_button:hover,
.cmp_button_wire:hover,
.obj_galley_link:hover,
.obj_galley_link:focus,
.pkp_structure_main .cmp_form .buttons button:hover,
.block_make_submission a:hover,
.page_index_journal .read_more:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff !important;
	transform: translateY(-1px);
}

.obj_galley_link::before {
	margin-right: 0;
}

.cmp_form input[type="text"],
.cmp_form input[type="email"],
.cmp_form input[type="password"],
.cmp_form input[type="url"],
.cmp_form input[type="tel"],
.cmp_form select,
.cmp_form textarea,
.pkp_search input[type="text"] {
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	padding: 0.55em 0.8em;
	background: #fff;
}

/* ============================================================
   Site homepage: journal list as cards
   ============================================================ */
.pkp_page_index .journals > ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.pkp_page_index .journals > ul > li,
.pkp_page_index .journals > ul > li:first-child {
	margin: 0;
	padding: 1.75rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 4px solid var(--primary);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pkp_page_index .journals > ul > li:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.pkp_page_index .journals .thumb,
.pkp_page_index .journals .thumb + .body {
	float: none;
	width: auto;
	padding: 0;
}

.pkp_page_index .journals .thumb img {
	width: 100%;
	max-height: 14rem;
	object-fit: cover;
	border-radius: var(--radius);
	margin-bottom: 1.25rem;
}

.pkp_page_index .journals h3 {
	margin: 0 0 0.5rem;
	font-size: 1.3rem;
	line-height: 1.3;
}

.pkp_page_index .journals h3 a {
	color: var(--text);
}

.pkp_page_index .journals h3 a:hover,
.pkp_page_index .journals h3 a:focus {
	color: var(--primary);
}

.pkp_page_index .journals .description {
	color: var(--muted);
	font-size: 0.9375rem;
}

.pkp_page_index .journals .links {
	margin-top: 1.25rem;
}

.pkp_page_index .journals .links li {
	margin: 0 0.5rem 0.5rem 0;
}

.pkp_page_index .journals .links a {
	display: inline-block;
	padding: 0.45em 1em;
	border: 1px solid var(--primary);
	border-radius: var(--btn-radius);
	color: var(--primary);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.pkp_page_index .journals .links .view a,
.pkp_page_index .journals .links a:hover,
.pkp_page_index .journals .links a:focus {
	background: var(--primary);
	color: #fff;
}

.pkp_page_index .journals .links .view a:hover {
	background: var(--accent);
	border-color: var(--accent);
}

/* ============================================================
   Journal homepage
   ============================================================ */
.page_index_journal .homepage_image img {
	width: 100%;
	border-radius: var(--radius-lg);
}

.page_index_journal .homepage_about,
.page_index_journal .current_issue {
	margin-top: 2.5rem;
}

.page_index_journal .homepage_about h2,
.page_index_journal .current_issue > h2 {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	background: none;
	margin-bottom: 0.75rem;
}

.page_index_journal .current_issue_title {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin-bottom: 1.25rem;
}

/* ============================================================
   Issue table of contents
   ============================================================ */
.obj_issue_toc .heading {
	padding: 1.5rem;
	background: var(--primary-soft);
	border-radius: var(--radius-lg);
}

.obj_issue_toc .cover img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.obj_issue_toc .pub_id,
.obj_issue_toc .published {
	margin: 0.75rem 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.obj_issue_toc .sections:not(:first-child) {
	margin-top: 1.5rem;
}

.obj_issue_toc .section,
.obj_issue_toc .galleys {
	margin: 2rem 0 0;
	padding: 0;
}

.obj_issue_toc .section::before,
.obj_issue_toc .galleys::before {
	display: none;
}

.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3 {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.3rem 0.85rem;
	background: var(--accent-soft);
	border: 0;
	border-radius: var(--btn-radius);
	color: var(--accent);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.6;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	left: 0;
}

.obj_issue_toc .section > h2::before,
.obj_issue_toc .section > h2::after,
.obj_issue_toc .section > h3::before,
.obj_issue_toc .section > h3::after {
	display: none;
}

.obj_issue_toc .articles {
	margin-top: 0;
}

.obj_issue_toc .articles > li {
	margin: 0 0 1rem;
}


/* Article summaries as cards */
.obj_article_summary {
	position: relative;
	padding: 1.25rem 1.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.obj_article_summary:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow);
}

.obj_article_summary > .title {
	font-family: var(--font-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.4;
	padding-right: 5rem;
}

.obj_article_summary > .title a {
	color: var(--text);
}

.obj_article_summary > .title a:hover,
.obj_article_summary > .title a:focus {
	color: var(--primary);
}

.obj_article_summary .meta {
	position: static;
	font-size: 0.875rem;
	color: var(--muted);
}

.obj_article_summary .authors {
	color: var(--muted);
}

.obj_article_summary .pages {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	padding: 0.1rem 0.6rem;
	background: var(--bg);
	border-radius: var(--btn-radius);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.6;
	color: var(--muted);
}

.obj_article_summary .galleys_links {
	margin-top: 0.75rem;
}


/* ============================================================
   Issue archive: grid of covers
   ============================================================ */
.page_issue_archive .issues_archive {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 1.75rem 1.5rem;
	margin: 1.5rem 0 0;
	border: 0;
}

.page_issue_archive .issues_archive > li {
	padding: 0;
	border: 0;
}

.page_issue_archive .obj_issue_summary .cover {
	float: none;
	width: 100%;
	margin: 0 0 0.75rem;
}

.page_issue_archive .obj_issue_summary .cover img {
	width: 100%;
	max-height: none;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page_issue_archive .obj_issue_summary .cover:hover img {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.page_issue_archive .obj_issue_summary h2 {
	font-size: 1rem;
	line-height: 1.35;
}

.page_issue_archive .obj_issue_summary .title {
	color: var(--text);
	font-family: var(--font-heading);
}

.page_issue_archive .obj_issue_summary .series {
	font-size: 0.85rem;
}

.page_issue_archive .obj_issue_summary .description {
	display: none;
}

/* ============================================================
   Article page
   ============================================================ */
.obj_article_details .page_title {
	font-size: 2rem;
	line-height: 1.25;
}

.obj_article_details .subtitle {
	color: var(--muted);
}

.obj_article_details .item .label,
.obj_article_details .sub_item .label {
	font-family: var(--font);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.obj_article_details .abstract {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.obj_article_details .entry_details {
	border-radius: var(--radius-lg);
	background: var(--bg);
	border: 0;
}

/* ============================================================
   Sidebar
   ============================================================ */
.pkp_structure_sidebar .pkp_block {
	margin: 0 1.5rem 1.25rem;
	padding: 1.25rem 1.5rem;
	background: var(--bg);
	border: 0;
	border-radius: var(--radius-lg);
}

.pkp_block .title {
	font-family: var(--font);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin-bottom: 0.75rem;
}

/* ============================================================
   Footer
   ============================================================ */
.pkp_structure_footer_wrapper {
	background: var(--footer);
	color: rgba(255, 255, 255, 0.78);
	border-top: 0;
}

.pkp_structure_footer_wrapper a {
	color: #fff;
}

.pkp_structure_footer {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

.pkp_brand_footer img {
	filter: brightness(0) invert(1);
	opacity: 0.6;
}
