/* WISE Journal v2.4.2 — coordinated public UI derived from Identity start/end.
   Computed HEX variables are generated in the theme PHP per journal.
   Scope: only body.wise-palette-enabled. Original v2.3.9 = completely unchanged.
   No particle styles, keyframes, pseudo-element animations, or editorial UI rules. */

/* Shared public backgrounds — very gentle tints preserve legibility. */
html body.wise-palette-enabled .pkp_structure_content {
  background:linear-gradient(155deg,var(--wise-ui-surface-start) 0%,#fff 54%,var(--wise-ui-surface-end) 100%) !important;
}
html.kalidaka-modern body.wise-palette-enabled .pkp_structure_main,
html body.wise-palette-enabled .pkp_structure_main {
  border-color:var(--wise-ui-border) !important;
}

/* Archive: original cover/photo stays untouched; empty-cover fallback is themed. */
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .obj_issue_summary.wise-archive-card--immersive,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .obj_issue_summary.wise-archive-card--compact {
  background:#fff !important;
  border-color:var(--wise-ui-border) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .obj_issue_summary.wise-archive-card--immersive:hover,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .obj_issue_summary.wise-archive-card--compact:hover {
  border-color:var(--wise-ui-strong-end) !important;
  box-shadow:0 12px 28px rgba(20,32,41,.12) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .obj_issue_summary.wise-archive-card--immersive > .wise-archive-card__visual--fallback,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .wise-archive-card__placeholder,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .obj_issue_summary.wise-archive-card--compact .wise-archive-card__placeholder {
  background:linear-gradient(135deg,var(--wise-ui-strong-start),var(--wise-ui-strong-end)) !important;
  color:#fff !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .wise-archive-card--immersive .kalidaka-archive-issue-card__eyebrow,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .obj_issue_summary.wise-archive-card--compact .kalidaka-archive-issue-card__eyebrow {
  color:var(--wise-ui-strong-end) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .wise-archive-card--immersive .kalidaka-archive-issue-card__title,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .obj_issue_summary.wise-archive-card--compact .kalidaka-archive-issue-card__title {
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .wise-archive-card--immersive .kalidaka-archive-issue-card__date,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .obj_issue_summary.wise-archive-card--compact .kalidaka-archive-issue-card__date {
  background:var(--wise-ui-surface) !important;
  color:var(--wise-ui-ink) !important;
  border-color:var(--wise-ui-border) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .wise-archive-card--immersive .kalidaka-archive-issue-card__action,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .obj_issue_summary.wise-archive-card--compact .kalidaka-archive-issue-card__action {
  background:var(--wise-ui-strong-start) !important;
  border-color:var(--wise-ui-strong-start) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .wise-archive-card--immersive .kalidaka-archive-issue-card__action:hover,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .obj_issue_summary.wise-archive-card--compact .kalidaka-archive-issue-card__action:hover {
  background:var(--wise-ui-strong-end) !important;
  border-color:var(--wise-ui-strong-end) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .wise-archive-card--immersive .wise-archive-card__info-button {
  background:var(--wise-ui-surface) !important;
  border-color:var(--wise-ui-border) !important;
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .page_issue_archive .issues_archive .wise-archive-card--immersive .wise-archive-card__info-button:hover {
  background:var(--wise-ui-soft) !important;
}
html body.wise-palette-enabled .wise-issue-modal__header {
  background:linear-gradient(135deg,var(--wise-ui-strong-start),var(--wise-ui-strong-end)) !important;
  color:#fff !important;
}
html body.wise-palette-enabled .wise-issue-modal__eyebrow,
html body.wise-palette-enabled .wise-issue-modal__title,
html body.wise-palette-enabled .wise-issue-modal__series {
  color:#fff !important;
}
html body.wise-palette-enabled .wise-issue-modal__dialog {border-color:var(--wise-ui-border) !important}
html body.wise-palette-enabled .wise-issue-modal__close:focus-visible,
html body.wise-palette-enabled .wise-issue-modal__content:focus-visible {
  outline-color:var(--wise-ui-strong-end) !important;
}

/* Individual issue: description, article cards, DOI and issue navigation. */
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_view .page_issue .obj_issue_toc .heading,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_view .page_issue .wise-issue-toc--detail .heading {
  background:linear-gradient(135deg,var(--wise-ui-surface-start),var(--wise-ui-surface-end)) !important;
  border-color:var(--wise-ui-border) !important;
}
html.kalidaka-modern body.wise-palette-enabled .wise-issue-article {
  background:#fff !important;
  border-color:var(--wise-ui-border) !important;
}
html.kalidaka-modern body.wise-palette-enabled .wise-issue-article:hover,
html.kalidaka-modern body.wise-palette-enabled .wise-issue-article:focus-within {
  border-color:var(--wise-ui-strong-end) !important;
}
html.kalidaka-modern body.wise-palette-enabled .wise-issue-article__title,
html.kalidaka-modern body.wise-palette-enabled .wise-issue-article__title a,
html.kalidaka-modern body.wise-palette-enabled .wise-issue-section-heading {
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled .wise-issue-article__pages,
html.kalidaka-modern body.wise-palette-enabled .wise-issue-article__doi {
  background:var(--wise-ui-surface) !important;
  border-color:var(--wise-ui-border) !important;
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled .wise-issue-article__doi:hover,
html.kalidaka-modern body.wise-palette-enabled .wise-issue-article__title a:hover {
  color:var(--wise-ui-strong-end) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_view .wise-issue-navigation__link {
  border-color:var(--wise-ui-border) !important;
  background:linear-gradient(135deg,var(--wise-ui-surface-start),#fff) !important;
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_view .wise-issue-navigation__link:hover {
  background:var(--wise-ui-soft) !important;
  border-color:var(--wise-ui-strong-end) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_view .wise-issue-navigation__archive {
  border-color:var(--wise-ui-border) !important;
  color:var(--wise-ui-ink) !important;
  background:var(--wise-ui-surface) !important;
}

/* Homepage: original structure preserved, replace only fixed blue highlights. */
html.kalidaka-modern body.wise-palette-enabled .kalidaka-overview-shell,
html.kalidaka-modern body.wise-palette-enabled .ltsm-discovery__shell {
  border-color:var(--wise-ui-border) !important;
}
html.kalidaka-modern body.wise-palette-enabled .kalidaka-overview-tab.is-active,
html.kalidaka-modern body.wise-palette-enabled .kalidaka-overview-tab[aria-selected="true"] {
  color:var(--wise-ui-ink) !important;
  border-color:var(--wise-ui-strong-end) !important;
}
html.kalidaka-modern body.wise-palette-enabled .kalidaka-overview-panel,
html.kalidaka-modern body.wise-palette-enabled .ltsm-discovery__panel {
  border-color:var(--wise-ui-border) !important;
  background:#fff !important;
}
html.kalidaka-modern body.wise-palette-enabled .kalidaka-overview-fact,
html.kalidaka-modern body.wise-palette-enabled .ltsm-discovery__viewed-list li {
  background:linear-gradient(135deg,var(--wise-ui-surface-start),var(--wise-ui-surface-end)) !important;
  border-color:var(--wise-ui-border) !important;
}
html.kalidaka-modern body.wise-palette-enabled .ltsm-discovery__tab[aria-selected="true"],
html.kalidaka-modern body.wise-palette-enabled .ltsm-discovery__heading h2,
html.kalidaka-modern body.wise-palette-enabled .ltsm-discovery__panel-heading h3,
html.kalidaka-modern body.wise-palette-enabled .ltsm-discovery__viewed-detail a {
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled .ltsm-discovery__tab[aria-selected="true"]::after,
html.kalidaka-modern body.wise-palette-enabled .wise-issue-heading-container::after {
  background:var(--wise-ui-strong-end) !important;
}
html.kalidaka-modern body.wise-palette-enabled .ltsm-discovery__rank {
  background:var(--wise-ui-soft) !important;
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled .ltsm-discovery__country-row.is-highlighted {
  box-shadow:inset 4px 0 0 var(--wise-ui-strong-end) !important;
  background:var(--wise-ui-surface) !important;
}

/* Research Collections: colors follow identity endpoints while classification stays untouched. */
html.kalidaka-modern body.wise-palette-enabled #wise-research-collections,
html.kalidaka-modern body.wise-palette-enabled #wise-research-collections .wise-research-collections__panel {
  --wise-rc-accent:var(--wise-ui-strong-end);
  --wise-rc-ink:var(--wise-ui-ink);
}
html.kalidaka-modern body.wise-palette-enabled #wise-research-collections .wise-research-collections__chip {
  border-color:var(--wise-ui-border) !important;
  background:var(--wise-ui-surface) !important;
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled #wise-research-collections .wise-research-collections__chip.is-active {
  background:var(--wise-ui-strong-start) !important;
  border-color:var(--wise-ui-strong-start) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
html.kalidaka-modern body.wise-palette-enabled #wise-research-collections .wise-research-collections__chip.is-active .wise-rc-topic-unit,
html.kalidaka-modern body.wise-palette-enabled #wise-research-collections .wise-research-collections__chip.is-active .wise-rc-topic-count {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
html.kalidaka-modern body.wise-palette-enabled #wise-research-collections .wise-research-collections__card {
  border-color:var(--wise-ui-border) !important;
  border-top-color:var(--wise-ui-strong-end) !important;
  background:#fff !important;
}
html.kalidaka-modern body.wise-palette-enabled #wise-research-collections .wise-research-collections__card h4 a,
html.kalidaka-modern body.wise-palette-enabled #wise-research-collections .wise-research-collections__archive-link {
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled #wise-research-collections .wise-research-collections__view-switch {
  background:var(--wise-ui-surface) !important;
  border-color:var(--wise-ui-border) !important;
}

/* Shared links, call-to-action, footer. Keep navbar backgrounds white for legibility. */
html.kalidaka-modern body.wise-palette-enabled .pkp_structure_main .page_custom a,
html.kalidaka-modern body.wise-palette-enabled .pkp_structure_main .page_about a,
html.kalidaka-modern body.wise-palette-enabled .pkp_structure_main .page_contact a {
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled .pkp_structure_head.kalidaka_header .pkp_navigation_primary > li > a:hover,
html.kalidaka-modern body.wise-palette-enabled .pkp_structure_head.kalidaka_header .pkp_navigation_primary > li > a:focus-visible,
html.kalidaka-modern body.wise-palette-enabled .pkp_structure_head.kalidaka_header .pkp_navigation_primary > li > a:active {
  background:var(--wise-ui-surface) !important;
  color:var(--wise-ui-ink) !important;
  -webkit-text-fill-color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled .kalidaka-overview-action--primary,
html.kalidaka-modern body.wise-palette-enabled .kalidaka-home-submit,
html.kalidaka-modern body.wise-palette-enabled .kalidaka-hero-submit {
  background:var(--wise-ui-strong-start) !important;
  border-color:var(--wise-ui-strong-start) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
html.kalidaka-modern body.wise-palette-enabled .kalidaka-overview-action--primary:hover,
html.kalidaka-modern body.wise-palette-enabled .kalidaka-home-submit:hover,
html.kalidaka-modern body.wise-palette-enabled .kalidaka-hero-submit:hover {
  background:var(--wise-ui-strong-end) !important;
  border-color:var(--wise-ui-strong-end) !important;
}
html.kalidaka-modern body.wise-palette-enabled .pkp_structure_footer_wrapper.kalidaka-footer {
  background:linear-gradient(135deg,var(--wise-ui-strong-start),var(--wise-ui-strong-end)) !important;
  border-top-color:var(--wise-ui-border) !important;
}
html.kalidaka-modern body.wise-palette-enabled .kalidaka-footer__column h3::after {
  background:#fff !important;
}
/* Quick Links in 'Custom' or 'Original' mode retain their own rules and values. */

@media (prefers-reduced-motion:reduce) {
  /* Accessibility only. Hero/particle animation source remains untouched. */
  html.kalidaka-modern body.wise-palette-enabled.pkp_page_issue.pkp_op_archive .wise-archive-card--immersive,
  html.kalidaka-modern body.wise-palette-enabled .wise-issue-article {transition:none !important;}
}

/* Article detail: keep the LTSM layout, unify existing decorative accents. */
html body.wise-palette-enabled.pkp_page_article.pkp_op_view,
html body.wise-palette-enabled.pkp_page_article.pkp_op_view .pkp_structure_content {
  background:linear-gradient(165deg,var(--wise-ui-surface-start),#fff 58%,var(--wise-ui-surface-end)) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_article.pkp_op_view .kalidaka-article-hero {
  border-color:var(--wise-ui-border) !important;
  background:linear-gradient(135deg,var(--wise-ui-surface-start),var(--wise-ui-surface-end)) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_article.pkp_op_view .kalidaka-article-hero > .page_title,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_article.pkp_op_view .kalidaka-article-tab[aria-selected="true"] {
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_article.pkp_op_view .kalidaka-article-tab[aria-selected="true"]:after {
  background:var(--wise-ui-strong-end) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_article.pkp_op_view .kalidaka-article-tabs,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_article.pkp_op_view .kalidaka-article-tabpanels {
  border-color:var(--wise-ui-border) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_article.pkp_op_view .kalidaka-article-type-badge {
  background:var(--wise-ui-surface) !important;
  border-color:var(--wise-ui-border) !important;
  color:var(--wise-ui-ink) !important;
}
html.kalidaka-modern body.wise-palette-enabled.pkp_page_article.pkp_op_view .obj_article_details .entry_details .obj_galley_link:hover,
html.kalidaka-modern body.wise-palette-enabled.pkp_page_article.pkp_op_view .obj_article_details .entry_details .obj_galley_link:focus-visible {
  background:var(--wise-ui-strong-end) !important;
  border-color:var(--wise-ui-strong-end) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
/* Scopus announcement branding stays truthful; only surrounding neutral accents change. */
html.kalidaka-modern body.wise-palette-enabled .obj_announcement_full.ltsm-scopus-native .ltsm-scopus-native__card {
  border-color:var(--wise-ui-border) !important;
}
