/* Blog posts (old and admin-written). Loaded on every post page. */

/* Thinner header while reading */
body.single-post .elementor-location-header .elementor-element-3221be6 { --padding-top: .45em !important; --padding-bottom: .45em !important; }
body.single-post .elementor-location-header .elementor-element-66dd879 img { max-height: 58px; width: auto; }

/* H1 the same width as the description under it (80% desktop, 85% phones — the description's widths) */
body.single-post .elementor-514 .elementor-element.elementor-element-1e6ecfa { width: 80%; max-width: 80%; --container-widget-width: 80%; }
@media (max-width: 767px) {
  body.single-post .elementor-514 .elementor-element.elementor-element-1e6ecfa { width: 85%; max-width: 85%; --container-widget-width: 85%; }
}

/* Table of contents: the line on the left fills with the logo red as the reader goes through the article,
   and the section being read is highlighted. */
.custom-toc { --cfc-red: #F20505; --cfc-progress: 0; border-left: 2px solid #e6dfd0 !important; position: relative; }
.custom-toc::before {
  content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 100%;
  background: var(--cfc-red); transform-origin: top; transform: scaleY(var(--cfc-progress));
  transition: transform .12s linear; pointer-events: none; z-index: 1;
}
.custom-toc .elementor-toc__list-item .elementor-toc__list-item-text {
  border-left-width: 3px !important; margin-left: -16px !important; position: relative; z-index: 2;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease !important;
}
.custom-toc .elementor-toc__list-item .elementor-toc__list-item-text:hover {
  color: #18140C !important; border-left-color: rgba(242, 5, 5, .35) !important;
}
/* sections already read: dark red, and they stay that way */
.elementor-widget-table-of-contents.custom-toc .elementor-toc__list-item .elementor-toc__list-item-text.cfc-passed {
  color: #8E0303 !important;
}
/* the section being read: red, bold, with the marker on the line */
.elementor-widget-table-of-contents.custom-toc .elementor-toc__list-item .elementor-toc__list-item-text.cfc-active {
  color: #BF0404 !important; font-weight: 600 !important; border-left-color: var(--cfc-red) !important;
  background-color: transparent !important;
}
/* Elementor's own (unstyled) active marker is replaced by .cfc-active */
.elementor-widget-table-of-contents.custom-toc .elementor-toc__list-item-text.elementor-item-active:not(.cfc-active) { font-weight: 500 !important; }
@media (prefers-reduced-motion: reduce) { .custom-toc::before, .custom-toc .elementor-toc__list-item-text { transition: none !important; } }

/* Source / reference links: icon just a touch taller than the text (was 35px next to 16px text) */
.elementor-widget-theme-post-content .elementor-icon-list-item:has(.elementor-icon-list-text a) { align-items: center !important; }
.elementor-widget-theme-post-content .elementor-icon-list-item:has(.elementor-icon-list-text a) .elementor-icon-list-icon {
  width: 20px !important; min-width: 20px; height: 20px; padding: 0 !important; margin-right: 10px !important; display: inline-flex; align-items: center; justify-content: center; }
.elementor-widget-theme-post-content .elementor-icon-list-item:has(.elementor-icon-list-text a) .elementor-icon-list-icon svg {
  width: 20px !important; height: 20px !important; }

/* One sub-heading (H3) size on every post. Before: 32px on 12 posts (as big as section headings),
   24px on 2, and 21.6px where sub-headings were typed inside text blocks. */
body.single-post .elementor-widget-theme-post-content h3,
body.single-post .elementor-widget-theme-post-content h3.elementor-heading-title {
  font-family: "Playfair Display", serif !important; font-size: 24px !important; line-height: 1.3 !important; font-weight: 700 !important; color: #18140C !important;
}
body.single-post .elementor-widget-theme-post-content .elementor-widget-text-editor h3 { margin: 18px 0 8px !important; }
@media (max-width: 767px) {
  body.single-post .elementor-widget-theme-post-content h3,
  body.single-post .elementor-widget-theme-post-content h3.elementor-heading-title { font-size: 21px !important; }
}
