/* =========================================================
   TESS JOURNAL CUSTOM STYLESHEET
   OJS 3.5+
   ========================================================= */


/* =========================================================
   1. FULL-WIDTH TESS JOURNAL MASTHEAD
   ========================================================= */

.pkp_site_name_wrapper {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 0 !important;
}

.pkp_site_name {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

.pkp_site_name .is_img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

.pkp_site_name > a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.pkp_site_name .is_img img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain !important;
    vertical-align: top !important;
}


/* =========================================================
   2. HEADER SPACING
   ========================================================= */

.pkp_head_wrapper {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 28px !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
}

.has_site_logo .pkp_head_wrapper {
    padding-top: 28px !important;
    padding-bottom: 0 !important;
}

.pkp_structure_head {
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_user_wrapper {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* =========================================================
   3. NAVIGATION DIRECTLY UNDER MASTHEAD
   ========================================================= */

.pkp_site_nav_menu,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.pkp_navigation_primary_wrapper {
    clear: both !important;
}


/* =========================================================
   4. HOMEPAGE CURRENT ISSUE SUPPRESSION
   ========================================================= */

.page_index_journal .current_issue,
.page_index_journal .issue_toc {
    display: none !important;
}


/* =========================================================
   5. PAGE 2 — FULL VISUAL CANVAS
   ========================================================= */

.tess-visitor-page {
    position: relative;
    width: 94vw;
    max-width: 1580px;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    overflow: visible;
    padding: 0 12px 10px 12px;
}


/* =========================================================
   6. TOP ROW — WELCOME + IDENTIFIERS
   ========================================================= */

.tess-visitor-top {
    display: grid;
    grid-template-columns: 360px 360px;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
    margin: 8px 0 30px 0;
}

.tess-welcome-card,
.tess-identifiers-card {
    box-sizing: border-box;
    min-height: 154px;
    padding: 16px 20px;
    border: 1px solid #D4A373;
    background: rgba(253, 251, 247, 0.78);
}

.tess-welcome-card h3,
.tess-identifiers-card h3 {
    margin: 0 0 9px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: .04em;
    text-align: center;
    color: #2a1b0e;
}

.tess-welcome-question {
    margin: 0 0 8px 0;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #5c4d3c;
}

.tess-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tess-name-field label {
    display: block;
    margin-bottom: 3px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #5c4d3c;
}

.tess-name-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 8px;
    border: 1px solid #cdbda8;
    background: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #2a1b0e;
}

.tess-enter-button {
    display: block;
    margin: 11px auto 0 auto;
    padding: 7px 28px;
    border: 1px solid #2d6a4f;
    background: #2d6a4f;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
}

.tess-identifier-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
    text-align: center;
}

.tess-identifier strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    color: #2a1b0e;
}

.tess-identifier span {
    display: block;
    margin-top: 7px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: .04em;
    color: #5c4d3c;
}


/* =========================================================
   7. THREE-COLUMN SCHOLARLY VESTIBULE
   ========================================================= */

.tess-vestibule {
    display: grid;
    grid-template-columns:
        minmax(270px, 1fr)
        minmax(430px, 1.55fr)
        minmax(270px, 1fr);
    gap: 34px;
    align-items: start;
    margin-bottom: 55px;
}

.tess-wing {
    box-sizing: border-box;
    padding: 19px;
    border: 1px solid #D4A373;
    background: rgba(253, 251, 247, 0.58);
}

.tess-wing-heading {
    margin: 0 0 16px 0;
    padding-bottom: 7px;
    border-bottom: 1px solid #D4A373;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .035em;
    color: #2a1b0e;
}

.tess-wing h2 {
    margin: 15px 0 9px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.35;
    color: #2a1b0e;
}

.tess-wing p {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.55;
    color: #5c4d3c;
}


/* =========================================================
   8. CENTER — ABOUT THE JOURNAL
   ========================================================= */

.tess-about-center {
    box-sizing: border-box;
    padding: 4px 8px 0 8px;
}

.tess-about-center h1,
.tess-about-center h2,
.tess-about-center h3 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: #2a1b0e;
}

.tess-about-center h2 {
    margin-bottom: 14px;
    padding-bottom: 7px;
    border-bottom: 1px solid #D4A373;
    font-size: 22px;
}

.tess-about-center p {
    margin: 0 0 15px 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: #5c4d3c;
}

.tess-scope-list {
    margin: 0 0 18px 20px;
    padding: 0;
}

.tess-scope-list li {
    margin-bottom: 13px;
    font-family: Arial, sans-serif;
    font-size: 12.5px;
    line-height: 1.6;
    color: #5c4d3c;
}

.tess-scope-list strong {
    color: #2a1b0e;
}

.tess-issn-notice {
    margin-top: 22px;
    padding: 14px 16px;
    border-left: 3px solid #D4A373;
    background: rgba(253, 251, 247, 0.5);
}

.tess-issn-notice p {
    margin: 0;
    font-size: 12px;
}


/* =========================================================
   9. GROUNDBREAKING ARTICLE — BOOK DISPLAY
   ========================================================= */

.tess-book-display {
    display: flex;
    width: 158px;
    height: 198px;
    margin: 7px auto 20px auto;
    box-shadow: 0 7px 17px rgba(0, 0, 0, .14);
}

.tess-book-spine {
    width: 25px;
    box-sizing: border-box;
    padding-top: 13px;
    background: #2a1b0e;
    color: #ffffff;
    writing-mode: vertical-rl;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: .18em;
}

.tess-book-cover {
    flex: 1;
    box-sizing: border-box;
    padding: 22px 11px;
    border: 1px solid #D4A373;
    background: #f6f1e8;
    text-align: center;
}

.tess-book-cover small,
.tess-book-cover strong,
.tess-book-cover span {
    display: block;
}

.tess-book-cover small {
    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: .06em;
    color: #766454;
}

.tess-book-cover strong {
    margin-top: 29px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    color: #2a1b0e;
}

.tess-book-cover span {
    margin-top: 26px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    line-height: 1.4;
    color: #5c4d3c;
}


/* =========================================================
   10. AUTHOR / PUBLICATION INFORMATION
   ========================================================= */

.tess-author {
    margin: 8px 0 13px 0;
}

.tess-author strong {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #2a1b0e;
}

.tess-author span {
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: #766454;
}

.tess-publication {
    margin: 14px 0;
    padding-left: 11px;
    border-left: 3px solid #D4A373;
}

.tess-publication strong {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #2a1b0e;
}

.tess-publication p {
    margin: 4px 0 0 0;
    font-size: 11px;
}

.tess-editorial-note {
    margin-bottom: 15px;
}


/* =========================================================
   11. PRESENT RESEARCH AUTHOR PHOTO
   ========================================================= */

.tess-author-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 146px;
    height: 166px;
    margin: 7px auto 20px auto;
    border: 1px solid #cdbda8;
    background: #eae5d9;
    text-align: center;
}

.tess-author-photo span {
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
    color: #766454;
}


/* =========================================================
   12. ARTICLE LINKS
   ========================================================= */

.tess-article-actions {
    margin-top: 14px;
}

.tess-article-actions a {
    display: block;
    margin-top: 9px;
    font-family: Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #2d6a4f !important;
    text-decoration: none !important;
}

.tess-article-actions a:hover {
    text-decoration: underline !important;
}


/* =========================================================
   13. CRITICAL OPEN ACCESS RESEARCH
   ========================================================= */

.tess-open-research {
    clear: both;
    margin: 15px 0 45px 0;
}

.tess-open-heading {
    max-width: 820px;
    margin: 0 auto 28px auto;
    text-align: center;
}

.tess-open-heading h2 {
    margin: 0 0 8px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: .025em;
    color: #2a1b0e;
}

.tess-open-heading p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #5c4d3c;
}

.tess-research-gateways {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tess-research-box {
    box-sizing: border-box;
    padding: 21px;
    border: 1px solid #D4A373;
    background: rgba(253, 251, 247, 0.5);
}

.tess-research-box h3 {
    margin: 0 0 10px 0;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    letter-spacing: .03em;
    color: #2a1b0e;
}

.tess-research-box p {
    min-height: 58px;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #5c4d3c;
}

.tess-search-shell {
    display: flex;
    gap: 7px;
    margin-top: 15px;
}

.tess-search-shell input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #cdbda8;
    background: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.tess-search-shell button {
    padding: 8px 12px;
    border: 1px solid #2d6a4f;
    background: #2d6a4f;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   14. ADDITIONAL CONTENT
   Leave this area available for lower-page supporting material
   ========================================================= */

.page_index_journal .additional_content {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}


/* =========================================================
   15. MOBILE / TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .tess-visitor-page {
        width: 96vw;
    }

    .tess-visitor-top {
        grid-template-columns: 330px 330px;
        gap: 24px;
    }

    .tess-vestibule {
        grid-template-columns:
            minmax(230px, 1fr)
            minmax(360px, 1.35fr)
            minmax(230px, 1fr);
        gap: 20px;
    }
}


@media (max-width: 850px) {

    .tess-visitor-top {
        grid-template-columns: 1fr 1fr;
    }

    .tess-vestibule {
        grid-template-columns: 1fr;
    }

    .tess-about-center {
        order: -1;
    }

    .tess-research-gateways {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {

    .pkp_head_wrapper,
    .has_site_logo .pkp_head_wrapper {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .pkp_site_name_wrapper,
    .pkp_site_name {
        height: auto !important;
        line-height: 0 !important;
    }

    .pkp_site_name {
        font-size: 0 !important;
    }

    .pkp_site_name .is_img img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .tess-visitor-page {
        width: 100%;
        left: auto;
        transform: none;
        padding-left: 0;
        padding-right: 0;
    }

    .tess-visitor-top {
        grid-template-columns: 1fr;
    }

    .tess-name-row,
    .tess-identifier-row {
        grid-template-columns: 1fr 1fr;
    }

    .tess-welcome-card,
    .tess-identifiers-card,
    .tess-wing,
    .tess-research-box {
        width: 100%;
    }
}