/* Existing article back-to-top control: keep above article images and text. */
#rec6214754101 .tn-elem[data-elem-id="1795635000000000001"] {
  z-index: 2147483647 !important;
}

/* Site theme palette */
:root {
  color-scheme: light;
  --zaschet-page: #f2e8d5;
  --zaschet-surface: #f2e8d5;
  --zaschet-ink: #11100d;
  --zaschet-heading: #3b4128;
  --zaschet-accent: #c4a66b;
}

html[data-zaschet-theme="dark"] {
  color-scheme: dark;
  --zaschet-page: #3B4128;
  --zaschet-surface: #3b4128;
  --zaschet-ink: #f2e8d5;
  --zaschet-heading: #f2e8d5;
  --zaschet-accent: #d3b77c;
}

/* Page canvas and the cream sections used across Tilda pages */
html[data-zaschet-theme="dark"] body,
html[data-zaschet-theme="dark"] .t-body,
html[data-zaschet-theme="dark"] #allrecords {
  background-color: var(--zaschet-page) !important;
  color: var(--zaschet-ink) !important;
}

html[data-zaschet-theme="dark"] .t-rec[data-bg-color="#f2e8d5"] {
  background-color: var(--zaschet-page) !important;
}

html[data-zaschet-theme="dark"] .t396__artboard {
  background-color: var(--zaschet-page) !important;
}

/* Tilda text, headings, feed cards and long-form post copy */
html[data-zaschet-theme="dark"] #allrecords .tn-atom,
html[data-zaschet-theme="dark"] #allrecords .t-title,
html[data-zaschet-theme="dark"] #allrecords .t-descr,
html[data-zaschet-theme="dark"] #allrecords .t-text,
html[data-zaschet-theme="dark"] #allrecords .t-name,
html[data-zaschet-theme="dark"] #allrecords .t-subtitle,
html[data-zaschet-theme="dark"] #allrecords .t-cms__card__text,
html[data-zaschet-theme="dark"] #allrecords .t-cms__card__atom,
html[data-zaschet-theme="dark"] #allrecords .t-cms__page__text,
html[data-zaschet-theme="dark"] #allrecords .t-redactor__text,
html[data-zaschet-theme="dark"] #allrecords .t-redactor__embedcode,
html[data-zaschet-theme="dark"] #allrecords .t-redactor__embedcode h1,
html[data-zaschet-theme="dark"] #allrecords .t-redactor__embedcode h2,
html[data-zaschet-theme="dark"] #allrecords .t-redactor__embedcode h3 {
  color: var(--zaschet-ink) !important;
}

html[data-zaschet-theme="dark"] #allrecords .t-cms__card__atom[data-style="title_typo"],
html[data-zaschet-theme="dark"] #allrecords .t-cms__card__atom[data-style="descr_typo"],
html[data-zaschet-theme="dark"] #allrecords .t-cms__card__atom[data-style="text_typo"],
html[data-zaschet-theme="dark"] #allrecords .t-cms__card__atom[data-style="tag_typo"],
html[data-zaschet-theme="dark"] #allrecords .t-cms__card__atom[data-style="label_typo"],
html[data-zaschet-theme="dark"] #allrecords .t-cms__page__atom,
html[data-zaschet-theme="dark"] #allrecords .t-cms__parts__link {
  color: var(--zaschet-ink) !important;
}

html[data-zaschet-theme="dark"] #allrecords a:not(.t-menu__link-item):not(.zaschet-theme-toggle) {
  color: var(--zaschet-accent) !important;
}

html[data-zaschet-theme="dark"] #allrecords .t-cms__parts__link {
  border-color: #60664b !important;
  background-color: transparent !important;
}

html[data-zaschet-theme="dark"] #allrecords .t-cms__parts__link[aria-pressed="true"] {
  color: #f2e8d5 !important;
  border-color: #3b4128 !important;
  background-color: #3b4128 !important;
}

/* Keep the site's branded dark header and footer intact */
html[data-zaschet-theme="dark"] #rec6171778001 .t-menu-base,
html[data-zaschet-theme="dark"] #rec6171778001 .tmenu-mobile,
html[data-zaschet-theme="dark"] #rec6172586401 {
  background-color: #3B4128 !important;
}

html[data-zaschet-theme="dark"] #rec6171778001 .t-menu__link-item,
html[data-zaschet-theme="dark"] #rec6172586401 .t389__copyright,
html[data-zaschet-theme="dark"] #rec6172586401 .t389__list_item a,
html[data-zaschet-theme="dark"] #rec6172586401 .t389_scrolltop {
  color: #f2e8d5 !important;
}

/* Theme control sits beside the navigation, outside its menu items */
#rec6171778001 {
  position: relative !important;
  overflow: visible !important;
}

#rec6171778001 .zaschet-theme-toggle {
  position: fixed;
  z-index: 1001;
  top: 18px;
  right: max(24px, calc((100% - 1200px) / 2 + 24px));
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #c4a66b;
  border-radius: 20px;
  background: transparent;
  color: #f2e8d5;
  font: 500 13px/1.2 var(--t-text-font, Arial, sans-serif);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

#rec6171778001 .zaschet-theme-toggle:hover,
#rec6171778001 .zaschet-theme-toggle:focus-visible {
  background: rgba(242, 232, 213, .12);
  outline: 2px solid #c4a66b;
  outline-offset: 2px;
}

#rec6171778001 .zaschet-theme-toggle__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

#rec6171778001 .zaschet-theme-toggle__icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media screen and (max-width: 960px) {
  #rec6171778001 .zaschet-theme-toggle {
    top: 13px;
    right: 70px;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }
  #rec6171778001 .zaschet-theme-toggle__label {
    display: none;
  }
}

