/* =========================================================================
   Professional Art Education — theme 1.0.0 (OJS 3.5, child of healthSciences)
   Structural basis: newCollegium 1.1.8, consolidated into a single layer.
   Identity: PAE burgundy (platform Scientific Journals, journalshnpu.com).
   All brand colors are defined once below — edit :root to re-skin.
   ========================================================================= */

:root {
    /* Palette of arteducation.pro (from the journal's own stylesheet):
       accent #6f14d0, hover/active #34036a, dark nav #120f15,
       footer #16062e, link-hover lilac #d9b8ff. */
    --pae-primary: #6f14d0;
    --pae-primary-deep: #34036a;
    --pae-primary-bright: #8d3ae0;
    --pae-dark: #120f15;
    --pae-footer-bg: #16062e;
    --pae-soft: #f8f4fd;
    --pae-lilac: #d9b8ff;
    --pae-lilac-pale: #e9d6ff;
    --pae-ink: #1a1523;
    --pae-muted: #6b6478;
    --pae-line: #e7e1f0;
    --pae-surface: #ffffff;
    --pae-bg: #faf9fc;
    --pae-logo-max-height: 150px;
}

html { scroll-behavior: smooth; }
html, body.pae-theme { min-height: 100%; }

body.pae-theme {
    display: flex;
    flex-direction: column;
    color: var(--pae-ink);
    background: var(--pae-bg);
    font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.pae-theme .pkp_structure_page {
    display: flex;
    flex: 1 0 auto;
    min-height: 100vh;
    flex-direction: column;
    max-width: none;
    background: transparent;
}

/* Screen-reader skip links must not appear in the visual design. */
body.pae-theme .cmp_skip_to_content a,
body.pae-theme .cmp_skip_to_content,
body.pae-theme .pkp_screen_reader {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

body.pae-theme .pkp_structure_head {
    position: relative !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: var(--pae-footer-bg) url(/pae/foto/header.png) no-repeat center center !important;
    background-size: cover !important;
    border-bottom: 3px solid var(--pae-primary) !important;
    box-shadow: 0 10px 30px rgba(22, 6, 46, .22);
}

body.pae-theme .pkp_head_wrapper {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
    max-width: 1300px !important;
    margin: 0 auto;
    min-height: 128px;
    padding: 16px 28px 12px !important;
    box-sizing: border-box;
}

/* Journal's own uploaded banner/logo (pageHeaderLogoImage) is kept as-is. */
body.pae-theme .pkp_site_name_wrapper {
    order: 1;
    position: static !important;
    display: flex !important;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.pae-theme .pkp_site_name {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

body.pae-theme .pkp_site_name a {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.2vw, 2.35rem) !important;
    line-height: 1.08 !important;
    letter-spacing: .02em;
    text-decoration: none !important;
    text-shadow: none !important;
}

body.pae-theme .pkp_site_name a img {
    display: block;
    max-height: var(--pae-logo-max-height);
    width: auto;
    max-width: min(700px, 70vw);
    object-fit: contain;
}

/* Theme-owned header actions: language switcher + account controls. */
body.pae-theme .pae-header-actions {
    order: 2;
    display: inline-flex !important;
    position: relative !important;
    z-index: 60;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
}

body.pae-theme .pae-header-actions .pae-language-switcher,
body.pae-theme .pae-header-actions .pae-account-bar {
    position: static !important;
    margin: 0 !important;
}

/* Language switcher with UA/EN flags. */
body.pae-theme .pae-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    background: rgba(18, 15, 21, .45);
    backdrop-filter: blur(5px);
}

body.pae-theme .pae-language-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 7px;
    color: rgba(255,255,255,.85) !important;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

body.pae-theme .pae-language-link svg {
    display: block;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.32);
}

body.pae-theme .pae-language-link:hover,
body.pae-theme .pae-language-link:focus {
    color: #fff !important;
    background: rgba(255,255,255,.16);
    transform: translateY(-1px);
}

body.pae-theme .pae-language-link.is-active {
    background: var(--pae-primary) !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

/* The inherited sidebar language block duplicates the switcher. */
body.pae-theme .pae-hide-language-block,
body.pae-theme .pkp_block.block_language {
    display: none !important;
}

/* Account controls (guest buttons or authenticated dropdown). */
body.pae-theme .pkp_navigation_user_wrapper > .pkp_navigation_user,
body.pae-theme .pkp_navigation_user_wrapper > ul,
body.pae-theme .pkp_navigation_user {
    display: none !important;
}

body.pae-theme .pae-account-bar {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    visibility: visible !important;
    opacity: 1 !important;
}

body.pae-theme .pae-account-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 10px;
    color: #fff !important;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none !important;
}

body.pae-theme .pae-account-bar a:hover { background: rgba(255,255,255,.16); }

body.pae-theme .pae-account-bar__register {
    background: var(--pae-primary);
    border-color: var(--pae-primary) !important;
    color: #fff !important;
}

body.pae-theme .pae-account-bar__register:hover { background: var(--pae-primary-deep) !important; }

body.pae-theme .pae-account-menu { position: relative; }

body.pae-theme .pae-account-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
body.pae-theme .pae-account-menu > summary::-webkit-details-marker { display: none; }
body.pae-theme .pae-account-menu > summary:hover,
body.pae-theme .pae-account-menu[open] > summary { background: rgba(255,255,255,.16); }
body.pae-theme .pae-account-menu__icon { font-size: 1rem; line-height: 1; }
body.pae-theme .pae-account-menu__chevron { font-size: 1rem; transition: transform .18s ease; }
body.pae-theme .pae-account-menu[open] .pae-account-menu__chevron { transform: rotate(180deg); }

body.pae-theme .pae-account-menu__panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--pae-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(22, 6, 46, .26);
}
body.pae-theme .pae-account-menu__panel a {
    display: block;
    min-height: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--pae-primary-deep) !important;
    background: transparent;
    font-size: .88rem;
    text-align: left;
    text-decoration: none !important;
}
body.pae-theme .pae-account-menu__panel a:hover { background: var(--pae-soft) !important; }
body.pae-theme .pae-account-menu__panel .pae-account-menu__logout {
    margin-top: 5px;
    border-top: 1px solid var(--pae-line);
    border-radius: 0 0 8px 8px;
    color: #a52d2d !important;
}

/* ------------------------------------------------------------------ */
/* Primary navigation — comes from OJS settings, submenus included.    */
/* ------------------------------------------------------------------ */

body.pae-theme .pkp_site_nav_menu {
    order: 3;
    position: static !important;
    display: block !important;
    flex: 1 1 100%;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: var(--pae-dark) !important;
    margin-left: -28px !important;
    margin-right: -28px !important;
    padding: 0 28px !important;
}

body.pae-theme .pkp_navigation_primary_wrapper {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
}

body.pae-theme .pkp_navigation_primary {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 24px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

body.pae-theme .pkp_navigation_primary > li {
    position: relative;
    margin: 0 !important;
}

body.pae-theme .pkp_navigation_primary > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 !important;
    color: rgba(255,255,255,.94) !important;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
}

body.pae-theme .pkp_navigation_primary > li > a:hover,
body.pae-theme .pkp_navigation_primary > li > a:focus,
body.pae-theme .pkp_navigation_primary > li:focus-within > a {
    color: #fff !important;
    border-bottom-color: var(--pae-primary);
    background: var(--pae-primary-deep);
}

/* Dropdown submenus. */
body.pae-theme .pkp_navigation_primary li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: -14px;
    z-index: 80;
    min-width: 280px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--pae-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(22, 6, 46, .26);
}

body.pae-theme .pkp_navigation_primary li:hover > ul,
body.pae-theme .pkp_navigation_primary li:focus-within > ul {
    display: block;
}

body.pae-theme .pkp_navigation_primary li > ul li { margin: 0; }

body.pae-theme .pkp_navigation_primary li > ul a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--pae-ink) !important;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none !important;
}

body.pae-theme .pkp_navigation_primary li > ul a:hover,
body.pae-theme .pkp_navigation_primary li > ul a:focus {
    background: var(--pae-primary-deep);
    color: #fff !important;
}

/* Search entry in the header row. */
body.pae-theme .pkp_search {
    position: static !important;
    margin: 0 !important;
    color: #fff !important;
}
body.pae-theme .pkp_search a,
body.pae-theme .pkp_search button,
body.pae-theme .pkp_search .search_prompt {
    color: #fff !important;
}

/* Desktop: the parent theme's hamburger is unnecessary. */
body.pae-theme .pkp_site_nav_toggle { display: none !important; }

/* ------------------------------------------------------------------ */
/* Page layout                                                         */
/* ------------------------------------------------------------------ */

body.pae-theme .pkp_structure_content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
    flex: 1 0 auto;
    width: 100%;
    max-width: 1300px !important;
    min-height: 0 !important;
    margin: 0 auto;
    padding: 32px 26px 54px !important;
    box-sizing: border-box;
}

body.pae-theme .pkp_structure_main {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
}

body.pae-theme .pkp_structure_sidebar {
    width: auto !important;
    min-height: 0 !important;
    align-self: start !important;
    background: var(--pae-surface);
    border: 1px solid var(--pae-line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 14px 38px rgba(19, 34, 56, .07);
}

body.pae-theme .pkp_block {
    min-height: 0 !important;
    border-bottom: 1px solid var(--pae-line);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
body.pae-theme .pkp_block:last-child { border-bottom: 0; margin-bottom: 0; }
body.pae-theme .pkp_block .title {
    color: var(--pae-primary-deep);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
    font-weight: 800;
}

body.pae-theme a { color: var(--pae-primary); }
body.pae-theme a:hover { color: var(--pae-primary-deep); }

/* ------------------------------------------------------------------ */
/* Homepage hero, facts, scope, quick menu (injected by theme JS)      */
/* ------------------------------------------------------------------ */

.pae-home-intro { margin-bottom: 34px; }

.pae-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 38px;
    min-height: 400px;
    padding: clamp(34px, 5vw, 72px);
    border-radius: 28px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 16%, rgba(217, 184, 255, .22), transparent 26%),
        radial-gradient(circle at 14% 110%, rgba(255, 255, 255, .08), transparent 22%),
        linear-gradient(135deg, var(--pae-footer-bg) 0%, var(--pae-primary-deep) 52%, var(--pae-primary) 100%);
    box-shadow: 0 28px 60px rgba(22, 6, 46, .30);
}
.pae-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 4, 20, .22), transparent 52%);
    pointer-events: none;
}
.pae-hero__copy, .pae-monogram { position: relative; z-index: 1; }

.pae-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--pae-lilac-pale);
    font-size: .83rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.pae-kicker::before { content: ""; width: 34px; height: 2px; background: var(--pae-primary-bright); }

.pae-hero h1 {
    margin: 0 0 18px;
    color: #fdf9fb !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.025em;
    text-shadow: 0 2px 16px rgba(10, 4, 20, .25);
}

.pae-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255,255,255,.93) !important;
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    line-height: 1.7;
}

.pae-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.pae-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pae-btn:hover { transform: translateY(-2px); }
.pae-btn--primary { background: #fff; color: var(--pae-primary-deep) !important; box-shadow: 0 10px 25px rgba(0,0,0,.22); }
.pae-btn--secondary { background: var(--pae-lilac); color: var(--pae-footer-bg) !important; }
.pae-btn--ghost { border: 1px solid rgba(255,255,255,.45); color: #fff !important; }

/* PAE monogram — matches the sj-monogram mark on journalshnpu.com. */
.pae-monogram {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 250px;
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.pae-monogram::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(217, 184, 255, .55);
    border-radius: 50%;
}
.pae-monogram span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5.4rem;
    letter-spacing: -.06em;
    line-height: 1;
}

.pae-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    margin: 22px 0;
    border: 1px solid var(--pae-line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--pae-line);
    box-shadow: 0 14px 34px rgba(19, 34, 56, .05);
}
.pae-facts article { padding: 22px 18px; background: #fff; }
.pae-facts strong { display: block; color: var(--pae-primary-deep); font-size: 1.02rem; }
.pae-facts span { display: block; margin-top: 6px; color: var(--pae-muted); font-size: .85rem; line-height: 1.35; }

.pae-scope {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    padding: 34px;
    border: 1px solid #e8def5;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff, var(--pae-soft));
}
.pae-section-label {
    color: var(--pae-primary);
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.pae-scope h2 {
    margin: 8px 0 12px;
    color: var(--pae-primary-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}
.pae-scope p { margin: 0; color: var(--pae-muted); line-height: 1.7; }

.pae-specialties { display: grid; grid-template-columns: 1fr; gap: 12px; align-content: center; }
.pae-specialties span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid #e3d5f3;
    border-radius: 12px;
    background: #fff;
    color: var(--pae-primary-deep);
    font-weight: 700;
    font-size: .92rem;
}
.pae-specialties b {
    flex: 0 0 auto;
    color: var(--pae-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

/* Quick menu grid (journal information). */
body.pae-theme .pae-journal-menu {
    margin-top: 26px;
    padding: 30px 34px;
    border: 1px solid #e8def5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(19, 34, 56, .06);
}
body.pae-theme .pae-journal-menu__head h2 {
    margin: 8px 0 18px;
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-family: Georgia, "Times New Roman", serif;
}
body.pae-theme .pae-journal-menu__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}
body.pae-theme .pae-journal-menu__item {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid #ddc9f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, var(--pae-soft));
    color: var(--pae-primary-deep) !important;
    font-weight: 750;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.pae-theme .pae-journal-menu__item:hover {
    border-color: #c9a7e8;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(52, 3, 106, .10);
}

/* ------------------------------------------------------------------ */
/* Content pages, issues, articles                                     */
/* ------------------------------------------------------------------ */

body.pae-theme .page_index_journal .current_issue,
body.pae-theme .obj_issue_summary,
body.pae-theme .obj_article_summary,
body.pae-theme .page_issue,
body.pae-theme .page_article,
body.pae-theme .page_about,
body.pae-theme .page_search,
body.pae-theme .page_submissions,
body.pae-theme .page_announcements,
body.pae-theme .page {
    background: #fff;
    border: 1px solid var(--pae-line);
    border-radius: 20px;
    padding: clamp(22px, 3vw, 36px);
    box-shadow: 0 14px 38px rgba(19, 34, 56, .06);
}

/* Do not double-wrap nested objects. */
body.pae-theme .page .obj_article_summary,
body.pae-theme .page_issue .obj_article_summary {
    box-shadow: none;
    border-radius: 14px;
}

body.pae-theme .current_issue_title,
body.pae-theme .page_title,
body.pae-theme h1,
body.pae-theme h2 {
    color: var(--pae-primary-deep);
}

body.pae-theme .obj_issue_summary .cover img,
body.pae-theme .page_issue .cover img,
body.pae-theme .current_issue .cover img {
    border-radius: 10px;
    box-shadow: 0 16px 34px rgba(19, 34, 56, .18);
}

body.pae-theme .obj_article_summary {
    margin-bottom: 16px;
    transition: transform .18s ease, box-shadow .18s ease;
}
body.pae-theme .obj_article_summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(52, 3, 106, .10);
}
body.pae-theme .obj_article_summary .title a {
    color: var(--pae-primary-deep);
    font-weight: 800;
}

body.pae-theme .obj_galley_link,
body.pae-theme .galleys_links a {
    border-radius: 9px;
}

body.pae-theme .cmp_button,
body.pae-theme .pkp_button,
body.pae-theme button,
body.pae-theme input[type="submit"] {
    border-radius: 10px;
}

/* ------------------------------------------------------------------ */
/* Footer — the journal's own dark-violet footer (journalshnpu style).  */
/* Content comes from OJS settings; column classes are the journal's.   */
/* ------------------------------------------------------------------ */

body.pae-theme .pkp_structure_footer_wrapper {
    display: block !important;
    margin-top: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: var(--pae-footer-bg) url(/pae/foto/futer.png) no-repeat center center !important;
    background-size: cover !important;
    border-top: 3px solid var(--pae-primary);
}

body.pae-theme .pkp_structure_footer {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.pae-theme .pkp_footer_content {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 30px 14px !important;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: .9rem;
    line-height: 1.5;
    text-align: left;
}

body.pae-theme .pkp_footer_content a {
    color: #fff;
    text-decoration: none;
}
body.pae-theme .pkp_footer_content a:hover {
    color: var(--pae-lilac);
    text-decoration: underline;
}

body.pae-theme .pkp_footer_content > p:empty { display: none; }

body.pae-theme .pkp_footer_content_col {
    flex: 1 1 220px;
    padding-left: 10px;
    font-size: 14px;
    line-height: 20px;
}
body.pae-theme .pkp_footer_content_col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.pae-theme .pkp_footer_content_col ul li:not(:last-child) { margin-bottom: 5px; }

body.pae-theme .pkp_footer_content h4,
body.pae-theme .pkp_footer_content_col h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
}

body.pae-theme .pkp_footer_content_number { margin: 0; }

body.pae-theme .pkp_footer_content_hnpu {
    margin: -12px auto 0;
    max-width: 160px;
    align-self: flex-start;
}
body.pae-theme .pkp_footer_content_hnpu img { max-width: 160px; height: auto; }

body.pae-theme .pkp_footer_license_col p { margin: 0; }
body.pae-theme .pkp_footer_license_col img {
    max-width: 110px;
    height: auto;
    margin-bottom: 8px;
}

/* OJS/PKP emblem as the last footer column, tinted light orange. */
body.pae-theme .pkp_brand_footer { display: none !important; }
body.pae-theme .pkp_footer_ojs_col { flex: 0 0 auto; align-self: flex-end; }
body.pae-theme .pkp_footer_ojs_col a { display: inline-block; max-width: 70px; }
body.pae-theme .pkp_footer_ojs_col img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) invert(70%) sepia(65%) saturate(1200%)
            hue-rotate(357deg) brightness(105%);
}

@media (max-width: 640px) {
    body.pae-theme .pkp_footer_content_col { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ */
/* Single theme-owned back-to-top control (newCollegium 1.1.8 final)   */
/* ------------------------------------------------------------------ */

body.pae-theme .back-to-top,
body.pae-theme .scroll-to-top,
body.pae-theme .go-to-top,
body.pae-theme .to-top,
body.pae-theme .top-link,
body.pae-theme [class*="back-to-top"]:not(.pae-scroll-top),
body.pae-theme [class*="back_to_top"]:not(.pae-scroll-top),
body.pae-theme [class*="scroll-to-top"]:not(.pae-scroll-top),
body.pae-theme [class*="scroll_to_top"]:not(.pae-scroll-top),
body.pae-theme [class*="go-to-top"],
body.pae-theme [class*="go_to_top"],
body.pae-theme [id*="back-to-top"],
body.pae-theme [id*="scroll-to-top"],
body.pae-theme [id*="go-to-top"],
body.pae-theme [id*="go_to_top"],
body.pae-theme [id*="to-top"],
body.pae-theme [id*="to_top"] {
    display: none !important;
}

body.pae-theme .pae-scroll-top,
body.pae-theme .pae-scroll-top[hidden] {
    position: fixed !important;
    right: 18px !important;
    bottom: 16px !important;
    left: auto !important;
    top: auto !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e3d5f3 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--pae-primary) !important;
    box-shadow: 0 8px 24px rgba(22, 6, 46, .20) !important;
    cursor: pointer !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(8px) !important;
    pointer-events: none !important;
    transition: .18s ease !important;
}

body.pae-theme .pae-scroll-top.is-visible,
body.pae-theme .pae-scroll-top.is-visible[hidden] {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

body.pae-theme .pae-scroll-top svg {
    width: 27px !important;
    height: 27px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body.pae-theme .pae-scroll-top.is-visible:hover,
body.pae-theme .pae-scroll-top.is-visible:focus-visible {
    transform: translateY(-2px) !important;
    color: var(--pae-primary-deep) !important;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
    .pae-facts { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .pae-hero { grid-template-columns: minmax(0,1fr) 220px; }
    .pae-monogram { width: 210px; height: 210px; }
    .pae-monogram span { font-size: 4.4rem; }
    body.pae-theme .pae-journal-menu__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 1000px) {
    body.pae-theme .pkp_structure_content { grid-template-columns: minmax(0, 1fr); }
    body.pae-theme .pkp_structure_sidebar { width: 100% !important; }
    body.pae-theme .pae-header-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 900px) {
    body.pae-theme .pkp_structure_content { padding: 22px 16px 60px !important; }
    .pae-hero { grid-template-columns: 1fr; min-height: auto; }
    .pae-monogram { display: none; }
    .pae-scope { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body.pae-theme .pkp_head_wrapper {
        display: block !important;
        padding: 16px 18px !important;
    }

    body.pae-theme .pkp_site_name_wrapper { padding-right: 50px !important; }
    body.pae-theme .pkp_site_name a img { max-width: 78vw; max-height: 96px; }

    body.pae-theme .pae-header-actions {
        display: flex !important;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 12px;
    }
    body.pae-theme .pae-account-menu__panel { left: 0; right: auto; }

    body.pae-theme .pkp_site_nav_toggle {
        position: absolute !important;
        top: 22px;
        right: 18px;
        display: block !important;
        color: #fff !important;
        background: transparent !important;
        border: 1px solid rgba(255,255,255,.45) !important;
        border-radius: 8px;
    }

    body.pae-theme .pkp_site_nav_menu { display: none !important; margin-top: 14px !important; }

    body.pae-theme .pkp_site_nav_menu--isOpen,
    body.pae-theme .pkp_site_nav_menu.is_open,
    body.pae-theme .pkp_site_nav_menu[aria-expanded="true"] {
        display: block !important;
    }

    body.pae-theme .pkp_navigation_primary { display: grid !important; gap: 0; }

    body.pae-theme .pkp_navigation_primary > li > a {
        min-height: 0;
        padding: 11px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.16);
    }

    /* Submenus render inline on small screens. */
    body.pae-theme .pkp_navigation_primary li > ul,
    body.pae-theme .pkp_navigation_primary li:hover > ul,
    body.pae-theme .pkp_navigation_primary li:focus-within > ul {
        display: block;
        position: static;
        min-width: 0;
        margin: 0 0 6px;
        padding: 0 0 0 16px;
        border: 0;
        border-left: 2px solid rgba(255,255,255,.25);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    body.pae-theme .pkp_navigation_primary li > ul a {
        padding: 8px 0;
        color: rgba(255,255,255,.85) !important;
        background: transparent !important;
    }

    .pae-hero { padding: 30px 22px; border-radius: 20px; }
    .pae-hero h1 { font-size: 2.15rem; }
    .pae-hero__actions { display: grid; }
    .pae-btn { width: 100%; }
    .pae-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .pae-facts article { padding: 16px 13px; }
    .pae-scope { padding: 24px 20px; }
    body.pae-theme .pae-journal-menu { padding: 24px 20px; }
    body.pae-theme .pae-journal-menu__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    body.pae-theme .pkp_structure_sidebar { border-radius: 14px; }
}

@media (max-width: 560px) {
    body.pae-theme .pae-journal-menu__grid { grid-template-columns: 1fr; }
    .pae-facts { grid-template-columns: 1fr; }
}

/* =========================================================================
   2.0.0 — server-rendered homepage (indexJournal.tpl) and cover gallery
   ========================================================================= */

/* Hero cover — the current issue cover is the central visual element. */
.pae-hero__cover {
    position: relative;
    z-index: 1;
    display: block;
    width: 270px;
    margin-left: auto;
    text-decoration: none !important;
    transition: transform .22s ease;
}
.pae-hero__cover:hover { transform: translateY(-6px); }
.pae-hero__cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 5px solid rgba(255,255,255,.92);
    box-sizing: border-box;
    box-shadow: 0 30px 60px rgba(20, 4, 11, .45), 0 6px 18px rgba(20, 4, 11, .3);
}
.pae-hero__cover-label {
    display: block;
    margin-top: 14px;
    color: var(--pae-lilac);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-align: center;
    text-transform: uppercase;
}

/* The issue TOC below repeats the cover — the hero already shows it. */
body.pae-theme.pkp_page_index.pkp_op_index .pae-current .cover,
body.pae-theme.pkp_page_index.pkp_op_index .pae-current .obj_issue_toc .cover {
    display: none !important;
}

/* Homepage sections rendered by the template. */
body.pae-theme .pae-current,
body.pae-theme .pae-about,
body.pae-theme .pae-announcements,
body.pae-theme .pae-additional {
    margin-top: 26px;
    background: #fff;
    border: 1px solid var(--pae-line);
    border-radius: 20px;
    padding: clamp(22px, 3vw, 36px);
    box-shadow: 0 14px 38px rgba(19, 34, 56, .06);
}

body.pae-theme .pae-current .current_issue_title,
body.pae-theme .pae-about h2,
body.pae-theme .pae-announcements h2 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
}

body.pae-theme .pae-announcements .obj_announcement_summary {
    padding: 16px 0;
    border-bottom: 1px solid var(--pae-line);
}
body.pae-theme .pae-announcements .obj_announcement_summary:last-child { border-bottom: 0; padding-bottom: 0; }

body.pae-theme .pae-homepage-image { margin-top: 26px; }
body.pae-theme .pae-homepage-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(19, 34, 56, .10);
}

/* ------------------------------------------------------------------ */
/* Archive as a cover gallery                                          */
/* ------------------------------------------------------------------ */

body.pae-theme .page_issue_archive .issues_archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 28px 24px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

body.pae-theme .page_issue_archive .issues_archive > li {
    margin: 0;
    padding: 0;
}

body.pae-theme .page_issue_archive .obj_issue_summary {
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

body.pae-theme .page_issue_archive .obj_issue_summary .cover {
    display: block;
    margin: 0 0 14px;
}

body.pae-theme .page_issue_archive .obj_issue_summary .cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(19, 34, 56, .18);
    transition: transform .22s ease, box-shadow .22s ease;
}

body.pae-theme .page_issue_archive .obj_issue_summary:hover .cover img {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(52, 3, 106, .26);
}

body.pae-theme .page_issue_archive .obj_issue_summary .title {
    display: block;
    color: var(--pae-primary-deep);
    font-weight: 800;
    font-size: .98rem;
    line-height: 1.35;
    text-decoration: none !important;
}

body.pae-theme .page_issue_archive .obj_issue_summary .series {
    display: block;
    margin-top: 4px;
    color: var(--pae-muted);
    font-size: .85rem;
}

@media (max-width: 900px) {
    .pae-hero__cover { display: none; }
}

@media (max-width: 560px) {
    body.pae-theme .page_issue_archive .issues_archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }
}

/* =========================================================================
   2.1.0 — hardened compatibility with the Default parent theme
   ========================================================================= */

/* Images must never overflow their column (giant covers fix). */
body.pae-theme .pkp_structure_main img,
body.pae-theme .pkp_structure_sidebar img,
body.pae-theme .pkp_footer_content img {
    max-width: 100% !important;
    height: auto !important;
}

/* Issue page cover: constrained, framed, centered. */
body.pae-theme .page_issue .cover,
body.pae-theme .obj_issue_toc .cover {
    display: block;
    max-width: 380px;
    margin: 0 auto 22px;
}
body.pae-theme .page_issue .cover img,
body.pae-theme .obj_issue_toc .cover img {
    display: block;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(19, 34, 56, .18);
}

/* Navigation row from the Default theme: transparent on the burgundy header. */
body.pae-theme .pkp_navigation_primary_row,
body.pae-theme .pkp_navigation_primary_wrapper {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.pae-theme .pkp_navigation_primary_wrapper {
    display: flex !important;
    align-items: center;
    gap: 18px;
    width: 100%;
}

/* Guarantee visible menu items regardless of parent-theme state. */
body.pae-theme .pkp_navigation_primary,
body.pae-theme ul#navigationPrimary {
    display: flex !important;
    flex-wrap: wrap;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    overflow: visible !important;
}
body.pae-theme .pkp_navigation_primary > li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
body.pae-theme .pkp_navigation_primary > li > a {
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap;
}

/* Search sits at the right end of the menu row. */
body.pae-theme .pkp_navigation_search_wrapper {
    margin-left: auto !important;
    background: transparent !important;
}
body.pae-theme a.pkp_search,
body.pae-theme .pkp_search_desktop {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: rgba(255,255,255,.94) !important;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
}
body.pae-theme a.pkp_search:hover,
body.pae-theme a.pkp_search:focus {
    color: #fff !important;
    border-bottom-color: var(--pae-lilac);
}

/* Breadcrumbs: inline path, no list numbering. */
body.pae-theme .cmp_breadcrumbs ol,
body.pae-theme .cmp_breadcrumbs ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none !important;
    font-size: .86rem;
}
body.pae-theme .cmp_breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--pae-muted);
}
body.pae-theme .cmp_breadcrumbs li::marker { content: none; }
body.pae-theme .cmp_breadcrumbs a { color: var(--pae-primary); text-decoration: none; }
body.pae-theme .cmp_breadcrumbs a:hover { text-decoration: underline; }
body.pae-theme .cmp_breadcrumbs .separator { color: var(--pae-muted); }

/* Galley buttons (PDF / HTML): burgundy chips, readable everywhere. */
body.pae-theme .obj_galley_link,
body.pae-theme a.obj_galley_link,
body.pae-theme .galleys_links a,
body.pae-theme ul.galleys_links a {
    display: inline-flex !important;
    align-items: center;
    min-height: 32px;
    padding: 3px 14px !important;
    border: 1px solid var(--pae-primary) !important;
    border-radius: 9px !important;
    background: var(--pae-primary) !important;
    color: #fff !important;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
body.pae-theme .obj_galley_link:hover,
body.pae-theme .galleys_links a:hover {
    background: var(--pae-primary-deep) !important;
    border-color: var(--pae-primary-deep) !important;
    color: #fff !important;
}
body.pae-theme .galleys_links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
}
body.pae-theme .galleys_links li { margin: 0; }

/* Default-theme user nav stays hidden; theme account bar replaces it. */
body.pae-theme #navigationUserWrapper { display: none !important; }

/* =========================================================================
   2.1.1 — pin grid placement: main left, sidebar right.
   The Default 3.5 theme marks the sidebar "left" and assigns grid positions
   of its own; neutralize them explicitly.
   ========================================================================= */

body.pae-theme .pkp_structure_content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    grid-template-areas: none !important;
    grid-auto-flow: row !important;
}

body.pae-theme .pkp_structure_main {
    grid-area: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 0 !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
}

body.pae-theme .pkp_structure_sidebar,
body.pae-theme .pkp_structure_sidebar.left {
    grid-area: auto !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: 0 !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
}

/* Pages without a sidebar: main spans the full row. */
body.pae-theme .pkp_structure_content:not(.has_sidebar) {
    grid-template-columns: minmax(0, 1fr) !important;
}
body.pae-theme .pkp_structure_content:not(.has_sidebar) .pkp_structure_main {
    grid-column: 1 / -1 !important;
}

@media (max-width: 1000px) {
    body.pae-theme .pkp_structure_content {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    body.pae-theme .pkp_structure_main {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    body.pae-theme .pkp_structure_sidebar,
    body.pae-theme .pkp_structure_sidebar.left {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}

/* =========================================================================
   2.2.0 — rules ported from the journal's own stylesheet
   ========================================================================= */

/* Custom sidebar accordion menu (ul.menu custom block). */
body.pae-theme ul.menu,
body.pae-theme ul.menu ul {
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    max-width: 15em;
}
body.pae-theme ul.menu a {
    display: block;
    text-decoration: none;
    text-align: left;
    font-size: 15px;
}
body.pae-theme ul.menu li a,
body.pae-theme ul.menu ul.menu li a {
    padding: .5em;
    color: #fff;
    background: var(--pae-dark);
    border-radius: 6px;
    margin-bottom: 2px;
}
body.pae-theme ul.menu li a:hover,
body.pae-theme ul.menu ul.menu li a:hover { background: var(--pae-primary-deep); }
body.pae-theme ul.menu li ul li a,
body.pae-theme ul.menu ul.menu li ul li a {
    background: #fff;
    color: var(--pae-dark);
    padding-left: 15px;
}
body.pae-theme ul.menu li ul li a:hover,
body.pae-theme ul.menu ul.menu li ul li a:hover {
    background: #fff;
    border-left: 6px solid var(--pae-primary-deep);
    padding-left: 12px;
}
body.pae-theme ul.menu a.active,
body.pae-theme ul.menu ul.menu li a.active {
    color: #fff;
    background: var(--pae-primary-deep);
}
body.pae-theme ul.menu .acitem p { margin: 3px 0; line-height: 1.35; font-size: 14px; }
body.pae-theme ul.menu .acitem a { color: var(--pae-primary-deep); text-decoration: none; }
body.pae-theme ul.menu .acitem a:hover { text-decoration: underline; }

/* Custom indexing block image sizing. */
body.pae-theme #customblock-vse img {
    width: 150px !important;
    height: 60px !important;
    object-fit: contain;
}

/* Announcement images float right (his rule, kept verbatim). */
body.pae-theme .obj_announcement_full img,
body.pae-theme .obj_announcement_full .description img,
body.pae-theme .page_announcement img,
body.pae-theme .obj_announcement_summary img,
body.pae-theme .cmp_announcements img {
    float: right !important;
    width: 230px !important;
    max-width: 230px !important;
    height: auto !important;
    margin: 0 0 15px 25px !important;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    border-radius: 8px;
}

/* Issue TOC spacing tweaks (his rules). */
body.pae-theme .obj_issue_toc .galleys {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
body.pae-theme .obj_issue_toc .sections {
    margin-top: -20px !important;
    padding-top: 0 !important;
}

body.pae-theme .inline { display: inline-block; margin-right: 5px; }
