/* ==========================================================================
   GGtheme v1.5.2 — Home Readability Direct Targeting
   Dedicated stylesheet with semantic GGtheme classes so sizing is stable
   across OJS/Tailwind utility changes and not dependent on generic selectors.
   ========================================================================== */

:root {
    --gg-home-copy-size: 15px;
    --gg-home-copy-leading: 1.72;
    --gg-home-article-title-size: 18.5px;
    --gg-home-article-author-size: 14px;
    --gg-home-article-meta-size: 13px;
}

/* Homepage editorial prose — visibly larger than v1.5.1, still compact. */
body.pkp_page_index .gg-home .gg-home-prose,
body.pkp_page_index .gg-home .gg-home-prose p,
body.pkp_page_index .gg-home .gg-home-prose div:not(.iit-section-head),
body.pkp_page_index .gg-home .gg-home-prose li {
    font-size: var(--gg-home-copy-size) !important;
    line-height: var(--gg-home-copy-leading) !important;
}

body.pkp_page_index .gg-home .gg-about-copy p {
    margin-bottom: .72em !important;
}

/* Issue description/date above the article list. */
body.pkp_page_index .gg-home-current .gg-issue-description,
body.pkp_page_index .gg-home-current .gg-issue-published {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
}

/* Direct article-list targeting: no dependency on h4/h5 or Tailwind text-* sizes. */
body.pkp_page_index .gg-home-current .gg-article-list-item {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
    min-height: 102px !important;
}

body.pkp_page_index .gg-home-current .gg-article-title {
    font-size: var(--gg-home-article-title-size) !important;
    line-height: 1.38 !important;
    font-weight: 650 !important;
    letter-spacing: -0.012em !important;
    margin: 0 0 8px !important;
}

body.pkp_page_index .gg-home-current .gg-article-title > a {
    font-size: inherit !important;
    line-height: inherit !important;
}

body.pkp_page_index .gg-home-current .gg-article-subtitle {
    font-size: 14.5px !important;
    line-height: 1.5 !important;
    margin-top: 4px !important;
}

body.pkp_page_index .gg-home-current .gg-article-authors,
body.pkp_page_index .gg-home-current .gg-article-authors .font-medium {
    font-size: var(--gg-home-article-author-size) !important;
    line-height: 1.55 !important;
}

body.pkp_page_index .gg-home-current .gg-article-meta-side,
body.pkp_page_index .gg-home-current .gg-article-pages,
body.pkp_page_index .gg-home-current .gg-article-date,
body.pkp_page_index .gg-home-current .gg-article-galleys,
body.pkp_page_index .gg-home-current .gg-article-galleys a {
    font-size: var(--gg-home-article-meta-size) !important;
    line-height: 1.45 !important;
}

/* Make PDF/galley actions a touch easier to read without making them bulky. */
body.pkp_page_index .gg-home-current .gg-article-galleys a {
    min-height: 29px;
    padding: 6px 10px !important;
    display: inline-flex;
    align-items: center;
}

/* Keep article numbering proportionate to the larger title. */
@media (min-width: 1024px) {
    body.pkp_page_index .gg-home-current .gg-article-list > .gg-article-list-item::before {
        font-size: 20px !important;
    }
}

@media (max-width: 680px) {
    :root {
        --gg-home-copy-size: 14px;
        --gg-home-article-title-size: 17px;
        --gg-home-article-author-size: 13px;
        --gg-home-article-meta-size: 12px;
    }
    body.pkp_page_index .gg-home-current .gg-article-list-item {
        min-height: 0 !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }
}
