/*
 * Upcuan Theme 3.3.0.45
 * Admin-controlled primary and secondary text palette.
 */

:root {
  --upc-text-primary: #334155;
  --upc-text-secondary: #64748b;
}

/* Primary body copy and structural text. Keep hero/header text white and
   hyperlinks on their own configurable palette. */
body,
.upc-main,
.upc-main p,
.upc-main h1,
.upc-main h2,
.upc-main h3,
.upc-main h4,
.upc-main h5,
.upc-main h6,
.upc-main li,
.upc-main dd,
.upc-main dt,
.upc-main label,
.upc-main legend,
.upc-main blockquote,
.upc-main address,
.upc-main td,
.upc-main th,
.upc-main .description,
.upc-main .summary,
.upc-main .value,
.upc-main .cmp_breadcrumbs,
.upc-main .cmp_breadcrumbs li,
.upc-main .page_title,
.upc-main .current_issue_title,
.upc-main .obj_issue_toc,
.upc-main .obj_issue_toc .published,
.upc-main .obj_issue_toc .description,
.upc-main .obj_article_details,
.upc-main .obj_article_details .main_entry,
.upc-sidebar-zone,
.upc-sidebar-zone p,
.upc-sidebar-zone li,
.pkp_structure_sidebar,
.pkp_structure_sidebar p,
.pkp_structure_sidebar li,
.upc-auth-main,
.upc-auth-main p,
.footer,
.footer .upc-footer-v39,
.footer .upc-footer-v39 p,
.footer .upc-footer-v39 h1,
.footer .upc-footer-v39 h2,
.footer .upc-footer-v39 h3,
.footer .upc-footer-v39 h4,
.footer .upc-footer-v39 h5,
.footer .upc-footer-v39 h6,
.footer .upc-footer-v39 li,
.footer .upc-footer-v39 td,
.footer .upc-footer-v39 th,
.obj_article_summary.upc-article-card,
.obj_article_summary .upc-article-pages,
.obj_article_summary .upc-abstract-views,
.obj_article_summary .obj_galley_link,
.obj_article_summary .obj_galley_link.btn-primary,
.obj_article_summary .obj_galley_link_supplementary,
.obj_article_summary .upc-doi-pill {
  color: var(--upc-text-primary, #334155) !important;
}

/* Strong labels should use primary text instead of legacy near-black greys. */
.upc-main strong,
.upc-main b,
.footer strong,
.footer b,
.obj_article_summary .upc-meta-icon,
.obj_article_summary .author-name,
.obj_article_summary .upc-abstract-views strong {
  color: var(--upc-text-primary, #334155) !important;
}

/* Supporting metadata intentionally uses the secondary palette. */
.upc-main small,
.upc-main .subtitle,
.upc-main .meta,
.upc-main .metadata,
.upc-main .published,
.upc-main .date,
.upc-main .pages,
.upc-main .caption,
.upc-main figcaption,
.upc-main .help,
.upc-main .hint,
.upc-main .pkp_form_error,
.upc-sidebar-zone small,
.pkp_structure_sidebar small,
.footer small,
.footer .upc-footer-v39 .upc-footer-note,
.obj_article_summary .upc-article-meta,
.obj_article_summary .upc-article-authors,
.obj_article_summary .authors,
.obj_article_summary .affiliation,
.obj_article_summary .upc-meta-separator,
.obj_article_summary .upc-pill-arrow,
.obj_article_summary .obj_galley_link::after,
.obj_article_summary .obj_galley_link_supplementary::after,
.obj_article_summary .obj_galley_link.pdf::before,
.obj_article_summary .obj_galley_link:not(.pdf)::before,
.obj_article_summary .obj_galley_link_supplementary::before {
  color: var(--upc-text-secondary, #64748b) !important;
}

/* Form controls and placeholders. */
.upc-main input,
.upc-main textarea,
.upc-main select,
.upc-auth-main input,
.upc-auth-main textarea,
.upc-auth-main select {
  color: var(--upc-text-primary, #334155) !important;
}
.upc-main input::placeholder,
.upc-main textarea::placeholder,
.upc-auth-main input::placeholder,
.upc-auth-main textarea::placeholder {
  color: var(--upc-text-secondary, #64748b) !important;
  opacity: .82 !important;
}

/* Breadcrumb separators and icons should follow the supporting palette. */
.cmp_breadcrumbs .separator,
.cmp_breadcrumbs .fa,
.upc-main .fa.text-muted,
.upc-main .text-muted,
.upc-main .text-slate-400,
.upc-main .text-slate-500,
.upc-main .text-slate-600,
.footer .text-muted,
.footer .text-slate-400,
.footer .text-slate-500,
.footer .text-slate-600 {
  color: var(--upc-text-secondary, #64748b) !important;
}

/* Do not let global text settings override navigation/hero contrast. */
#header,
#header *,
.upc-mobile-nav,
.upc-mobile-nav *,
.hero-section,
.hero-section .hero-title,
.hero-section .hero-description,
.hero-section .hero-content,
.hero-section .hero-content p,
.hero-section .hero-content h1,
.hero-section .hero-content h2,
.hero-section .hero-content h3 {
  color: #fff !important;
}

/* Links remain controlled by the dedicated hyperlink settings. */
.upc-main a:not(.btn):not(.obj_galley_link),
.upc-sidebar-zone a,
.footer a,
.upc-auth-main a,
.obj_article_summary .upc-article-title a {
  color: var(--upc-link-color, #087f4b) !important;
}
.upc-main a:not(.btn):not(.obj_galley_link):hover,
.upc-main a:not(.btn):not(.obj_galley_link):focus,
.upc-sidebar-zone a:hover,
.upc-sidebar-zone a:focus,
.footer a:hover,
.footer a:focus,
.upc-auth-main a:hover,
.upc-auth-main a:focus,
.obj_article_summary .upc-article-title a:hover,
.obj_article_summary .upc-article-title a:focus {
  color: var(--upc-link-hover-color, #065f46) !important;
  font-weight: 700 !important;
}
