/* ==========================================================
   ILS OJS Default Theme
   Linguistic Proceedings Series Homepage Upgrade
   Use with OJS Default Theme
========================================================== */

/* ==========================================================
   BASE
========================================================== */

body {
    background: #ffffff;
    color: #1f1f1f;
    line-height: 1.65;
}

a {
    color: #032075;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #E21E51;
}

/* ==========================================================
   HEADER + FOOTER BRANDING
========================================================== */

.pkp_structure_head {
    background-color: #032075 !important;
    border-bottom: 5px solid #E21E51 !important;
}

.pkp_structure_footer_wrapper {
    border-top: 5px solid #E21E51 !important;
}

/* Logo and title area */
.pkp_site_name_wrapper {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.pkp_site_name img {
    max-height: 86px !important;
    width: auto !important;
}

.pkp_site_name a,
.pkp_site_name .is_img,
.pkp_site_name a.is_img {
    display: inline-flex !important;
    align-items: center !important;
    gap: 18px !important;
    text-decoration: none !important;
}

/* Force visible title beside logo */
.pkp_site_name a::after,
.pkp_site_name .is_img::after,
.pkp_site_name a.is_img::after,
.pkp_site_name_wrapper .pkp_site_name a::after {
    content: "Linguistic Proceedings Series" !important;
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.35px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.pkp_site_name .is_text {
    display: none !important;
}

/* Navigation */
.pkp_navigation_primary_wrapper {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.pkp_navigation_primary_row {
    background-color: #032075 !important;
}

.pkp_navigation_primary_row a {
    color: #ffffff !important;
    font-weight: 600;
}

.pkp_navigation_primary_row a:hover,
.pkp_navigation_primary_row a:focus {
    color: #E21E51 !important;
}

/* ==========================================================
   BUTTONS
========================================================== */

.pkp_button,
button,
input[type="submit"],
.cmp_button {
    background-color: #E21E51 !important;
    border-color: #E21E51 !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 3px;
}

.pkp_button:hover,
button:hover,
input[type="submit"]:hover,
.cmp_button:hover {
    background-color: #032075 !important;
    border-color: #032075 !important;
    color: #ffffff !important;
}

/* ==========================================================
   STATIC HOMEPAGE GENERAL
========================================================== */

.page.page_static_page .page_title,
.page_static_page .page_title {
    color: #032075 !important;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 800;
    border-bottom: 3px solid #E21E51;
    padding-bottom: 14px;
    margin-bottom: 26px;
}

.page_static_page h2,
.page_static_page h3,
.page_static_page h4,
h1,
h2,
h3,
h4 {
    color: #032075;
    font-weight: 800;
}

.page_static_page h2 {
    font-size: 1.55rem;
    margin-top: 36px;
    margin-bottom: 14px;
}

.page_static_page h3 {
    font-size: 1.18rem;
    margin-top: 26px;
    margin-bottom: 10px;
}

.page_static_page p {
    max-width: 920px;
    font-size: 1rem;
    line-height: 1.72;
}

.page_static_page > p:first-of-type {
    font-size: 1.08rem;
    color: #2b2b2b;
}

.page_static_page p:empty,
.page_static_page p > br:only-child {
    display: none;
}

/* ==========================================================
   PROCEEDINGS HUB / STATIC PAGE SECTIONS
========================================================== */

.ils-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f7f8fc 100%);
    border: 1px solid #e3e6ee;
    border-top: 5px solid #E21E51;
    padding: 32px 34px;
    margin: 10px 0 34px;
    border-radius: 4px;
}

.ils-hero h2 {
    margin-top: 0;
    font-size: 1.75rem;
}

.ils-hero p {
    font-size: 1.05rem;
    color: #2c2c2c;
}

.ils-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 36px;
}

.ils-link-grid a {
    display: block;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #dfe3ee;
    border-left: 5px solid #032075;
    color: #032075;
    font-weight: 800;
    text-decoration: none;
    border-radius: 3px;
}

.ils-link-grid a:hover,
.ils-link-grid a:focus {
    border-left-color: #E21E51;
    color: #E21E51;
    background: #fafbff;
}

/* Style Explore list if no custom class is used */
.page_static_page h3 + ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 34px;
}

.page_static_page h3 + ul li {
    margin: 0;
}

.page_static_page h3 + ul li a {
    display: block;
    padding: 15px 17px;
    background: #ffffff;
    border: 1px solid #dfe3ee;
    border-left: 5px solid #032075;
    color: #032075;
    font-weight: 800;
    text-decoration: none;
    border-radius: 3px;
}

.page_static_page h3 + ul li a:hover,
.page_static_page h3 + ul li a:focus {
    border-left-color: #E21E51;
    color: #E21E51;
    background: #fafbff;
}

.ils-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 34px 0 42px;
    border: 1px solid #e0e4ee;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.ils-stats div {
    padding: 22px 18px;
    border-right: 1px solid #e0e4ee;
    text-align: center;
}

.ils-stats div:last-child {
    border-right: 0;
}

.ils-stats h3 {
    margin: 0 0 6px;
    color: #E21E51;
    font-size: 1.55rem;
    line-height: 1.1;
}

.ils-stats p {
    margin: 0;
    color: #60646f;
    font-size: 0.9rem;
    line-height: 1.35;
}

.ils-featured-proceedings {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    background: #ffffff;
    border: 1px solid #e0e4ee;
    border-top: 5px solid #032075;
    padding: 24px;
    margin: 26px 0 42px;
    border-radius: 4px;
}

.ils-featured-proceedings img {
    width: 100%;
    max-width: 210px;
    height: auto;
    border: 1px solid #e0e4ee;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.ils-featured-proceedings h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.ils-button,
.ils-featured-proceedings a.ils-button,
.page_static_page a.ils-button {
    display: inline-block;
    background: #E21E51;
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 3px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 8px;
}

.ils-button:hover,
.ils-button:focus {
    background: #032075;
    color: #ffffff !important;
}

.ils-research-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 38px;
}

.ils-research-areas span {
    display: inline-block;
    padding: 8px 12px;
    background: #f7f8fc;
    color: #032075;
    border: 1px solid #dfe3ee;
    border-left: 4px solid #E21E51;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 3px;
}

.ils-callout {
    background: #f8f9fd;
    border: 1px solid #e0e4ee;
    border-left: 5px solid #E21E51;
    padding: 22px 24px;
    margin: 32px 0 40px;
    border-radius: 4px;
}

.ils-callout h2,
.ils-callout h3 {
    margin-top: 0;
}

.ils-callout p:last-child {
    margin-bottom: 0;
}

/* Upcoming conference list */
.page_static_page h3:nth-of-type(2) + ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.page_static_page h3:nth-of-type(2) + ul li {
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #dfe3ee;
    border-left: 5px solid #E21E51;
    border-radius: 3px;
}

.page_static_page h3:nth-of-type(2) + ul li strong {
    color: #032075;
}

/* Calendar embed */
.ils-calendar-embed {
    margin: 28px 0 42px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-top: 5px solid #E21E51;
    border-radius: 4px;
}

.ils-calendar-embed iframe {
    display: block;
    width: 100%;
    min-height: 760px;
    border: 0;
    background: #ffffff;
}

/* ==========================================================
   ISSUE / ARCHIVE LISTS
========================================================== */

.obj_issue_summary {
    background: #ffffff;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px;
    padding: 20px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.obj_issue_summary .title a {
    color: #032075 !important;
    font-size: 1.25rem;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.obj_issue_summary .title a:hover {
    color: #E21E51 !important;
    text-decoration: underline !important;
}

/* ==========================================================
   ARTICLE LISTS
========================================================== */

.obj_article_summary,
.cmp_article_list > li {
    border-bottom: 1px solid #e4e4e4 !important;
    padding: 16px 0 !important;
}

.obj_article_summary .title {
    margin-bottom: 8px;
}

.obj_article_summary .title a {
    color: #032075 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.obj_article_summary .title a:hover {
    color: #E21E51 !important;
    text-decoration: underline !important;
}

.obj_article_summary .meta {
    font-size: 0.92rem;
    color: #60646f;
}

.obj_article_summary .galley_links a,
.obj_article_summary .galleys_links a,
.galley-link,
.cmp_galley_link {
    color: #032075 !important;
    background: #ffffff !important;
    border: 1px solid #032075 !important;
    padding: 4px 10px !important;
    border-radius: 3px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.obj_article_summary .galley_links a:hover,
.obj_article_summary .galleys_links a:hover,
.galley-link:hover,
.cmp_galley_link:hover {
    color: #ffffff !important;
    background: #032075 !important;
}

/* ==========================================================
   ARTICLE DETAIL PAGE
========================================================== */

.obj_article_details .page_title,
.obj_article_details h1 {
    color: #032075 !important;
    line-height: 1.25;
}

.obj_article_details .authors,
.obj_article_details .item.authors {
    color: #60646f;
}

.obj_article_details .item {
    margin-bottom: 22px;
}

.obj_article_details .item > .label {
    color: #032075;
    font-weight: 800;
}

/* ==========================================================
   SIDEBAR / BLOCKS
========================================================== */

.pkp_block {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.pkp_block .title {
    color: #032075;
    font-weight: 800;
}

/* ==========================================================
   BREADCRUMBS
========================================================== */

.cmp_breadcrumbs {
    font-size: 14px;
    opacity: 0.85;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 900px) {
    .ils-link-grid,
    .page_static_page h3 + ul,
    .page_static_page h3:nth-of-type(2) + ul,
    .ils-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ils-featured-proceedings {
        grid-template-columns: 160px minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .pkp_site_name_wrapper {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .pkp_site_name img {
        max-height: 60px !important;
    }

    .pkp_site_name a::after,
    .pkp_site_name .is_img::after,
    .pkp_site_name a.is_img::after {
        font-size: 1rem !important;
        max-width: 190px;
        white-space: normal !important;
        line-height: 1.15 !important;
    }

    .page_static_page .page_title {
        font-size: 1.55rem;
    }

    .ils-hero,
    .ils-featured-proceedings,
    .ils-callout {
        padding: 20px;
    }

    .ils-calendar-embed {
        padding: 10px;
        margin: 20px 0 30px;
    }

    .ils-calendar-embed iframe {
        min-height: 650px;
    }

    .obj_issue_summary {
        padding: 16px !important;
    }
}

@media (max-width: 520px) {
    .ils-link-grid,
    .page_static_page h3 + ul,
    .page_static_page h3:nth-of-type(2) + ul,
    .ils-stats,
    .ils-featured-proceedings {
        grid-template-columns: 1fr;
    }

    .ils-stats div {
        border-right: 0;
        border-bottom: 1px solid #e0e4ee;
    }

    .ils-stats div:last-child {
        border-bottom: 0;
    }

    .ils-featured-proceedings img {
        max-width: 170px;
    }

    .pkp_site_name img {
        max-height: 52px !important;
    }

    .pkp_site_name a::after,
    .pkp_site_name .is_img::after,
    .pkp_site_name a.is_img::after {
        font-size: 0.88rem !important;
        max-width: 140px;
    }
}
