/* =========================================================
   Journal of Tropical AgriFood (JTAF)
   OJS 3.5 Custom Stylesheet
   Version 1.0
   Purpose: scoped styling for JTAF content blocks only
   ========================================================= */

/* ---------------------------------------------------------
   1. GENERAL JTAF CONTENT SECTIONS
   --------------------------------------------------------- */

#focusAndScope,
#peerReviewProcess,
#publicationFrequency,
#openAccessPolicy,
#publicationEthics,
#screeningForPlagiarism,
#rwcPolicySummary,
#editorialMasthead,
#jtaf-indexing {
    line-height: 1.7;
}

#focusAndScope h3,
#peerReviewProcess h3,
#publicationFrequency h3,
#openAccessPolicy h3,
#publicationEthics h3,
#screeningForPlagiarism h3,
#rwcPolicySummary h3,
#editorialMasthead h3,
#jtaf-indexing h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

#publicationEthics h4,
#editorialMasthead h4 {
    margin-top: 1.5rem;
    margin-bottom: .55rem;
    font-weight: 700;
}

/* ---------------------------------------------------------
   2. POLICY / CONTENT LISTS
   --------------------------------------------------------- */

#focusAndScope ul,
#publicationEthics ul,
#screeningForPlagiarism ul {
    padding-left: 1.4rem;
    margin-top: .6rem;
    margin-bottom: 1rem;
}

#focusAndScope li,
#publicationEthics li,
#screeningForPlagiarism li {
    margin-bottom: .4rem;
}

/* ---------------------------------------------------------
   3. EDITORIAL MASTHEAD
   --------------------------------------------------------- */

#editorialMasthead h4 {
    padding-bottom: .35rem;
    border-bottom: 1px solid #e4e8e5;
}

#editorialMasthead p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   4. INDEXING & ABSTRACTING
   --------------------------------------------------------- */

#jtaf-indexing {
    width: 100%;
    margin: 0 auto;
}

#jtaf-indexing .jtaf-indexing-title {
    text-align: center;
    margin-bottom: .4rem;
}

#jtaf-indexing .jtaf-indexing-intro {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
}

#jtaf-indexing .jtaf-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0;
}

#jtaf-indexing .jtaf-index-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 108px;
    padding: 12px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #dce4df;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

#jtaf-indexing .jtaf-index-card:hover,
#jtaf-indexing .jtaf-index-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .08);
    border-color: #9db8a5;
    text-decoration: none;
}

#jtaf-indexing .jtaf-index-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#jtaf-indexing .jtaf-index-card img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

/* ---------------------------------------------------------
   5. SIMPLE SEPARATORS INSIDE JTAF CONTENT
   --------------------------------------------------------- */

#focusAndScope hr,
#peerReviewProcess hr,
#publicationFrequency hr,
#openAccessPolicy hr,
#publicationEthics hr,
#screeningForPlagiarism hr,
#rwcPolicySummary hr {
    border: 0;
    border-top: 1px solid #e4e8e5;
    margin: 1.5rem 0;
}

/* ---------------------------------------------------------
   6. RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {
    #jtaf-indexing .jtaf-index-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 600px) {
    #jtaf-indexing .jtaf-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #jtaf-indexing .jtaf-index-card {
        min-height: 92px;
        padding: 10px;
    }

    #jtaf-indexing .jtaf-index-card img {
        max-height: 60px;
    }
}

@media (max-width: 380px) {
    #jtaf-indexing .jtaf-index-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   7. REVIEWERS & REVIEWER ACKNOWLEDGEMENTS
   Card + researcher identifier badge model
   ========================================================= */

#jtaf-reviewers {
    line-height: 1.65;
}

#jtaf-reviewers > h2 {
    margin-bottom: 1rem;
}

#jtaf-reviewers h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: .45rem;
    border-bottom: 2px solid #e4e8e5;
}

#jtaf-reviewers .jtaf-reviewer-note {
    margin: 1.25rem 0 1.75rem;
    padding: 13px 15px;
    border-left: 4px solid #2f6f3e;
    border-radius: 5px;
    background: #f5f8f6;
}

#jtaf-reviewers .jtaf-reviewer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#jtaf-reviewers .jtaf-reviewer-card {
    position: relative;
    min-width: 0;
    padding: 15px;
    border: 1px solid #dde5df;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

#jtaf-reviewers .jtaf-reviewer-card:hover {
    transform: translateY(-2px);
    border-color: #9eb7a5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

#jtaf-reviewers .jtaf-reviewer-name {
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 1.02rem;
    color: #173c25;
}

#jtaf-reviewers .jtaf-reviewer-affiliation {
    margin-bottom: 12px;
    color: #4f5e55;
    font-size: .93rem;
    overflow-wrap: anywhere;
}

#jtaf-reviewers .jtaf-reviewer-identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

#jtaf-reviewers .jtaf-id-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #d9e1dc;
    border-radius: 999px;
    background: #f8faf9;
    color: #25362b;
    font-size: .79rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background-color .15s ease,
        border-color .15s ease;
}

#jtaf-reviewers .jtaf-id-badge:hover,
#jtaf-reviewers .jtaf-id-badge:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .10);
}

#jtaf-reviewers .jtaf-id-orcid {
    border-left: 4px solid #a6ce39;
}

#jtaf-reviewers .jtaf-id-scopus {
    border-left: 4px solid #ef7c00;
}

#jtaf-reviewers .jtaf-id-sinta {
    border-left: 4px solid #1c6e8c;
}

#jtaf-reviewers .jtaf-id-scholar {
    border-left: 4px solid #4285f4;
}

#jtaf-reviewers .jtaf-id-researcher {
    border-left: 4px solid #6b5b95;
}

/* Custom hover tooltip */
#jtaf-reviewers .jtaf-id-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 20;
    width: max-content;
    max-width: 260px;
    padding: 7px 9px;
    border-radius: 5px;
    background: #1f2c23;
    color: #ffffff;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition:
        opacity .15s ease,
        transform .15s ease,
        visibility .15s ease;
}

#jtaf-reviewers .jtaf-id-badge::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    z-index: 21;
    border: 6px solid transparent;
    border-top-color: #1f2c23;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition: opacity .15s ease, visibility .15s ease;
}

#jtaf-reviewers .jtaf-id-badge:hover::after,
#jtaf-reviewers .jtaf-id-badge:focus::after,
#jtaf-reviewers .jtaf-id-badge:hover::before,
#jtaf-reviewers .jtaf-id-badge:focus::before {
    opacity: 1;
    visibility: visible;
}

#jtaf-reviewers .jtaf-id-badge:hover::after,
#jtaf-reviewers .jtaf-id-badge:focus::after {
    transform: translate(-50%, 0);
}

#jtaf-reviewers .jtaf-reviewer-issue {
    margin-bottom: 2rem;
}

#jtaf-reviewers .jtaf-reviewer-issue h4 {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-left: 4px solid #ef8a17;
    border-radius: 4px;
    background: #f7f9f7;
    font-weight: 700;
}

@media (max-width: 760px) {
    #jtaf-reviewers .jtaf-reviewer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #jtaf-reviewers .jtaf-reviewer-card {
        padding: 13px;
    }

    #jtaf-reviewers .jtaf-id-badge::after {
        max-width: 210px;
    }
}

/* =========================================================
   8. RETRACTION, WITHDRAWAL & CORRECTION POLICY
   ========================================================= */

#jtaf-rwc-policy {
    line-height: 1.7;
}

#jtaf-rwc-policy > h2 {
    margin-bottom: 1rem;
}

#jtaf-rwc-policy .jtaf-policy-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 1.35rem 0 1.8rem;
}

#jtaf-rwc-policy .jtaf-policy-toc a {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid #dce4df;
    border-radius: 999px;
    background: #f7f9f7;
    text-decoration: none;
    font-weight: 700;
}

#jtaf-rwc-policy .jtaf-policy-toc a:hover,
#jtaf-rwc-policy .jtaf-policy-toc a:focus {
    background: #eef4ef;
    text-decoration: none;
}

#jtaf-rwc-policy .jtaf-policy-section {
    margin: 0 0 2rem;
    padding: 18px 20px;
    border: 1px solid #e0e7e2;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

#jtaf-rwc-policy .jtaf-policy-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e4e8e5;
}

#jtaf-rwc-policy .jtaf-policy-section h4 {
    margin-top: 1.35rem;
    margin-bottom: .6rem;
}

#jtaf-rwc-policy ul,
#jtaf-rwc-policy ol {
    padding-left: 1.45rem;
}

#jtaf-rwc-policy li {
    margin-bottom: .45rem;
}

#jtaf-rwc-policy hr {
    border: 0;
    border-top: 1px solid #e4e8e5;
    margin: 1.6rem 0;
}

#jtaf-rwc-policy .jtaf-policy-note {
    margin-top: 1.25rem;
    padding: 13px 15px;
    border-left: 4px solid #2f6f3e;
    border-radius: 5px;
    background: #f5f8f6;
}

@media (max-width: 600px) {
    #jtaf-rwc-policy .jtaf-policy-section {
        padding: 14px;
    }

    #jtaf-rwc-policy .jtaf-policy-toc {
        gap: 7px;
    }
}

/* =========================================================
   9. GENERATIVE AI POLICY
   ========================================================= */

#jtaf-ai-policy {
    line-height: 1.7;
}

#jtaf-ai-policy > h2 {
    margin-bottom: 1rem;
}

#jtaf-ai-policy .jtaf-policy-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 1.35rem 0 1.8rem;
}

#jtaf-ai-policy .jtaf-policy-toc a {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid #dce4df;
    border-radius: 999px;
    background: #f7f9f7;
    text-decoration: none;
    font-weight: 700;
}

#jtaf-ai-policy .jtaf-policy-toc a:hover,
#jtaf-ai-policy .jtaf-policy-toc a:focus {
    background: #eef4ef;
    text-decoration: none;
}

#jtaf-ai-policy .jtaf-policy-section {
    margin: 0 0 2rem;
    padding: 18px 20px;
    border: 1px solid #e0e7e2;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

#jtaf-ai-policy .jtaf-policy-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e4e8e5;
}

#jtaf-ai-policy .jtaf-policy-section h4 {
    margin-top: 1.35rem;
    margin-bottom: .6rem;
}

#jtaf-ai-policy ul,
#jtaf-ai-policy ol {
    padding-left: 1.45rem;
}

#jtaf-ai-policy li {
    margin-bottom: .45rem;
}

#jtaf-ai-policy hr {
    border: 0;
    border-top: 1px solid #e4e8e5;
    margin: 1.6rem 0;
}

#jtaf-ai-policy .jtaf-ai-example {
    margin: 1.15rem 0;
    padding: 13px 15px;
    border-left: 4px solid #ef8a17;
    border-radius: 5px;
    background: #fff8ef;
}

#jtaf-ai-policy .jtaf-policy-note {
    margin-top: 1.25rem;
    padding: 13px 15px;
    border-left: 4px solid #2f6f3e;
    border-radius: 5px;
    background: #f5f8f6;
}

@media (max-width: 600px) {
    #jtaf-ai-policy .jtaf-policy-section {
        padding: 14px;
    }

    #jtaf-ai-policy .jtaf-policy-toc {
        gap: 7px;
    }
}

/* =========================================================
   10. JTAF VISUAL ENHANCEMENT LAYER
   Static pages, policy pages, and long-text pages
   ========================================================= */

/* ---------- Root accent palette ---------- */
:root {
    --jtaf-green-900: #173c25;
    --jtaf-green-700: #2f6f3e;
    --jtaf-green-100: #f3f8f4;
    --jtaf-green-050: #f8fbf8;
    --jtaf-orange-700: #ef8a17;
    --jtaf-orange-100: #fff7ee;
    --jtaf-border: #dfe7e2;
    --jtaf-border-strong: #c7d6cc;
    --jtaf-shadow-sm: 0 2px 8px rgba(0, 0, 0, .05);
    --jtaf-shadow-md: 0 8px 22px rgba(0, 0, 0, .08);
    --jtaf-radius: 10px;
}

/* ---------- Optional overall background pattern ----------
   Replace YOUR-PATTERN-FILE.png with the final uploaded pattern asset URL
   when available. Keep opacity subtle.
------------------------------------------------------------ */
.pkp_structure_page {
    background-color: #f7faf7;
    background-image:
        linear-gradient(rgba(255,255,255,.84), rgba(255,255,255,.84)),
        url('https://upload.unmul.ac.id/uploads/adcdJTAFpattern-v2.png');
    background-repeat: repeat;
    background-position: top left;
    background-size: 320px auto;
    background-attachment: fixed;
}

/* Main content areas kept readable */
.pkp_structure_main,
.pkp_structure_sidebar,
.obj_issue_toc,
.obj_issue_summary,
.obj_article_details,
.page_static {
    position: relative;
}

.pkp_structure_main::before,
.page_static::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.pkp_structure_main > *,
.page_static > * {
    position: relative;
    z-index: 1;
}

/* ---------- Generic typography polish for rich text pages ---------- */
#focusAndScope,
#peerReviewProcess,
#publicationFrequency,
#openAccessPolicy,
#publicationEthics,
#screeningForPlagiarism,
#rwcPolicySummary,
#editorialMasthead,
#jtaf-indexing,
#jtaf-reviewers,
#jtaf-rwc-policy,
#jtaf-ai-policy {
    color: #213126;
}

#focusAndScope h3,
#peerReviewProcess h3,
#publicationFrequency h3,
#openAccessPolicy h3,
#publicationEthics h3,
#screeningForPlagiarism h3,
#rwcPolicySummary h3,
#editorialMasthead h3,
#jtaf-indexing h3,
#jtaf-reviewers h3,
#jtaf-rwc-policy h3,
#jtaf-ai-policy h3 {
    position: relative;
    padding-left: 14px;
    color: var(--jtaf-green-900);
}

#focusAndScope h3::before,
#peerReviewProcess h3::before,
#publicationFrequency h3::before,
#openAccessPolicy h3::before,
#publicationEthics h3::before,
#screeningForPlagiarism h3::before,
#rwcPolicySummary h3::before,
#editorialMasthead h3::before,
#jtaf-indexing h3::before,
#jtaf-reviewers h3::before,
#jtaf-rwc-policy h3::before,
#jtaf-ai-policy h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 5px;
    height: 1.15em;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--jtaf-green-700), var(--jtaf-orange-700));
}

/* ---------- Decorative intro / note / callout boxes ---------- */
.jtaf-intro-box,
.jtaf-highlight-box,
.jtaf-info-box,
#jtaf-reviewers .jtaf-reviewer-note,
#jtaf-rwc-policy .jtaf-policy-note,
#jtaf-ai-policy .jtaf-policy-note {
    position: relative;
    padding: 15px 16px 15px 18px;
    border: 1px solid var(--jtaf-border);
    border-left: 5px solid var(--jtaf-green-700);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, var(--jtaf-green-050) 100%);
    box-shadow: var(--jtaf-shadow-sm);
}

.jtaf-warning-box,
#jtaf-ai-policy .jtaf-ai-example {
    position: relative;
    padding: 15px 16px 15px 18px;
    border: 1px solid #f2ddc5;
    border-left: 5px solid var(--jtaf-orange-700);
    border-radius: 8px;
    background: linear-gradient(180deg, #fffdfb 0%, var(--jtaf-orange-100) 100%);
    box-shadow: var(--jtaf-shadow-sm);
}

/* ---------- Rich long-text section panels ---------- */
#jtaf-rwc-policy .jtaf-policy-section,
#jtaf-ai-policy .jtaf-policy-section {
    border: 1px solid var(--jtaf-border);
    border-top: 4px solid var(--jtaf-green-700);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(243,248,244,.55) 0, rgba(255,255,255,1) 65px),
        #ffffff;
    box-shadow: var(--jtaf-shadow-sm);
}

#jtaf-rwc-policy .jtaf-policy-section:hover,
#jtaf-ai-policy .jtaf-policy-section:hover {
    box-shadow: var(--jtaf-shadow-md);
}

/* Alternate highlight for every second section */
#jtaf-rwc-policy .jtaf-policy-section:nth-of-type(even),
#jtaf-ai-policy .jtaf-policy-section:nth-of-type(even) {
    border-top-color: var(--jtaf-orange-700);
}

/* ---------- TOC chips ---------- */
#jtaf-rwc-policy .jtaf-policy-toc a,
#jtaf-ai-policy .jtaf-policy-toc a {
    border-color: var(--jtaf-border-strong);
    background: linear-gradient(180deg, #ffffff 0%, #f4f8f5 100%);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

#jtaf-rwc-policy .jtaf-policy-toc a:hover,
#jtaf-rwc-policy .jtaf-policy-toc a:focus,
#jtaf-ai-policy .jtaf-policy-toc a:hover,
#jtaf-ai-policy .jtaf-policy-toc a:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ---------- Editorial Masthead richer blocks ---------- */
#editorialMasthead p {
    padding: 12px 14px;
    border: 1px solid #e5ebe7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,.03);
}

#editorialMasthead h4 {
    margin-top: 1.6rem;
    color: var(--jtaf-green-900);
    border-bottom: none;
    padding: 10px 12px;
    border-left: 4px solid var(--jtaf-orange-700);
    border-radius: 4px;
    background: linear-gradient(180deg, #f7faf7 0%, #f1f6f2 100%);
}

/* ---------- About / policy content boxes ---------- */
#focusAndScope,
#peerReviewProcess,
#publicationFrequency,
#openAccessPolicy,
#publicationEthics,
#screeningForPlagiarism,
#rwcPolicySummary {
    padding: 0;
}

#focusAndScope > p,
#peerReviewProcess > p,
#publicationFrequency > p,
#openAccessPolicy > p,
#publicationEthics > p,
#screeningForPlagiarism > p,
#rwcPolicySummary > p {
    margin-bottom: 1rem;
}

#publicationEthics h4 {
    padding: 9px 12px;
    border-left: 4px solid var(--jtaf-green-700);
    border-radius: 4px;
    background: linear-gradient(180deg, #f7faf7 0%, #f1f6f2 100%);
    color: var(--jtaf-green-900);
}

#publicationEthics ul,
#focusAndScope ul,
#screeningForPlagiarism ul {
    padding: 14px 18px 14px 34px;
    border: 1px solid #e5ebe7;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,.03);
}

/* ---------- Reviewer page richer style ---------- */
#jtaf-reviewers .jtaf-reviewer-card {
    background:
        linear-gradient(180deg, rgba(243,248,244,.55) 0, rgba(255,255,255,1) 58px),
        #ffffff;
    border-top: 4px solid var(--jtaf-green-700);
}

#jtaf-reviewers .jtaf-reviewer-card:nth-child(3n+2) {
    border-top-color: var(--jtaf-orange-700);
}

#jtaf-reviewers .jtaf-reviewer-issue h4 {
    border-left-color: var(--jtaf-orange-700);
    background: linear-gradient(180deg, #fffaf4 0%, #fff4e6 100%);
}

/* ---------- Index cards richer style ---------- */
#jtaf-indexing .jtaf-index-card {
    background:
        linear-gradient(180deg, rgba(243,248,244,.55) 0, rgba(255,255,255,1) 100%),
        #ffffff;
    border-top: 3px solid var(--jtaf-green-700);
}

#jtaf-indexing .jtaf-index-card:nth-child(4n+2) {
    border-top-color: var(--jtaf-orange-700);
}

/* ---------- Responsive safeguard ---------- */
@media (max-width: 768px) {
    .pkp_structure_page {
        background-size: 240px auto;
    }

    #jtaf-rwc-policy .jtaf-policy-section,
    #jtaf-ai-policy .jtaf-policy-section {
        border-top-width: 3px;
    }
}

/* =========================================================
   11. LEGACY JTAF TILE BACKGROUND — STRONGER OVERRIDE
   Uses the original JTAF pattern as a repeated tile.
   ========================================================= */

html,
body {
    background-color: #f5efe3 !important;
    background-image: url('https://upload.unmul.ac.id/uploads/adcdJTAFpattern-v2.png') !important;
    background-repeat: repeat !important;
    background-position: top left !important;
    background-size: 225px 225px !important;
    background-attachment: scroll !important;
}

/* Let the legacy tile show through the public OJS page shell */
.pkp_structure_page {
    background: transparent !important;
}

/* Apply the same repeated tile to the central content wrapper */
.pkp_structure_content {
    background-color: transparent !important;
    background-image: url('https://upload.unmul.ac.id/uploads/adcdJTAFpattern-v2.png') !important;
    background-repeat: repeat !important;
    background-position: top left !important;
    background-size: 225px 225px !important;
}

/* Keep text readable while still allowing the pattern to remain visible */
.pkp_structure_main {
    background-color: rgba(255, 255, 255, .72) !important;
}

.pkp_structure_sidebar {
    background-color: rgba(255, 255, 255, .68) !important;
}

/* Static page body itself should not paint an opaque white layer */
.page_static,
.page_static > .cmp_breadcrumbs + *,
.page_static .jtaf-page-shell {
    background-color: transparent !important;
}

/* Policy/reviewer cards stay clean above the patterned page */
#jtaf-rwc-policy .jtaf-policy-section,
#jtaf-ai-policy .jtaf-policy-section,
#jtaf-reviewers .jtaf-reviewer-card,
#jtaf-indexing .jtaf-index-card,
#editorialMasthead p {
    background-color: rgba(255, 255, 255, .94);
}

/* Mobile: slightly smaller tile */
@media (max-width: 768px) {
    html,
    body,
    .pkp_structure_content {
        background-size: 180px 180px !important;
    }

    .pkp_structure_main,
    .pkp_structure_sidebar {
        background-color: rgba(255, 255, 255, .78) !important;
    }
}

/* =========================================================
   12. JTAF FOOTER — OJS 3.5
   Adapted from legacy JTAF footer
   ========================================================= */

#jtaf-footer {
    width: min(100%, 1100px);
    margin: 26px auto 0;
    overflow: hidden;
    border: 1px solid #cad9ce;
    border-radius: 16px;
    background:
        linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)),
        url('https://upload.unmul.ac.id/uploads/adcdJTAFpattern-v2.png');
    background-repeat: repeat;
    background-size: 220px 220px;
    box-shadow: 0 7px 22px rgba(0,0,0,.10);
    color: #26372c;
}

#jtaf-footer * {
    box-sizing: border-box;
}

#jtaf-footer .jtaf-footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
    min-height: 320px;
}

#jtaf-footer .jtaf-footer-map {
    padding: 20px;
    border-right: 1px solid #d2ded5;
    background: rgba(234,243,237,.78);
}

#jtaf-footer .jtaf-footer-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 1px solid #c7d7cc;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,.10);
    background: #eee;
}

#jtaf-footer .jtaf-footer-info {
    padding: 22px 26px;
    background: rgba(255,255,255,.68);
}

#jtaf-footer .jtaf-footer-logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

#jtaf-footer .jtaf-footer-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 72px;
    padding: 7px;
    border: 1px solid #d5e1d9;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    text-decoration: none;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

#jtaf-footer .jtaf-footer-logo-card:hover,
#jtaf-footer .jtaf-footer-logo-card:focus {
    transform: translateY(-2px);
    border-color: #2f6f3e;
    box-shadow: 0 5px 13px rgba(0,0,0,.12);
    text-decoration: none;
}

#jtaf-footer .jtaf-footer-logo-card img {
    display: block;
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#jtaf-footer .jtaf-footer-title {
    margin: 4px 0 4px;
    color: #015429;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
}

#jtaf-footer .jtaf-footer-department {
    margin-bottom: 17px;
    color: #496653;
    font-size: .94rem;
    line-height: 1.55;
}

#jtaf-footer .jtaf-footer-contact {
    display: grid;
    gap: 10px;
    font-size: .92rem;
    line-height: 1.55;
}

#jtaf-footer .jtaf-footer-contact-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 10px;
    align-items: start;
}

#jtaf-footer .jtaf-footer-label {
    color: #164b2d;
    font-weight: 700;
}

#jtaf-footer a {
    color: #176b45;
    text-decoration: none;
}

#jtaf-footer a:hover,
#jtaf-footer a:focus {
    color: #008c55;
    text-decoration: underline;
}

#jtaf-footer .jtaf-footer-publisher {
    padding: 18px 24px 20px;
    text-align: center;
    border-top: 1px solid #d5e0d9;
    background: rgba(255,255,255,.90);
}

#jtaf-footer .jtaf-footer-publisher-title {
    margin-bottom: 8px;
    color: #35634b;
    font-size: .96rem;
    font-weight: 700;
}

#jtaf-footer .jtaf-footer-publisher-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #3f5147;
    font-size: .92rem;
    line-height: 1.55;
}

#jtaf-footer .jtaf-footer-publisher-links a {
    font-weight: 700;
}

#jtaf-footer .jtaf-footer-and {
    color: #6a796f;
    font-size: .84rem;
    font-style: italic;
}

#jtaf-footer .jtaf-footer-bottom {
    padding: 14px 20px;
    text-align: center;
    background: linear-gradient(135deg, #015429 0%, #0d6a3c 72%, #ef8a17 140%);
    color: #ffffff;
    font-size: .84rem;
    line-height: 1.65;
}

#jtaf-footer .jtaf-footer-bottom a {
    color: #ffffff;
    font-weight: 700;
}

#jtaf-footer .jtaf-footer-bottom a:hover,
#jtaf-footer .jtaf-footer-bottom a:focus {
    color: #e9f7ed;
}

#jtaf-footer .jtaf-footer-bottom-secondary {
    margin-top: 3px;
    opacity: .94;
}

/* Avoid the outer OJS page-footer area fighting with the custom footer */
.pkp_footer_content {
    max-width: none;
}

@media (max-width: 760px) {
    #jtaf-footer {
        width: 96%;
        border-radius: 13px;
    }

    #jtaf-footer .jtaf-footer-main {
        grid-template-columns: 1fr;
    }

    #jtaf-footer .jtaf-footer-map {
        border-right: 0;
        border-bottom: 1px solid #d2ded5;
    }

    #jtaf-footer .jtaf-footer-map iframe {
        min-height: 240px;
    }

    #jtaf-footer .jtaf-footer-info {
        padding: 20px;
    }

    #jtaf-footer .jtaf-footer-logo-row {
        justify-content: center;
    }

    #jtaf-footer .jtaf-footer-title,
    #jtaf-footer .jtaf-footer-department {
        text-align: center;
    }

    #jtaf-footer .jtaf-footer-contact-item {
        grid-template-columns: 1fr;
        gap: 2px;
        text-align: center;
    }
}

@media (max-width: 420px) {
    #jtaf-footer .jtaf-footer-map {
        padding: 14px;
    }

    #jtaf-footer .jtaf-footer-map iframe {
        min-height: 210px;
    }

    #jtaf-footer .jtaf-footer-logo-card {
        width: 80px;
        height: 64px;
    }

    #jtaf-footer .jtaf-footer-logo-card img {
        max-height: 50px;
    }

    #jtaf-footer .jtaf-footer-title {
        font-size: 1.15rem;
    }

    #jtaf-footer .jtaf-footer-bottom {
        padding: 13px 12px;
        font-size: .79rem;
    }
}

/* =========================================================
   13. JTAF HEADER — WIDER LOGO LOCKUP
   Make better use of OJS 3.5 header width
   ========================================================= */

@media (min-width: 769px) {

    .pkp_site_name_wrapper {
        padding-top: 18px;
        padding-bottom: 8px;
    }

    .pkp_site_name {
        text-align: left;
        margin: 0;
    }

    .pkp_site_name .is_img {
        display: block;
        width: clamp(420px, 34vw, 520px);
        max-width: 62vw;
        line-height: 0;
    }

    .pkp_site_name .is_img img {
        display: block;
        width: 100%;
        max-width: none;
        max-height: none;
        height: auto;
        margin: 0;
    }

    /* Give the logo room without forcing it into a tiny title slot */
    .pkp_head_wrapper {
        padding-top: 0;
    }

    .pkp_site_nav_menu {
        margin-top: 4px;
    }

    .pkp_navigation_primary_wrapper {
        padding-top: 2px;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {

    .pkp_site_name .is_img {
        width: min(430px, 78vw);
        line-height: 0;
    }

    .pkp_site_name .is_img img {
        width: 100%;
        max-width: none;
        max-height: none;
        height: auto;
    }
}

/* Mobile */
@media (max-width: 480px) {

    .pkp_site_name .is_img {
        width: min(310px, 82vw);
        line-height: 0;
    }

    .pkp_site_name .is_img img {
        width: 100%;
        max-width: none;
        max-height: none;
        height: auto;
    }
}

/* =========================================================
   14. JTAF HEADER — EXACT 952 x 140 DESKTOP LOGO
   For JTAF_Header_952x140_Final.png
   ========================================================= */

/* Desktop / wide screens */
@media (min-width: 1024px) {

    .pkp_site_name_wrapper {
        padding-top: 14px;
        padding-bottom: 8px;
    }

    .pkp_site_name {
        width: 952px !important;
        height: 140px !important;
        max-width: 952px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
    }

    .pkp_site_name .is_img {
        display: block !important;
        width: 952px !important;
        height: 140px !important;
        max-width: 952px !important;
        max-height: 140px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        overflow: hidden;
    }

    .pkp_site_name .is_img img {
        display: block !important;
        width: 952px !important;
        height: 140px !important;
        max-width: 952px !important;
        max-height: 140px !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    /* Keep navigation visually close to the header logo */
    .pkp_site_nav_menu {
        margin-top: 4px;
    }
}

/* Medium screens: scale proportionally while preserving 952:140 ratio */
@media (min-width: 769px) and (max-width: 1023px) {

    .pkp_site_name {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        line-height: 0 !important;
    }

    .pkp_site_name .is_img {
        display: block !important;
        width: min(952px, 92vw) !important;
        height: auto !important;
        aspect-ratio: 952 / 140;
        max-width: 92vw !important;
        margin: 0 !important;
        line-height: 0 !important;
    }

    .pkp_site_name .is_img img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: left center !important;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {

    .pkp_site_name .is_img {
        width: 92vw !important;
        height: auto !important;
        aspect-ratio: 952 / 140;
        max-width: 92vw !important;
        line-height: 0 !important;
    }

    .pkp_site_name .is_img img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: left center !important;
    }
}

/* Mobile */
@media (max-width: 480px) {

    .pkp_site_name .is_img {
        width: 90vw !important;
        height: auto !important;
        aspect-ratio: 952 / 140;
        max-width: 90vw !important;
        line-height: 0 !important;
    }

    .pkp_site_name .is_img img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: left center !important;
    }
}

/* =========================================================
   15. JTAF HEADER — GREEN BLEND + SAFE TOP
   Matches JTAF_Header_952x140_v2_safe-top.png
   ========================================================= */

/* Blend the OJS header shell into the new green banner */
.pkp_structure_head {
    background:
        linear-gradient(90deg, #0a4d1e 0%, #0f6230 52%, #246d3e 100%) !important;
    border-bottom: 0 !important;
}

.pkp_site_name_wrapper,
.pkp_site_nav_menu,
.pkp_navigation_primary_wrapper {
    background: transparent !important;
}

/* Keep the 952 x 140 banner exact on desktop */
@media (min-width: 1024px) {

    .pkp_site_name_wrapper {
        padding-top: 10px !important;
        padding-bottom: 6px !important;
    }

    .pkp_site_name,
    .pkp_site_name .is_img,
    .pkp_site_name .is_img img {
        width: 952px !important;
        height: 140px !important;
        max-width: 952px !important;
        max-height: 140px !important;
    }

    .pkp_site_name .is_img img {
        object-fit: contain !important;
        object-position: left center !important;
    }
}

/* Navigation readability on the green shell */
.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a,
.pkp_search,
.pkp_search_desktop {
    color: #ffffff !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    color: #fff4df !important;
}

/* Slightly warm hover underline to echo JTAF orange */
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    border-bottom-color: #ef8a17 !important;
}

/* Mobile/tablet: keep green shell and proportional logo */
@media (max-width: 1023px) {
    .pkp_structure_head {
        background:
            linear-gradient(90deg, #0a4d1e 0%, #0f6230 58%, #246d3e 100%) !important;
    }
}

/* =========================================================
   16. JTAF NEW HEADER LOGO v3 — FULL WIDTH
   Source logo ratio is ~3:1, so height must remain AUTO.
   This override removes the previous 140px height limit.
   ========================================================= */

.pkp_structure_head {
    background: #0b652f !important;
    border-bottom: 0 !important;
}

.pkp_site_name_wrapper,
.pkp_site_nav_menu,
.pkp_navigation_primary_wrapper {
    background: transparent !important;
}

/* Desktop: use the full 952px header width */
@media (min-width: 1024px) {

    .pkp_site_name_wrapper {
        padding-top: 8px !important;
        padding-bottom: 6px !important;
    }

    .pkp_site_name {
        display: block !important;
        width: 952px !important;
        max-width: 952px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        overflow: visible !important;
    }

    .pkp_site_name .is_img {
        display: block !important;
        width: 952px !important;
        max-width: 952px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        overflow: visible !important;
    }

    .pkp_site_name .is_img img {
        display: block !important;
        width: 952px !important;
        max-width: 952px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: initial !important;
        object-position: left center !important;
    }

    .pkp_site_nav_menu {
        margin-top: 0 !important;
    }
}

/* Tablet / medium screens */
@media (min-width: 769px) and (max-width: 1023px) {

    .pkp_site_name,
    .pkp_site_name .is_img {
        width: 92vw !important;
        max-width: 952px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        line-height: 0 !important;
    }

    .pkp_site_name .is_img img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: initial !important;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .pkp_site_name,
    .pkp_site_name .is_img {
        width: 92vw !important;
        height: auto !important;
        max-width: 92vw !important;
        max-height: none !important;
        margin: 0 !important;
        line-height: 0 !important;
    }

    .pkp_site_name .is_img img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: initial !important;
    }
}

/* Navigation remains readable on the green header */
.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a,
.pkp_search,
.pkp_search_desktop {
    color: #ffffff !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #fff1d8 !important;
    border-bottom-color: #ef8a17 !important;
}
