/* Designing Experiments: shared accent and book covers. */
:root { --de-gold: #967c39; }
body.elementor-kit-880 { --e-global-color-accent: var(--de-gold); }
a, a:hover, a:focus, .elementor-kit-880 a { color: var(--de-gold); }
::selection { background-color: var(--de-gold); }

.elementor-kit-880 [style*="color: #ae9142" i],
.elementor-kit-880 [style*="color:#ae9142" i],
.elementor-element-9267454 span,
.elementor-element-92df813 strong,
.elementor-element-1a22b22 strong { color: var(--de-gold) !important; }

.elementor-location-header .elementor-nav-menu--main a.elementor-item:is(:hover, :focus, .elementor-item-active, .highlighted) {
  color: var(--de-gold) !important;
  fill: var(--de-gold) !important;
}

/* These native widgets specify their gold border independently of the theme. */
.elementor .elementor-widget-button:is(
  [data-id="cf5ee48"], [data-id="03c56dc"], [data-id="ce0613e"], [data-id="4c5a131"],
  [data-id="f07d25d"], [data-id="ea67625"], [data-id="1fcdbd9"], [data-id="2125e9b"],
  [data-id="16e2637"], [data-id="692b954"], [data-id="6d190ba"], [data-id="18c2684"],
  [data-id="181a7e0"], [data-id="bc3aa64"], [data-id="8db4094"], [data-id="7c05a6c"],
  [data-id="6883714"], [data-id="4e03e90"], [data-id="c9fa8a3"], [data-id="3606cea"],
  [data-id="7815ce9"], [data-id="a27f73d"], [data-id="a364e99"], [data-id="9570d93"]
) .elementor-button {
  border-color: var(--de-gold) !important;
  font-weight: 700 !important;
}


#content :is(img.book-cover, img.de-cover, img.wp-image-1837, img.wp-image-1851, img[src*="MDK4thCover" i]),
#content .elementor-widget-image:has(img[src*="MDK4thCover" i]),
#content .elementor-widget-image :is(a, figure, .elementor-widget-container):has(img[src*="MDK4thCover" i]) {
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Gold UI states in the Astra theme. */
.tagcloud a:hover, .tagcloud a:focus, .tagcloud a.current-item,
input[type="radio"]:checked, input[type=reset], input[type="checkbox"]:checked, input[type="checkbox"]:hover:checked, input[type="checkbox"]:focus:checked, input[type=range]::-webkit-slider-thumb,
.post-page-numbers.current .page-link, .ast-pagination .page-numbers.current {
  border-color: var(--de-gold);
  background-color: var(--de-gold);
}
input:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="reset"]:focus, input[type="search"]:focus, textarea:focus,
.ast-builder-menu-1 .sub-menu, .ast-builder-menu-1 .inline-on-mobile .sub-menu {
  border-color: var(--de-gold);
}
.site-footer a:hover + .post-count, .site-footer a:focus + .post-count,
.secondary a:hover + .post-count, .secondary a:focus + .post-count {
  background: var(--de-gold);
  border-color: var(--de-gold);
}
.single .nav-links .nav-previous, .single .nav-links .nav-next,
.entry-meta, .entry-meta *,
.entry-meta a:not(.ast-button):hover, .entry-meta a:not(.ast-button):hover *, .entry-meta a:not(.ast-button):focus, .entry-meta a:not(.ast-button):focus *, .page-links > .page-link, .page-links .page-link:hover, .post-navigation a:hover,
#cat option, .secondary .calendar_wrap thead a, .secondary .calendar_wrap thead a:visited {
  color: var(--de-gold);
}
.secondary .calendar_wrap #today, .ast-progress-val span {
  background: var(--de-gold);
}
#ast-scroll-top {
  background-color: var(--de-gold);
}

/* Gold buttons on the published homepage use large, bold labels. */
body.page-id-1 .elementor-widget-button:is(
  [data-id="815b211"], [data-id="59ee806"], [data-id="78c5624"], [data-id="2b6bd7f"],
  [data-id="319da70"], [data-id="f31226d"], [data-id="052aab1"], [data-id="c29ce84"],
  [data-id="dfbc731"], [data-id="b2f4705"], [data-id="3562002"]
) .elementor-button {
  border-color: var(--de-gold) !important;
  font-weight: 700 !important;
  font-size: var(--de-home-cta-size, 20px) !important;
}

@media (max-width: 767px) {
  body.page-id-1 { --de-home-cta-size: 19px; }
}

/* Reader buttons and panels follow Buy the Book at every screen width. */
:root { --de-reader-radius: 8px; }
#content :is(.elementor-button, .wp-block-button__link, .kk-book-app-section),
body.page-id-1 #content .e-con:is(
  [data-id="cbd6ba7"], [data-id="3fb2b5a"], [data-id="36d76ba"],
  [data-id="75471f9"], [data-id="41fb5d5"], [data-id="6ba1ed2"],
  [data-id="924d890"], [data-id="581ad6d"]
) {
  border-radius: var(--de-reader-radius) !important;
}

/* Give the opening prose a steady left edge and a comfortable line length. */
body.page-id-1 #content [data-id="9d60faf"] p {
  max-width: 70ch;
  margin-inline: auto;
  text-align: start;
}
