/* =========================================================
   UNUGHA OJS 3 - CLEAN RESPONSIVE & READABILITY OVERRIDE
   Replaced redundant 84KB/61KB external stylesheet copy
   ========================================================= */
.pkp_structure_main img {
    max-width: 100% !important;
    height: auto !important;
}
.pkp_structure_main table {
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    box-sizing: border-box;
}
.obj_article_details .orcid a {
    font-size: 12px !important;
}
@media (max-width: 991px) {
    .pkp_site_name .is_img img {
        max-height: 36px !important;
        width: auto !important;
        max-width: 100% !important;
    }
    .pkp_site_name_wrapper {
        padding-left: 50px !important;
    }
}

/* === HJH CUSTOM WIDGETS & UI SYSTEM === */
:root {
    --hjh-green: #137f33;
    --hjh-green-dark: #0c5722;
    --hjh-green-soft: #eef7f0;
    --hjh-amber: #d97706;
    --hjh-amber-dark: #92400e;
    --hjh-border: #d7e4db;
    --hjh-ink: #1e293b;
    --hjh-muted: #475569;
}

.pkp_navigation_primary_wrapper,
.pkp_navigation_primary ul {
    z-index: 999 !important;
}

.cmp_manuscript_button,
.obj_galley_link,
.pkp_button_primary {
    background-color: var(--hjh-green) !important;
    border-color: var(--hjh-green) !important;
    color: #ffffff !important;
}

.cmp_manuscript_button:hover,
.obj_galley_link:hover,
.pkp_button_primary:hover {
    background-color: var(--hjh-green-dark) !important;
}

.pkp_structure_sidebar {
    padding-top: 20px;
}

.pkp_structure_sidebar .pkp_block {
    background: #ffffff;
    border: 1px solid var(--hjh-border);
    border-top: 3px solid var(--hjh-green);
    border-radius: 10px;
    padding: 16px 16px 14px 16px;
    margin: 0 0 18px 0 !important;
    box-shadow: 0 4px 14px rgba(19, 127, 51, 0.06);
}

.pkp_structure_sidebar .pkp_block .title {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--hjh-green) !important;
    margin: 0 0 12px 0 !important;
    padding: 0 0 8px 0 !important;
    border-bottom: 2px solid var(--hjh-amber) !important;
}

.hjh-oa-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    background: var(--hjh-green-soft);
    border: 1px solid #c2dfca;
    color: var(--hjh-green);
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hjh-oa-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    border-radius: 4px;
    background: #ea580c;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.hjh-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hjh-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.hjh-btn-primary {
    background: var(--hjh-green);
    color: #ffffff !important;
}

.hjh-btn-primary:hover {
    background: var(--hjh-green-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.hjh-btn-amber {
    background: #fef3c7;
    color: #78350f !important;
    border: 1px solid var(--hjh-amber);
}

.hjh-btn-amber:hover {
    background: #fde68a;
    color: #451a03 !important;
    transform: translateY(-1px);
}

.hjh-mt-sm {
    margin-top: 12px !important;
}

.hjh-link-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hjh-link-list li {
    margin: 0 !important;
    border-bottom: 1px solid #f1f5f9;
}

.hjh-link-list li:last-child {
    border-bottom: none;
}

.hjh-link-list a {
    display: block;
    padding: 6px 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hjh-ink) !important;
    text-decoration: none !important;
    border-radius: 5px;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.hjh-link-list a::before {
    content: "\203A\00A0";
    color: var(--hjh-amber);
    font-weight: 700;
}

.hjh-link-list a:hover {
    background: var(--hjh-green-soft);
    color: var(--hjh-green) !important;
    padding-left: 12px;
}

.hjh-subhead {
    margin: 12px 0 6px 0;
    padding-top: 10px;
    border-top: 1px dashed var(--hjh-border);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--hjh-muted);
}

/* SINTA 5 Highlight Box */
.hjh-sinta-box {
    background: linear-gradient(135deg, #137f33 0%, #0c5722 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 11px 12px;
    margin-bottom: 12px;
}

.hjh-sinta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.hjh-sinta-pill {
    display: inline-block;
    background: #fbbf24;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

.hjh-sinta-sub {
    font-size: 11px;
    color: #dcfce7;
    font-weight: 600;
}

.hjh-sinta-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hjh-sinta-links a {
    display: block;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none !important;
}

.hjh-sinta-links a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hjh-index-grid,
.hjh-tools-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.hjh-idx-pill,
.hjh-tool-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 32px;
    padding: 5px 6px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid var(--hjh-border);
    color: var(--hjh-ink) !important;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
}

.hjh-idx-pill {
    border-left: 3px solid var(--hjh-green);
}

.hjh-idx-scholar { border-left-color: #2563eb; }
.hjh-idx-dim { border-left-color: #0284c7; }
.hjh-idx-garuda { border-left-color: #b91c1c; }
.hjh-idx-crossref { border-left-color: #0369a1; }
.hjh-idx-base { border-left-color: #d97706; }
.hjh-idx-oai { border-left-color: var(--hjh-green); }

.hjh-idx-pill:hover,
.hjh-tool-chip:hover {
    background: var(--hjh-green-soft);
    border-color: var(--hjh-green);
    color: var(--hjh-green) !important;
}

.hjh-kv-list {
    margin: 0;
    padding: 0;
}

.hjh-kv-list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}

.hjh-kv-list > div:last-child {
    border-bottom: none;
}

.hjh-kv-list dt {
    margin: 0;
    color: var(--hjh-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.hjh-kv-list dd {
    margin: 0;
    color: var(--hjh-ink);
    font-weight: 700;
    text-align: right;
}

.hjh-kv-list dd a {
    color: var(--hjh-green) !important;
    text-decoration: none;
}

.hjh-kv-list dd a:hover {
    text-decoration: underline;
}

.hjh-wa-btn {
    display: block;
    text-align: center;
    padding: 9px 10px;
    border-radius: 7px;
    background: #15803d;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    margin-bottom: 8px;
}

.hjh-wa-btn:hover {
    background: #166534;
}

.hjh-contact-meta {
    font-size: 11.5px;
    color: var(--hjh-muted);
    line-height: 1.55;
}

.hjh-contact-meta a {
    color: var(--hjh-green);
    font-weight: 600;
}

/* Main Content Metadata Table */
.hjh-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 14px 0;
    border: 1px solid var(--hjh-border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    font-size: 13.5px;
}

.hjh-meta-table th,
.hjh-meta-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #edf4ef;
    text-align: left;
    vertical-align: top;
}

.hjh-meta-table tr:last-child th,
.hjh-meta-table tr:last-child td {
    border-bottom: none;
}

.hjh-meta-table th {
    width: 28%;
    background: #f4f9f5;
    color: var(--hjh-green);
    font-weight: 700;
}

.hjh-meta-table td {
    color: var(--hjh-ink);
}

.hjh-meta-table td a {
    color: var(--hjh-green);
    font-weight: 600;
    text-decoration: none;
}

.hjh-meta-table td a:hover {
    text-decoration: underline;
}

/* Compact High-Contrast Footer */
.pkp_structure_footer_wrapper,
.pkp_structure_footer_wrapper .pkp_structure_footer {
    background: var(--hjh-green-soft) !important;
    color: var(--hjh-ink) !important;
}

.pkp_structure_footer_wrapper {
    padding: 0 !important;
    border-top: 3px solid var(--hjh-green) !important;
    border-bottom: 6px solid var(--hjh-amber) !important;
}

.pkp_structure_footer_wrapper p,
.hjh-footer-meta p {
    color: var(--hjh-ink) !important;
}

.pkp_structure_footer_wrapper a {
    color: var(--hjh-green) !important;
    font-weight: 600;
}

.pkp_structure_footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px !important;
    text-align: left !important;
}

.pkp_footer_content {
    padding: 0 !important;
    flex: 1 1 420px;
}

.pkp_brand_footer {
    padding: 0 !important;
    flex: 0 0 auto;
}

.pkp_brand_footer a {
    float: none !important;
    max-width: 110px !important;
}

.pkp_brand_footer img {
    max-height: 54px !important;
    width: auto !important;
}

.hjh-footer-meta p {
    margin: 0 0 4px 0;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: left;
}

.hjh-footer-meta p:last-child {
    margin-bottom: 0;
}

.hjh-cc-icon {
    height: 16px !important;
    width: 16px !important;
    margin-left: 3px;
    vertical-align: text-bottom;
    display: inline-block;
}

@media (max-width: 991px) {
    .pkp_structure_sidebar {
        padding: 16px;
    }
}

@media (max-width: 767px) {
    .pkp_structure_footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px !important;
    }
    .pkp_footer_content {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hjh-meta-table,
    .hjh-meta-table tbody,
    .hjh-meta-table tr,
    .hjh-meta-table th,
    .hjh-meta-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .hjh-meta-table th {
        padding-bottom: 2px;
        border-bottom: none;
        font-size: 12px;
    }
    .hjh-meta-table td {
        padding-top: 2px;
    }
}
