@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:wght@400;700&display=swap');

/* === Base === */
body {
    font-family: 'DM Sans', sans-serif !important;
    background: #ffffff !important;
    color: #343434;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif !important;
}

a { color: #0f5bf5; }
a:hover { color: #0a3fb3; }

/* ========================================
   SUBHEADER
   ======================================== */
.brj-subheader {
    background: #0f5bf5;
    font-size: 13px;
    line-height: 40px;
    height: 40px;
    overflow: hidden;
}
.brj-subheader-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}
.brj-subheader a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    font-family: 'DM Sans', sans-serif !important;
}
.brj-subheader a:hover { color: #fff !important; }

/* ========================================
   MAIN HEADER
   ======================================== */
.pkp_structure_head {
    background: #ffffff !important;
    border-bottom: none !important;
    padding: 0 !important;
}
.pkp_head_wrapper {
    padding: 0 !important;
    max-width: none !important;
    position: relative !important;
}
.brj-header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.brj-header-logo { flex-shrink: 0; }
.brj-header-logo a { display: block; line-height: 0; }
.brj-header-logo img { height: 65px; width: auto; display: block; }
.brj-header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.brj-header-nav a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px;
    font-weight: 500;
    color: #343434 !important;
    text-decoration: none !important;
}
.brj-header-nav a:hover { color: #0f5bf5 !important; }
.brj-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}
.brj-header-actions .brj-btn-submit {
    background: #0f5bf5;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 5px;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
}
.brj-header-actions .brj-btn-submit:hover {
    background: #0a3fb3;
    color: #fff !important;
}
.brj-header-actions .pkp_navigation_user {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px;
}
.brj-header-actions .pkp_navigation_user li {
    list-style: none !important;
    display: inline-block !important;
}
.brj-header-actions .pkp_navigation_user a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0f5bf5 !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* ========================================
   JOURNAL TITLE + PRIMARY NAV (blue bar)
   ======================================== */
.brj-journal-title-bar {
    background: #0f5bf5 !important;
    border: none !important;
    padding: 0 !important;
}
.brj-journal-title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 0;
}
.brj-journal-title a {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
}
.brj-journal-title a:hover { color: rgba(255,255,255,0.85) !important; }

.pkp_navigation_primary_row {
    background: transparent !important;
    margin: 0 !important;
    border: none !important;
}
.pkp_navigation_primary_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px !important;
}
.pkp_navigation_primary > li > a,
ul.pkp_navigation_primary > li > a,
.pkp_nav_list > li > a {
    font-family: 'DM Sans', sans-serif !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 8px 10px !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
}
.pkp_navigation_primary > li > a:hover,
.pkp_nav_list > li > a:hover {
    color: #fff !important;
    border-bottom-color: #fff !important;
    background: transparent !important;
}
.pkp_navigation_primary > li > a:focus {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
/* Search bar on blue nav */
.pkp_navigation_search_wrapper {
    background: transparent !important;
    border: none !important;
    margin-left: auto;
}
.pkp_search a,
.pkp_search_desktop,
.pkp_navigation_search_wrapper a {
    color: #fff !important;
}
.pkp_navigation_primary ul { background: #fff !important; border: 1px solid #e0e0e0 !important; box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; border-radius: 4px; }
.pkp_navigation_primary ul a { color: #343434 !important; }
.pkp_navigation_primary ul a:hover { color: #0f5bf5 !important; background: #f2f3f6 !important; border-bottom-color: transparent !important; }

/* Hide duplicate elements */
.pkp_navigation_user_wrapper#navigationUserWrapper { display: none !important; }
.pkp_site_name_wrapper { display: none !important; }

/* ========================================
   LAYOUT - Full width, no sidebar
   ======================================== */
.pkp_structure_content,
.pkp_structure_content.has_sidebar {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}
.pkp_structure_main,
.pkp_structure_content .pkp_structure_main,
.pkp_structure_content.has_sidebar .pkp_structure_main,
.pkp_structure_main:first-child:last-child {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 24px 0 40px !important;
    position: relative !important;
}
.pkp_structure_main:before,
.pkp_structure_main:after {
    display: none !important;
}
.pkp_structure_sidebar { display: none !important; }
.pkp_structure_content { padding-top: 0 !important; }

/* ========================================
   HOMEPAGE / ISSUE TOC - Fix gaps
   ======================================== */

/* Current issue heading */
.current_issue .current_issue_title {
    margin: 16px 0 8px !important;
    font-size: 1.5rem;
}

/* Published date */
.obj_issue_toc .published {
    margin: 4px 0 16px !important;
}

/* Section groups - the HUGE gap killer */
.obj_issue_toc .sections:not(:first-child) {
    margin-top: 32px !important;
}

/* Individual sections with divider lines */
.obj_issue_toc .section {
    margin: 24px 0 !important;
    padding: 0 !important;
}
.obj_issue_toc .section:before {
    top: 12px !important;
}
.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3 {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #555 !important;
    background: #ffffff !important;
    line-height: 1.5 !important;
    padding: 0 12px 0 0 !important;
    left: 0 !important;
    margin-top: 0 !important;
}

/* Article list within sections */
.obj_issue_toc .articles {
    margin-top: 12px !important;
}
.obj_issue_toc h2 + .articles,
.obj_issue_toc h3 + .articles {
    margin-top: 12px !important;
}

/* Galleys section */
.obj_issue_toc .galleys {
    margin: 16px 0 !important;
    padding: 0 !important;
}
.obj_issue_toc .galleys:before {
    display: none !important;
}

/* ========================================
   ARTICLE CARDS
   ======================================== */
.obj_article_summary {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px 24px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eaeaea;
}
.obj_article_summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.obj_article_summary .title a {
    font-family: 'Playfair Display', serif !important;
    color: #343434 !important;
    font-size: 1.05rem;
}
.obj_article_summary .title a:hover { color: #0f5bf5 !important; }
.obj_article_summary .meta { color: #666; font-size: 0.9rem; }

/* Issue summary (archives page) */
.obj_issue_summary {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
}

/* ========================================
   BUTTONS
   ======================================== */
.cmp_button, .pkp_button, a.cmp_button {
    background: #0f5bf5 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 500;
    padding: 8px 16px;
}
.cmp_button:hover, .pkp_button:hover, a.cmp_button:hover {
    background: #0a3fb3 !important;
    color: #fff !important;
}

/* PDF galley links */
.obj_galley_link {
    border: 1px solid #0f5bf5 !important;
    color: #0f5bf5 !important;
    background: transparent !important;
    border-radius: 4px;
    padding: 4px 12px !important;
    font-size: 0.85rem;
}
.obj_galley_link:hover {
    background: #0f5bf5 !important;
    color: #fff !important;
}

/* ========================================
   SIDEBAR (hidden, but style in case)
   ======================================== */
.pkp_block {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
}
.pkp_block .title {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700;
    color: #0f5bf5;
    border-bottom: 2px solid #0f5bf5;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* ========================================
   FOOTER override
   ======================================== */
.pkp_structure_footer {
    display: none !important;
    width: 100% !important;
    max-width: none !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
    .brj-header-main { gap: 16px; flex-wrap: wrap; }
    .brj-header-nav { gap: 16px; }
    .brj-header-nav a { font-size: 14px !important; }
    .brj-header-actions .brj-btn-submit { padding: 8px 16px; font-size: 13px !important; }
}
@media (max-width: 900px) {
    .brj-header-main { flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
    .brj-header-logo img { height: 50px; }
    .brj-header-nav { order: 3; width: 100%; gap: 12px; flex-wrap: wrap; }

}
@media (max-width: 640px) {
    .brj-subheader { height: auto; padding: 8px 0; }
    .brj-subheader-inner { flex-wrap: wrap; justify-content: center; gap: 8px 16px; line-height: 1.6; }
    .brj-header-main { flex-direction: column; align-items: stretch; padding: 12px 20px; gap: 10px; }
    .brj-header-logo { text-align: center; }
    .brj-header-logo img { height: 45px; margin: 0 auto; }
    .brj-header-nav { order: 0; width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
    .brj-header-nav a { font-size: 13px !important; }
    .brj-header-actions { width: 100%; justify-content: center;  flex-wrap: wrap; gap: 10px; }
    .brj-header-actions .brj-btn-submit { width: 100%; text-align: center; padding: 10px 16px; }
    .brj-journal-title { padding: 8px 20px 0; }
    .brj-journal-title a { font-size: 1rem !important; }
    .pkp_navigation_primary > li > a, ul.pkp_navigation_primary > li > a { font-size: 13px !important; padding: 6px 8px !important; }
    .brj-footer-inner { grid-template-columns: 1fr !important; gap: 30px !important; }
}

/* === Override default theme #1E6292 backgrounds === */
.pkp_site_nav_menu, nav.pkp_site_nav_menu {
    background: #0f5bf5 !important;
}
.brj-journal-title-bar .pkp_site_nav_menu,
.brj-journal-title-bar nav.pkp_site_nav_menu {
    background: transparent !important;
    position: static !important;
    width: auto !important;
    padding: 0 !important;
}

/* Search bar on blue nav */
.pkp_navigation_primary_row .pkp_navigation_search_wrapper { background: transparent !important; }
.pkp_navigation_primary_row .pkp_search,
.pkp_navigation_primary_row .pkp_search a,
.pkp_navigation_primary_row .pkp_search_desktop { background: transparent !important; color: #fff !important; border: none !important; }
.pkp_navigation_primary_row .pkp_search input { background: rgba(255,255,255,0.15) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.3) !important; border-radius: 4px; }
