/*
 * ARWDE Custom Stylesheet v4
 * Upload: Settings → Website → Appearance → Journal Style Sheet
 * After upload: Administration → Clear Data Caches → Ctrl+Shift+R
 */

/* ── 1. FONTS & BASE ───────────────────────────────────────────────────────── */
html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
                 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #1e2d42 !important;
    background: #edf0f5 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a               { color: #1a6cc4 !important; transition: color 120ms ease; }
a:hover,
a:focus         { color: #0f4d96 !important; text-decoration: underline !important; }

/* ── 2. HEADER ─────────────────────────────────────────────────────────────── */
.pkp_structure_head {
    background: #0d2240 !important;
    border-bottom: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

/* Kill the large top padding OJS adds above primary nav */
.pkp_head_wrapper {
    padding-top: 0 !important;
}

/* Journal name – text mode */
.pkp_site_name .is_text {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}
.pkp_site_name a,
.pkp_site_name a:visited,
.pkp_site_name a.is_text,
.pkp_site_name a.is_text:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}
.pkp_site_name a:hover,
.pkp_site_name a.is_text:hover { color: #b8d4f8 !important; }

/* Logo image – cap it */
.pkp_site_name .is_img img {
    max-height: 50px !important;
    width: auto !important;
}

/* Primary nav links */
.pkp_navigation_primary > li > a {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.82) !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
    transition: color 120ms, border-color 120ms !important;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,0.55) !important;
    text-decoration: none !important;
}

/* User nav */
.pkp_navigation_user a,
.pkp_navigation_user a:visited {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.8125rem !important;
    text-decoration: none !important;
}
.pkp_navigation_user a:hover { color: #fff !important; }

/* Search link in nav */
.pkp_navigation_search_wrapper a {
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
}
.pkp_navigation_search_wrapper a:hover { color: #fff !important; }

/* Dropdown menus */
.pkp_nav_list ul {
    background: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15) !important;
    border: 1px solid #dde5f0 !important;
}
.pkp_nav_list ul a { color: #1a6cc4 !important; font-size: 0.875rem !important; }
.pkp_nav_list ul a:hover {
    background: #f0f5ff !important;
    text-decoration: none !important;
}

/* Mobile nav */
.pkp_site_nav_menu { background: #0d2240 !important; }
.pkp_site_nav_menu a { color: rgba(255,255,255,0.85) !important; }

/* ── 3. KILL THE BORDER LINES ──────────────────────────────────────────────── */
/* OJS draws full-height vertical lines via ::before and ::after pseudo-elements.
   These are what make the page look like a 2010 newspaper layout. */
.pkp_structure_main::before,
.pkp_structure_main::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: none !important;
    content: '' !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ── 4. OVERALL CONTENT WRAPPER ────────────────────────────────────────────── */
.pkp_structure_content {
    background: transparent !important;
    padding-top: 1.75rem !important;
    padding-bottom: 2rem !important;
}

/* ── 5. MAIN CONTENT PANEL ─────────────────────────────────────────────────── */
.pkp_structure_main {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04) !important;
    padding: 2rem 2.25rem 2.5rem !important;
    /* Override OJS float & width */
    float: left !important;
    width: calc(100% - 330px) !important;
    margin-right: 0 !important;
}

/* No sidebar: full width */
.pkp_structure_main:first-child:last-child {
    float: none !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ── 6. PAGE TITLE ─────────────────────────────────────────────────────────── */
.pkp_structure_main h1,
.pkp_structure_main .page h1,
.obj_article_details > .page_title {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #0d2240 !important;
    letter-spacing: -0.02em !important;
    margin-top: 0 !important;
    margin-bottom: 1.1rem !important;
    padding-bottom: 0.65rem !important;
    border-bottom: 2px solid #0d2240 !important;
}

/* ── 7. HEADINGS ───────────────────────────────────────────────────────────── */
.pkp_structure_main h2 {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #0d2240 !important;
    letter-spacing: -0.01em !important;
    margin-top: 1.75rem !important;
    margin-bottom: 0.6rem !important;
}
.pkp_structure_main h3 {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 1.0rem !important;
    font-weight: 600 !important;
    color: #1e2d42 !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.4rem !important;
}

/* ── 8. BODY TEXT ──────────────────────────────────────────────────────────── */
.pkp_structure_main p,
.pkp_structure_main li {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 0.9375rem !important;
    line-height: 1.8 !important;
    color: #2d3a50 !important;
}

/* ── 9. SIDEBAR ────────────────────────────────────────────────────────────── */
.pkp_structure_sidebar {
    float: right !important;
    width: 300px !important;
    background: transparent !important;
    padding-top: 0 !important;
}

/* Each sidebar block = white card */
.pkp_block {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04) !important;
    padding: 1.1rem 1.15rem 1.2rem !important;
    margin-bottom: 1rem !important;
    border: none !important;
    border-bottom: none !important;
}

.pkp_block .title {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 0.67rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.13em !important;
    color: #8a9ab5 !important;
    margin-bottom: 0.8rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #edf0f7 !important;
    display: block !important;
}

.pkp_block a {
    color: #1e2d42 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
}
.pkp_block a:hover { color: #1a6cc4 !important; }

.pkp_block .content ul li {
    font-size: 0.875rem !important;
    padding: 4px 0 !important;
    line-height: 1.5 !important;
    color: #2d3a50 !important;
    border-bottom: 1px solid #f2f4f9 !important;
}
.pkp_block .content ul li:last-child { border-bottom: none !important; }

/* Make a Submission CTA */
.block_make_submission a {
    display: block !important;
    background: #1a6cc4 !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 0.65rem 1rem !important;
    border-radius: 7px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(26,108,196,0.35) !important;
    transition: background 120ms, box-shadow 120ms !important;
    border: none !important;
    margin-top: 0.1rem !important;
}
.block_make_submission a:hover {
    background: #1457a0 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(26,108,196,0.45) !important;
    text-decoration: none !important;
}

/* ── 10. ARTICLE SUMMARY CARDS ─────────────────────────────────────────────── */
.obj_article_summary {
    padding: 1.35rem 0 !important;
    border-top: 1px solid #eaecf5 !important;
    border-bottom: none !important;
    background: transparent !important;
}
.obj_article_summary:first-child { border-top: none !important; }

.obj_article_summary > .title {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0d2240 !important;
    line-height: 1.4 !important;
    margin: 0 0 0.3rem !important;
}
.obj_article_summary > .title a {
    color: #0d2240 !important;
    text-decoration: none !important;
}
.obj_article_summary > .title a:hover { color: #1a6cc4 !important; }

.obj_article_summary .subtitle {
    font-size: 0.9rem !important;
    color: #4a5a72 !important;
    font-style: italic !important;
    display: block !important;
    margin-bottom: 0.3rem !important;
}
.obj_article_summary .authors {
    font-size: 0.84rem !important;
    color: #5a6a82 !important;
    font-style: italic !important;
    margin-bottom: 0.35rem !important;
}
.obj_article_summary .meta {
    font-size: 0.8rem !important;
    color: #8a9ab5 !important;
    padding-top: 0.2rem !important;
}

/* ── 11. GALLEY BUTTONS ────────────────────────────────────────────────────── */
.obj_galley_link a,
.obj_article_summary .galleys_links a,
.obj_article_details .galleys_links a,
.galleys_links a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 0.71rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    background: #eef3fc !important;
    border: 1px solid #bbd1f2 !important;
    color: #1a5ca8 !important;
    transition: all 120ms !important;
}
.obj_galley_link a:hover,
.galleys_links a:hover {
    background: #1a6cc4 !important;
    border-color: #1a6cc4 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── 12. ARTICLE DETAIL PAGE ────────────────────────────────────────────────── */
.obj_article_details .main_entry .item .label {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0d2240 !important;
    border-left: 3px solid #1a6cc4 !important;
    padding-left: 0.6rem !important;
    margin-bottom: 0.6rem !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
}
.obj_article_details .item.abstract p {
    font-size: 0.9375rem !important;
    line-height: 1.8 !important;
    color: #2d3a50 !important;
}
.obj_article_details .authors .name {
    font-weight: 600 !important;
    color: #1e2d42 !important;
}
.obj_article_details .authors .affiliation,
.obj_article_details .authors .userGroup {
    font-size: 0.8125rem !important;
    color: #6b7fa3 !important;
}
.obj_article_details .entry_details .item .label {
    font-size: 0.69rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #8a9ab5 !important;
}

/* ── 13. HOMEPAGE ───────────────────────────────────────────────────────────── */
.pkp_page_index .current_issue_title {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0d2240 !important;
    border-bottom: 2px solid #0d2240 !important;
    padding-bottom: 0.4rem !important;
    margin: 1.25rem 0 0.85rem !important;
    letter-spacing: -0.01em !important;
}
.pkp_page_index .homepage_about h2 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0d2240 !important;
}
.pkp_page_index .homepage_about p {
    font-size: 0.9375rem !important;
    line-height: 1.8 !important;
    color: #2d3a50 !important;
}
.pkp_page_index .current_issue .section > h2,
.obj_issue_toc .section > h2 {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 0.69rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.13em !important;
    color: #8a9ab5 !important;
    border-bottom: 1px solid #eaecf5 !important;
    padding-bottom: 0.35rem !important;
    margin-bottom: 0.5rem !important;
}
.pkp_page_index .homepage_image img {
    border-radius: 6px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1) !important;
}

/* ── 14. BREADCRUMBS ────────────────────────────────────────────────────────── */
.pkp_breadcrumbs,
nav[aria-label="You are here:"] {
    font-size: 0.8125rem !important;
    color: #8a9ab5 !important;
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
}
.pkp_breadcrumbs a { color: #8a9ab5 !important; }
.pkp_breadcrumbs a:hover { color: #1a6cc4 !important; }

/* ── 15. ISSUE & ANNOUNCEMENT CARDS ────────────────────────────────────────── */
.obj_issue_summary .title a {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0d2240 !important;
    text-decoration: none !important;
}
.obj_issue_summary .title a:hover { color: #1a6cc4 !important; }

.obj_announcement_summary .title a {
    font-size: 1.0rem !important;
    font-weight: 700 !important;
    color: #0d2240 !important;
}
.obj_announcement_summary .title a:hover { color: #1a6cc4 !important; }
.obj_announcement_summary .date {
    font-size: 0.8rem !important;
    color: #8a9ab5 !important;
}

/* ── 16. FORMS ──────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
select,
textarea {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 0.9375rem !important;
    border-radius: 6px !important;
    border: 1px solid #c8d4e8 !important;
    color: #1e2d42 !important;
    background: #fff !important;
    padding: 0.45rem 0.75rem !important;
    transition: border-color 120ms, box-shadow 120ms !important;
}
input:focus, select:focus, textarea:focus {
    border-color: #1a6cc4 !important;
    box-shadow: 0 0 0 3px rgba(26,108,196,0.15) !important;
    outline: none !important;
}

/* ── 17. TABS ───────────────────────────────────────────────────────────────── */
.pkp_navigation_tabs li a {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #4a5a72 !important;
}
.pkp_navigation_tabs li.current a,
.pkp_navigation_tabs li a:hover { color: #0d2240 !important; }

/* ── 18. FOOTER ─────────────────────────────────────────────────────────────── */
.pkp_structure_footer_wrapper {
    background: #0d2240 !important;
    margin-top: 2rem !important;
    border-top: none !important;
}
.pkp_footer_content {
    padding: 1.75rem 1.5rem 1.25rem !important;
    color: rgba(255,255,255,0.65) !important;
}
.pkp_footer_content p,
.pkp_footer_content li {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.875rem !important;
    line-height: 1.7 !important;
}
.pkp_footer_content a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none !important;
}
.pkp_footer_content a:hover { color: #fff !important; }

/* ── 19. FIX THE GIANT FOOTER LOGO ─────────────────────────────────────────── */
/* This is the huge OJS brand image sitting in the dark footer */
.pkp_brand_footer {
    padding: 0.85rem 1.5rem !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    background: #0d2240 !important;
    text-align: right !important;
}
.pkp_brand_footer a {
    display: inline-block !important;
    max-width: 120px !important;  /* was rendering at ~500px */
    opacity: 0.3 !important;
    transition: opacity 120ms !important;
    float: none !important;
}
.pkp_brand_footer a:hover { opacity: 0.55 !important; }
.pkp_brand_footer img {
    max-width: 120px !important;
    max-height: 36px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

/* Also hide the journal logo that OJS sometimes duplicates in the footer */
.pkp_footer_content img:not([class]) {
    max-width: 140px !important;
    max-height: 56px !important;
    opacity: 0.55 !important;
}

