/* ============================================================
   Medicine Discovery — Custom Journal Style Sheet
   Lancet-inspired design for OJS Default Theme
   Color: #8B1538 (burgundy) | #1A3A5C (navy) | #C5A258 (gold)
   ============================================================ */

/* --- Global Typography --- */
body {
    font-family: 'Noto Serif', 'Georgia', 'Times New Roman', serif;
    color: #2D2D2D;
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif', 'Georgia', serif;
    color: #1A1A1A;
    font-weight: 700;
    line-height: 1.3;
}

/* --- Header & Navigation --- */
.pkp_structure_head {
    border-bottom: 3px solid #8B1538;
}

.pkp_navigation_primary a {
    color: #1A1A1A;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.pkp_navigation_primary a:hover,
.pkp_navigation_primary a:focus {
    color: #8B1538;
    border-bottom: 2px solid #8B1538;
}

/* Active navigation item */
.pkp_navigation_primary .current a {
    color: #8B1538;
    border-bottom: 2px solid #8B1538;
}

/* --- Links --- */
a {
    color: #8B1538;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #6A1029;
    text-decoration: underline;
}

/* --- Homepage --- */
.homepage_about {
    font-size: 1.05em;
    line-height: 1.8;
    max-width: 800px;
}

/* Journal Summary on homepage */
.pkp_structure_main .homepage_about p {
    margin-bottom: 1em;
}

/* --- Article Listing (Issue TOC) --- */
.obj_article_summary {
    border-bottom: 1px solid #E8E8E8;
    padding: 18px 0;
    margin: 0;
}

.obj_article_summary:last-child {
    border-bottom: none;
}

.obj_article_summary .title {
    font-size: 1.15em;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.4;
    margin-bottom: 4px;
}

.obj_article_summary .title a {
    color: #1A1A1A;
}

.obj_article_summary .title a:hover {
    color: #8B1538;
}

.obj_article_summary .authors {
    font-size: 0.9em;
    color: #555;
    font-style: normal;
    margin-bottom: 2px;
}

.obj_article_summary .meta {
    font-size: 0.82em;
    color: #888;
}

/* Section headers in issue TOC */
.pkp_structure_main .section > .title {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8B1538;
    border-bottom: 2px solid #8B1538;
    padding-bottom: 6px;
    margin: 30px 0 15px 0;
}

/* --- Article Detail Page --- */
.obj_article_details .title {
    font-size: 1.6em;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.35;
    margin-bottom: 10px;
}

.obj_article_details .authors {
    font-size: 1em;
    color: #444;
    margin-bottom: 15px;
}

.obj_article_details .abstract {
    background: #F9F9F9;
    border-left: 4px solid #8B1538;
    padding: 18px 22px;
    margin: 20px 0;
    font-size: 0.95em;
    line-height: 1.8;
}

.obj_article_details .abstract h3,
.obj_article_details .abstract .label {
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8B1538;
    margin-bottom: 8px;
}

/* Keywords */
.obj_article_details .keywords {
    font-size: 0.88em;
    color: #555;
}

.obj_article_details .keywords .label {
    font-weight: 700;
    color: #1A1A1A;
}

/* DOI display */
.obj_article_details .doi {
    font-size: 0.88em;
    color: #555;
    margin: 8px 0;
}

.obj_article_details .doi a {
    color: #8B1538;
}

/* --- Galleys / Download Buttons --- */
.obj_galley_link {
    display: inline-block;
    background: #8B1538;
    color: #FFFFFF !important;
    padding: 8px 20px;
    border-radius: 3px;
    font-size: 0.88em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin: 4px 6px 4px 0;
    transition: background 0.2s ease;
}

.obj_galley_link:hover {
    background: #6A1029;
    color: #FFFFFF !important;
    text-decoration: none;
}

/* --- Sidebar --- */
.pkp_structure_sidebar {
    font-size: 0.9em;
}

.pkp_structure_sidebar .pkp_block .title {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8B1538;
    border-bottom: 2px solid #8B1538;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.pkp_structure_sidebar a {
    color: #1A3A5C;
}

.pkp_structure_sidebar a:hover {
    color: #8B1538;
}

/* --- Footer --- */
.pkp_structure_footer_wrapper {
    background: #1A1A1A;
    color: #CCCCCC;
    border-top: 3px solid #8B1538;
    padding: 25px 0;
    font-size: 0.85em;
}

.pkp_structure_footer_wrapper a {
    color: #FFFFFF;
}

.pkp_structure_footer_wrapper a:hover {
    color: #C5A258;
}

/* --- Buttons (Submit, Register, Login) --- */
.pkp_button,
.pkp_structure_main .cmp_button,
button[type="submit"] {
    background: #8B1538;
    color: #FFFFFF;
    border: none;
    padding: 10px 24px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pkp_button:hover,
.pkp_structure_main .cmp_button:hover,
button[type="submit"]:hover {
    background: #6A1029;
}

/* --- Tables --- */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
    font-size: 0.92em;
}

th {
    background: #8B1538;
    color: #FFFFFF;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

td {
    padding: 9px 12px;
    border-bottom: 1px solid #E8E8E8;
}

tr:nth-child(even) {
    background: #F9F9F9;
}

/* --- Announcements --- */
.obj_announcement_summary .title {
    font-weight: 700;
    color: #1A1A1A;
}

.obj_announcement_summary .title a:hover {
    color: #8B1538;
}

/* --- Breadcrumbs --- */
.pkp_breadcrumbs {
    font-size: 0.82em;
    color: #888;
}

.pkp_breadcrumbs a {
    color: #8B1538;
}

/* --- Issue Cover / Archive --- */
.obj_issue_summary .title {
    font-weight: 700;
    color: #1A1A1A;
}

.obj_issue_summary .title a:hover {
    color: #8B1538;
}

/* --- Registration / Login Forms --- */
.pkp_form label {
    font-weight: 600;
    color: #1A1A1A;
}

.pkp_form input[type="text"],
.pkp_form input[type="email"],
.pkp_form input[type="password"],
.pkp_form textarea,
.pkp_form select {
    border: 1px solid #CCC;
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 0.95em;
}

.pkp_form input:focus,
.pkp_form textarea:focus,
.pkp_form select:focus {
    border-color: #8B1538;
    outline: none;
    box-shadow: 0 0 3px rgba(139, 21, 56, 0.25);
}

/* --- Usage Statistics Chart --- */
.pkp_usage_stats_chart_container {
    margin: 15px 0;
    padding: 10px;
    background: #F9F9F9;
    border-radius: 4px;
}

/* --- Print Optimization --- */
@media print {
    .pkp_structure_head,
    .pkp_structure_footer_wrapper,
    .pkp_structure_sidebar,
    .pkp_navigation_primary {
        display: none;
    }
    
    body {
        color: #000;
        font-size: 11pt;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .obj_article_details .title {
        font-size: 1.3em;
    }
    
    .obj_article_details .abstract {
        padding: 12px 15px;
    }
    
    .obj_galley_link {
        display: block;
        text-align: center;
        margin: 4px 0;
    }
}
