/* Correct Astra colors that override the Premium palette. */
html[data-valutenze-theme="dark"] body.valutenze-premium blockquote {
  color: var(--ink);
}

html[data-valutenze-theme="dark"] body.valutenze-premium .valutenze-ai-links :is(a, a:visited) {
  color: var(--blue);
}

/* WordPress pages and posts rendered by Astra. */
html[data-valutenze-theme="dark"] body:not(.valutenze-premium) {
  --ast-global-color-0: #2859b7;
  --ast-global-color-1: #9bbfff;
  --ast-global-color-2: #ecf3ff;
  --ast-global-color-3: #bac9dd;
  --ast-global-color-4: #101e30;
  --ast-global-color-5: #0a1423;
  --ast-global-color-6: #172940;
  --ast-global-color-7: #334860;
  --ast-global-color-8: #182b43;
  background: var(--paper);
  color: var(--ink);
}

html[data-valutenze-theme="dark"] body:not(.valutenze-premium) :is(
  #masthead, #ast-mobile-header .ast-primary-header-bar,
  #ast-desktop-header .ast-primary-header-bar, .ast-mobile-header-content,
  #content, #primary, #secondary, .ast-article-single, .comments-area,
  .ast-separate-container .comment-respond, #colophon, .site-above-footer-wrap,
  .site-primary-footer-wrap, .site-below-footer-wrap
) {
  background-color: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

html[data-valutenze-theme="dark"] body:not(.valutenze-premium) :is(
  #content .uagb-is-root-container, #content .wp-block-uagb-toc__wrap,
  #content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
  #content .wp-block-quote, #content .ast-author-box, #content .srfm-form-container
) {
  background-color: var(--sky-soft);
  border-color: var(--line);
  color: var(--ink);
}

html[data-valutenze-theme="dark"] body:not(.valutenze-premium) :is(
  #content .entry-title, #content .entry-content :is(h1,h2,h3,h4,h5,h6,blockquote),
  #content .widget-title, #content .comment-reply-title, #colophon .widget-title
) {
  color: var(--ink);
}

html[data-valutenze-theme="dark"] body:not(.valutenze-premium) :is(
  #content a:not(.button):not(.wp-element-button):not(.wp-block-button__link),
  #colophon a, #masthead .menu-link
) {
  color: var(--blue);
}

html[data-valutenze-theme="dark"] body:not(.valutenze-premium) :is(
  #content .entry-content input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),
  #content .entry-content select, #content .entry-content textarea,
  #content .comment-form textarea, #content .comment-form input:not([type=submit]),
  #content .srfm-form .ts-control, #content .srfm-form .ts-dropdown
) {
  background-color: var(--sky-soft);
  color: var(--ink);
  border-color: #7189a5;
}

html[data-valutenze-theme="dark"] body:not(.valutenze-premium) #content :is(
  .srfm-block-label, .srfm-description, .srfm-cbx, .ts-dropdown .option
) {
  color: var(--ink-soft);
}

html[data-valutenze-theme="dark"] body:not(.valutenze-premium) #content :is(input,textarea)::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

html[data-valutenze-theme="dark"] body:not(.valutenze-premium) #content :is(
  button.srfm-submit-button, input[type=submit], .wp-element-button, .wp-block-button__link
) {
  background-color: #2859b7;
  color: #fff;
}

/* Astra’s full-width footer row must not add margins to a full viewport. */
@media (max-width: 600px) {
  body:not(.valutenze-premium) #colophon .site-above-footer-wrap {
    box-sizing: border-box;
    max-width: 100%;
    margin-inline: auto;
  }

  body:not(.valutenze-premium) #colophon .site-above-footer-wrap .ast-builder-grid-row {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
