/* 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 (LIV colour system v1: red = action) */
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: #C7222A !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: #9F1820 !important;
  text-decoration-thickness: 2px;
}

/* LIV: heading colour now comes from Astra Global Palette (Headings #171717). The old "headings in the logo teal" override was removed on 2 Nov 2026. */

/* LIV: logo teal on large headings only (page H1, section H2, post/archive/widget titles). H3+ stay ink; coloured surfaces keep white. 2 Nov 2026 */
html:not(#liv-f1):not(#liv-f2) body #page :is(h1,h2):not(:is(.flagship,.section-heading.light,.liv-news-feature,.support,.hero-panel,.lead-feature,.impact,.wp-block-cover,.about-hero,.about-board,.staff-collective,.project-card,.contact-hero,.liv-contact-newsletter,.board-hero,.board-contact,.lv-hero,.covid-hero,#liv-1975) :is(h1,h2)):not(.has-white-color) { color: #0B6374 !important; }
html:not(#liv-f1):not(#liv-f2) body #page :is(h1,h2) :is(a,span,strong,em) { color: inherit !important; }

/* LIV: placeholder thumbnail for archive cards without a featured image: logo teal background, faint white logo. 2 Nov 2026 */
.ast-article-post .ast-no-thumb .ast-blog-featured-section.post-thumb { display: block !important; position: relative; overflow: hidden; aspect-ratio: 1.344; margin: -1.5em -1.5em 1.5em; background: #0B6374 !important; }
.ast-article-post .ast-no-thumb .ast-blog-featured-section.post-thumb::before { content: ''; position: absolute; inset: 0; background: url('https://i0.wp.com/liv.ngo/wp-content/uploads/2020/09/cropped-cropped-Logo-LIV.png?resize=768%2C246&ssl=1') center / 48% auto no-repeat; filter: brightness(0) invert(1); opacity: .32; }