
/* =========================================================
   PHILIPPINE JOURNAL OF PATHOLOGY (PJP)
   CUSTOM CSS — TYPOGRAPHY, ALIGNMENT & SPACING
   Platform: Open Journal Systems (OJS) 3.3
   ========================================================= */


/* ---------------------------------------------------------
   1. FONT IMPORT
   --------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');


/* ---------------------------------------------------------
   2. GLOBAL TYPOGRAPHY
   --------------------------------------------------------- */

body {
    font-family: "Century Gothic", Arial, sans-serif !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #333333;
}

/* Headings — Playfair Display */

h1, h2, h3, h4, h5, h6,
.page_title,
.pkp_page_title,
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.obj_article_summary .title,
.obj_article_details .page_title {
    font-family: "Playfair Display", Georgia, serif !important;
    font-weight: 600;
    line-height: 1.3;
    color: #292929;
}

/* Body and interface elements — Century Gothic */

p, li, td, th,
.pkp_structure_main,
.pkp_structure_content,
.pkp_navigation_primary,
.pkp_navigation_user,
.pkp_nav_list,
.obj_article_summary,
.obj_article_details,
.metadata,
.abstract,
button, .btn,
input, select, textarea {
    font-family: "Century Gothic", Arial, sans-serif !important;
}


/* ---------------------------------------------------------
   3. PARAGRAPH ALIGNMENT AND SPACING
   --------------------------------------------------------- */

p {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 0.9em;
    hyphens: auto;
}

/* Main content paragraphs */

.pkp_structure_main p,
.pkp_structure_content p {
    text-align: justify !important;
    line-height: 1.7;
}

/* Abstract paragraphs */

.abstract p,
.obj_article_details .item.abstract p {
    text-align: justify !important;
    line-height: 1.7;
    margin-bottom: 0.9em;
}


/* ---------------------------------------------------------
   4. HEADING SPACING
   --------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5em;
    margin-bottom: 0.65em;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.65em;
}

h3 {
    font-size: 1.35em;
}

h4 {
    font-size: 1.15em;
}

/* Article titles */

.obj_article_summary .title,
.obj_article_details .page_title {
    line-height: 1.35;
    margin-bottom: 0.7em;
}


/* ---------------------------------------------------------
   5. ARTICLE CONTENT AND SECTIONS
   --------------------------------------------------------- */

.obj_article_details .item {
    margin-bottom: 1.5em;
}

.obj_article_details .item.fulltext {
    line-height: 1.7;
}

.obj_article_details .item.references {
    line-height: 1.6;
}

/* Section headings within article content */

.obj_article_details .item h2,
.obj_article_details .item h3,
.obj_article_details .item h4 {
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}


/* ---------------------------------------------------------
   6. LISTS
   --------------------------------------------------------- */

ul, ol {
    margin-top: 0.5em;
    margin-bottom: 1em;
    padding-left: 2em;
}

li {
    line-height: 1.65;
    margin-bottom: 0.35em;
}


/* ---------------------------------------------------------
   7. TABLES
   --------------------------------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    line-height: 1.5;
    margin-bottom: 1.5em;
}

td, th {
    padding: 0.6em 0.8em;
    vertical-align: top;
}

th {
    font-weight: 700;
    text-align: left;
}

/* Preserve readable table alignment */
td {
    text-align: left;
}


/* ---------------------------------------------------------
   8. NAVIGATION AND INTERFACE ALIGNMENT
   --------------------------------------------------------- */

/* Navigation */

.pkp_navigation_primary,
.pkp_navigation_user {
    line-height: 1.4;
}

/* Buttons */

button, .btn,
input[type="submit"],
input[type="button"] {
    line-height: 1.4;
    text-align: center;
}

/* Form fields */

input, select, textarea {
    line-height: 1.5;
}


/* ---------------------------------------------------------
   9. ARTICLE METADATA
   --------------------------------------------------------- */

.obj_article_details .item.metadata,
.obj_article_summary .meta {
    line-height: 1.5;
    text-align: left;
}

/* Author information and publication details */

.obj_article_details .authors,
.obj_article_details .published,
.obj_article_details .doi {
    text-align: left;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   10. SIDEBAR AND ANNOUNCEMENTS
   --------------------------------------------------------- */

.pkp_block {
    line-height: 1.6;
}

.pkp_block p,
.cmp_announcements p {
    text-align: justify !important;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   11. LINKS
   --------------------------------------------------------- */

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   12. RESPONSIVE SPACING — MOBILE DEVICES
   --------------------------------------------------------- */

@media (max-width: 768px) {

    body {
        font-size: 14px;
        line-height: 1.65;
    }

    p {
        line-height: 1.65;
        margin-bottom: 0.8em;
    }

    h1 {
        font-size: 1.7em;
    }

    h2 {
        font-size: 1.45em;
    }

    h3 {
        font-size: 1.25em;
    }

    h1, h2, h3 {
        margin-top: 1.2em;
    }

    table {
        font-size: 0.9em;
    }
}


/* =========================================================
   END OF PJP CUSTOM CSS
   ========================================================= */
