
/* ==========================================
   SPORT SCIENCE — HOMEPAGE FIXES
   JME Modern Theme | OJS 3.5
   ========================================== */

:root {
    --jme-header-navy: #123859;
    --jme-header-teal: #047d8b;
}

/* ==========================================
   HEADER — PRESERVE EXISTING LAYOUT
   ========================================== */

.pkp_structure_head .pkp_head_wrapper {
    max-width: 1320px !important;
    box-sizing: border-box !important;
}

.pkp_structure_head .pkp_site_name_wrapper {
    box-sizing: border-box !important;
    min-height: 0 !important;
}

.pkp_structure_head .pkp_site_name img {
    height: auto !important;
    max-height: 66px !important;
    max-width: 150px !important;
    object-fit: contain !important;
}

.pkp_navigation_user_wrapper {
    z-index: 101 !important;
}

.pkp_navigation_primary_wrapper {
    box-sizing: border-box !important;
}

/* ==========================================
   HOMEPAGE CONTENT WIDTH
   ========================================== */

@media (min-width: 992px) {

    .pkp_page_index .pkp_structure_main {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        border: 0 !important;
        padding: 0 !important;
    }

    .pkp_page_index .pkp_structure_sidebar {
        display: none !important;
    }

    .pkp_page_index .pkp_structure_content {
        max-width: 1320px !important;
        padding: 0 20px 32px !important;
        margin: 0 auto !important;
    }
}

/* ==========================================
   HERO — PRESERVE WORKING BACKGROUND
   ========================================== */

.jme-home > .homepage_image,
.jme-home .homepage_image {
    display: none !important;
}

.jme-home .jme-hero-photo {
    background-position: center center !important;
}

.jme-home .jme-hero-copy {
    isolation: isolate;
}

/* ==========================================
   CURRENT ISSUE — COVER AND LAYOUT
   ========================================== */

.jme-home .jme-issue-content {
    display: grid !important;
    grid-template-columns: 170px minmax(0, 1fr) !important;
    gap: 26px !important;
    align-items: start !important;
}

.jme-home .jme-issue-cover {
    max-width: 170px !important;
}

.jme-home .jme-issue-cover img {
    width: 100% !important;
    height: auto !important;
    max-width: 170px !important;
    display: block !important;
}

.jme-home .jme-issue-text {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

/* Hide duplicate OJS issue information */

.jme-home .jme-issue-text .obj_issue_toc > .cover,
.jme-home .jme-issue-text .obj_issue_toc > .issue_cover,
.jme-home .jme-issue-text .obj_issue_toc > .heading,
.jme-home .jme-issue-text .obj_issue_toc > .description,
.jme-home .jme-issue-text .obj_issue_toc > .published,
.jme-home .jme-issue-text .obj_issue_toc > .cover_image,
.jme-home .jme-issue-text .obj_issue_toc > .issue_description {
    display: none !important;
}

/* ==========================================
   CURRENT ISSUE — COMPACT ARTICLES
   ========================================== */

/* Reduce space before article sections */

.jme-home .jme-issue-text .obj_issue_toc .sections {
    margin-top: 8px !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove excess spacing around sections */

.jme-home .jme-issue-text .obj_issue_toc .section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Compact section heading */

.jme-home .jme-issue-text .obj_issue_toc .section h2 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-top: 0 !important;
    padding-bottom: 6px !important;
}

/* Remove default article list spacing */

.jme-home .jme-issue-text .obj_issue_toc .articles {
    margin: 0 !important;
    padding: 0 !important;
}

/* Compact each list item */

.jme-home .jme-issue-text .obj_issue_toc .articles > li {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    list-style: none !important;
}

/* Compact individual article summaries */

.jme-home .jme-issue-text .obj_article_summary {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Article titles */

.jme-home .jme-issue-text .obj_article_summary .title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}

/* Authors directly underneath titles */

.jme-home .jme-issue-text .obj_article_summary .authors {
    display: block !important;
    width: auto !important;
    float: none !important;
    clear: both !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* Compact page numbers */

.jme-home .jme-issue-text .obj_article_summary .pages {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* Compact PDF and other galley links */

.jme-home .jme-issue-text .obj_article_summary .galleys {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.jme-home .obj_article_summary .galleys a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    white-space: normal;
}

/* Eliminate oversized article-row margins */

.jme-home .jme-issue-text .obj_issue_toc li {
    min-height: 0 !important;
}

/* ==========================================
   LATEST NEWS
   ========================================== */

.jme-news .cmp_announcements ul {
    list-style: none;
    padding: 0;
}

/* ==========================================
   TABLET RESPONSIVE LAYOUT
   ========================================== */

@media (max-width: 800px) {

    .jme-home .jme-hero {
        padding: 30px 22px !important;
        min-height: 270px !important;
    }

    .jme-home .jme-hero-photo {
        opacity: .22 !important;
        width: 100% !important;
    }

    .jme-home .jme-hero-slogan {
        display: none !important;
    }

    .jme-home .jme-facts {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .jme-home .jme-issue-content {
        grid-template-columns:
            125px minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .jme-home .jme-issue-cover {
        max-width: 125px !important;
    }

    .jme-home .jme-issue-text .obj_article_summary {
        padding: 10px 0 !important;
    }
}

/* ==========================================
   MOBILE RESPONSIVE LAYOUT
   ========================================== */

@media (max-width: 540px) {

    .jme-home .jme-facts {
        grid-template-columns: 1fr !important;
    }

    .jme-home .jme-issue-content {
        grid-template-columns: 1fr !important;
    }

    .jme-home .jme-issue-cover {
        max-width: 150px !important;
    }

    .jme-home .jme-hero h1 {
        font-size: 30px !important;
    }

    .jme-home .jme-news .cmp_announcements ul {
        grid-template-columns: 1fr !important;
    }

    .jme-home .jme-issue-text .obj_article_summary {
        padding: 8px 0 !important;
    }
}

/* ==========================================
   JME MODERN — LATEST NEWS GRID FIX
   OJS 3.5 — CSS ONLY
   ========================================== */

/* Main announcement container */
.jme-home .jme-news .cmp_announcements.highlight_first {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    width: 100% !important;
    margin: 15px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Hide duplicate OJS Announcements heading */
.jme-home .jme-news .cmp_announcements > h2 {
    display: none !important;
}

/* Unwrap the secondary announcement container */
.jme-home .jme-news .cmp_announcements > .more {
    display: contents !important;
}

/* Reset featured announcement */
.jme-home .jme-news .cmp_announcements
    > .obj_announcement_summary,
.jme-home .jme-news .cmp_announcements
    > .more > .obj_announcement_summary {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 145px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 22px !important;
    border: 0 !important;
    border-right: 1px solid #e2e8ef !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Remove first-card extra offset */
.jme-home .jme-news .cmp_announcements
    > .obj_announcement_summary:first-of-type {
    padding-left: 0 !important;
}

/* Remove right border on last card */
.jme-home .jme-news .cmp_announcements
    > .more > .obj_announcement_summary:last-child {
    border-right: none !important;
}

/* Compact titles */
.jme-home .jme-news .obj_announcement_summary h3,
.jme-home .jme-news .obj_announcement_summary h4 {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-family: Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* Title links */
.jme-home .jme-news .obj_announcement_summary h3 a,
.jme-home .jme-news .obj_announcement_summary h4 a {
    color: #123859 !important;
    text-decoration: none !important;
}

.jme-home .jme-news .obj_announcement_summary h3 a:hover,
.jme-home .jme-news .obj_announcement_summary h4 a:hover {
    color: #047d8b !important;
}

/* Dates */
.jme-home .jme-news .obj_announcement_summary .date {
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #738398 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* Hide long descriptions on homepage */
.jme-home .jme-news .obj_announcement_summary
    .description,
.jme-home .jme-news .obj_announcement_summary
    .summary {
    display: none !important;
}

/* Read More */
.jme-home .jme-news .obj_announcement_summary
    .read_more,
.jme-home .jme-news .obj_announcement_summary
    .readMore {
    margin-top: auto !important;
    color: #047d8b !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Tablet — two columns */
@media (max-width: 900px) {
    .jme-home .jme-news
        .cmp_announcements.highlight_first {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .jme-home .jme-news
        .obj_announcement_summary {
        border-bottom: 1px solid #e2e8ef !important;
    }
}

/* Mobile — single column */
@media (max-width: 600px) {
    .jme-home .jme-news
        .cmp_announcements.highlight_first {
        grid-template-columns: 1fr !important;
    }

    .jme-home .jme-news
        .cmp_announcements
        .obj_announcement_summary {
        min-height: 0 !important;
        padding: 16px 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8ef !important;
    }
}

/* ==========================================
   JME MODERN — FINAL NEWS ALIGNMENT
   Three equal columns, one horizontal row
   ========================================== */

@media (min-width: 901px) {

    /* Main container: override original OJS layout */
    .jme-home .jme-news
    .cmp_announcements.highlight_first {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-template-rows: auto !important;
        gap: 0 !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    /* Remove OJS featured announcement positioning */
    .jme-home .jme-news
    .cmp_announcements.highlight_first
    > .obj_announcement_summary {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        float: none !important;
        position: static !important;
        margin: 0 !important;
    }

    /* Let the remaining articles participate in the same grid */
    .jme-home .jme-news
    .cmp_announcements.highlight_first > .more {
        display: contents !important;
    }

    /* Second announcement */
    .jme-home .jme-news
    .cmp_announcements.highlight_first
    > .more > .obj_announcement_summary:nth-child(1) {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    /* Third announcement */
    .jme-home .jme-news
    .cmp_announcements.highlight_first
    > .more > .obj_announcement_summary:nth-child(2) {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }

    /* Consistent appearance */
    .jme-home .jme-news
    .cmp_announcements .obj_announcement_summary {
        min-height: 150px !important;
        height: auto !important;
        width: 100% !important;
        padding: 14px 24px !important;
        margin: 0 !important;
        border-right: 1px solid #e2e8ef !important;
        box-sizing: border-box !important;
    }

    /* Remove border from third column */
    .jme-home .jme-news
    .cmp_announcements .more
    .obj_announcement_summary:last-child {
        border-right: 0 !important;
    }

    /* Avoid fixed heights inherited from OJS */
    .jme-home .jme-news
    .cmp_announcements .more {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}



/* ==========================================
   SPORT SCIENCE — MODERN FOOTER
   OJS 3.5 | JME MODERN
   ========================================== */

:root {
    --jme-footer-bg: #123859;
    --jme-footer-text: #ffffff;
    --jme-footer-muted: #c9dbe9;
    --jme-footer-divider: #456780;
}

/* Unified footer background */

.pkp_structure_footer {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--jme-footer-bg) !important;
    color: var(--jme-footer-text) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.pkp_structure_footer .pkp_footer_content,
.pkp_structure_footer .pkp_footer_content_wrapper {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Main footer container */

.pkp_structure_footer .pkp_footer_content {
    float: none !important;
    width: 100% !important;
    max-width: 1320px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 26px 30px !important;
    box-sizing: border-box !important;
}

/* Custom footer */

.pkp_structure_footer .jme-footer-custom {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--jme-footer-text);
}

/* Upper section */

.pkp_structure_footer .jme-footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: start;
}

/* Journal information */

.pkp_structure_footer .jme-footer-info strong {
    display: block;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}

/* ISSN and license */

.pkp_structure_footer .jme-footer-info p,
.pkp_structure_footer .jme-footer-details p {
    color: var(--jme-footer-muted) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 3px 0 !important;
    padding: 0 !important;
}

.pkp_structure_footer .jme-footer-details {
    min-width: 0;
}

/* License link */

.pkp_structure_footer .jme-footer-details a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.pkp_structure_footer .jme-footer-details a:hover {
    color: #a5e7ef !important;
}

/* Horizontal divider */

.pkp_structure_footer .jme-footer-divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 24px 0 16px;
    padding: 0;
    background-color: var(--jme-footer-divider);
}

/* Bottom copyright row */

.pkp_structure_footer .jme-footer-bottom {
    width: 100%;
    padding: 0;
    margin: 0;
}

.pkp_structure_footer .jme-footer-bottom p {
    color: var(--jme-footer-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide large OJS/PKP footer branding */

.pkp_structure_footer .pkp_brand_footer {
    display: none !important;
}

/* Mobile responsive footer */

@media (max-width: 700px) {

    .pkp_structure_footer .pkp_footer_content {
        padding: 24px 20px !important;
    }

    .pkp_structure_footer .jme-footer-top {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pkp_structure_footer .jme-footer-divider {
        margin: 20px 0 14px;
    }
}

/* Footer — Journal left, ISSN details right */

.pkp_structure_footer .jme-footer-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 30px !important;
}

.pkp_structure_footer .jme-footer-info {
    flex: 1 !important;
    text-align: left !important;
}

.pkp_structure_footer .jme-footer-details {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    text-align: right !important;
}

.pkp_structure_footer .jme-footer-details p {
    text-align: right !important;
}

/* Mobile responsive */
@media (max-width: 700px) {
    .pkp_structure_footer .jme-footer-top {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .pkp_structure_footer .jme-footer-details {
        margin-left: 0 !important;
        text-align: left !important;
    }

    .pkp_structure_footer .jme-footer-details p {
        text-align: left !important;
    }
}

/* ==========================================
   SPORT SCIENCE — UNIFORM PUBLIC PAGE WIDTH
   OJS 3.5 | JME Modern
   ========================================== */

:root {
    --jme-content-width: 1320px;
    --jme-page-padding: 20px;
}

/* Consistent sizing */
.pkp_structure_page,
.pkp_structure_body,
.pkp_structure_content,
.pkp_structure_main {
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* Keep the site's outer shell responsive */
.pkp_structure_page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Main body should not have competing width limits */
.pkp_structure_body {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* SAME WIDTH ON HOMEPAGE AND ALL PUBLIC PAGES */
.pkp_structure_content {
    display: block !important;
    float: none !important;
    width: calc(100% - 40px) !important;
    max-width: var(--jme-content-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Remove OJS's narrow main column */
.pkp_structure_content > .pkp_structure_main {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 30px var(--jme-page-padding) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-sizing: border-box !important;
}

/* Remove inherited divider pseudo-elements */
.pkp_structure_content > .pkp_structure_main::before,
.pkp_structure_content > .pkp_structure_main::after {
    content: none !important;
    display: none !important;
}

/* Remove sidebar on public pages */
.pkp_structure_content > .pkp_structure_sidebar {
    display: none !important;
}

/* Preserve completed homepage's special layout */
.pkp_page_index .pkp_structure_content > .pkp_structure_main {
    padding: 0 !important;
}

/* Images stay inside their containers */
.pkp_structure_main img {
    max-width: 100%;
    height: auto;
}

/* Responsive tablet/mobile */
@media (max-width: 800px) {

    .pkp_structure_content {
        width: calc(100% - 24px) !important;
    }

    .pkp_structure_content > .pkp_structure_main {
        padding: 20px 12px !important;
    }

    .pkp_page_index .pkp_structure_content
    > .pkp_structure_main {
        padding: 0 !important;
    }
}



/* ==========================================
   SPORT SCIENCE — MODERN ABOUT PAGE
   OJS 3.5 | JME Modern
   ========================================== */

.jme-about-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page heading */

.jme-about-heading {
    padding: 32px 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5edf2;
}

.jme-about-heading h1 {
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #123859;
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
}

.jme-about-heading .cmp_breadcrumbs {
    margin: 0;
    padding: 0;
}

/* Main two-column layout */

.jme-about-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    width: 100%;
}

/* Sidebar */

.jme-about-sidebar {
    display: flex;
    flex-direction: column;
    border: 1px solid #e3ebf0;
    background: #fff;
}

.jme-about-sidebar a {
    display: block;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #123859 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #e9eef2;
    border-left: 3px solid transparent;
    transition: background-color .2s ease;
}

.jme-about-sidebar a:last-child {
    border-bottom: none;
}

.jme-about-sidebar a:hover {
    background-color: #edf7f9;
    color: #047d8b !important;
}

.jme-about-sidebar a.active,
.jme-about-sidebar a:focus-visible {
    background: #d9f2f5;
    border-left-color: #047d8b;
    color: #123859 !important;
    font-weight: 700;
}

/* About content */

.jme-about-content {
    min-width: 0;
    max-width: 100%;
    color: #33465a;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.jme-about-content h2 {
    margin: 0 0 18px;
    color: #123859;
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1.3;
}

.jme-about-content h3 {
    margin: 25px 0 12px;
    color: #123859;
    font-family: Georgia, serif;
    font-size: 20px;
}

.jme-about-content p {
    margin: 0 0 18px;
}

.jme-about-content ul,
.jme-about-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.jme-about-content li {
    margin-bottom: 8px;
}

.jme-about-content a {
    color: #047d8b;
}

.jme-about-content [id] {
    scroll-margin-top: 24px;
}

/* Responsive */

@media (max-width: 900px) {
    .jme-about-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 700px) {
    .jme-about-heading {
        padding: 22px 0;
    }

    .jme-about-heading h1 {
        font-size: 28px;
    }

    .jme-about-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .jme-about-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jme-about-sidebar a {
        font-size: 13px;
        padding: 12px;
    }

    .jme-about-content h2 {
        font-size: 25px;
    }
}

@media (max-width: 420px) {
    .jme-about-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   JME MODERN — INTERACTIVE ABOUT TABS
   Sport Science | OJS 3.5
   ========================================== */

/* Sidebar active and hover states */
.jme-about-page .jme-about-sidebar a.active {
    background: #d9f2f5 !important;
    border-left: 3px solid #047d8b !important;
    color: #123859 !important;
    font-weight: 700 !important;
}

.jme-about-page .jme-about-sidebar a:hover {
    background: #edf7f9 !important;
}

/* Hide unavailable menu items */
.jme-about-page .jme-about-sidebar a[hidden] {
    display: none !important;
}

/* Individual content panels */
.jme-about-page .jme-about-panel {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Hide inactive panels */
.jme-about-page.jme-tabs-ready
.jme-about-panel[hidden] {
    display: none !important;
}

/* Content transitions on switching */
.jme-about-page .jme-about-panel:not([hidden]) {
    animation: jmeAboutFade 0.2s ease-out;
}

@keyframes jmeAboutFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section heading */
.jme-about-page .jme-about-panel > h2 {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #123859;
    line-height: 1.3;
    margin: 0 0 18px !important;
}

/* Paragraphs and lists */
.jme-about-page .jme-about-panel p {
    margin: 0 0 16px;
    line-height: 1.75;
}

.jme-about-page .jme-about-panel li {
    margin-bottom: 8px;
    line-height: 1.65;
}

/* Accessible keyboard focus */
.jme-about-page .jme-about-sidebar a:focus-visible {
    outline: 2px solid #047d8b;
    outline-offset: -2px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .jme-about-page
    .jme-about-panel:not([hidden]) {
        animation: none !important;
    }
}



/* ==========================================
   SPORT SCIENCE — CURRENT ISSUE PAGE
   JME Modern | OJS 3.5
   Homepage-Matching Layout
   ========================================== */

/* ==========================================
   1. MAIN ISSUE PAGE
   ========================================== */

.page_issue {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Issue title */
.page_issue > h1 {
    font-family: Georgia, serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #123859 !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

/* ==========================================
   2. TWO-COLUMN ISSUE LAYOUT
   ========================================== */

.page_issue .obj_issue_toc {
    display: grid !important;
    grid-template-columns: 254px minmax(0, 1fr) !important;
    column-gap: 32px !important;
    row-gap: 8px !important;
    align-items: start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/*
   Allow cover, published date and article list
   to participate in the same grid.
*/

.page_issue .obj_issue_toc > .heading {
    display: contents !important;
}

/* ==========================================
   3. ISSUE COVER — LEFT COLUMN
   ========================================== */

.page_issue .obj_issue_toc > .heading > .cover {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;

    display: block !important;
    width: 254px !important;
    max-width: 100% !important;
    height: auto !important;

    float: none !important;
    clear: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    background: transparent !important;
}

.page_issue .obj_issue_toc > .heading > .cover img {
    display: block !important;
    width: 100% !important;
    max-width: 254px !important;
    height: auto !important;
    object-fit: contain !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    box-shadow: 0 8px 22px rgba(18, 56, 89, 0.12);
}

/* ==========================================
   4. ISSUE INFORMATION — RIGHT COLUMN
   ========================================== */

.page_issue .obj_issue_toc
> .heading > :not(.cover) {
    grid-column: 2 !important;

    min-width: 0 !important;
    width: 100% !important;

    float: none !important;
    clear: none !important;

    margin: 0 0 6px !important;
    padding: 0 !important;
}

/* Published date */
.page_issue .obj_issue_toc .published {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #60748a !important;
    margin-bottom: 8px !important;
}

.page_issue .obj_issue_toc .published .label {
    font-weight: 700 !important;
    color: #123859 !important;
}

/* Issue description */
.page_issue .obj_issue_toc .description {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #4e6174 !important;
    margin-bottom: 8px !important;
}

/* ==========================================
   5. ARTICLES — BESIDE THE COVER
   ========================================== */

.page_issue .obj_issue_toc > .sections {
    grid-column: 2 !important;

    display: block !important;
    width: 100% !important;
    min-width: 0 !important;

    float: none !important;
    clear: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    box-sizing: border-box !important;
}

/* Article section */
.page_issue .obj_issue_toc .sections .section {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* ==========================================
   6. SECTION HEADING
   ========================================== */

.page_issue .obj_issue_toc
.sections .section > h2,
.page_issue .obj_issue_toc
.sections .section > h3,
.page_issue .obj_issue_toc
.sections .section > h4 {
    display: block !important;

    font-family: Georgia, serif !important;
    font-size: 19px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;

    color: #687b8f !important;

    margin: 0 0 12px !important;
    padding: 0 0 8px !important;

    border: none !important;
    border-bottom: 1px solid #e1e8ed !important;

    background: transparent !important;
}

/* ==========================================
   7. ARTICLE LIST
   ========================================== */

.page_issue .obj_issue_toc .articles {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

/* Article list item */
.page_issue .obj_issue_toc .articles > li {
    display: block !important;

    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;

    border: none !important;
    border-bottom: 1px solid #e1e8ed !important;
}

/* ==========================================
   8. COMPACT ARTICLE ROWS
   ========================================== */

.page_issue .obj_issue_toc .obj_article_summary {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 14px 0 !important;

    box-sizing: border-box !important;
}

/* Article title */
.page_issue .obj_issue_toc
.obj_article_summary .title {
    display: block !important;

    width: auto !important;

    margin: 0 0 5px !important;
    padding: 0 !important;

    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* Article title links */
.page_issue .obj_issue_toc
.obj_article_summary .title a {
    color: #047d8b !important;
    text-decoration: none !important;
}

.page_issue .obj_issue_toc
.obj_article_summary .title a:hover {
    color: #123859 !important;
}

/* Author names */
.page_issue .obj_issue_toc
.obj_article_summary .authors {
    display: block !important;

    width: auto !important;
    float: none !important;
    clear: none !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #687b8f !important;
}

/* Page numbers */
.page_issue .obj_issue_toc
.obj_article_summary .pages {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #738398 !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;
}

/* ==========================================
   9. PDF AND GALLEY LINKS
   ========================================== */

.page_issue .obj_issue_toc
.obj_article_summary .galleys {
    margin: 8px 0 0 !important;
    padding: 0 !important;
}

.page_issue .obj_issue_toc
.obj_article_summary .galleys a {
    display: inline-flex !important;
    align-items: center !important;

    padding: 5px 12px !important;

    background: #f1fafb !important;
    border: 1px solid #c7dfe5 !important;
    border-radius: 5px !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    color: #047d8b !important;
    text-decoration: none !important;
}

/* Full-issue PDF section */
.page_issue .obj_issue_toc > .galleys {
    grid-column: 2 !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

/* ==========================================
   10. IF NO ISSUE COVER EXISTS
   ========================================== */

.page_issue .obj_issue_toc:not(:has(> .heading > .cover)) {
    grid-template-columns: minmax(0, 1fr) !important;
}

.page_issue .obj_issue_toc:not(:has(> .heading > .cover))
> .heading > :not(.cover),
.page_issue .obj_issue_toc:not(:has(> .heading > .cover))
> .sections,
.page_issue .obj_issue_toc:not(:has(> .heading > .cover))
> .galleys {
    grid-column: 1 !important;
}

/* ==========================================
   11. TABLET RESPONSIVE
   ========================================== */

@media (max-width: 900px) {

    .page_issue .obj_issue_toc {
        grid-template-columns:
            180px minmax(0, 1fr) !important;

        column-gap: 22px !important;
    }

    .page_issue .obj_issue_toc
    > .heading > .cover {
        width: 180px !important;
    }

    .page_issue .obj_issue_toc
    > .heading > .cover img {
        max-width: 180px !important;
    }

    .page_issue > h1 {
        font-size: 28px !important;
    }
}

/* ==========================================
   12. MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 650px) {

    .page_issue .obj_issue_toc {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    .page_issue .obj_issue_toc > .heading {
        display: contents !important;
    }

    .page_issue .obj_issue_toc
    > .heading > .cover {
        width: 150px !important;
        max-width: 150px !important;
        grid-row: auto !important;
    }

    .page_issue .obj_issue_toc
    > .heading > .cover img {
        max-width: 150px !important;
    }

    .page_issue .obj_issue_toc
    > .sections,
    .page_issue .obj_issue_toc
    > .galleys {
        width: 100% !important;
    }

    .page_issue > h1 {
        font-size: 25px !important;
    }

    .page_issue .obj_issue_toc
    .obj_article_summary {
        padding: 12px 0 !important;
    }
}

/* ==========================================
   SPORT SCIENCE — ISSUE GRID ALIGNMENT FIX
   OJS 3.5 | JME Modern
   ========================================== */

@media (min-width: 651px) {

    /* Use one grid with independent columns */
    .page_issue .obj_issue_toc {
        display: grid !important;
        grid-template-columns: 254px minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
        column-gap: 28px !important;
        row-gap: 0 !important;
        align-items: start !important;
    }

    /* Allow issue metadata and content to join grid */
    .page_issue .obj_issue_toc > .heading {
        display: contents !important;
    }

    /* Keep cover fixed in left column */
    .page_issue .obj_issue_toc > .heading > .cover {
        grid-column: 1 !important;
        grid-row: 1 / span 10 !important;
        align-self: start !important;
    }

    /* Put published date on top right */
    .page_issue .obj_issue_toc > .heading > .published {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: start !important;
        margin: 0 0 10px !important;
    }

    /* Put articles immediately below date */
    .page_issue .obj_issue_toc > .sections {
        grid-column: 2 !important;
        grid-row: 2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Reduce title and article spacing */
    .page_issue .obj_issue_toc .sections .section {
        margin: 0 !important;
        padding: 0 !important;
    }

    .page_issue .obj_issue_toc .sections .section > h2,
    .page_issue .obj_issue_toc .sections .section > h3 {
        margin: 0 0 8px !important;
        padding: 0 0 8px !important;
    }

    .page_issue .obj_issue_toc .obj_article_summary {
        padding: 10px 0 !important;
    }
}



/* ==========================================
   SPORT SCIENCE — ARTICLE LAYOUT FIX
   JME Modern | OJS 3.5
   ========================================== */

/* Reset inherited article layout */
.page_article .obj_article_details {
    width: 100% !important;
    max-width: 100% !important;
}

/* Article title */
.page_article .obj_article_details .page_title {
    font-family: Georgia, serif !important;
    font-size: 32px !important;
    line-height: 1.3 !important;
    color: #123859 !important;
    margin: 0 0 24px !important;
}

/* Restore proper two-column structure */
.page_article .obj_article_details > .row {
    display: grid !important;
    grid-template-columns:
        minmax(0, 2fr) minmax(250px, 1fr) !important;
    column-gap: 36px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Main article column */
.page_article .obj_article_details .main_entry {
    grid-column: 1 !important;
    display: block !important;
    position: static !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Right metadata column */
.page_article .obj_article_details .entry_details {
    grid-column: 2 !important;
    display: block !important;
    position: static !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #f7fafc !important;
    border: 1px solid #e2eaf0 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

/* Keep authors within the main column */
.page_article .main_entry > .item.authors,
.page_article .main_entry > .item.abstract,
.page_article .main_entry > .item.keywords,
.page_article .main_entry > .item.references {
    display: block !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

/* Authors */
.page_article .main_entry ul.authors {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page_article .main_entry ul.authors li {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.page_article .main_entry .authors .name {
    display: block !important;
    font-weight: 700 !important;
    color: #123859 !important;
}

.page_article .main_entry .affiliation {
    display: block !important;
    font-size: 13px !important;
    color: #718093 !important;
}

/* Abstract and other headings */
.page_article .main_entry .item > .label {
    display: block !important;
    font-family: Georgia, serif !important;
    font-size: 22px !important;
    color: #123859 !important;
    margin-bottom: 12px !important;
}

/* Abstract content */
.page_article .main_entry .abstract {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #44576a !important;
}

/* Right sidebar items */
.page_article .entry_details > .item {
    display: block !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 0 16px !important;
    border-bottom: 1px solid #e2eaf0 !important;
}

.page_article .entry_details > .item:last-child {
    border-bottom: 0 !important;
}

/* Issue cover */
.page_article .entry_details .cover_image img {
    display: block !important;
    width: auto !important;
    max-width: 160px !important;
    height: auto !important;
    margin: 0 auto !important;
}

/* Sidebar metadata labels */
.page_article .entry_details .label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #123859 !important;
    margin-bottom: 6px !important;
}

/* Mobile layout */
@media (max-width: 750px) {
    .page_article .obj_article_details > .row {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .page_article .obj_article_details .main_entry,
    .page_article .obj_article_details .entry_details {
        grid-column: 1 !important;
    }

    .page_article .obj_article_details .page_title {
        font-size: 26px !important;
    }
}
