/*
 * Official PKP OJS 3 theme skins for journal portals.
 * ojs.css is the shared native OJS chrome; this sheet supplies eight distinct PKP theme layouts and typography.
 * The active skin is selected by JournalThemes and exposed as body.theme-<slug>.
 */

/* 1. PKP OJS 3 Default Theme — light masthead, blue OJS navigation, standard right sidebar. */
body.theme-ojs-default {
    --ojs-base: #1E6292;
    --ojs-primary: #006798;
    --ojs-primary-lift: #0088cc;
    --ojs-soft: #f4f4f4;
}
body.theme-ojs-default .ojs-brand strong { letter-spacing: -.01em; }
body.theme-ojs-default .toc-article { padding-left: .2rem; }

/* 2. PKP OJS 3 Default Manuscript — framed academic masthead, serif manuscript typography. */
body.theme-ojs-manuscript {
    --ojs-base: #4b3b32;
    --ojs-primary: #5b4a3f;
    --ojs-primary-lift: #7a6557;
    --ojs-soft: #f7f3ee;
    --ojs-line: #d8cfc4;
    font-family: Georgia, "Noto Serif", "Times New Roman", serif;
}
body.theme-ojs-manuscript .ojs-header { border-bottom: 4px double var(--ojs-base); background: #fffdfa; }
body.theme-ojs-manuscript .ojs-topline { background: #fffdfa; }
body.theme-ojs-manuscript .ojs-brandbar { justify-content: center; text-align: center; padding: 1.8rem 0; }
body.theme-ojs-manuscript .ojs-brand { display: grid; justify-items: center; }
body.theme-ojs-manuscript .ojs-brand strong { font-family: Georgia, "Noto Serif", serif; font-size: clamp(1.3rem, 2.6vw, 2rem); }
body.theme-ojs-manuscript .ojs-abbrev { border-style: double; border-width: 3px; }
body.theme-ojs-manuscript .ojs-nav { background: #fffdfa; border-top: 1px solid var(--ojs-line); border-bottom: 1px solid var(--ojs-line); }
body.theme-ojs-manuscript .ojs-nav a { color: var(--ojs-base); border-right: 1px solid var(--ojs-line); font-family: Georgia, serif; }
body.theme-ojs-manuscript .ojs-nav a:last-of-type { border-right: 0; }
body.theme-ojs-manuscript .ojs-nav a:hover,
body.theme-ojs-manuscript .ojs-nav a.active { background: var(--ojs-soft); color: var(--ojs-primary); text-decoration: underline; }
body.theme-ojs-manuscript .ojs-nav .ojs-submit { background: var(--ojs-primary); color: #fff; border: 0; }
body.theme-ojs-manuscript h1,
body.theme-ojs-manuscript h2,
body.theme-ojs-manuscript .toc-article h4 { font-family: Georgia, "Noto Serif", serif; }
body.theme-ojs-manuscript .issue-title { font-style: italic; font-weight: 400; }
body.theme-ojs-manuscript .abstract-box { background: transparent; border: 1px solid var(--ojs-line); border-left: 4px double var(--ojs-base); }
body.theme-ojs-manuscript .abstract-box p,
body.theme-ojs-manuscript .article-body p { text-align: justify; hyphens: auto; }
body.theme-ojs-manuscript .toc-article { border-bottom: 1px dotted var(--ojs-line); }
body.theme-ojs-manuscript .pkp-block { border-top: 3px double var(--ojs-base); }
body.theme-ojs-manuscript .ojs-footer { background: #fffdfa; font-family: Georgia, serif; }

/* 3. PKP OJS 3 Health Sciences — structured issue cards and a two-column article grid. */
body.theme-ojs-healthsciences {
    --ojs-base: #0f766e;
    --ojs-primary: #0d9488;
    --ojs-primary-lift: #14b8a6;
    --ojs-soft: #f0fdfa;
    --ojs-line: #cce7e2;
}
body.theme-ojs-healthsciences .ojs-topline { background: #ecfdf5; }
body.theme-ojs-healthsciences .ojs-header { background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%); }
body.theme-ojs-healthsciences .ojs-brandbar { padding-block: 1.6rem; }
body.theme-ojs-healthsciences .ojs-brand strong { color: #115e59; }
body.theme-ojs-healthsciences .ojs-nav { background: #115e59; }
body.theme-ojs-healthsciences .ojs-nav a { border-radius: 999px; margin-block: .35rem; padding: .45rem .9rem; }
body.theme-ojs-healthsciences .issue-hero {
    background: #fff;
    border: 1px solid var(--ojs-line);
    border-top: 4px solid var(--ojs-primary);
    border-radius: 10px;
    padding: 1.4rem;
    box-shadow: 0 2px 8px rgba(15, 118, 110, .08);
}
body.theme-ojs-healthsciences .toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
body.theme-ojs-healthsciences .toc > h2,
body.theme-ojs-healthsciences .toc-section { grid-column: 1 / -1; }
body.theme-ojs-healthsciences .toc-section { border-bottom-color: var(--ojs-line); margin-bottom: 0; }
body.theme-ojs-healthsciences .toc-article {
    border: 1px solid var(--ojs-line);
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(15, 118, 110, .06);
}
body.theme-ojs-healthsciences .toc-article h4 { font-size: .98rem; }
body.theme-ojs-healthsciences .toc-actions { flex-wrap: wrap; gap: .65rem; }
body.theme-ojs-healthsciences .pkp-block { background: #fff; border: 1px solid var(--ojs-line); border-top: 3px solid var(--ojs-primary); border-radius: 8px; padding: .9rem 1rem 1rem; }
body.theme-ojs-healthsciences .ojs-button { border-radius: 999px; }
body.theme-ojs-healthsciences .abstract-box { border-radius: 8px; border-left-width: 4px; }

/* 4. PKP OJS 3 Classic — issue-led journal edition with a left editorial index. */
body.theme-ojs-classic {
    --ojs-base: #14324f;
    --ojs-primary: #1d4e79;
    --ojs-primary-lift: #2d6a9f;
    --ojs-soft: #f6f3ec;
    --ojs-line: #d9d2c3;
}
body.theme-ojs-classic .ojs-layout { grid-template-columns: 260px minmax(0, 1fr); }
body.theme-ojs-classic .ojs-layout > .ojs-content { order: 2; }
body.theme-ojs-classic .ojs-layout > aside { order: 1; }
body.theme-ojs-classic .ojs-header { border-bottom: 3px solid #b08d57; }
body.theme-ojs-classic .ojs-nav { background: #14324f; border-top: 3px solid #b08d57; }
body.theme-ojs-classic .ojs-brand strong { font-family: Georgia, "Noto Serif", serif; color: #14324f; }
body.theme-ojs-classic h1,
body.theme-ojs-classic h2,
body.theme-ojs-classic .toc-article h4 { font-family: Georgia, "Noto Serif", serif; }
body.theme-ojs-classic .issue-hero { border-bottom: 3px double var(--ojs-line); }
body.theme-ojs-classic .ojs-kicker { color: #8a6a3b; }
body.theme-ojs-classic .toc-section { border-bottom: 2px solid #b08d57; }
body.theme-ojs-classic .pkp-block { border-top: 3px solid #b08d57; }
body.theme-ojs-classic .pkp-block h3 { letter-spacing: .08em; }
body.theme-ojs-classic .ojs-footer { background: #f6f3ec; }
body.theme-ojs-classic .archive-card { border-top: 3px solid #b08d57; }

/* 5. PKP OJS 3 Immersion — full-bleed current-issue hero and visual article cards. */
body.theme-ojs-immersion {
    --ojs-base: #7f1d1d;
    --ojs-primary: #991b1b;
    --ojs-primary-lift: #b91c1c;
    --ojs-soft: #faf5f2;
    --ojs-line: #e5d5cd;
}
body.theme-ojs-immersion .ojs-header { background: #1c1917; border-bottom: 0; }
body.theme-ojs-immersion .ojs-topline { background: #0c0a09; color: #d6d3d1; border-bottom: 1px solid #292524; }
body.theme-ojs-immersion .ojs-topline a { color: #d6d3d1; }
body.theme-ojs-immersion .ojs-brand strong { color: #fff; }
body.theme-ojs-immersion .ojs-brand small { color: #d6d3d1; }
body.theme-ojs-immersion .ojs-abbrev { border-color: #57534e; color: #e7e5e4; }
body.theme-ojs-immersion .ojs-nav { background: #7f1d1d; }
body.theme-ojs-immersion .pkp_navigation_secondary { background: #fff; }
body.theme-ojs-immersion .issue-hero {
    margin-inline: 0;
    padding: 2.2rem;
    background: linear-gradient(120deg, #450a0a 0%, #7f1d1d 55%, #b45309 100%);
    border: 0;
    border-radius: 4px;
    color: #fff;
    align-items: center;
    overflow: hidden;
}
body.theme-ojs-immersion .issue-hero h1,
body.theme-ojs-immersion .issue-hero h2,
body.theme-ojs-immersion .issue-hero p,
body.theme-ojs-immersion .issue-hero .ojs-kicker { color: #fff; }
body.theme-ojs-immersion .issue-hero .ojs-kicker { opacity: .8; }
body.theme-ojs-immersion .issue-hero .ojs-button { background: #fff; border-color: #fff; color: #7f1d1d; }
body.theme-ojs-immersion .issue-hero .issue-cover { box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
body.theme-ojs-immersion .toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
body.theme-ojs-immersion .toc > h2,
body.theme-ojs-immersion .toc-section { grid-column: 1 / -1; }
body.theme-ojs-immersion .toc-article {
    background: #fff;
    border: 1px solid var(--ojs-line);
    border-top: 4px solid #b45309;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(69, 10, 10, .08);
}
body.theme-ojs-immersion .toc-article h4 { font-size: 1rem; }
body.theme-ojs-immersion .pkp-block { border-top: 3px solid #b45309; }

/* 6. PKP OJS 3 Pragma — minimal single-column reading with an abstract-first flow. */
body.theme-ojs-pragma {
    --ojs-base: #374151;
    --ojs-primary: #4b5563;
    --ojs-primary-lift: #6b7280;
    --ojs-soft: #f9fafb;
    --ojs-line: #e5e7eb;
}
body.theme-ojs-pragma .ojs-layout { grid-template-columns: minmax(0, 780px); justify-content: center; }
body.theme-ojs-pragma .ojs-layout > aside { display: none; }
body.theme-ojs-pragma .ojs-header { border-bottom: 1px solid var(--ojs-line); }
body.theme-ojs-pragma .ojs-topline { display: none; }
body.theme-ojs-pragma .ojs-brandbar { padding-block: 1.1rem; }
body.theme-ojs-pragma .ojs-brand strong { font-weight: 500; letter-spacing: -.02em; }
body.theme-ojs-pragma .ojs-nav { background: #fff; border-bottom: 1px solid var(--ojs-line); }
body.theme-ojs-pragma .ojs-nav a { color: var(--ojs-ink); font-weight: 400; }
body.theme-ojs-pragma .ojs-nav a.active { box-shadow: inset 0 -2px 0 var(--ojs-primary); }
body.theme-ojs-pragma .ojs-nav .ojs-submit { background: var(--ojs-ink); color: #fff; }
body.theme-ojs-pragma h1 { font-weight: 500; font-size: 1.7rem; }
body.theme-ojs-pragma h2 { font-weight: 500; }
body.theme-ojs-pragma .issue-hero { grid-template-columns: 160px 1fr; gap: 1.4rem; }
body.theme-ojs-pragma .issue-cover { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
body.theme-ojs-pragma .abstract-box { background: #fff; border: 1px solid var(--ojs-line); border-left: 0; border-top: 2px solid var(--ojs-ink); padding: 1.1rem 0; }
body.theme-ojs-pragma .citation-box { background: #fff; border: 1px solid var(--ojs-line); border-left: 0; }
body.theme-ojs-pragma .toc-article { padding-block: 1rem; }

/* 7. PKP OJS 3 Material Theme — elevated article cards and clean rounded navigation. */
body.theme-ojs-material {
    --ojs-base: #4f46e5;
    --ojs-primary: #4f46e5;
    --ojs-primary-lift: #6366f1;
    --ojs-soft: #eef2ff;
    --ojs-line: #e0e7ff;
    font-family: "Noto Sans", Roboto, "Segoe UI", Arial, sans-serif;
}
body.theme-ojs-material .ojs-topline { background: #eef2ff; }
body.theme-ojs-material .ojs-header { background: #fff; box-shadow: 0 2px 10px rgba(79, 70, 229, .08); border-bottom: 0; }
body.theme-ojs-material .ojs-brand strong { color: #312e81; }
body.theme-ojs-material .ojs-nav { background: #fff; border-bottom: 1px solid #e0e7ff; }
body.theme-ojs-material .ojs-nav a { color: #312e81; border-radius: 999px; margin-block: .35rem; padding: .45rem .9rem; }
body.theme-ojs-material .ojs-nav a:hover,
body.theme-ojs-material .ojs-nav a.active { background: #eef2ff; color: #4338ca; }
body.theme-ojs-material .ojs-nav .ojs-submit { background: #4f46e5; color: #fff; }
body.theme-ojs-material .ojs-main { background: #f8faff; }
body.theme-ojs-material .toc-article {
    background: #fff;
    border: 0;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    margin-bottom: .9rem;
    box-shadow: 0 1px 2px rgba(49, 46, 129, .08), 0 8px 24px rgba(49, 46, 129, .06);
}
body.theme-ojs-material .toc-article h4 a { color: #1e1b4b; }
body.theme-ojs-material .issue-hero { background: #fff; border: 0; border-radius: 14px; padding: 1.4rem; box-shadow: 0 2px 6px rgba(49, 46, 129, .08), 0 16px 40px rgba(49, 46, 129, .06); }
body.theme-ojs-material .ojs-button { border-radius: 999px; text-transform: none; letter-spacing: 0; }
body.theme-ojs-material .pkp-block { border: 0; border-radius: 12px; background: #fff; padding: 1rem 1.1rem; box-shadow: 0 1px 2px rgba(49, 46, 129, .08); }
body.theme-ojs-material .pkp-block h3 { border-bottom-color: #e0e7ff; }
body.theme-ojs-material .abstract-box { border: 0; border-left: 4px solid #4f46e5; border-radius: 10px; }
body.theme-ojs-material .ojs-footer { background: #eef2ff; border-top: 0; }

/* 8. PKP OJS 3 Bootstrap Journal / Readable — academic press with a left issue index. */
body.theme-ojs-bootstrap-journal {
    --ojs-base: #14532d;
    --ojs-primary: #166534;
    --ojs-primary-lift: #15803d;
    --ojs-soft: #f0fdf4;
    --ojs-line: #d1e7d8;
}
body.theme-ojs-bootstrap-journal .ojs-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 2.4rem; }
body.theme-ojs-bootstrap-journal .ojs-layout > .ojs-content { order: 2; }
body.theme-ojs-bootstrap-journal .ojs-layout > aside { order: 1; }
body.theme-ojs-bootstrap-journal .ojs-header { border-bottom: 4px solid #14532d; }
body.theme-ojs-bootstrap-journal .ojs-topline { background: #14532d; color: #dcfce7; border-bottom: 0; }
body.theme-ojs-bootstrap-journal .ojs-topline a { color: #dcfce7; }
body.theme-ojs-bootstrap-journal .ojs-brand strong { font-family: Georgia, "Noto Serif", serif; color: #14532d; }
body.theme-ojs-bootstrap-journal .ojs-nav { background: #fff; border-bottom: 1px solid var(--ojs-line); }
body.theme-ojs-bootstrap-journal .ojs-nav a { color: #14532d; border-bottom: 3px solid transparent; }
body.theme-ojs-bootstrap-journal .ojs-nav a:hover,
body.theme-ojs-bootstrap-journal .ojs-nav a.active { background: transparent; border-bottom-color: #14532d; color: #14532d; }
body.theme-ojs-bootstrap-journal .ojs-nav .ojs-submit { background: #14532d; color: #fff; }
body.theme-ojs-bootstrap-journal h1,
body.theme-ojs-bootstrap-journal h2,
body.theme-ojs-bootstrap-journal .toc-article h4 { font-family: Georgia, "Noto Serif", serif; }
body.theme-ojs-bootstrap-journal .ojs-main { padding-top: 2.2rem; }
body.theme-ojs-bootstrap-journal .issue-hero { border-bottom: 3px double #14532d; padding-bottom: 1.8rem; }
body.theme-ojs-bootstrap-journal .toc-section { border-bottom: 1px solid #14532d; }
body.theme-ojs-bootstrap-journal .toc-article { border-bottom: 1px dotted var(--ojs-line); }
body.theme-ojs-bootstrap-journal .pkp-block { border-top: 3px solid #14532d; }
body.theme-ojs-bootstrap-journal .article-body { column-count: 2; column-gap: 2.2rem; column-rule: 1px solid var(--ojs-line); }
body.theme-ojs-bootstrap-journal .article-body h2 { break-after: avoid; }
body.theme-ojs-bootstrap-journal .article-body p { text-align: justify; hyphens: auto; }
body.theme-ojs-bootstrap-journal .abstract-box { background: #f0fdf4; border-left-color: #14532d; }
body.theme-ojs-bootstrap-journal .ojs-footer { background: #f0fdf4; border-top: 3px solid #14532d; }

@media (max-width: 900px) {
    body.theme-ojs-classic .ojs-layout,
    body.theme-ojs-bootstrap-journal .ojs-layout,
    body.theme-ojs-pragma .ojs-layout { grid-template-columns: 1fr; }
    body.theme-ojs-classic .ojs-layout > .ojs-content,
    body.theme-ojs-bootstrap-journal .ojs-layout > .ojs-content,
    body.theme-ojs-classic .ojs-layout > aside,
    body.theme-ojs-bootstrap-journal .ojs-layout > aside { order: initial; }
    body.theme-ojs-healthsciences .toc,
    body.theme-ojs-immersion .toc { grid-template-columns: 1fr; }
    body.theme-ojs-bootstrap-journal .article-body { column-count: 1; }
    body.theme-ojs-immersion .issue-hero { margin-inline: 0; padding: 1.6rem; }
    body.theme-ojs-classic .ojs-sidebar,
    body.theme-ojs-bootstrap-journal .ojs-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
}
@media (max-width: 640px) {
    body.theme-ojs-pragma .issue-hero { grid-template-columns: 1fr; }
    body.theme-ojs-pragma .ojs-topline { display: block; }
    body.theme-ojs-classic .ojs-sidebar,
    body.theme-ojs-bootstrap-journal .ojs-sidebar { grid-template-columns: 1fr; }
    body.theme-ojs-immersion .issue-hero { padding: 1.25rem; }
}
