/*
 * TESL-EJ journal custom stylesheet.
 * Loaded through the OJS journal Appearance stylesheet setting.
 */

/* Compact title-and-author catalogue; detail pages keep the shared book layout. */
.teslej-book-list {
    list-style: none;
    margin: 24px 0 32px;
    padding: 0;
}

.teslej-book-list > li {
    margin: 0 0 16px;
}

/* Book detail pages: cover beside details, stacked on smaller screens. */
.teslej-book-layout {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.teslej-book-cover img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
}

.teslej-book-details > :first-child {
    margin-top: 0;
}

.teslej-book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.teslej-book-actions .cmp_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.teslej-book-back {
    margin-top: 32px;
}

@media (max-width: 767px) {
    .teslej-book-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .teslej-book-cover img {
        margin-right: auto;
        margin-left: auto;
    }
}

/* Hide breadcrumbs throughout the public site. */
.cmp_breadcrumbs {
    display: none !important;
}

/* Keep link text unadorned in every interaction state. */
a,
a:visited,
a:hover,
a:focus,
a:active,
a * {
    text-decoration: none !important;
}

/* Match inner-page heading spacing to the homepage content. */
.pkp_structure_content {
    padding-top: 12px;
}

.pkp_structure_main:first-child:last-child {
    margin-top: 0;
}

.pkp_structure_main > .page {
    padding-top: 16px;
}

/* Restrict OJS Homepage Image Banner Height */
.pkp_structure_head {
    min-height: 120px !important;
    background-size: auto 120px !important;
    background-position: left top !important;
    background-repeat: no-repeat !important;
}

/* Move main navigation below the banner */
.pkp_site_nav_menu {
    margin-top: 60px !important;
}
/* Hide TESL-EJ */
.pkp_site_name {
    display: none !important;
}

.pkp_structure_footer .pkp_footer_content {
	color: #121ab0;
	text-align: center;
}

.pkp_structure_footer_wrapper {
	background-color: #05C0ED;
	color: #faf9b1;
}

.pkp_structure_footer_wrapper a {
	color: #faf9b1;
}

.pkp_structure_footer .pkp_footer_content p {
	margin-left: auto;
	margin-right: auto;
}

.pkp_structure_footer .pkp_brand_footer {
	display: none !important;
}

/* Make footer more compact */
.pkp_structure_footer_wrapper {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.pkp_structure_footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Copyright text */
.pkp_footer_content {
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_footer_content p {
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* OJS/PKP logo area */
.pkp_brand_footer {
    margin-top: 5px !important;
    padding: 0 !important;
}

.pkp_brand_footer img {
    max-height: 35px !important;
    width: auto !important;
}
.pkp_structure_sidebar {
	display: none !important;
}

body.pkp_page_article .obj_article_details .main_entry {
	border-left: 1px solid #ddd;
}

@media (min-width: 992px) {
	.pkp_structure_main {
		float: none;
		max-width: none;
		width: 100%;
	}

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

.page_index_journal {
	display: flex;
	flex-direction: column;
}

.pkp_page_index .pkp_structure_content {
	padding-top: 12px;
}

.pkp_page_index .pkp_structure_main:first-child:last-child {
	margin-top: 0;
}

.page_index_journal .additional_content {
	border-top: 0;
	border-bottom: 1px solid #ddd;
	order: 1;
	padding-top: 12px;
	padding-bottom: 24px;
}

.page_index_journal .current_issue {
	order: 3;
}

.page_index_journal .featured_articles {
	order: 2;
}

.page_index_journal .current_issue .obj_issue_toc .sections:not(:first-child) {
	margin-top: 16px;
}

.page_index_journal > *:not(.additional_content):not(.featured_articles):not(.current_issue) {
	order: 4;
}

@media (min-width: 768px) {
	.page_index_journal .current_issue .obj_issue_toc .section {
		margin-bottom: 24px;
		margin-top: 16px;
		padding-bottom: 24px;
		padding-top: 24px;
	}

	.page_index_journal .current_issue .obj_issue_toc .section::before {
		top: 30px;
	}
}


/* Submission guidance: inherited journal typography and responsive data tables. */
.teslej-submission-page {
    overflow-wrap: anywhere;
}

.teslej-submission-page table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.teslej-submission-page th,
.teslej-submission-page td {
    padding: 8px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #dddddd;
}

.teslej-submission-page pre {
    white-space: pre-wrap;
}


/* About: side-by-side statistics on desktop, one table per row on mobile. */
.teslej-about-statistics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.teslej-about-archive-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.teslej-about-archive-logos img {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .teslej-about-statistics {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Licensed, user-supplied Georgia Pro fonts, hosted by this journal. */
@font-face {
    font-family: "TESL-EJ Georgia Pro";
    src: url("fonts/georgia-pro/GeorgiaPro-Reg.ttf?v=9e4487c89850") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "TESL-EJ Georgia Pro";
    src: url("fonts/georgia-pro/GeorgiaPro-Bold.ttf?v=60305b4c277f") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "TESL-EJ Georgia Pro";
    src: url("fonts/georgia-pro/GeorgiaPro-It.ttf?v=b94f41f00e11") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "TESL-EJ Georgia Pro";
    src: url("fonts/georgia-pro/GeorgiaPro-BoldIt.ttf?v=23346306d798") format("truetype");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

:root {
    --teslej-site-font: "TESL-EJ Georgia Pro", Georgia, serif;
    --teslej-content-background: #E2E6C1;
}

html,
body,
.cmp_breadcrumbs .current h1,
.pkp_site_name,
.pkp_site_name .is_text,
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4,
.pkp_structure_main h5,
.pkp_structure_main h6,
.obj_article_details .main_entry .item .label,
.obj_article_details .entry_details .item .label,
.obj_article_details .citation_display .citation_formats_button,
.obj_article_details .item .label,
.obj_article_summary > .title,
.obj_issue_summary .title,
.pkp_block .title {
    font-family: var(--teslej-site-font);
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
}

.pkp_structure_content {
    background-color: var(--teslej-content-background);
}


/* Match the outer canvas to the journal's main content background. */
html,
body {
    background-color: var(--teslej-content-background, #E2E6C1);
}
