:root {
  --ksd-global-forest: #0b2f24;
  --ksd-global-deep: #051b15;
  --ksd-global-card: #123d31;
  --ksd-global-ivory: #f7f4ed;
  --ksd-global-soft: #e7eeea;
  --ksd-global-gold: #d9b46e;
}

body:not(.page-template-ksd-premium-homepage-template) {
  background: var(--ksd-global-ivory);
}

body:not(.page-template-ksd-premium-homepage-template) #masthead,
body:not(.page-template-ksd-premium-homepage-template) #masthead .site-main-header-wrap,
body:not(.page-template-ksd-premium-homepage-template) #masthead .site-header-row-container-inner {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: var(--ksd-global-deep) !important;
}

body:not(.page-template-ksd-premium-homepage-template) #masthead .site-title,
body:not(.page-template-ksd-premium-homepage-template) #masthead .site-description,
body:not(.page-template-ksd-premium-homepage-template) #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a,
body:not(.page-template-ksd-premium-homepage-template) #masthead .menu-toggle-open,
body:not(.page-template-ksd-premium-homepage-template) #masthead .menu-toggle-icon {
  color: #ffffff !important;
}

body:not(.page-template-ksd-premium-homepage-template) #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
body:not(.page-template-ksd-premium-homepage-template) #masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a {
  color: var(--ksd-global-gold) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd {
  --d: var(--ksd-global-forest);
  --m: var(--ksd-global-forest);
  --a: var(--ksd-global-gold);
  --mu: #63706a;
  --ml: var(--ksd-global-soft);
  --mp: var(--ksd-global-ivory);
  --b: rgba(11, 47, 36, 0.18);
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-hero,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-shero {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: var(--ksd-global-forest) !important;
  color: #ffffff !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-hero h1,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-shero h1 {
  color: #ffffff !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-hero h1 em,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-shero h1 em,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-crumb,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-crumb a {
  color: var(--ksd-global-gold) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-hero p.sub,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-shero .sub {
  color: rgba(255, 255, 255, 0.76) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-sec.alt {
  background: var(--ksd-global-soft) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-eyebrow {
  color: #9b6d2f !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-callout,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cta .box {
  background: var(--ksd-global-deep) !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .site-footer,
body:not(.page-template-ksd-premium-homepage-template) .site-footer-wrap,
body:not(.page-template-ksd-premium-homepage-template) .site-middle-footer-wrap,
body:not(.page-template-ksd-premium-homepage-template) .site-bottom-footer-wrap,
body:not(.page-template-ksd-premium-homepage-template) .site-footer-row-container-inner {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: var(--ksd-global-deep) !important;
  color: rgba(255, 255, 255, 0.74) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .site-footer h2,
body:not(.page-template-ksd-premium-homepage-template) .site-footer h3,
body:not(.page-template-ksd-premium-homepage-template) .site-footer h4 {
  color: var(--ksd-global-gold) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .site-footer a,
body:not(.page-template-ksd-premium-homepage-template) .site-footer p,
body:not(.page-template-ksd-premium-homepage-template) .site-footer li,
body:not(.page-template-ksd-premium-homepage-template) .site-footer span {
  color: rgba(255, 255, 255, 0.74) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .site-footer a:hover {
  color: #ffffff !important;
}

body:not(.page-template-ksd-premium-homepage-template).single-post .entry-hero,
body:not(.page-template-ksd-premium-homepage-template).archive .entry-hero {
  background: var(--ksd-global-forest) !important;
}

/* Complete legacy-palette replacement for existing inner-page templates. */
body:not(.page-template-ksd-premium-homepage-template) .ksd {
  color: var(--ksd-global-forest) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark,
body:not(.page-template-ksd-premium-homepage-template) .ksd.ksd-dark,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: var(--ksd-global-deep) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark h1,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark h2,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark h3,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office h1,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office h2,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office h3 {
  color: #ffffff !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark .ksd-eyebrow,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark h1 em,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark h2 em,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office .ksd-eyebrow {
  color: var(--ksd-global-gold) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-btn,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-btn.dk,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-act.pri,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-way.pri,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cform input[type="submit"],
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cform button[type="submit"] {
  border-color: var(--ksd-global-deep) !important;
  background: var(--ksd-global-deep) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 0 var(--ksd-global-forest), 0 12px 24px rgba(5, 27, 21, 0.2) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-btn.lt {
  border: 1px solid rgba(11, 47, 36, 0.32) !important;
  background: #ffffff !important;
  color: var(--ksd-global-deep) !important;
  box-shadow: 0 5px 0 var(--ksd-global-gold), 0 12px 24px rgba(5, 27, 21, 0.1) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-shero .ksd-btn.dk,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-hero .ksd-btn.dk,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark .ksd-btn.dk,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cta .ksd-btn.dk {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: var(--ksd-global-deep) !important;
  box-shadow: 0 5px 0 var(--ksd-global-gold), 0 12px 24px rgba(0, 0, 0, 0.18) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-shero .ksd-btn.lt,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-hero .ksd-btn.lt,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark .ksd-btn.lt,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cta .ksd-btn.lt {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-card,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-svc a,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-way,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-val,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-pill2,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-check li,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-facts-card,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-deal,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-lic,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cform,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-faq details {
  border-color: rgba(11, 47, 36, 0.18) !important;
  background: #ffffff !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-sec.alt,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-trust,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cform input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cform textarea,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cform select {
  border-color: rgba(11, 47, 36, 0.18) !important;
  background: var(--ksd-global-ivory) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-way .ic,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-act .ic,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-pill2 i {
  background: var(--ksd-global-soft) !important;
  color: var(--ksd-global-forest) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-lead,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-prose p,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-faq p,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-val span,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-way span,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-note2 {
  color: #63706a !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-shero .ksd-lead,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-hero .ksd-lead,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark .ksd-lead,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark p,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office p,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office li {
  color: rgba(255, 255, 255, 0.74) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .site-footer .kf h3,
body:not(.page-template-ksd-premium-homepage-template) .site-footer .kf .ct svg {
  color: var(--ksd-global-gold) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .site-footer .kf .bk {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: var(--ksd-global-deep) !important;
  box-shadow: 0 5px 0 var(--ksd-global-gold) !important;
}

body:not(.page-template-ksd-premium-homepage-template) #ht-ctc-chat .s_8 {
  background: var(--ksd-global-forest) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 0 var(--ksd-global-deep), 0 12px 26px rgba(5, 27, 21, 0.3) !important;
}

body:not(.page-template-ksd-premium-homepage-template) #ht-ctc-chat .s_8:hover {
  background: var(--ksd-global-deep) !important;
}

body:not(.page-template-ksd-premium-homepage-template).single-post .entry-hero .entry-title,
body:not(.page-template-ksd-premium-homepage-template).single-post .entry-hero .entry-meta,
body:not(.page-template-ksd-premium-homepage-template).single-post .entry-hero .entry-meta a,
body:not(.page-template-ksd-premium-homepage-template).archive .entry-hero .archive-title {
  color: #ffffff !important;
}

body:not(.page-template-ksd-premium-homepage-template).single-post .entry-content {
  color: #26332e !important;
}

body:not(.page-template-ksd-premium-homepage-template).single-post .entry-content a {
  color: var(--ksd-global-forest) !important;
}

/* Final pass: remove legacy green values still inherited by individual templates. */
body:not(.page-template-ksd-premium-homepage-template) {
  color: #26332e !important;
}

body:not(.page-template-ksd-premium-homepage-template) #masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
body:not(.page-template-ksd-premium-homepage-template) #masthead .main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a,
body:not(.page-template-ksd-premium-homepage-template) #masthead .main-navigation .primary-menu-container > ul > li > a:hover {
  background: transparent !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd h1,
body:not(.page-template-ksd-premium-homepage-template) .ksd h2,
body:not(.page-template-ksd-premium-homepage-template) .ksd h3,
body:not(.page-template-ksd-premium-homepage-template) .ksd h4,
body:not(.page-template-ksd-premium-homepage-template) .ksd strong,
body:not(.page-template-ksd-premium-homepage-template) .ksd b {
  color: var(--ksd-global-deep) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd p,
body:not(.page-template-ksd-premium-homepage-template) .ksd li {
  color: #26332e !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-hero p,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-shero p,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark p,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark li,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-callout p,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cta .box p,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office p,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office li {
  color: rgba(255, 255, 255, 0.8) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-hero h1,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-hero h2,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-shero h1,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-shero h2,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark h1,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark h2,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-dark h3,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-callout h2,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-cta .box h2,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office h1,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office h2,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-office h3 {
  color: #ffffff !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .n,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-step .n,
body:not(.page-template-ksd-premium-homepage-template) .ksd .ksd-process .n {
  background: var(--ksd-global-forest) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 var(--ksd-global-deep) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .ksd .pw {
  background: var(--ksd-global-deep) !important;
}

body:not(.page-template-ksd-premium-homepage-template).blog .entry-hero,
body:not(.page-template-ksd-premium-homepage-template).archive .entry-hero,
body:not(.page-template-ksd-premium-homepage-template).single-post .entry-hero {
  background: var(--ksd-global-forest) !important;
}

body:not(.page-template-ksd-premium-homepage-template).blog .entry-hero .entry-hero-container-inner,
body:not(.page-template-ksd-premium-homepage-template).archive .entry-hero .entry-hero-container-inner,
body:not(.page-template-ksd-premium-homepage-template).single-post .entry-hero .entry-hero-container-inner {
  background: var(--ksd-global-forest) !important;
}

body:not(.page-template-ksd-premium-homepage-template).blog .entry-hero .entry-header,
body:not(.page-template-ksd-premium-homepage-template).archive .entry-hero .entry-header,
body:not(.page-template-ksd-premium-homepage-template).single-post .entry-hero .entry-header {
  background: transparent !important;
}

body:not(.page-template-ksd-premium-homepage-template).blog .entry-hero .page-title,
body:not(.page-template-ksd-premium-homepage-template).blog .entry-hero .archive-title,
body:not(.page-template-ksd-premium-homepage-template).archive .entry-hero .page-title,
body:not(.page-template-ksd-premium-homepage-template).archive .entry-hero .archive-title,
body:not(.page-template-ksd-premium-homepage-template).single-post .entry-hero .entry-title {
  color: #ffffff !important;
}

body:not(.page-template-ksd-premium-homepage-template).blog .loop-entry,
body:not(.page-template-ksd-premium-homepage-template).archive .loop-entry {
  border-color: rgba(11, 47, 36, 0.16) !important;
  background: #ffffff !important;
}

body:not(.page-template-ksd-premium-homepage-template).blog .loop-entry .entry-title a,
body:not(.page-template-ksd-premium-homepage-template).archive .loop-entry .entry-title a {
  color: var(--ksd-global-deep) !important;
}

body:not(.page-template-ksd-premium-homepage-template).blog .loop-entry .entry-summary,
body:not(.page-template-ksd-premium-homepage-template).blog .loop-entry .entry-meta,
body:not(.page-template-ksd-premium-homepage-template).archive .loop-entry .entry-summary,
body:not(.page-template-ksd-premium-homepage-template).archive .loop-entry .entry-meta {
  color: #63706a !important;
}

body:not(.page-template-ksd-premium-homepage-template).blog .loop-entry .category-links a,
body:not(.page-template-ksd-premium-homepage-template).blog .loop-entry .post-more-link,
body:not(.page-template-ksd-premium-homepage-template).archive .loop-entry .category-links a,
body:not(.page-template-ksd-premium-homepage-template).archive .loop-entry .post-more-link {
  color: var(--ksd-global-forest) !important;
}

body:not(.page-template-ksd-premium-homepage-template) .site-footer *,
body:not(.page-template-ksd-premium-homepage-template) .site-footer-wrap *,
body:not(.page-template-ksd-premium-homepage-template) .site-middle-footer-wrap *,
body:not(.page-template-ksd-premium-homepage-template) .site-bottom-footer-wrap * {
  border-color: rgba(255, 255, 255, 0.14) !important;
}
