:root {
  --forum-primary: #173B2D;
  --forum-primary-dark: #173B2D;
  --forum-primary-hover: #0F2C21;
  --forum-on-primary: #FFFFFF;
  --forum-text: #4E5D55;
  --forum-menu: #2C2C2C;
  --forum-muted: #878787;
  --forum-surface: #F3F6F1;
  --forum-surface-soft: #E4EFE8;
  --forum-surface-alt: #F9FAF8;
  --forum-footer: #F6F6F6;
  --forum-border: #E1E8DF;
  --forum-helper: #7A8A81;
  --forum-helper-dark: #6A746E;
}

/* Fallback: keeps headings, buttons, links and highlighted blocks in the new brand tone
   when older inline styles or inherited declarations are used. */
body .forum-h1,
body .forum-h2,
body .forum-card-title,
body .forum-faq-q,
body .forum-ambasadorzy-hero h1,
body .forum-ambasadorzy-year h2,
body .forum-ambasadorzy-future h2 {
  color: var(--forum-primary);
}

body .forum-process-num {
  color: #ffffff !important;
  background: var(--forum-primary) !important;
}

/* Course page actions: replace legacy dark inline button backgrounds. */
body .forum-course-card a,
body .forum-course-card a[style*="#173b2d"],
body .forum-course-card a[style*="#173B2D"],
body .forum-section a[style*="#173b2d"],
body .forum-section a[style*="#173B2D"] {
  background: #173B2D !important;
  background-color: #173B2D !important;
  color: #ffffff !important;
  border-color: #173B2D !important;
}

/* Homepage ambassador card: replace the legacy dark inline gradient. */
body .forum-section [style*="#173b2d"][style*="#235240"] {
  background: linear-gradient(135deg, #F3F6F1 0%, #F9FAF8 100%) !important;
  background-color: #F3F6F1 !important;
  background-image: linear-gradient(135deg, #F3F6F1 0%, #F9FAF8 100%) !important;
  border: 1px solid #F3F6F1 !important;
  color: #173B2D !important;
}

body .forum-section [style*="#173b2d"][style*="#235240"] * {
  color: #173B2D !important;
}

body .forum-section [style*="#173b2d"][style*="#235240"] a[href*="/ambasadorzy/"] {
  background: #173B2D !important;
  color: #ffffff !important;
  border: 1px solid #173B2D !important;
}

/* Unified interface palette for every page and legacy inline section. */
body {
  color: var(--forum-text) !important;
  background-color: var(--forum-on-primary, #FFFFFF) !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  color: var(--forum-primary-dark) !important;
}

body p,
body li,
body dd,
body dt,
body td,
body th,
body label,
body figcaption {
  color: var(--forum-text) !important;
}

body small,
body .helper-text,
body .description,
body .subtitle,
body .note,
body .eyebrow {
  color: var(--forum-helper) !important;
}

body a:not(.dt-sc-button):not(.button):not(.wpforms-submit):not(.wpcf7-submit) {
  color: var(--forum-primary-dark);
}

body input:not([type="submit"]):not([type="button"]),
body select,
body textarea {
  color: var(--forum-text) !important;
  background-color: var(--forum-on-primary, #FFFFFF) !important;
  border-color: var(--forum-border) !important;
}

body .dt-sc-button,
body .button,
body .wpforms-submit,
body .wpcf7-submit,
body .forum-cta-primary,
body .forum-button-primary,
body button[type="submit"],
body input[type="submit"] {
  background-color: var(--forum-primary) !important;
  border-color: var(--forum-primary) !important;
  color: var(--forum-on-primary, #FFFFFF) !important;
}

body .dt-sc-button:hover,
body .button:hover,
body .wpforms-submit:hover,
body .wpcf7-submit:hover,
body .forum-cta-primary:hover,
body .forum-button-primary:hover,
body button[type="submit"]:hover,
body input[type="submit"]:hover {
  background-color: var(--forum-primary-dark) !important;
  border-color: var(--forum-primary-dark) !important;
  color: var(--forum-on-primary, #FFFFFF) !important;
}

#header.header1 #main-menu ul.menu > li > a,
#header.header1 #main-menu ul.menu > li > span,
#main-menu ul.menu > li > a {
  color: var(--forum-menu) !important;
}

#header.header1 #main-menu ul.menu > li.current-menu-item > a,
#header.header1 #main-menu ul.menu > li.current_page_item > a,
#header.header1 #main-menu ul.menu > li:hover > a,
#main-menu ul.menu > li.current-menu-ancestor > a,
#main-menu ul.menu > li.current-menu-parent > a {
  color: var(--forum-primary-dark) !important;
  border-color: var(--forum-primary-dark) !important;
}

#header.header1 .header-login-link,
#header.header1 .header-cta-btn {
  color: var(--forum-primary-dark) !important;
}

#header.header1 .header-cta-btn,
#header #dt-menu-toggle {
  background-color: var(--forum-primary) !important;
  border-color: var(--forum-primary) !important;
  color: var(--forum-on-primary, #FFFFFF) !important;
}

#footer,
#footer .footer-widgets-wrapper,
body .forum-site-footer {
  background-color: var(--forum-footer) !important;
  color: var(--forum-text) !important;
  border-color: var(--forum-border) !important;
}

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6,
#footer a,
body .forum-site-footer h1,
body .forum-site-footer h2,
body .forum-site-footer h3,
body .forum-site-footer h4,
body .forum-site-footer h5,
body .forum-site-footer h6,
body .forum-site-footer a {
  color: var(--forum-primary-dark) !important;
}

body .forum-site-footer,
body .forum-site-footer p,
body .forum-site-footer span,
body .forum-site-footer li,
body .forum-site-footer div,
body .forum-site-footer strong {
  color: var(--forum-text) !important;
}

body .forum-site-footer h1,
body .forum-site-footer h2,
body .forum-site-footer h3,
body .forum-site-footer h4,
body .forum-site-footer h5,
body .forum-site-footer h6,
body .forum-site-footer strong,
body .forum-site-footer a {
  color: var(--forum-primary-dark) !important;
}

body .forum-site-footer .forum-site-footer-bottom,
body .forum-site-footer .forum-footer-bottom,
body .forum-site-footer__bottom {
  background: #173B2D !important;
  background-color: #173B2D !important;
  color: #FFFFFF !important;
}

body .forum-site-footer .forum-site-footer-bottom *,
body .forum-site-footer .forum-footer-bottom *,
body .forum-site-footer__bottom * {
  color: #FFFFFF !important;
}

body .forum-site-footer__bottom-inner,
body .forum-site-footer__bottom-inner p,
body .forum-site-footer__bottom-inner a,
body .forum-site-footer__bottom-inner li {
  color: #FFFFFF !important;
}

body [style*="color:#588a50" i],
body [style*="color: #588a50" i],
body [style*="color:#2f5d3a" i],
body [style*="color: #2f5d3a" i] {
  color: var(--forum-primary-dark) !important;
}

body [style*="color:#2f3e36" i],
body [style*="color: #2f3e36" i],
body [style*="color:#2f3c35" i],
body [style*="color: #2f3c35" i],
body [style*="color:#30413a" i],
body [style*="color: #30413a" i],
body [style*="color:#26352f" i],
body [style*="color: #26352f" i] {
  color: var(--forum-text) !important;
}

body [style*="background:#588a50" i],
body [style*="background: #588a50" i],
body [style*="background-color:#588a50" i],
body [style*="background-color: #588a50" i],
body [style*="background:#2f5d3a" i],
body [style*="background: #2f5d3a" i],
body [style*="background-color:#2f5d3a" i],
body [style*="background-color: #2f5d3a" i] {
  background-color: var(--forum-primary) !important;
}

body [style*="background:#dde9df" i],
body [style*="background: #dde9df" i],
body [style*="background-color:#dde9df" i],
body [style*="background-color: #dde9df" i] {
  background-color: var(--forum-surface) !important;
}

body [style*="background:#e4efe8" i],
body [style*="background: #e4efe8" i],
body [style*="background-color:#e4efe8" i],
body [style*="background-color: #e4efe8" i] {
  background-color: var(--forum-surface-soft) !important;
}

body [style*="background:#e7dfd3" i],
body [style*="background: #e7dfd3" i],
body [style*="background-color:#e7dfd3" i],
body [style*="background-color: #e7dfd3" i],
body [style*="background:#f6efe3" i],
body [style*="background: #f6efe3" i],
body [style*="background-color:#f6efe3" i],
body [style*="background-color: #f6efe3" i] {
  background-color: var(--forum-surface-alt) !important;
}

body [style*="border-color:#" i],
body [style*="border-color: #" i] {
  border-color: var(--forum-border) !important;
}

/* Approved brand assets for the header, footer and course cards. */
body #header.header1 #logo > a {
  background: none !important;
  position: relative;
}

body #header.header1 #logo > a > img.normal_logo {
  content: url('/wp-content/uploads/2026/08/logo-forum-sp.png') !important;
  display: block !important;
  height: auto !important;
  max-height: 62px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  width: 180px !important;
}

body #header.header1 #logo > a::after {
  display: none !important;
}

body #header.header1 #logo > a > img.retina_logo {
  display: none !important;
}

body .forum-site-footer__logo img,
body #footer .footer-logo img.normal_logo,
body #footer .footer-logo img.retina_logo {
  content: url('/wp-content/uploads/2026/08/logo-forum-sp.png') !important;
  height: auto !important;
  object-fit: contain !important;
}

body .forum-site-footer__logo img {
  width: 198px !important;
}

body #footer .footer-logo img.normal_logo,
body #footer .footer-logo img.retina_logo {
  width: auto !important;
}

body .forum-course-cards-section {
  font-family: Lato, Arial, sans-serif;
}

body .forum-course-cards-section .forum-card-title--logo img[src*="TE-logo" i],
body .forum-course-cards-section .forum-card-title--logo img[src*="teddy" i] {
  content: url('/wp-content/uploads/2026/08/teddy-eddie-logo.png') !important;
  height: 68px !important;
  object-fit: contain !important;
  width: auto !important;
}

/* Final footer copyright strip override. This file loads after header-footer.css. */
body .forum-site-footer__bottom,
body .forum-site-footer .forum-site-footer__bottom,
body #footer .copyright {
  background: #173B2D !important;
  background-color: #173B2D !important;
  color: #FFFFFF !important;
}

body .forum-site-footer__bottom *,
body .forum-site-footer .forum-site-footer__bottom *,
body #footer .copyright,
body #footer .copyright * {
  color: #FFFFFF !important;
}

body .forum-site-footer__bottom svg,
body .forum-site-footer__bottom svg * {
  color: #FFFFFF !important;
  fill: currentColor;
  stroke: currentColor;
}

/* Restore the intended shapes of the footer social SVG icons. */
body .forum-site-footer__social svg {
  color: #FFFFFF !important;
  fill: none !important;
  stroke: currentColor !important;
}

body .forum-site-footer__social svg path {
  fill: currentColor !important;
  stroke: none !important;
}

body .forum-site-footer__social svg rect,
body .forum-site-footer__social svg circle {
  fill: none !important;
  stroke: currentColor !important;
}

body .forum-site-footer__social svg circle:last-child {
  fill: currentColor !important;
  stroke: none !important;
}

body .forum-site-footer__social {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body .forum-site-footer__social a {
  display: inline-flex !important;
  color: #FFFFFF !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body .forum-site-footer__social svg {
  display: block !important;
  height: 22px !important;
  width: 22px !important;
}

/* Cennik uses the full-width template, so scope its inline CTA markup by page ID. */
body.page-id-14564 main .cennik-te-flex__card a,
body.page-id-14564 main .cennik-forum-flex__card a,
body.page-id-14564 main a[style*="background" i],
body.page-id-14564 main .forum-cennik-form .wpforms-submit,
body.page-id-14564 main .forum-cennik-form button[type="submit"] {
  background: var(--forum-primary) !important;
  background-color: var(--forum-primary) !important;
  border-color: var(--forum-primary) !important;
  color: var(--forum-on-primary, #FFFFFF) !important;
  -webkit-text-fill-color: var(--forum-on-primary, #FFFFFF) !important;
  text-decoration: none !important;
}

body.page-id-14564 main .cennik-te-flex__card a:hover,
body.page-id-14564 main .cennik-te-flex__card a:focus,
body.page-id-14564 main .cennik-te-flex__card a:active,
body.page-id-14564 main .cennik-forum-flex__card a:hover,
body.page-id-14564 main .cennik-forum-flex__card a:focus,
body.page-id-14564 main .cennik-forum-flex__card a:active,
body.page-id-14564 main a[style*="background" i]:hover,
body.page-id-14564 main a[style*="background" i]:focus,
body.page-id-14564 main a[style*="background" i]:active,
body.page-id-14564 main .forum-cennik-form .wpforms-submit:hover,
body.page-id-14564 main .forum-cennik-form .wpforms-submit:focus,
body.page-id-14564 main .forum-cennik-form .wpforms-submit:active,
body.page-id-14564 main .forum-cennik-form button[type="submit"]:hover,
body.page-id-14564 main .forum-cennik-form button[type="submit"]:focus,
body.page-id-14564 main .forum-cennik-form button[type="submit"]:active {
  background: var(--forum-primary-hover, #0F2C21) !important;
  background-color: var(--forum-primary-hover, #0F2C21) !important;
  border-color: var(--forum-primary-hover, #0F2C21) !important;
  color: var(--forum-on-primary, #FFFFFF) !important;
  -webkit-text-fill-color: var(--forum-on-primary, #FFFFFF) !important;
}
