/* ========================================================================
   EP Journals Group — Custom Journal Stylesheet  (v3)
   ------------------------------------------------------------------------
   Upload via: OJS admin → Settings → Website → Appearance →
               Advanced → Journal Style Sheet
   ------------------------------------------------------------------------
   Brown / cream / gold palette — softer warm browns, not flashy.
   v3 changes:
     - Header / footer use saddle brown (#8B5A2B) instead of dark #3A2719
     - Nav row + search aligned on the same row (flex layout)
     - System fonts everywhere (no remote loads)
   ======================================================================== */


/* --- GLOBAL ---------------------------------------------------------- */
body,
.pkp_structure_page {
    background: #f4ecdc !important;
    color: #2a1a10;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a { color: #5a3a26; text-underline-offset: 2px; }
a:hover, a:focus { color: #8e6a35; }


/* --- HEADER WRAPPER (top brown band — softer saddle brown) ----------- */
.pkp_structure_head {
    background: #8B5A2B !important;     /* warm saddle brown */
    color: #f4ecdc !important;
    padding: 0 !important;
    border-bottom: 0 !important;
    box-shadow: 0 2px 0 #6B4423;        /* darker accent under header */
}

.pkp_head_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* --- TOP STRIP — site name + user nav -------------------------------- */
.cmp_site_nav_wrapper {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: transparent !important;
    padding: 18px 0 14px !important;
    border-bottom: 1px solid rgba(244,236,220,0.18);
}

.pkp_site_name_wrapper {
    background: transparent !important;
    padding: 0 !important;
}

.pkp_structure_head .pkp_site_name {
    font-family: Georgia, 'Times New Roman', 'Hoefler Text', serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.pkp_structure_head .pkp_site_name a,
.pkp_structure_head .pkp_site_name_text,
.pkp_structure_head a {
    color: #f4ecdc !important;
    text-decoration: none;
}

.pkp_structure_head a:hover,
.pkp_structure_head a:focus { color: #ffe8b0 !important; }

/* User nav (login / account dropdown on the right) */
.pkp_navigation_user_wrapper,
.pkp_navigation_user {
    background: transparent !important;
}

.pkp_navigation_user > li > a {
    color: #f4ecdc !important;
    font-size: 13px;
    padding: 6px 12px !important;
    border: 1px solid rgba(244,236,220,0.3);
    border-radius: 3px;
}

.pkp_navigation_user > li > a:hover {
    background: #f4ecdc !important;
    color: #6B4423 !important;
    border-color: #f4ecdc;
}


/* --- PRIMARY NAV ROW + SEARCH (flex layout — same row) -------------- */
.pkp_navigation_primary_row {
    background: #6B4423 !important;     /* slightly darker brown — coffee */
    border-top: 0 !important;
    padding: 0 !important;
}

.pkp_site_nav_menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* THIS is the fix for Search-on-its-own-row + centered nav */
.pkp_navigation_primary_wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start !important;
    width: 100%;
    background: transparent !important;
    gap: 0;
}

.pkp_navigation_primary {
    display: flex !important;
    flex-wrap: wrap;
    flex: 0 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    list-style: none;
    align-items: center;
}

.pkp_navigation_primary > li {
    margin: 0 !important;
    list-style: none;
}

/* Search wrapper — auto width, no full-width override */
.pkp_navigation_search_wrapper {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: auto !important;
    align-items: center;
    background: transparent !important;
    padding: 0 !important;
}

.pkp_navigation_primary > li > a {
    color: #f4ecdc !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 12px !important;
    font-weight: 600;
    padding: 12px 14px !important;
    border-bottom: 2px solid transparent;
    transition: background .15s ease, border-color .15s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    background: #8B5A2B !important;
    color: #ffe8b0 !important;
    border-bottom-color: #d4a76a;
}

/* Search button — keep inline, push to right */
.pkp_search.pkp_search_desktop,
.pkp_navigation_search_wrapper > .pkp_search {
    margin-left: auto !important;
    color: #f4ecdc !important;
    padding: 12px 14px !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.pkp_search.pkp_search_desktop:hover {
    background: #8B5A2B !important;
    color: #ffe8b0 !important;
}

/* Dropdowns */
.pkp_navigation_primary .pkp_navigation_dropdown,
.pkp_navigation_primary ul ul {
    background: #6B4423 !important;
    border: 1px solid #5a3618;
    border-top: 2px solid #d4a76a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.pkp_navigation_primary .pkp_navigation_dropdown a,
.pkp_navigation_primary ul ul a {
    color: #f4ecdc !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pkp_navigation_primary .pkp_navigation_dropdown a:hover,
.pkp_navigation_primary ul ul a:hover {
    background: #8B5A2B !important;
    color: #ffe8b0 !important;
}


/* --- HEADINGS — serif, brown ----------------------------------------- */
h1, h2, h3, h4, h5, h6,
.obj_article_summary .title,
.obj_issue_summary .title,
.cmp_announcement .title,
.page_title {
    font-family: Georgia, 'Times New Roman', 'Hoefler Text', serif;
    color: #6B4423;
    font-weight: 700;
    line-height: 1.25;
}

h1, .page_title { font-size: 32px; margin-top: 0; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }


/* --- HOMEPAGE / CONTENT AREA ---------------------------------------- */
.pkp_structure_main {
    background: transparent !important;
    padding-top: 28px;
}

.cmp_journal_masthead,
.homepage_journal_description {
    background: #ffffff;
    border: 1px solid #e0d4ba;
    border-radius: 6px;
    padding: 22px 26px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(58,39,25,0.04);
}


/* --- ARTICLE LISTINGS ------------------------------------------------ */
.obj_article_summary {
    background: #ffffff;
    border: 1px solid #e0d4ba;
    border-radius: 4px;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.obj_article_summary:hover {
    box-shadow: 0 4px 14px rgba(107,68,35,0.10);
    border-color: #b58949;
}

.obj_article_summary .title { font-size: 18px; margin-bottom: 6px; }
.obj_article_summary .title a { color: #6B4423; text-decoration: none; }
.obj_article_summary .title a:hover { color: #8e6a35; text-decoration: underline; }
.obj_article_summary .meta,
.obj_article_summary .authors { color: #5a4a3a; font-size: 14px; }


/* --- SIDEBAR / BLOCKS ----------------------------------------------- */
.pkp_block {
    background: #faf6ec;
    border: 1px solid #e0d4ba;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 18px;
}

.pkp_block .title {
    font-family: Georgia, 'Times New Roman', serif;
    color: #6B4423;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #b58949;
    padding-bottom: 6px;
    margin-bottom: 10px;
}


/* --- BUTTONS --------------------------------------------------------- */
.pkp_button,
button.pkp_button,
input[type="submit"],
.cmp_button,
.obj_galley_link {
    background: #b58949 !important;
    color: #3a2719 !important;
    border: 0;
    border-radius: 3px;
    padding: 9px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease;
}

.pkp_button:hover, button.pkp_button:hover,
input[type="submit"]:hover, .cmp_button:hover,
.obj_galley_link:hover { background: #8e6a35 !important; color: #ffffff !important; }

.pkp_page_index .read_more,
.cmp_more_link a {
    color: #6B4423 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}


/* --- FORMS ----------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], textarea, select {
    border: 1px solid #e0d4ba;
    border-radius: 3px;
    padding: 8px 10px;
    background: #ffffff;
    color: #2a1a10;
}

input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, input[type="search"]:focus,
textarea:focus, select:focus {
    outline: 0;
    border-color: #b58949;
    box-shadow: 0 0 0 3px rgba(181,137,73,0.25);
}


/* --- ARTICLE PAGE — abstract / references box ------------------------ */
.item.references,
.item.abstract {
    background: #faf6ec;
    border-left: 3px solid #b58949;
    padding: 16px 20px;
    margin-bottom: 16px;
}


/* --- FOOTER (matches nav row brown for harmony) --------------------- */
.pkp_structure_footer_wrapper,
.pkp_structure_footer {
    background: #6B4423 !important;
    color: #f4ecdc !important;
    border-top: 4px solid #b58949 !important;
    padding: 36px 0 28px !important;
    margin-top: 50px;
}

.pkp_structure_footer_wrapper a,
.pkp_structure_footer a {
    color: #d4a76a !important;
    text-decoration: none;
}

.pkp_structure_footer_wrapper a:hover,
.pkp_structure_footer a:hover { color: #f4ecdc !important; text-decoration: underline; }

.pkp_brand_footer,
.pkp_structure_footer p {
    color: rgba(244,236,220,0.88) !important;
    font-size: 14px;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pkp_brand_footer h1, .pkp_brand_footer h2,
.pkp_brand_footer h3, .pkp_brand_footer h4 {
    color: #f4ecdc !important;
    font-family: Georgia, 'Times New Roman', serif;
}

.pkp_brand_footer .pkp_brand_footer_block,
.pkp_brand_footer + .pkp_brand_footer {
    opacity: 0.55;
    font-size: 12px;
}


/* --- RESPONSIVE ----------------------------------------------------- */
@media (max-width: 880px) {
    .pkp_structure_head .pkp_site_name { font-size: 18px; }
    .pkp_navigation_primary > li > a {
        padding: 9px 10px !important;
        font-size: 11px !important;
    }
    h1, .page_title { font-size: 26px; }
    h2 { font-size: 22px; }
}

@media (max-width: 600px) {
    .cmp_site_nav_wrapper { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pkp_navigation_primary_wrapper { flex-direction: column; align-items: flex-start; }
    .pkp_search.pkp_search_desktop { margin-left: 0 !important; }
}
