/**
 * plugins/themes/digitalbishtx/styles/overrides.css
 *
 * IJRCSM theme styles, loaded after the Tabler / OJS CSS bundle:
 *  - the colour palette (CSS variables in :root — change colours here)
 *  - layout fixes so the Tabler markup renders cleanly in OJS
 *  - the IJRCSM design layer at the end of the file (header, navigation,
 *    sidebar, homepage, footer, contact page).
 */

/* ---- Base type & body (IBM Plex Sans everywhere, like the target) ---- */
:root {
    --ap-font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* ---- IJRCSM palette: midnight indigo + teal + amber ---- */
    --ap-ink: #0f172a;            /* headings */
    --ap-text: #1e2433;           /* body text */
    --ap-muted: #5a6478;          /* secondary text */
    --ap-line: #e3e8f2;           /* card borders */
    --ap-line-soft: #edf1f7;      /* dividers */
    --ap-primary: #1e3a8a;        /* indigo */
    --ap-primary-dark: #172554;
    --ap-link: #1d4ed8;
    --ap-accent: #0f766e;         /* teal (buttons, icons) */
    --ap-accent-dark: #115e59;
    --ap-accent-bright: #2dd4bf;  /* teal on dark backgrounds */
    --ap-amber: #f59e0b;          /* calls to action */
    --ap-amber-dark: #b45309;
    --ap-tint: #eef3ff;           /* indigo tint */
    --ap-tint-teal: #e7f6f4;      /* teal tint */
    --ap-tint-amber: #fff4e0;     /* amber tint */

    /* bars */
    --ap-header-bg: #0a1633;
    --ap-titlebar-bg: radial-gradient(circle at 88% 12%, rgba(45, 212, 191, .32) 0%, rgba(45, 212, 191, 0) 38%),
                      linear-gradient(115deg, #0b1d4d 0%, #1e3a8a 52%, #0f766e 100%);
    --ap-nav-bg: #0f2557;
    --ap-footer-bg: radial-gradient(circle at 10% 0%, rgba(30, 58, 138, .55) 0%, rgba(30, 58, 138, 0) 45%), #0a1633;
    --ap-gradient-line: linear-gradient(90deg, #2dd4bf 0%, #3b82f6 50%, #f59e0b 100%);
    --ap-amber-grad: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #f97316 100%);
    --ap-shadow: 0 12px 28px -20px rgba(15, 37, 87, .55);
}
body#scroll,
body.antialiased,
.navbar, .nav-link, .nav-link-title, .dropdown-menu, .dropdown-item,
.card, .card-body, .card-btn, .btn, .title, .meta, .info, .authors,
.journal-title, .breadcrumb, .footer,
h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, .text-h3 {
    font-family: var(--ap-font);
}

/* ---- Palette (values in :root) ---- */
.ap-header        { background: var(--ap-header-bg); }
.ap-titlebar      { background: var(--ap-titlebar-bg); }
.ap-nav           { background: var(--ap-nav-bg); border-top: 0; }
.ap-footer        { background: var(--ap-footer-bg); border-top: 0; }
.ap-titlebar a    { color: #ffffff; }

/* ---- Black brand-bar navigation ---- */
.ap-header .nav-link,
.ap-header .nav-link.topnav,
.ap-header .navbar-nav .nav-link,
.ap-header .nav-link-title { color: #ffffff !important; }
.ap-header .nav-link:hover { color: var(--ap-accent-bright) !important; }
.ap-header .nav-link-icon .icon { width: 20px; height: 20px; vertical-align: middle; }
.ap-header .navbar-nav { gap: .25rem; }

/* ---- Grey "Journal Info" navigation bar ---- */
.ap-nav { padding: 0; }
/* keep the nav's items aligned to the same container width as the page body */
.ap-nav-inner { width: 100%; display: flex; flex-wrap: wrap; align-items: stretch; }
.ap-nav-inner > .navbar-collapse { width: 100%; flex-basis: 100%; }
.ap-nav .navbar-nav { width: 100%; display: flex; flex-direction: row; margin: 0; padding: 0; }
.ap-nav .gggg { text-align: center; display: flex; }
.ap-nav .nav-link,
.ap-nav .dropdown-toggle { color: #ffffff; font-weight: bold; width: 100%; }
.ap-nav .gggg > .nav-link,
.ap-nav .gggg > .dropdown-toggle { display: block; padding: 1rem .75rem; }
/* Sub-navbar (dropdown): white panel (styled in the design layer below). */
.ap-nav .dropdown-menu {
    background-color: #ffffff;
    border: 0;
    border-radius: 0;
    min-width: 807px;
    max-width: 92vw;
    padding: .4rem;
}
/* show on hover / click */
.ap-nav .dropdown-menu.show,
.nav-item.gggg.dropdown:hover > .dropdown-menu { display: block; }
.ap-nav .dropdown-menu .dropdown-divider { display: none; }
.ap-nav .dropdown-menu .dropdown-item.hhgg {
    color: var(--ap-ink);
    white-space: normal;
    padding: .8rem 1rem;
    width: 100%;
    display: block;
    font-weight: 600;
}

/* Dynamic mega-menu: 3 columns laid out column-major (top-to-bottom),
   matching the static "Journal Info" mega menu. */
.ap-nav .dropdown-menu.ap-megamenu {
    column-count: 3;
    column-gap: 0;
}
.ap-nav .dropdown-menu.ap-megamenu > li {
    display: block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    border-right: 1px solid rgba(15,23,42,.06);
}
@media (max-width: 767.98px) {
    .ap-nav .dropdown-menu { min-width: 220px; max-width: 96vw; }
    .ap-nav .dropdown-menu.ap-megamenu { column-count: 1; }
}


/* ---- Original inline styles (verbatim behaviour) ---- */
.col-md-4.indx { box-shadow: 0px 0px 10px -4px blue; }

.gggg { font-size: medium; font-weight: 600; }
.gggg a { color: #ffffff; }
.gggg a:hover { text-decoration: none; }

/* Mobile "Menu" hover dropdown (styled in the design layer below) */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; z-index: 1030; }
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content { display: block; }

.articlebg:hover { box-shadow: 0px 0px 10px 0px; }
.topnav { color: white !important; }
#_navigationUser { color: white; font-weight: bold; }


/* ---- Layout safeguards ---- */
.content { padding-top: 0; }
.custom-container { max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: 12px; padding-right: 12px; }
.journal-title a { text-decoration: none; }

/* The "Journal Info" mega dropdown should open on hover on desktop too */
@media (min-width: 992px) {
    .nav-item.gggg.dropdown:hover > .dropdown-menu { display: block; }
}

/* Article summary cards spacing */
.obj_issue_summary { margin-bottom: 1rem; }
.obj_issue_summary .cover img { max-width: 100%; height: auto; }

/* =========================================================================
   Alignment fixes to match the target
   ========================================================================= */

/* ---- Sticky sidebars sit just below the sticky nav ---- */
.custom-sticky-top { position: -webkit-sticky; position: sticky; top: 72px; }


/* ---- Article summary card ---- */
.obj_article_summary .d-flex > span { display: flex; align-items: center; }
.obj_article_summary .title a { color: #1a1a1a; text-decoration: none; }
.obj_article_summary .title a:hover { text-decoration: underline; }
.obj_article_summary .meta .authors a { text-decoration: none; }
/* PDF / Full article / View Abstract row = equal-width buttons */
.obj_article_summary > .d-flex.flex-wrap,
.article_galleys { border-top: 1px solid var(--ap-line); }
.obj_article_summary .card-btn,
.article_galleys .card-btn {
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: .85rem 1rem;
    border-right: 1px solid var(--ap-line);
    color: #1a1a1a;
    text-decoration: none;
}
.obj_article_summary .card-btn:last-child,
.article_galleys .card-btn:last-child { border-right: 0; }
.obj_article_summary .card-btn .icon { vertical-align: middle; }

/* ---- Keyword cloud box ---- */
#wordcloud { min-height: 170px; }

/* ---- Nested homepage columns: align gutters with target ---- */
.page_index_journal > .row { margin-left: -12px; margin-right: -12px; }

/* ---- Breadcrumb bar (indigo tint) ---- */
.cmp_breadcrumbs, nav.breadcrumb, .breadcrumb {
    background-color: var(--ap-tint);
    padding: 8px 12px;
    border-radius: 0;
    margin-top: 0;
}
.cmp_breadcrumbs a, .breadcrumb a, .breadcrumb-item a { color: #000000; text-decoration: none; }
.cmp_breadcrumbs ol, .cmp_breadcrumbs .breadcrumb, .breadcrumb { margin-bottom: 0; }

/* =========================================================================
   Header / footer overlap fixes
   ========================================================================= */

/* ---- Black brand bar: clean flex layout (brand left, nav+user right) ---- */
.ap-header { padding: .4rem 0; }
.ap-header-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 1.25rem;
    row-gap: .25rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}
.ap-brand { flex: 0 1 auto; margin-right: auto; min-width: 0; }
.ap-brand a { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; }
.ap-brand a .text-white { white-space: normal; line-height: 1.2; }
.ap-brand img { max-width: 180px; max-height: 56px; height: auto; width: auto; }

.ap-header-nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: 1.5rem; row-gap: .25rem; }
.ap-primary-nav, .ap-user-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .6rem; list-style: none; margin: 0; padding: 0; }
.ap-header-nav a {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .55rem;
    white-space: nowrap;
    font-weight: 600;
}
.ap-header-nav a:hover { color: #ffffff; }
.ap-header-nav .icon { flex: 0 0 auto; }
.ap-user-nav { font-weight: 700; }
.ap-user-nav a { font-weight: 700; }

/* Hamburger toggle — hidden on desktop */
.ap-nav-toggle { display: none; background: none; border: 1px solid #ffffff; color: #fff; padding: .3rem .5rem; border-radius: 4px; cursor: pointer; line-height: 0; }

/* ---- Responsive: collapse the header nav on small screens ---- */
@media (max-width: 991.98px) {
    .ap-nav-toggle { display: inline-flex; }
    .ap-header-nav {
        display: none;
        flex-basis: 100%;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        column-gap: 0;
        margin-top: .5rem;
        border-top: 1px solid rgba(255,255,255,.12);
        padding-top: .5rem;
    }
    .ap-header-nav.open { display: flex; }
    .ap-primary-nav, .ap-user-nav { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
    .ap-header-nav a { padding: .6rem .25rem; width: 100%; }
}

/* ---- Grey title bar: spacing so name + ISSN + search don't collide ---- */
.ap-titlebar > .row { align-items: center; }
.ap-titlebar .journal-title { line-height: 1.2; word-break: break-word; }
.ap-titlebar .journal-title a { display: inline-block; line-height: 1.2; }
.ap-titlebar .journal-title br { line-height: 1; }
.ap-titlebar .card { margin: 0; }

/* Footer, homepage and sidebar styles: see the IJRCSM design layer at the end. */

/* ---- Mobile: stack the columns cleanly ---- */
@media (max-width: 991.98px) {
    .ap-nav .navbar-nav { flex-direction: column; }
    .ap-nav .gggg { width: 100% !important; }
    .ap-journal-sidebar, .custom-sticky-top { position: static; top: auto; }
    /* sidebar drops below the main content on mobile */
    .pkp_structure_sidebar { margin-top: 1.5rem; }
}

@media (max-width: 767.98px) {
    body#scroll { margin-left: 0 !important; margin-right: 0 !important; overflow-x: hidden; }
    .custom-container, .ap-header-inner { padding-left: 12px; padding-right: 12px; }
    .ap-titlebar .journal-title.col-lg-9 { font-size: 18px; }
    .ap-titlebar .journal-title .ap-journal-name { font-size: 1.2rem; }
    .ap-titlebar .col-lg-3 { margin-top: .5rem; }
    /* article card meta strip + buttons wrap on small screens */
    .obj_article_summary .d-flex { flex-wrap: wrap; }
    .obj_article_summary .card-btn { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--ap-line); }
    /* article detail: stack the "On this page" sidebar above content */
    .obj_article_details.row > .displaysmall { display: block !important; }
    .obj_article_details.row > [class*="col-md-8"] { width: 100%; }
    /* keyword cloud full width */
    #wordcloud svg { width: 100%; height: auto; }
    /* footer columns stack with spacing */
    .ap-footer .row { row-gap: 1.25rem; }
}

/* prevent any element from forcing horizontal scroll on mobile */
@media (max-width: 575.98px) {
    img, svg, table { max-width: 100%; height: auto; }
}

/* =========================================================================
   Justified body text in the main content column (like the target site)
   ========================================================================= */
.content main,
.content main p,
.content main li,
.content main .value,
.content main .section-content,
.content main .abstract,
.content main .description,
.content main .card-body,
.obj_article_details .value,
.obj_article_summary .meta,
.obj_issue_summary .description,
.modal-body,
.additional_content,
.page_index_journal .current_issue,
.page_view .value {
    text-align: justify;
    text-justify: inter-word;
}

/* keep headings, titles, nav, buttons and meta-strips left-aligned */
.content main h1,
.content main h2,
.content main h3,
.content main h4,
.content main h5,
.content main h6,
.content main .title,
.content main .page_title,
.content main .card-btn,
.content main .ribbon,
.content main .d-flex,
.content main .breadcrumb,
.content main .authors {
    text-align: left;
    text-justify: auto;
}

/* =========================================================================
   FINAL POLISH — consistent spacing, padding, margins & typography
   ========================================================================= */

/* ---- Vertical rhythm / base typography ---- */
body#scroll { color: var(--ap-text); line-height: 1.6; font-size: 15px; }
.content { padding-top: 1.25rem; padding-bottom: 2.5rem; }
.custom-container { padding-left: 16px; padding-right: 16px; }
main h1, main h2, main h3, main h4 { line-height: 1.3; margin-top: 0; margin-bottom: .65rem; color: var(--ap-ink); }
main p { margin-bottom: 1rem; }
main a { color: var(--ap-link); }
main a:hover { color: var(--ap-primary-dark); }
main ul, main ol { margin-bottom: 1rem; }
hr { margin: 1.5rem 0; opacity: .12; }

/* ---- Page titles & breadcrumb ---- */
.cmp_breadcrumbs, nav.breadcrumb, .breadcrumb {
    margin: 0 0 1.25rem;
    padding: 10px 14px;
    font-size: .9rem;
    border-radius: 6px;
}
.page_title, main > .page h1, .obj_article_details .page_title { font-size: 1.7rem; margin-bottom: 1rem; }
.current_issue_title { font-size: 1.35rem; margin-bottom: 1rem; }

/* ---- Cards (generic) ---- */
.card { border: 1px solid var(--ap-line); border-radius: 8px; margin-bottom: 1.25rem; }
.card-body { padding: 1.1rem 1.25rem; }
.card-footer { padding: .9rem 1.25rem; }

/* ---- Article summary card ---- */
.obj_article_summary { border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem; transition: box-shadow .15s ease; }
.obj_article_summary:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.obj_article_summary .d-flex > span { padding: .6rem .9rem; font-size: .82rem; color: var(--ap-muted); }
.obj_article_summary .card-body { padding: 1.1rem 1.25rem; }
.obj_article_summary .title { margin: 0 0 .6rem; font-size: 1.15rem; line-height: 1.35; }
.obj_article_summary .title a { color: var(--ap-primary); }
.obj_article_summary .meta { margin-bottom: .5rem; }
.obj_article_summary .meta .authors { line-height: 1.5; }
.obj_article_summary .meta .authors a { color: var(--ap-link); }
.obj_article_summary .info { font-size: .9rem; color: var(--ap-muted); margin-top: .6rem; }
.obj_article_summary .info .doi a { word-break: break-all; }
.obj_article_summary .card-btn { padding: .8rem 1rem; font-weight: 600; font-size: .92rem; transition: background-color .15s ease; }
.obj_article_summary .card-btn:hover { background-color: #f3f4f6; }
.obj_article_summary .ribbon { font-size: .72rem; letter-spacing: .03em; }

/* ---- Article detail ---- */
.obj_article_details { margin-top: .25rem; }
.obj_article_details .page_title { font-size: 1.7rem; line-height: 1.3; }
.obj_article_details .authors li { margin-bottom: .4rem; line-height: 1.5; }
.obj_article_details .authors .name { color: var(--ap-primary); }
.obj_article_details .article-date-content span { padding: .65rem .9rem; font-size: .88rem; }
.obj_article_details .item.section { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--ap-line-soft); }
.obj_article_details .item.section .label { font-size: 1.2rem; margin-bottom: .65rem; }
.obj_article_details .nav-sections .nav-link { padding: .6rem .85rem; font-size: .92rem; }
.obj_article_details .badge { font-weight: 500; padding: .4em .7em; margin-bottom: .35rem; font-size: .82rem; }
.obj_article_details .article_galleys { gap: 0; margin: 1rem 0 1.25rem; }

/* ---- Galley / card buttons (shared) ---- */
.card-btn { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.card-btn .icon { width: 18px; height: 18px; }


/* ---- Issue archive grid ---- */
.issues_archive { margin-top: .5rem; }
.obj_issue_summary { border: 1px solid var(--ap-line); border-radius: 8px; padding: 1rem; height: 100%; transition: box-shadow .15s ease; background:#fff; }
.obj_issue_summary:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.obj_issue_summary .cover { display: block; margin-bottom: .85rem; }
.obj_issue_summary h2 { font-size: 1.1rem; margin: 0 0 .5rem; line-height: 1.3; }
.obj_issue_summary .description { font-size: .9rem; color: var(--ap-muted); }

/* ---- Header / title bar / nav vertical padding ---- */
.ap-header { padding: .5rem 0; }
.ap-titlebar { padding: .35rem 0; }
.ap-titlebar .journal-title { padding: .85rem 1rem; }
.ap-nav .gggg > .nav-link, .ap-nav .gggg > .dropdown-toggle { padding: .9rem .75rem; }
.ap-nav .dropdown-menu .dropdown-item.hhgg { padding: .8rem 1rem; }


/* ---- Modals ---- */
.modal-content { border: 0; border-radius: 10px; }
.modal-header { padding: 1rem 1.25rem; }
.modal-body { padding: 1.1rem 1.25rem; line-height: 1.7; }
.modal-title { font-size: 1.2rem; }

/* ---- Forms / search ---- */
.searchbtn { padding: .45rem .9rem; border-radius: 4px; }
.form-control { padding: .5rem .75rem; }

/* ---- Tables & figures inside content ---- */
main table { width: 100%; margin: 1rem 0; }
main img, main figure img { max-width: 100%; height: auto; border-radius: 4px; }
main blockquote { border-left: 3px solid #d7dade; padding-left: 1rem; color: var(--ap-muted); margin: 1rem 0; }

/* ---- Pagination ---- */
.cmp_pagination, .pkp_pagination { margin-top: 1.5rem; }

/* ---- Smooth focus / accessibility ---- */
a, .card-btn, .nav-link, button { transition: color .12s ease, background-color .12s ease; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: 2px; }

/* =========================================================================
   Article header polish
   ========================================================================= */
.obj_article_details .page_title {
    font-family: var(--ap-font) !important;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ap-ink);
    margin-bottom: .35rem;
}
.obj_article_details .subtitle {
    font-family: var(--ap-font) !important;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--ap-muted);
    margin-bottom: .5rem;
}
.ap-article-eyebrow { gap: .5rem; }
.ap-section-tag {
    display: inline-block;
    background: var(--ap-tint);
    color: var(--ap-primary);
    font-weight: 600;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .28rem .65rem;
    border-radius: 4px;
}
.ap-oa-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--ap-amber-dark);
    font-weight: 700;
    font-size: .85rem;
}
.ap-oa-badge svg { stroke: var(--ap-amber-dark); }

.obj_article_details .authors { margin-top: 1rem; }
.obj_article_details .authors .name { font-size: 1.05rem; color: var(--ap-primary); }
.obj_article_details .authors .affiliation { color: var(--ap-muted); }

/* meta strip as a clean info bar */
.obj_article_details .article-date-content {
    background: #f7f8fa;
    border: 1px solid var(--ap-line-soft) !important;
    border-radius: 8px;
    margin: 1.4rem 0 !important;
    align-items: stretch;
}
.obj_article_details .article-date-content span {
    padding: .85rem 1.1rem;
    font-size: .9rem;
    color: #3a3f48;
    display: flex;
    align-items: center;
}
.obj_article_details .article-date-content .border-start { border-color: #e2e5e9 !important; }

/* galley buttons: clear, bordered, coloured icons, hover */
.article_galleys { border: 1px solid var(--ap-line); border-radius: 8px; overflow: hidden; margin: 1.25rem 0; }
.article_galleys .card-btn {
    flex: 1 1 0;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1rem;
    font-weight: 600;
    color: var(--ap-primary);
    border-right: 1px solid var(--ap-line);
    background: #fff;
}
.article_galleys .card-btn:last-child { border-right: 0; }
.article_galleys .card-btn:hover { background: var(--ap-tint); }
.article_galleys .card-btn .icon { width: 20px; height: 20px; opacity: 1; }
.article_galleys .card-btn .icon { color: var(--ap-primary); stroke: currentColor; }
.article_galleys .card-btn.pdf { color: #b3261e; }
.article_galleys .card-btn.pdf .icon { color: #b3261e; }

/* Kill the old FontAwesome 4 pseudo-icons from the copied CSS (we load FA5,
   so \f1c1 / \f0f6 render as broken tofu boxes). Our inline SVGs replace them. */
.obj_galley_link:before,
.obj_galley_link.pdf:before,
.obj_galley_link.restricted:before,
.obj_galley_link_supplementary:after { content: none !important; }

/* =========================================================================
   Article page — padding / margins for all content
   ========================================================================= */
.page_article { padding-bottom: 1rem; }
.obj_article_details .col-md-8 { padding-left: 1.25rem; padding-right: .5rem; }
@media (max-width: 991.98px) { .obj_article_details .col-md-8 { padding-left: .75rem; } }

.obj_article_details .page_title { margin: 0 0 .5rem; }
.obj_article_details .subtitle { margin-bottom: .75rem; }
.obj_article_details .authors { margin: 1.1rem 0 1.35rem; }
.obj_article_details .authors li { margin-bottom: .5rem; }

/* meta strip */
.obj_article_details .article-date-content { margin: 1.5rem 0 !important; }

/* galley buttons */
.obj_article_details .article_galleys { margin: 1.35rem 0 1.85rem; }
.article_galleys .card-btn { text-transform: uppercase; letter-spacing: .02em; padding: 1rem; }

/* content sections: clear separation + comfortable reading */
.obj_article_details .item.section { margin-top: 2rem; padding-top: 1.5rem; }
.obj_article_details .item.section:first-of-type { margin-top: 1.25rem; }
.obj_article_details .item.section .label { margin: 0 0 1rem; font-size: 1.3rem; font-weight: 700; color: var(--ap-ink); }
.obj_article_details .section-content { line-height: 1.85; color: var(--ap-text); }
.obj_article_details .section-content p { margin-bottom: 1rem; }
.obj_article_details .section-content p:last-child { margin-bottom: 0; }
.obj_article_details .keywords .section-content { line-height: 2; }

/* "On this page" sidebar spacing + active highlight */
.obj_article_details .displaysmall .card-body { padding: 1rem; }
.obj_article_details .nav-sections { margin-bottom: 1rem; }
.obj_article_details .nav-sections .nav-link { padding: .65rem .9rem; color: var(--ap-primary); }
.obj_article_details .nav-sections .nav-item.current > .nav-link,
.obj_article_details .nav-sections .nav-item:hover > .nav-link { background: var(--ap-tint); color: var(--ap-primary-dark); font-weight: 600; }
/* sections sit below the sticky nav when scrolled/anchored */
.obj_article_details .item.section { scroll-margin-top: 90px; }

/* Authors: one continuous row of names, wrapping only when out of width.
   Uses its own class names so the copied CSS's `.authors .name { display:block }`
   can never apply. */
.obj_article_details .ap-authors-line { margin: .6rem 0 .5rem; line-height: 1.7; }
.obj_article_details .ap-author-name { display: inline; font-size: 1.05rem; font-weight: 700; color: var(--ap-primary); }
.obj_article_details .ap-author-sep { display: inline; color: var(--ap-muted); font-weight: 400; }

/* Legacy authors markup (other templates) — keep inline as well */
.obj_article_details .authors.list-inline { margin: .75rem 0 1rem; padding-left: 0; list-style: none; }
.obj_article_details .authors li,
.obj_article_details .authors .list-inline-item { display: inline-block; margin: 0 .3rem 0 0; }
/* custom.css sets .authors .name { display:block } — undo it so names stay in one row */
.obj_article_details .authors .name { display: inline; font-size: 1.05rem; color: var(--ap-primary); }
.obj_article_details .authors .ap-sep { display: inline; color: var(--ap-muted); }

/* Author affiliations */
.obj_article_details .ap-affil-list { font-size: .95rem; color: #3a3f48; }
.obj_article_details .ap-affil-item { margin-bottom: .35rem; line-height: 1.5; }
.obj_article_details .ap-affil-name { font-weight: 600; color: var(--ap-ink); }

/* Keyword badges */
.obj_article_details .ap-keyword-badge {
    display: inline-block;
    background: var(--ap-tint);
    color: var(--ap-primary);
    font-weight: 500;
    font-size: .85rem;
    padding: .4em .8em;
    margin: 0 .35rem .4rem 0;
    border-radius: 20px;
    text-decoration: none;
}
.obj_article_details .ap-keyword-badge:hover { background: var(--ap-primary); color: #fff; }

/* Publication information table */
.ap-pubinfo-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ap-pubinfo-table th, .ap-pubinfo-table td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--ap-line-soft); vertical-align: top; }
.ap-pubinfo-table th { width: 38%; color: var(--ap-muted); font-weight: 600; white-space: nowrap; }
.ap-pubinfo-table td { color: var(--ap-text); }
.ap-pubinfo-table tr:last-child th, .ap-pubinfo-table tr:last-child td { border-bottom: 0; }

/* Citation formats block (CSL plugin) */
.citations-formats .csl-entry, .citations-formats .citation_formats { margin-bottom: .5rem; }
.citations-formats .value > * { max-width: 100%; }

/* Remove the copied CSS's heavy .item padding (authors, affiliations, etc.) */
.obj_article_details .item { padding: 0 !important; border-bottom: 0 !important; margin: 0; }
.obj_article_details .item.authors { margin: .6rem 0 .25rem !important; }
.obj_article_details .item.affiliations { margin: 0 0 1.1rem !important; }
.obj_article_details .authors { padding-right: 0 !important; }

/* Statistics tiles */
.ap-stat-tiles { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.ap-stat-tile {
    flex: 1 1 140px;
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background: #f9fafb;
}
.ap-stat-tile svg { color: var(--ap-accent); }
.ap-stat-num { font-size: 1.6rem; font-weight: 700; color: var(--ap-ink); line-height: 1.1; margin-top: .35rem; }
.ap-stat-cap { font-size: .85rem; color: var(--ap-muted); text-transform: uppercase; letter-spacing: .04em; }
.obj_article_details .stats canvas.usageStatsGraph { max-width: 100%; }
.obj_article_details .stats .usageStatsUnavailable { margin: 0; }

/* Consistent section rhythm + headings on the article page */
/* Simple sections: override the copied .section's huge padding / negative margins */
.obj_article_details .item.section {
    position: static;
    margin: 1.3rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--ap-line-soft);
}
.obj_article_details .item.section:first-of-type { border-top: 0; margin-top: .5rem; padding-top: .25rem; }
.obj_article_details .item.section > .label { font-size: 1.25rem; font-weight: 700; color: var(--ap-ink); margin: 0 0 .8rem; }
.obj_article_details .item.section > .section-content { margin: 0; padding: 0; }
.obj_article_details .page_title { margin-bottom: .4rem; }
.obj_article_details .ap-article-eyebrow { margin-bottom: .75rem; }
.obj_article_details .authors.list-inline { margin-bottom: .35rem; }
.obj_article_details .affiliations { margin-bottom: 1.25rem; padding-bottom: .25rem; }

/* =========================================================================
   Homepage "Keywords" cloud (colour-tag fallback + D3 upgrade)
   ========================================================================= */
/* ---- Homepage left sidebar: framed card with padding ---- */
.page_index_journal .col-md-4 > .shadow.custom-sticky-top {
    background: #ffffff;
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    overflow: hidden;
}
.page_index_journal .col-md-4 .card-body { padding: 1rem; }
.page_index_journal .homepage_image { margin: 0 0 1rem; }
.page_index_journal .homepage_image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 1px 8px rgba(0,0,0,.12);
}

.ap-keywords-title {
    padding: 5px 6px;
    text-align: center;
    background: linear-gradient(90deg, var(--ap-primary) 0%, var(--ap-accent) 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: .75rem 0 .5rem;
    border-radius: 2px;
}
.ap-keyword-cloud { padding: .75rem .4rem; text-align: center; line-height: 2.1; min-height: 150px; }
.ap-keyword-cloud .ap-kw {
    display: inline-block;
    margin: .1rem .35rem;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    cursor: pointer;
    opacity: .88;
    transition: opacity .12s ease;
}
.ap-keyword-cloud .ap-kw:hover { opacity: 1; text-decoration: underline; }
.ap-keyword-cloud svg text { font-family: Georgia, serif; }
/* varied colours (IJRCSM palette — keep in sync with js/wordcloud.js) */
.ap-keyword-cloud .ap-kw:nth-child(10n+1){color:#1e3a8a}
.ap-keyword-cloud .ap-kw:nth-child(10n+2){color:#0f766e}
.ap-keyword-cloud .ap-kw:nth-child(10n+3){color:#b45309}
.ap-keyword-cloud .ap-kw:nth-child(10n+4){color:#7c3aed}
.ap-keyword-cloud .ap-kw:nth-child(10n+5){color:#be123c}
.ap-keyword-cloud .ap-kw:nth-child(10n+6){color:#0369a1}
.ap-keyword-cloud .ap-kw:nth-child(10n+7){color:#047857}
.ap-keyword-cloud .ap-kw:nth-child(10n+8){color:#c2410c}
.ap-keyword-cloud .ap-kw:nth-child(10n+9){color:#4338ca}
.ap-keyword-cloud .ap-kw:nth-child(10n){color:#0e7490}
/* varied sizes */
.ap-keyword-cloud .ap-kw:nth-child(4n+1){font-size:1rem}
.ap-keyword-cloud .ap-kw:nth-child(4n+2){font-size:1.3rem}
.ap-keyword-cloud .ap-kw:nth-child(4n+3){font-size:.9rem}
.ap-keyword-cloud .ap-kw:nth-child(4n){font-size:1.18rem}

/* =========================================================================
   Auto "On this page" TOC for content pages (About, policies, static pages)
   ========================================================================= */
.ap-page-with-toc { margin-top: .25rem; }
.ap-page-toc .shadow.custom-sticky-top { border: 1px solid var(--ap-line); border-radius: 8px; overflow: hidden; background: #fff; top: 84px; }
.ap-page-toc .card-body { padding: .5rem; }
.ap-page-toc .nav-sections { margin: 0; border: 0 !important; box-shadow: none !important; }
.ap-page-toc .nav-sections .nav-link { padding: .7rem .9rem; color: var(--ap-primary); font-weight: 500; line-height: 1.35; }
.ap-page-toc .nav-sections .nav-item .nav-link.font-weight-bold { color: var(--ap-ink); font-weight: 700; background: #fff; }
.ap-page-toc .nav-sections .nav-item.current > .nav-link,
.ap-page-toc .nav-sections .nav-item:hover > .nav-link { background: var(--ap-tint); color: var(--ap-primary-dark); }
.ap-page-toc .ap-toc-h3 .nav-link { padding-left: 1.7rem; font-size: .9rem; }

.ap-page-content { padding-left: 1.5rem; }
.ap-page-content h2, .ap-page-content h3 { scroll-margin-top: 90px; }
@media (max-width: 767.98px) {
    .ap-page-toc { margin-bottom: 1.25rem; }
    .ap-page-content { padding-left: .75rem; }
}

/* Contact page */
.page_contact .contact_section h2 { font-size: 1.2rem; font-weight: 700; color: var(--ap-ink); margin-bottom: .5rem; }
.page_contact .contact { margin-bottom: 1.5rem; }
.page_contact .editorial-office .name { font-size: 1.05rem; }
.page_contact .editorial-office .title { color: var(--ap-muted); }
.page_contact .address { line-height: 1.6; }

/* Author affiliations are a plain institution list — no numbering (see .ap-affil-list above) */

/* =========================================================================
   IJRCSM DESIGN LAYER
   Header, title bar, navigation, sidebar, homepage, footer, contact page.
   All colours come from the variables in :root at the top of this file.
   ========================================================================= */

::selection { background: rgba(45, 212, 191, .3); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ap-accent-bright); outline-offset: 2px; }

/* ---- Top brand bar ---- */
.ap-header { background: var(--ap-header-bg); border-bottom: 1px solid rgba(255,255,255,.06); }
.ap-brand a .ap-brand-mark {
    font-size: 1.4rem; font-weight: 800; letter-spacing: .12em;
    background: linear-gradient(90deg, #ffffff 0%, var(--ap-accent-bright) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent !important;
}
.ap-header-nav a { color: #dbe4f3; font-weight: 500; font-size: .92rem; border-radius: 8px; }
.ap-header-nav a:hover { color: #ffffff; background: rgba(255,255,255,.08); }
.ap-header-nav .icon { color: var(--ap-accent-bright); width: 18px; height: 18px; }
.ap-user-nav a {
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    padding: .38rem 1rem !important;
    color: #ffffff;
    font-weight: 600;
}
.ap-user-nav a:hover { background: #ffffff; color: var(--ap-primary); border-color: #ffffff; }
.ap-nav-toggle { border-color: rgba(255,255,255,.35); border-radius: 8px; }

/* ---- Title bar ---- */
.ap-titlebar {
    background: var(--ap-titlebar-bg);
    position: relative;
    overflow: hidden;
    padding: 1.1rem 0 1.25rem;
    color: #ffffff;
}
/* subtle dot-grid texture, fading in from the left */
.ap-titlebar::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
    pointer-events: none;
}
.ap-titlebar .custom-container { position: relative; z-index: 1; }
.ap-titlebar .journal-title { padding: .45rem 1rem; color: #ffffff; }
.ap-titlebar .journal-title .ap-journal-name {
    display: inline-block;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.ap-titlebar .journal-title .ap-journal-name:hover { color: #ffffff; text-decoration: none; }
.ap-journal-meta {
    display: flex; flex-wrap: wrap; align-items: center; row-gap: .2rem;
    margin-top: .55rem;
    color: #dbe7ff;
    font-size: .95rem;
}
.ap-journal-meta > span + span::before { content: "|"; margin: 0 .7rem; color: rgba(255,255,255,.4); }
.ap-journal-meta strong { color: #ffffff; font-weight: 600; }
.ap-titlebar .ap-journal-meta a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,.45);
}
.ap-titlebar .ap-journal-meta a:hover { color: var(--ap-accent-bright); border-bottom-color: var(--ap-accent-bright); }
.ap-journal-tags { list-style: none; margin: .85rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.ap-journal-tags li {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .32rem .85rem;
    border-radius: 999px;
    font-size: .8rem; font-weight: 600; letter-spacing: .02em;
    color: #ffffff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ap-journal-tags li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ap-accent-bright); box-shadow: 0 0 0 3px rgba(45,212,191,.25); }
.ap-journal-tags li:nth-child(4n+2)::before { background: #93c5fd; box-shadow: 0 0 0 3px rgba(147,197,253,.25); }
.ap-journal-tags li:nth-child(4n+3)::before { background: var(--ap-amber); box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
.ap-journal-tags li:nth-child(4n)::before   { background: #c4b5fd; box-shadow: 0 0 0 3px rgba(196,181,253,.25); }

/* search pill */
.ap-titlebar .journal-title .ap-search-trigger {
    display: flex; align-items: center; gap: .65rem;
    width: 100%;
    padding: .55rem .55rem .55rem 1.1rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ap-ink) !important;
    text-decoration: none !important;
    box-shadow: 0 14px 30px -12px rgba(0,0,0,.55);
    font-size: .95rem;
    line-height: 1.3;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ap-titlebar .journal-title .ap-search-trigger:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(0,0,0,.6); }
.ap-search-trigger > svg:first-child { color: var(--ap-accent); flex: 0 0 auto; }
.ap-search-trigger > span { flex: 1 1 auto; color: var(--ap-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-search-trigger .ap-search-arrow {
    flex: 0 0 34px; width: 34px; height: 34px; padding: 7px;
    border-radius: 50%;
    background: var(--ap-amber-grad);
    color: #1f1300;
}

/* ---- Main navigation bar ---- */
.ap-nav-wrap { z-index: 1020; }
.ap-nav {
    background: var(--ap-nav-bg);
    padding: 0;
    position: relative;
    box-shadow: 0 8px 20px -12px rgba(10,22,51,.7);
}
.ap-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ap-gradient-line); pointer-events: none; }
.ap-nav .navbar-nav > .gggg {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    position: relative;
    border-left: 0;
    border-right: 1px solid rgba(255,255,255,.08);
}
.ap-nav .navbar-nav > .gggg:first-child { border-left: 1px solid rgba(255,255,255,.08); }
.ap-nav .navbar-nav > .gggg > .nav-link {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem .75rem 1.1rem;
    color: #e6ecf8;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
    background: transparent;
    text-decoration: none;
    border-radius: 0;
}
.ap-nav .navbar-nav > .gggg > .nav-link::before {
    content: "";
    position: absolute; left: 50%; bottom: 3px;
    width: 0; height: 3px; border-radius: 3px 3px 0 0;
    background: var(--ap-accent-bright);
    transition: left .2s ease, width .2s ease;
}
.ap-nav .navbar-nav > .gggg > .nav-link:hover,
.ap-nav .navbar-nav > .gggg:hover > .nav-link,
.ap-nav .navbar-nav > .gggg.show > .nav-link,
.ap-nav .navbar-nav > .gggg > .nav-link.show,
.ap-nav .navbar-nav > .gggg.ap-current > .nav-link {
    color: #ffffff !important;
    background: rgba(255,255,255,.07) !important;
    text-decoration: none;
}
.ap-nav .navbar-nav > .gggg > .nav-link:hover::before,
.ap-nav .navbar-nav > .gggg:hover > .nav-link::before,
.ap-nav .navbar-nav > .gggg.ap-current > .nav-link::before { left: 18%; width: 64%; }
.ap-nav .navbar-nav > .gggg > .dropdown-toggle::after { margin-left: .45rem; opacity: .8; }

/* Dropdowns from the OJS Primary menu: white panel. A parent with more than
   4 children (e.g. "Journal Info") opens as 3 columns filled top-to-bottom;
   smaller ones as a single column. */
.ap-nav .dropdown-menu {
    top: 100%;
    left: 0;
    margin-top: 0;
    padding: .6rem;
    background: #ffffff;
    border: 0;
    border-top: 3px solid var(--ap-accent-bright);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 28px 50px -14px rgba(10,22,51,.45);
}
.ap-nav .dropdown-menu.ap-megamenu { min-width: 780px; column-count: 3; column-gap: .4rem; column-fill: balance; }
.ap-nav .dropdown-menu.ap-submenu { min-width: 270px; }
.ap-nav .dropdown-menu.ap-megamenu > li,
.ap-nav .dropdown-menu.ap-submenu > li { display: block; list-style: none; border-right: 0; margin-bottom: .15rem; break-inside: avoid; }
/* keep a wide panel inside the window (class set by js/digitalbisht.js) */
.ap-nav .dropdown-menu.ap-dropdown-end { left: auto; right: 0; }
.ap-nav .dropdown-menu .dropdown-item.hhgg {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem .85rem;
    border-radius: 10px;
    color: var(--ap-ink);
    background: transparent;
    font-size: .93rem;
    font-weight: 600;
    white-space: normal;
    text-align: left;
    text-decoration: none;
}
.ap-nav .dropdown-menu .dropdown-item.hhgg i {
    flex: 0 0 36px; width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: .95rem;
    background: var(--ap-tint-teal);
    color: var(--ap-accent);
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.ap-nav .dropdown-menu .dropdown-item.hhgg:hover,
.ap-nav .dropdown-menu .dropdown-item.hhgg:focus,
.ap-nav .dropdown-menu .dropdown-item.hhgg.ap-active { background: var(--ap-tint); color: var(--ap-primary); }
.ap-nav .dropdown-menu .dropdown-item.hhgg:hover i,
.ap-nav .dropdown-menu .dropdown-item.hhgg.ap-active i { background: var(--ap-accent); color: #ffffff; transform: scale(1.05); }
/* OJS menu items carry no icon: show a teal arrow marker */
.ap-nav .dropdown-menu .dropdown-item.hhgg::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free"; font-weight: 900;
    flex: 0 0 30px; width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    font-size: .9rem;
    background: var(--ap-tint-teal);
    color: var(--ap-accent);
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.ap-nav .dropdown-menu .dropdown-item.hhgg:hover::before,
.ap-nav .dropdown-menu .dropdown-item.hhgg.ap-active::before { background: var(--ap-accent); color: #ffffff; transform: translateX(2px); }

/* Mobile "Menu" dropdown */
.ap-mobile-menu { padding: .55rem 0; }
.ap-mobile-menu .dropbtn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.05rem;
    border: 0;
    border-radius: 10px;
    background: var(--ap-accent);
    color: #ffffff;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
}
.ap-mobile-menu:hover .dropbtn,
.ap-mobile-menu:focus-within .dropbtn { background: var(--ap-accent-dark); }
.ap-mobile-menu .dropdown-content {
    min-width: 280px;
    max-width: calc(100vw - 24px);
    max-height: 75vh;
    overflow-y: auto;
    padding: .4rem;
    background: #ffffff;
    border-top: 3px solid var(--ap-accent-bright);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 22px 44px -12px rgba(10,22,51,.45);
}
.ap-mobile-menu .dropdown-content a {
    display: block;
    padding: .6rem .85rem !important;
    border-radius: 8px;
    color: var(--ap-ink) !important;
    font-weight: 600;
    text-align: left !important;
    text-decoration: none;
    border: 0 !important;
}
.ap-mobile-menu .dropdown-content a:hover { background: var(--ap-tint); color: var(--ap-primary) !important; }
.ap-mobile-menu .dropdown-content a.ap-mobile-sub { padding-left: 1.6rem !important; font-weight: 500; font-size: .92rem; }
.ap-mobile-label {
    display: block;
    padding: .65rem .85rem .2rem;
    font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ap-accent);
}

/* ---- Breadcrumb ---- */
.cmp_breadcrumbs, nav.breadcrumb, .breadcrumb { background: var(--ap-tint); border-left: 4px solid var(--ap-accent); border-radius: 10px; }
.cmp_breadcrumbs a, .breadcrumb a, .breadcrumb-item a { color: var(--ap-primary); font-weight: 600; }
.cmp_breadcrumbs a:hover, .breadcrumb a:hover { color: var(--ap-accent); }
.cmp_breadcrumbs .current, .cmp_breadcrumbs [aria-current] { color: var(--ap-muted); }

/* ---- Page titles & content pages (About, static policy pages) ---- */
main a { color: var(--ap-link); }
main a:hover { color: var(--ap-primary); }
.content main .page h1 { color: var(--ap-ink); font-weight: 800; letter-spacing: -.01em; }
.content main .page h1::after {
    content: "";
    display: block;
    width: 64px; height: 4px;
    margin-top: .6rem;
    border-radius: 4px;
    background: var(--ap-gradient-line);
}
.content main .obj_article_details h1::after { content: none; }
.ap-page-content h2 {
    margin-top: 1.9rem;
    padding-left: .85rem;
    border-left: 4px solid var(--ap-accent);
    color: var(--ap-primary);
    font-size: 1.3rem;
    font-weight: 700;
}
.ap-page-content h3 { margin-top: 1.3rem; color: var(--ap-ink); font-size: 1.1rem; font-weight: 700; }
.ap-page-content ul li::marker { color: var(--ap-accent); }
.ap-page-toc .shadow.custom-sticky-top { border-radius: 14px; box-shadow: var(--ap-shadow) !important; }
.ap-page-toc .nav-sections .nav-item .nav-link.font-weight-bold { color: #ffffff; background: var(--ap-primary); }

/* ---- Buttons ---- */
.ap-btn-amber,
.ap-btn-primary,
.ap-about-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .72rem 1.35rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ap-btn-amber { background: var(--ap-amber-grad); color: #1f1300 !important; box-shadow: 0 10px 20px -10px rgba(245,158,11,.85); }
.ap-btn-amber:hover { color: #1f1300 !important; transform: translateY(-1px); filter: brightness(1.05); }
.ap-btn-primary,
.ap-about-btn { background: linear-gradient(135deg, var(--ap-primary) 0%, #2747b8 100%); color: #ffffff !important; box-shadow: 0 10px 20px -10px rgba(30,58,138,.8); }
.ap-btn-primary:hover,
.ap-about-btn:hover { color: #ffffff !important; transform: translateY(-1px); filter: brightness(1.1); }

.searchbtn { background: var(--ap-accent); border: 0; color: #ffffff; font-weight: 700; padding: .55rem 1.15rem; box-shadow: none; }
.searchbtn:hover { background: var(--ap-accent-dark); color: #ffffff; }

/* ---- Modals ---- */
.modal-content { overflow: hidden; border-radius: 14px; }
#apSearchModal .modal-header,
.ap-modal .modal-header { background: var(--ap-titlebar-bg); border: 0; }
#apSearchModal .modal-title,
.ap-modal .modal-title { color: #ffffff; font-weight: 700; }
#apSearchModal .btn-close,
.ap-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .85; }
.ap-modal .modal-title i { color: var(--ap-accent-bright); margin-right: .35rem; }
.ap-modal .modal-footer { border-top: 1px solid var(--ap-line-soft); }

/* ---- Right journal sidebar ---- */
.ap-journal-sidebar {
    background: #ffffff;
    border: 1px solid var(--ap-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ap-shadow);
}
/* the sidebar is tall: only keep it sticky on tall screens */
@media (max-height: 1100px) { .ap-journal-sidebar.custom-sticky-top { position: static; } }
.ap-side-identity { padding: 1.15rem 1.2rem 1.1rem; color: #ffffff; background: var(--ap-titlebar-bg); }
.ap-side-acronym {
    display: inline-block;
    margin-bottom: .55rem;
    padding: .18rem .6rem;
    border-radius: 6px;
    font-size: .75rem; font-weight: 800; letter-spacing: .16em;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
}
.ap-side-name { font-size: 1rem; font-weight: 700; line-height: 1.38; }
.ap-side-facts { list-style: none; margin: .75rem 0 0; padding: 0; font-size: .85rem; color: #dbe7ff; }
.ap-side-facts li { display: flex; align-items: center; gap: .55rem; margin-top: .3rem; text-align: left !important; }
.ap-side-facts i { flex: 0 0 1rem; text-align: center; color: var(--ap-accent-bright); }
.ap-journal-sidebar .ap-side-facts a { display: inline; color: #ffffff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.45); }
.ap-journal-sidebar .ap-side-facts a:hover { color: var(--ap-accent-bright); }

.ap-side-submit {
    padding: 1.1rem 1.2rem 1.2rem;
    background: linear-gradient(180deg, #fff7e6 0%, #fffdf8 100%);
    border-bottom: 1px solid var(--ap-line);
}
.ap-side-submit-title { margin-bottom: .45rem; font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--ap-ink); }
.ap-side-submit p { margin: 0 0 .9rem; font-size: .84rem; line-height: 1.6; color: var(--ap-muted); text-align: left !important; }
.ap-side-submit .ap-btn-amber { width: 100%; }

.ap-side-links { list-style: none; margin: 0; padding: .3rem 0; }
.ap-side-links li + li { border-top: 1px solid var(--ap-line-soft); }
.ap-journal-sidebar .ap-side-links a {
    display: flex; align-items: center; gap: .7rem;
    padding: .66rem 1.2rem;
    color: var(--ap-text);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}
.ap-side-links a i {
    flex: 0 0 30px; width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: .85rem;
    background: var(--ap-tint);
    color: var(--ap-primary);
    transition: background-color .15s ease, color .15s ease;
}
.ap-side-links li:nth-child(3n+2) a i { background: var(--ap-tint-teal); color: var(--ap-accent); }
.ap-side-links li:nth-child(3n) a i { background: var(--ap-tint-amber); color: var(--ap-amber-dark); }
.ap-side-links a span { flex: 1 1 auto; }
.ap-side-links .ap-side-arrow { flex: 0 0 auto; color: #9aa4b8; transition: transform .15s ease, color .15s ease; }
.ap-journal-sidebar .ap-side-links a:hover { background: var(--ap-tint); color: var(--ap-primary); padding-left: 1.4rem; }
.ap-side-links li a:hover i { background: var(--ap-primary); color: #ffffff; }
.ap-side-links li a:hover .ap-side-arrow { color: var(--ap-accent); transform: translateX(3px); }

/* ---- Homepage: left column card ---- */
.card-progress .progress-bar { background: var(--ap-gradient-line) !important; }
.page_index_journal .col-md-4 > .shadow.custom-sticky-top { border-radius: 16px; box-shadow: var(--ap-shadow) !important; }
.ap-keywords-title { border-radius: 10px; letter-spacing: .04em; padding: .45rem .6rem; }

/* ---- Homepage: About the Journal ---- */
.ap-home-about { margin: .25rem 0 1.25rem; }
.ap-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-bottom: .35rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ap-accent);
}
.ap-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--ap-gradient-line); }
.ap-home-about-title { margin: 0 0 1rem; font-size: 1.85rem; font-weight: 800; letter-spacing: -.01em; color: var(--ap-ink); }
.ap-home-about-text { line-height: 1.85; color: var(--ap-text); }
.ap-home-about-text p:first-child { font-size: 1.04rem; color: var(--ap-ink); }

/* Journal at a glance */
.ap-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 1.25rem 0 1.6rem; }
.ap-glance-item {
    --g: var(--ap-primary); --gt: var(--ap-tint);
    position: relative;
    display: flex; flex-direction: column; gap: .1rem;
    padding: 1rem 1rem .95rem 1.15rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--ap-line);
    box-shadow: var(--ap-shadow);
    overflow: hidden;
    text-align: left;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ap-glance-item:nth-child(3n+2) { --g: var(--ap-accent); --gt: var(--ap-tint-teal); }
.ap-glance-item:nth-child(3n)   { --g: var(--ap-amber-dark); --gt: var(--ap-tint-amber); }
.ap-glance-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--g); }
.ap-glance-item:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -20px rgba(15,37,87,.65); }
.ap-glance-item i {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: .5rem;
    border-radius: 10px;
    font-size: 1.15rem;
    background: var(--gt);
    color: var(--g);
}
.ap-glance-item strong { font-size: 1.05rem; line-height: 1.25; color: var(--ap-ink); }
.ap-glance-item span { font-size: .84rem; line-height: 1.4; color: var(--ap-muted); }

/* Vision banner */
.ap-vision {
    position: relative;
    display: flex; align-items: flex-start; gap: 1.1rem;
    margin-bottom: 1.25rem;
    padding: 1.4rem 1.5rem;
    border-radius: 18px;
    background: var(--ap-titlebar-bg);
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 20px 38px -22px rgba(15,37,87,.85);
}
.ap-vision::after {
    content: "\201C";
    position: absolute; right: 18px; top: -26px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9rem; line-height: 1;
    color: rgba(255,255,255,.08);
    pointer-events: none;
}
.ap-vision-icon {
    flex: 0 0 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--ap-accent-bright);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
}
.content main .ap-vision h3 { margin: .1rem 0 .35rem; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ap-accent-bright); }
.content main .ap-vision p { margin: 0; font-size: 1.1rem; font-weight: 500; line-height: 1.6; color: #ffffff; text-align: left; }

/* Mission / Commitment cards */
.ap-card-section {
    margin-bottom: 1.25rem;
    padding: 1.3rem 1.5rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--ap-line);
    box-shadow: var(--ap-shadow);
}
.content main .ap-card-section h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .95rem; font-size: 1.2rem; font-weight: 800; color: var(--ap-ink); }
.ap-card-section h3 i {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: .95rem;
    background: var(--ap-tint);
    color: var(--ap-primary);
}
.ap-check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.6rem; }
.content main .ap-check-list li { position: relative; padding-left: 1.9rem; line-height: 1.55; color: var(--ap-text); text-align: left; }
.ap-check-list li::before {
    content: "\f058";
    position: absolute; left: 0; top: .05rem;
    font-family: "Font Awesome 5 Free"; font-weight: 900;
    font-size: 1.05rem;
    color: var(--ap-accent);
}
.ap-commitment { border-left: 5px solid var(--ap-amber); background: linear-gradient(90deg, #fffaf0 0%, #ffffff 65%); }
.ap-commitment h3 i { background: var(--ap-tint-amber); color: var(--ap-amber-dark); }
.ap-commitment p { margin: 0; line-height: 1.8; }

/* Aims & Scope overview */
.ap-scope { margin: 1.75rem 0 1.25rem; }
.content main .ap-scope-title { margin-bottom: .5rem; font-size: 1.5rem; font-weight: 800; color: var(--ap-ink); }
.ap-scope-intro, .ap-scope-outro { color: var(--ap-muted); line-height: 1.75; }
.ap-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.ap-scope-card {
    --c: var(--ap-primary); --t: var(--ap-tint);
    padding: 1.15rem 1.2rem 1.15rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--ap-line);
    border-top: 4px solid var(--c);
    box-shadow: var(--ap-shadow);
}
.ap-scope--emerging { --c: #0f766e; --t: #e7f6f4; }
.ap-scope--mgmt     { --c: #b45309; --t: #fff4e0; }
.ap-scope--inter    { --c: #6d28d9; --t: #f3edff; }
.content main .ap-scope-card h4 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .85rem; font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--c); }
.ap-scope-card h4 i {
    flex: 0 0 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--t);
    color: var(--c);
}
.ap-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.content main .ap-chips li {
    padding: .32rem .7rem;
    border-radius: 999px;
    font-size: .78rem; font-weight: 600; line-height: 1.3;
    background: var(--t);
    color: var(--c);
    text-align: left;
}
.ap-home-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 1.5rem; }

/* ---- Article cards & article page ---- */
.obj_article_summary:hover { border-color: #c7d5f5; }
.obj_article_summary .title a:hover { color: var(--ap-accent); }
.ap-cr-icon { color: var(--ap-amber-dark) !important; }
.ribbon.ap-ribbon { background: var(--ap-primary); border-color: var(--ap-primary-dark); color: #ffffff; }
.ap-download-cta { background: var(--ap-amber-grad); border-radius: 12px; box-shadow: 0 10px 20px -10px rgba(245,158,11,.85); }
.ap-download-cta a { color: #1f1300 !important; }
.obj_issue_summary:hover { border-color: #c7d5f5; }
.obj_article_details .nav-sections .nav-item:first-child .nav-link { color: #ffffff; background: var(--ap-primary); }

/* ---- Footer ---- */
.ap-footer {
    position: relative;
    z-index: 0;          /* three.css sets footer { z-index: -1 } */
    margin-top: 1.5rem;
    padding: 3rem 0 0;
    background: var(--ap-footer-bg);
    color: #cbd5e1;
    border-top: 0;
}
.ap-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ap-gradient-line); }
.ap-footer .ap-footer-row { row-gap: 2rem; padding-bottom: 2.25rem; }
.ap-footer h3 {
    position: relative;
    display: inline-block;
    margin: 0 0 1.15rem;
    padding-bottom: .6rem;
    border-bottom: 0;
    font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: #ffffff;
}
.ap-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--ap-accent-bright); }
.ap-footer .ap-footer-brand { margin-bottom: .85rem; }
.ap-footer .ap-footer-brand img { max-width: 170px; height: auto; }
.ap-footer .ap-footer-journal { margin-bottom: .5rem; font-size: 1.02rem; font-weight: 700; line-height: 1.4; color: #ffffff; }
.ap-footer .ap-footer-desc { margin-bottom: 1rem; font-size: .88rem; line-height: 1.7; color: #b8c4d9; }
.ap-footer-contact { list-style: none; margin: 0; padding: 0; }
.ap-footer .ap-footer-contact li { display: flex; align-items: center; gap: .65rem; margin-bottom: .55rem; font-size: .9rem; }
.ap-footer-contact i {
    flex: 0 0 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: .8rem;
    background: rgba(255,255,255,.07);
    color: var(--ap-accent-bright);
}
.ap-footer a { color: #ffffff; text-decoration: none; }
.ap-footer a:hover { color: var(--ap-accent-bright); text-decoration: none; }
.ap-footer .ap-footer-menu { margin: 0; padding: 0; list-style: none; }
.ap-footer .ap-footer-menu li { margin-bottom: .6rem; }
.ap-footer .ap-footer-menu a {
    display: inline-flex; align-items: baseline; gap: .5rem;
    color: #cbd5e1;
    font-size: .9rem;
    transition: color .15s ease, transform .15s ease;
}
.ap-footer .ap-footer-menu a::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: rgba(45,212,191,.6); transform: translateY(-2px); }
.ap-footer .ap-footer-menu a:hover { color: #ffffff; transform: translateX(3px); }
.ap-footer .ap-footer-address { margin-bottom: 1.1rem; font-style: normal; font-size: .9rem; line-height: 1.75; color: #b8c4d9; }
.ap-footer .ap-footer-address strong { color: #ffffff; }
.ap-footer .ap-footer-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.28);
    color: #ffffff;
    font-size: .9rem; font-weight: 600;
}
.ap-footer .ap-footer-cta:hover { background: var(--ap-amber); border-color: var(--ap-amber); color: #1f1300; }
.ap-footer .ap-footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.2);
    font-size: .85rem;
    color: #94a3b8;
    text-align: center;
}

/* ---- Contact page ---- */
.ap-lead { max-width: 62rem; margin-bottom: 1.5rem; font-size: 1.02rem; line-height: 1.8; color: var(--ap-muted); }
.ap-contact-grid { margin-bottom: 1rem; }
.ap-contact-card {
    height: 100%;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--ap-line);
    border-top: 4px solid var(--ap-primary);
    box-shadow: var(--ap-shadow);
}
.ap-contact-card { text-align: left; }
.page_contact .ap-contact-card.contact { float: none; width: auto; margin: 0; }
.ap-contact-office { border-top-color: var(--ap-accent); }
.page_contact .ap-contact-card h2 { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-size: 1.12rem; font-weight: 700; color: var(--ap-ink); }
.ap-contact-card h2 i {
    flex: 0 0 34px; width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    font-size: .9rem;
    background: var(--ap-tint);
    color: var(--ap-primary);
}
.ap-contact-office h2 i { background: var(--ap-tint-teal); color: var(--ap-accent); }
.ap-contact-journal { margin-bottom: .6rem; font-weight: 700; color: var(--ap-ink); text-align: left !important; }
.ap-contact-list { list-style: none; margin: 0; padding: 0; }
.content main .ap-contact-list li { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem 0; border-top: 1px dashed var(--ap-line); text-align: left; }
.ap-contact-list li:first-child { border-top: 0; }
.ap-contact-list i { flex: 0 0 1.1rem; margin-top: .3rem; text-align: center; color: var(--ap-accent); }
.ap-contact-office address { margin-bottom: 1.1rem; font-style: normal; line-height: 1.8; }

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
    .ap-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-scope-grid, .ap-check-list { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .ap-header-nav .ap-user-nav a { width: auto; display: inline-flex; margin: .2rem 0; }
}
@media (max-width: 767.98px) {
    .ap-titlebar { padding: .75rem 0 1rem; }
    .ap-journal-meta { flex-direction: column; align-items: flex-start; font-size: .88rem; }
    .ap-journal-meta > span + span::before { content: none; }
    .ap-journal-tags li { font-size: .74rem; padding: .28rem .7rem; }
    .ap-vision { flex-direction: column; padding: 1.2rem; }
    .ap-home-about-title { font-size: 1.5rem; }
    .ap-nav .dropdown-menu.ap-megamenu { min-width: 0; column-count: 1; }
}

/* ---- Top-bar User menu (OJS "User" area): dropdown for a parent item
        with children, e.g. the logged-in user name > Dashboard / Profile / Logout ---- */
.ap-user-nav > li { position: relative; }
.ap-user-nav .ap-user-parent > a .fa-caret-down { font-size: .8em; opacity: .8; }
.ap-user-nav .ap-user-sub {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    min-width: 210px;
    list-style: none;
    margin: 0;
    padding: .4rem;
    background: #ffffff;
    border: 1px solid var(--ap-line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(10, 22, 51, .22);
}
.ap-user-nav .ap-user-parent:hover > .ap-user-sub,
.ap-user-nav .ap-user-parent:focus-within > .ap-user-sub { display: block; }
.ap-user-nav .ap-user-sub a {
    display: flex;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: .5rem .75rem !important;
    color: var(--ap-ink);
    font-weight: 500;
    white-space: nowrap;
}
.ap-user-nav .ap-user-sub a:hover,
.ap-user-nav .ap-user-sub a:focus { background: var(--ap-tint-teal); color: var(--ap-accent); }
@media (max-width: 991.98px) {
    .ap-user-nav .ap-user-sub {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 .25rem 1rem;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .ap-header-nav .ap-user-nav .ap-user-sub a { color: #dbe4f3; padding: .45rem .5rem !important; }
    .ap-header-nav .ap-user-nav .ap-user-sub a:hover { background: rgba(255,255,255,.08); color: #ffffff; }
}
