/* Selected account pages, Support and category archives only. */
body.wk-community-dark {
  --wk-page: #0a0f0d;
  --wk-panel: #121714;
  --wk-input: #1a1f1d;
  --wk-line: #58685f;
  --wk-text: #c6cec9;
  --wk-heading: #fafafa;
  --wk-accent: #3ec27a;
  background: var(--wk-page);
  color: var(--wk-text);
  color-scheme: dark;
}
body.wk-community-dark main.site-main {
  background: var(--wk-page);
  color: var(--wk-text);
  padding: 40px 24px 56px;
  min-height: 55vh;
  overflow-wrap: anywhere;
}
body.wk-community-dark main :is(h1, h2, h3, h4) { color: var(--wk-heading); }
body.wk-community-dark main :is(p, label, li) { color: var(--wk-text); }
body.wk-community-dark main a { color: var(--wk-accent); }
body.wk-community-dark main a:hover { color: #79e4a9; }
body.wk-community-dark main :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #79e4a9;
  outline-offset: 4px;
}

/* Preserve plugin markup, validation and account endpoints. */
body.wk-dark-account main.site-main { max-width: 1000px; }
body.wk-dark-account main .page-header { margin-bottom: 24px; }
body.wk-dark-account main :is(#user-registration, .ur-frontend-form, .user-registration-MyAccount-content, .user-registration-MyAccount-navigation) {
  background: var(--wk-panel);
  color: var(--wk-text);
  border-color: #2a3a30;
  box-shadow: none;
  border-radius: 12px;
}
body.wk-dark-account main .ur-frontend-form { padding: 32px; border: 1px solid #2a3a30; }
body.wk-dark-account main #user-registration .ur-frontend-form { margin-bottom: 0; }
body.wk-dark-account main :is(.ur-label, .ur-lost-password-title, .user-registration-form__label) { color: var(--wk-heading); }
body.wk-dark-account main :is(input:not([type=hidden]):not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]), textarea, select) {
  background: var(--wk-input);
  color: var(--wk-heading);
  border: 1px solid var(--wk-line);
  border-radius: 6px;
  min-height: 44px;
  max-width: 100%;
}
body.wk-dark-account main :is(input, textarea)::placeholder { color: #aebbb3; opacity: 1; }
body.wk-dark-account main input:is([type=checkbox], [type=radio]) { accent-color: var(--wk-accent); }
body.wk-dark-account main :is(button.ur-submit-button, input[type=submit], .user-registration-Button) {
  background: var(--wk-accent);
  border: 1px solid var(--wk-accent);
  border-radius: 6px;
  color: var(--wk-page);
  font-weight: 700;
  min-height: 44px;
}
body.wk-dark-account main :is(button.ur-submit-button, input[type=submit], .user-registration-Button):hover { background: #79e4a9; color: var(--wk-page); }
body.wk-dark-account main :is(.required, label.user-registration-error, .ur-error, .user-registration-error, .ur-message-error) { color: #ffb4ad; }
body.wk-dark-account main :is(.user-registration-error, .user-registration-message, .user-registration-info, .ur-message) {
  background: var(--wk-input);
  border-color: var(--wk-line);
  color: var(--wk-text);
}
body.wk-dark-account main .form-row > div:has(.ur-input-count) { color: #aebbb3 !important; }
/* The form plugin ships ID-scoped and important colour declarations. */
body.wk-dark-account main .ur-frontend-form :is(label, .ur-lost-password-title) { color: var(--wk-heading) !important; }
body.wk-dark-account main #user-registration .ur-frontend-form .ur-lost-password-message { color: var(--wk-text) !important; }
body.wk-dark-account main .ur-frontend-form a { color: var(--wk-accent) !important; }
body.wk-dark-account main .ur-frontend-form a:hover { color: #79e4a9 !important; }
body.wk-dark-account main .ur-frontend-form :is(button.ur-submit-button, input[type=submit], .user-registration-Button) { background: var(--wk-accent) !important; border-color: var(--wk-accent) !important; color: var(--wk-page) !important; }
body.wk-dark-account main .ur-frontend-form :is(button.ur-submit-button, input[type=submit], .user-registration-Button):hover { background: #79e4a9 !important; }
body.wk-dark-account main .ur-frontend-form :is(label.user-registration-error, label.ur-error) { color: #ffb4ad !important; }
body.wk-dark-account main :is(#user-registration, .ur-frontend-form) :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #79e4a9 !important;
  outline-offset: 4px !important;
}
body.wk-dark-account main .user-registration-MyAccount-navigation-link a { background: var(--wk-panel); }
body.wk-dark-account main .user-registration-MyAccount-navigation-link.is-active a { background: var(--wk-input); color: var(--wk-heading); }

/* Signed-in account views use additional ID-scoped plugin rules. */
body.wk-dark-account main #user-registration.user-registration-MyAccount :is(.user-registration-MyAccount-navigation--wrapper, .user-registration-MyAccount-content, .user-registration-MyAccount-navigation) {
  background: var(--wk-panel);
  color: var(--wk-text);
  border-color: #2a3a30;
}
body.wk-dark-account main #user-registration.user-registration-MyAccount :is(h1, h2, h3, h4, label) { color: var(--wk-heading) !important; }
body.wk-dark-account main #user-registration.user-registration-MyAccount :is(p, .user-registration-MyAccount-content__body, .user-registration-profile-header-nav) { color: var(--wk-text); }
body.wk-dark-account main #user-registration.user-registration-MyAccount a { color: var(--wk-accent); }
body.wk-dark-account main #user-registration.user-registration-MyAccount a:hover { color: #79e4a9; }
body.wk-dark-account main #user-registration.user-registration-MyAccount .user-registration-MyAccount-navigation a {
  background: transparent;
  color: var(--wk-text);
  border-color: transparent;
}
body.wk-dark-account main #user-registration.user-registration-MyAccount .user-registration-MyAccount-navigation :is(.is-active a, a:hover, a:focus-visible) {
  background: var(--wk-input);
  color: var(--wk-heading);
  border-color: var(--wk-accent);
}
body.wk-dark-account main #user-registration.user-registration-MyAccount :is(.user-registration-MyAccount-content__header, .user-registration-profile-header-nav) { border-color: #2a3a30; }
body.wk-dark-account main #user-registration.user-registration-MyAccount .user-registration-myaccount-notice-box {
  background: var(--wk-input);
  border-color: var(--wk-accent);
  color: var(--wk-text);
}
body.wk-dark-account main #user-registration.user-registration-MyAccount .user-registration-myaccount-notice-box :is(p, strong, b) { color: var(--wk-text); }
body.wk-dark-account main #user-registration.user-registration-MyAccount .user-registration-myaccount-notice-box :is(.addon-link, .notice-icon) { color: var(--wk-accent) !important; }
body.wk-dark-account main #user-registration.user-registration-MyAccount :is(th, td) {
  background: var(--wk-panel);
  color: var(--wk-text);
  border-color: #2a3a30;
}
body.wk-dark-account main #user-registration.user-registration-MyAccount :is(.button, button):not(.user_registration_profile_picture_upload) {
  background: var(--wk-accent);
  color: var(--wk-page);
  border-color: var(--wk-accent);
}

/* This is the site's card around PayPal; hosted payment buttons retain their branding. */
body.wk-dark-support main .elementor-widget-html .elementor-widget-container > div > div:has(> #paypal-container-UMFPB4N43EBQE) {
  background: var(--wk-panel) !important;
  border: 1px solid #2a3a30;
  box-shadow: none !important;
  color: var(--wk-text);
}
body.wk-dark-support #paypal-container-UMFPB4N43EBQE { color-scheme: light; }
body.wk-dark-support #paypal-container-UMFPB4N43EBQE :is(h3, .input-label) { color: var(--wk-heading); }
body.wk-dark-support #paypal-container-UMFPB4N43EBQE .error-label { color: #ffb4ad; }
body.wk-dark-support #paypal-container-UMFPB4N43EBQE :is(.currency-symbol, .currency-label, input) { color: #25352b; }
body.wk-dark-support #paypal-container-UMFPB4N43EBQE :is(.currency-symbol, .currency-label) { background: #fff; }
body.wk-dark-support #paypal-container-UMFPB4N43EBQE .amount-container { color: #25352b; }

body.wk-dark-category main.site-main { max-width: 1120px; }
body.wk-dark-category main .page-header { margin-bottom: 32px; }
body.wk-dark-category main article.post {
  background: var(--wk-panel);
  border: 1px solid #2a3a30;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}
body.wk-dark-category main article.post .entry-title { margin-top: 0; }
body.wk-dark-category main article.post .entry-title a { color: var(--wk-heading); }
body.wk-dark-category main article.post .entry-title a:hover { color: var(--wk-accent); }
body.wk-dark-category main article.post img { border-radius: 6px; }
body.wk-dark-category main .page-numbers { border-color: var(--wk-line); }
body.wk-dark-category main .page-numbers.current { background: var(--wk-accent); color: var(--wk-page); }

@media (max-width: 600px) {
  body.wk-community-dark main.site-main { padding: 28px 16px 40px; }
  body.wk-dark-account main .ur-frontend-form { padding: 20px 16px; }
  body.wk-dark-account main .ur-form-row { flex-direction: column; }
  body.wk-dark-account main .ur-form-grid { width: 100% !important; min-width: 0; }
  body.wk-dark-account main .user-registration-before-login-btn { flex-wrap: wrap; gap: 12px; }
  body.wk-dark-support main .elementor-widget-html .elementor-widget-container > div { padding: 16px 0 !important; }
  body.wk-dark-support main .elementor-widget-html .elementor-widget-container > div > div:has(> #paypal-container-UMFPB4N43EBQE) { padding: 24px 16px !important; }
  body.wk-dark-category main article.post { padding: 18px; }
}
