/* LIV — front-end matched Post Editor */
body.editor-styles-wrapper.post-type-post {
  background: #fff;
  color: #334155;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.editor-styles-wrapper.post-type-post .wp-block-post-title,
body.editor-styles-wrapper.post-type-post .wp-block-post-content > :where(:not(.alignwide):not(.alignfull)) {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.editor-styles-wrapper.post-type-post .wp-block-post-title {
  margin-top: 40px !important;
  margin-bottom: 15px !important;
  padding: 0 !important;
  color: #1e293b;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

body.editor-styles-wrapper.post-type-post .wp-block-post-content,
body.editor-styles-wrapper.post-type-post .wp-block-post-content p,
body.editor-styles-wrapper.post-type-post .wp-block-post-content li {
  color: #334155;
  font-size: 16px;
  line-height: 1.65;
}

body.editor-styles-wrapper.post-type-post .wp-block-post-content p {
  margin-top: 0;
  margin-bottom: 25.6px;
}

/* LIV header search */
#masthead .liv-header-search-link > a { display:flex; align-items:center; gap:9px; border:1px solid currentColor; border-radius:6px; padding:0 14px; line-height:38px; height:40px; margin-left:12px; }
#masthead .liv-header-search-link { align-self:center; }
#masthead .liv-header-search-link > a::before { content:""; width:15px; height:15px; flex-shrink:0; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M15 15l6 6' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M15 15l6 6' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
#masthead .liv-header-search-link > a:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
@media (max-width:921px) { #masthead .liv-header-search-link > a { display:inline-flex; margin:12px 20px; } }

/* LIV: balanced article sidebar */
@media (min-width: 922px) {
  body.single.ast-right-sidebar #primary { width: 65%; }
  body.single.ast-right-sidebar #secondary { width: 35%; padding-left: 32px; }
  body.single.ast-separate-container.ast-two-container #secondary .widget { padding: 24px; }
}

/* LIV header Donate button */
#masthead .liv-support-link { align-self: center; }
#masthead .liv-support-link > a { display: inline-flex; align-items: center; justify-content: center; background: #c62828; color: #fff; border: 1px solid #c62828; border-radius: 6px; padding: 0 22px; height: 40px; line-height: 38px; font-weight: 700; text-decoration: none; margin-left: 12px; }
#masthead .liv-support-link > a:hover, #masthead .liv-support-link > a:focus { background: #a51f1f; border-color: #a51f1f; color: #fff; }
#masthead .liv-support-link > a:focus-visible { outline: 2px solid #c62828; outline-offset: 3px; }
@media (max-width: 921px) { #masthead .liv-support-link > a { margin: 12px 20px; } }

/* LIV: matching header action buttons */
#masthead .liv-support-link > a, #masthead .liv-header-search-link > a, #masthead .liv-inline-search-toggle { box-sizing: border-box; width: 108px; height: 44px; min-height: 44px; padding: 0 14px; line-height: 42px; }

/* LIV: center header button labels without wrapping */
#masthead .liv-support-link > a, #masthead .liv-inline-search-toggle { display: flex; align-items: center; justify-content: center; white-space: nowrap; line-height: 1.2; }
#masthead .liv-inline-search-toggle svg { flex-shrink: 0; }

/* LIV: unified editorial hyperlinks */
body :is(.entry-content, .wp-block-post-content) :is(p, li, dd, dt, td, th, figcaption, .wp-block-file) a:not(:is(h1,h2,h3,h4,h5,h6,nav) a):not(.wp-block-button__link,.wp-element-button,.button,.wp-block-file__button,.liv-download-button,[role="button"]):not(:has(img,svg)) {
 color: #006D77 !important;
 text-decoration-line: underline;
 text-decoration-color: currentColor;
 text-decoration-thickness: 1px;
 text-underline-offset: 5px;
 text-decoration-skip-ink: auto;
}
body :is(.entry-content, .wp-block-post-content) :is(p, li, dd, dt, td, th, figcaption, .wp-block-file) a:not(:is(h1,h2,h3,h4,h5,h6,nav) a):not(.wp-block-button__link,.wp-element-button,.button,.wp-block-file__button,.liv-download-button,[role="button"]):not(:has(img,svg)):is(:hover,:focus-visible) {
 color: #004F56 !important;
 text-decoration-thickness: 2px;
}

/* LIV: headings in the logo teal */
body #page :is(h1,h2,h3,h4,h5,h6):not(:is(.flagship,.section-heading.light,.liv-news-feature,.support,.wp-block-cover) :is(h1,h2,h3,h4,h5,h6)):not(.has-white-color) { color: #0B6374 !important; }
body #page :is(h1,h2,h3,h4,h5,h6) :is(a,span,strong,em) { color: inherit !important; }
