/* Graxynet JNSPS Green V2.1.46
 * Settings-aware theme refinements.
 * Dynamic values are emitted as CSS custom properties by the ThemePlugin.
 */
:root {
    --jnsps-primary: #0b7a3d;
    --jnsps-dark: #075e31;
    --jnsps-accent: #2aa869;
    --jnsps-link: #006fe6;
}

/* Keep utility navigation visually tied to the manager-selected palette. */
html body .jampl-utility-bar {
    border-bottom-color: color-mix(in srgb, var(--jnsps-primary) 18%, #ffffff) !important;
}
html body .jampl-utility-links > a,
html body .rans-utility-toggle {
    color: var(--jnsps-dark) !important;
}
html body .jampl-utility-links > a:hover,
html body .jampl-utility-links > a:focus,
html body .rans-utility-toggle:hover,
html body .rans-utility-toggle:focus {
    color: var(--jnsps-primary) !important;
}
html body .rans-utility-dropdown {
    border-top: 3px solid var(--jnsps-primary) !important;
}
html body .rans-utility-dropdown a:hover,
html body .rans-utility-dropdown a:focus {
    background: color-mix(in srgb, var(--jnsps-primary) 9%, #ffffff) !important;
    color: var(--jnsps-dark) !important;
}

/* Header and primary navigation */
html body .pkp_structure_head .pkp_site_name_wrapper {
    background: linear-gradient(120deg, var(--jnsps-dark) 0%, var(--jnsps-primary) 55%, var(--jnsps-accent) 100%) !important;
}
html body .pkp_structure_head .pkp_navigation_primary_wrapper,
html body .pkp_navigation_primary_row {
    background-color: var(--jnsps-dark) !important;
}
html body .pkp_navigation_primary > li > a:hover,
html body .pkp_navigation_primary > li > a:focus {
    background-color: var(--jnsps-primary) !important;
}

/* Reuse selected colours in premium cards/blocks. */
html body .jnsps-same-author-heading,
html body .pkp_structure_sidebar .jnsps-browse-navigation > .title,
html body .pkp_structure_sidebar .jnsps-browse-navigation > h2.title,
html body .pkp_structure_sidebar .jnsps-browse-navigation > h3.title {
    background: linear-gradient(135deg, var(--jnsps-dark), var(--jnsps-primary), var(--jnsps-accent)) !important;
}
html body .page_article .jnsps-same-author-card::before {
    background: linear-gradient(180deg, var(--jnsps-primary), var(--jnsps-accent)) !important;
}
html body .pkp_structure_sidebar .jnsps-browse-navigation a.jnsps-browse-marker-link {
    color: var(--jnsps-dark) !important;
}

/* Footer */
html body .pkp_structure_footer_wrapper,
html body .pkp_structure_footer {
    background: linear-gradient(110deg, var(--jnsps-dark), var(--jnsps-primary)) !important;
}
