/* Public-facing theme only; admin/editor and content records are untouched. */
body.ted-site-refresh {
  --ted-ink: #3f3038; --ted-muted: #74616d; --ted-berry: #8b2f5d;
  --ted-ivory: #fcf9f5; --ted-blush: #faeef3; --ted-line: #e5d8dd;
  --ast-global-color-0: #8b2f5d; --ast-global-color-1: #702447;
  --ast-global-color-2: #3f3038; --ast-global-color-3: #66535e;
  --ast-global-color-4: #fcf9f5; --ast-global-color-5: #ffffff;
  --ast-global-color-6: #faeef3; --ast-global-color-7: #e5d8dd;
  --ast-global-color-8: #75314e;
  background: #fcf9f5 !important; color: #3f3038;
}
body.ted-site-refresh::before,
body.ted-site-refresh #ted-hearts-layer,
body.ted-site-refresh .ted-heart { display: none !important; }
body.ted-site-refresh #content { background: #fcf9f5 !important; }
body.ted-site-refresh .site-header :is(.main-header-bar,.ast-primary-header-bar,.ast-below-header-bar) { background: #fff; border-color: #e5d8dd; }
body.ted-site-refresh .site-header .menu-link { color: #4f4049; }
body.ted-site-refresh .site-header :is(.current-menu-item,.current-menu-ancestor) > .menu-link,
body.ted-site-refresh .site-header .menu-link:hover { color: #8b2f5d; }
body.ted-site-refresh .site-header :is(.ast-custom-button,.ast-mobile-menu-trigger-minimal) { background: #8b2f5d; color: #fff; border-radius: 6px; }
body.ted-site-refresh .site-footer { background: #faeef3; color: #4f4049; }
body.ted-site-refresh .site-footer :is(.site-above-footer-wrap,.site-primary-footer-wrap,.site-below-footer-wrap) { background: #faeef3; border-color: #e5d8dd; }
body.ted-site-refresh .site-footer a { color: #75314e; }
body.ted-site-refresh :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #8b2f5d; outline-offset: 3px; }
body.ted-site-refresh #main :is(.wp-block-button__link,.ted-btn-primary,.ted-template-button,.ted-print-button),
body.ted-site-refresh #content :is(button[type="submit"],input[type="submit"],.srfm-button,.wpforms-submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.wc-block-components-button:not(.is-link)) {
  background: #8b2f5d !important; color: #fff !important; border-color: #8b2f5d !important;
  border-radius: 6px !important; min-height: 44px; font-weight: 600;
  letter-spacing: 0 !important; text-transform: none !important; box-shadow: none;
}
body.ted-site-refresh #main .is-style-outline .wp-block-button__link,
body.ted-site-refresh #main .ted-btn-secondary { background: #fff !important; color: #75314e !important; border: 1px solid #d9c4cd !important; }
body.ted-site-refresh #content :is(input[type="text"],input[type="email"],input[type="tel"],input[type="password"],input[type="search"],input[type="number"],textarea,select) {
  border-color: #d9c4cd; border-radius: 6px; color: #3f3038; background-color: #fff; font-size: 16px;
}
body.ted-site-refresh #content :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) { background: #fff; color: #3f3038; border-top-color: #8b2f5d; }
body.ted-site-refresh #content :is(.woocommerce form.login,.woocommerce form.register,.woocommerce-cart-form,.cart_totals,#order_review,.woocommerce-MyAccount-content) { border-color: #e5d8dd; border-radius: 12px; }
body.ted-site-refresh #content .woocommerce :is(.product_title,.price,.woocommerce-loop-product__title) { color: #3f3038; }
/* Editorial pages, posts and archives. Bespoke recipe/shop grids keep their own rules. */
body.ted-editorial-refresh #main { color: #3f3038; }
body.ted-editorial-refresh #main :is(h1,h2,h3,h4) { color: #3f3038 !important; font-family: 'IBM Plex Serif', Georgia, serif; }
body.ted-editorial-refresh #main :is(h1,.entry-title) { line-height: 1.2; overflow-wrap: break-word; }
body.ted-editorial-refresh #main h1 { font-size: clamp(2rem, 4.5vw, 3.5rem) !important; }
body.ted-editorial-refresh #main .entry-content :is(p,li,label) { color: #4f4049; line-height: 1.75; }
body.ted-editorial-refresh #main .entry-content :is(p,li).has-text-color { color: #66535e !important; }
body.ted-editorial-refresh #main .entry-content a:not(.wp-block-button__link):not(.ted-btn):not(.ted-template-button):not(.sd-button) { color: #8b2f5d; }
body.ted-editorial-refresh #main :is(.entry-meta,.entry-meta a,.wp-block-post-date) { color: #74616d !important; }
body.ted-editorial-refresh #main :is(.wp-block-group.has-background,.wp-block-column.has-background,blockquote.has-background) { background: #fff !important; border-color: #e5d8dd !important; }
body.ted-editorial-refresh #main :is(.wp-block-column.has-background,.wp-block-group.has-border-color) { border: 1px solid #e5d8dd !important; border-radius: 12px !important; box-shadow: none; }
body.ted-editorial-refresh #main .wp-block-separator { background: #e5d8dd !important; color: #e5d8dd !important; border-color: #e5d8dd; }
body.ted-editorial-refresh #main blockquote { border-left: 3px solid #c987a5; background: #faeef3 !important; border-radius: 8px; }
body.ted-editorial-refresh #main .wp-block-cover::before { display: none; }
body.ted-editorial-refresh #main .wp-block-cover__background { background: #fcf9f5 !important; opacity: .9 !important; }
body.ted-editorial-refresh #main .wp-block-cover__inner-container { color: #3f3038; }
body.ted-editorial-refresh #main .wp-block-image img { border-radius: 12px; }
body.ted-editorial-refresh #main .wp-block-columns { gap: 28px; }
body.ted-editorial-refresh.page #main > article > .entry-content { max-width: 1160px; margin-inline: auto; padding: 0 20px 48px; }
body.ted-editorial-refresh.home #main > article > .entry-content,
body.ted-editorial-refresh.page-id-2613 #main > article > .entry-content { max-width: none; padding: 0; }
body.ted-editorial-refresh.page #main .entry-content > .wp-block-group:has(> h1) { background: #fcf9f5 !important; padding-top: 56px !important; padding-bottom: 40px !important; }
body.ted-editorial-refresh.page-id-2246 #main .entry-content > .wp-block-group:has(> h1) > .wp-block-group { padding: 28px 0 0 !important; background: transparent !important; }
body.ted-editorial-refresh.page-id-2246 #main .entry-content > .wp-block-group:has(> h1) > :is(h1,p),
body.ted-editorial-refresh.page-id-2693 #main .entry-content > .wp-block-group:has(> h1) > :is(h1,p),
body.ted-editorial-refresh.page-id-2248 #main .entry-content > .wp-block-group:has(> h1) > :is(h1,p) { text-align: left; }
body.ted-editorial-refresh.page-id-2246 #main .wp-block-image img { width: 100%; height: auto; object-fit: contain; }
body.ted-editorial-refresh.single-post #main .entry-content { font-size: 17px; line-height: 1.8; }
body.ted-editorial-refresh.single-post #main .ast-article-single { background: #fff; border: 1px solid #ebdfe3; border-radius: 12px; }
body.ted-editorial-refresh:is(.blog,.archive) #main .ast-article-inner { background: #fff; border: 1px solid #ebdfe3; border-radius: 12px; box-shadow: none; overflow: hidden; }
body.ted-editorial-refresh:is(.blog,.archive) #main .entry-title { font-size: 24px; }
body.ted-editorial-refresh #main .wp-block-post-template { gap: 28px; }
body.ted-editorial-refresh #main .wp-block-post-template > li { min-width: 0; }
body.ted-editorial-refresh #main .wp-block-post-template > li > .wp-block-group { height: 100%; }
body.ted-editorial-refresh #main .wp-block-post-title { font-size: 23px !important; line-height: 1.35 !important; }
body.ted-editorial-refresh #main .wp-block-post-title a { color: #3f3038 !important; }
body.ted-editorial-refresh #main .wp-block-post-excerpt__more-link { font-weight: 600; }
body.ted-editorial-refresh #main .ted-latest-articles { background: #fcf9f5 !important; }
body.ted-editorial-refresh #main #latest-articles { scroll-margin-top: 32px; }
body.ted-editorial-refresh #main .ted-latest-articles .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
body.ted-editorial-refresh #main .ted-latest-articles .wp-block-post-template > li:first-child > .wp-block-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; padding: 24px !important; align-content: center; }
body.ted-editorial-refresh #main .ted-latest-articles .wp-block-post-template > li:first-child .wp-block-post-featured-image { grid-column: 1; grid-row: 1 / span 3; margin: 0 !important; align-self: center; }
body.ted-editorial-refresh #main .ted-latest-articles .wp-block-post-template > li:first-child :is(.wp-block-post-title,.wp-block-post-date,.wp-block-post-excerpt) { grid-column: 2; margin: 0 !important; }
body.ted-editorial-refresh #main .ted-latest-articles .wp-block-post-template > li:first-child .wp-block-post-title { font-size: clamp(1.4rem, 2.5vw, 2rem) !important; }
/* Existing custom faith and collaboration layouts use the shared palette. */
body.ted-editorial-refresh #main .ted-collab { --pink: #c987a5; --pink-dark: #8b2f5d; --blush: #faeef3; --lav: #faeef3; --navy: #3f3038; --muted: #74616d; --line: #e5d8dd; background: #fcf9f5; }
body.ted-editorial-refresh #main :is(.ted-hero,.ted-section-soft,.ted-final) { background: #fcf9f5; }
body.ted-editorial-refresh #main :is(.ted-trust,.ted-fit,.ted-quote) { background: #faeef3; border-color: #e5d8dd; }
body.ted-editorial-refresh #main :is(.ted-hero-photo,.ted-faith-image img) { border-radius: 12px; box-shadow: none; }
body.ted-editorial-refresh #main :is(.ted-brand-heart,.ted-creative,.ted-offer-icon,.ted-pillar-icon) { color: #8b2f5d; border-color: #d9c4cd; }
body.ted-editorial-refresh #main :is(.ted-faith-card,.ted-template-card) { border: 1px solid #e5d8dd; border-radius: 12px; box-shadow: none; }
body.ted-editorial-refresh #main .ted-faith-page { max-width: 1160px; color: #3f3038; }
body.ted-editorial-refresh #main :is(.ted-faith-kicker,.ted-template-price) { color: #8b2f5d; }
body.ted-editorial-refresh #main .ted-template-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
@media (max-width: 900px) {
  body.ted-editorial-refresh #main .ted-template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.ted-editorial-refresh #main .ted-latest-articles .wp-block-post-template { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  body.ted-editorial-refresh #main .ted-latest-articles .wp-block-post-template,
  body.ted-editorial-refresh #main .ted-template-grid { grid-template-columns: minmax(0,1fr); }
  body.ted-editorial-refresh #main .ted-latest-articles .wp-block-post-template > li:first-child > .wp-block-group { display: flex; flex-direction: column; }
  body.ted-editorial-refresh.page #main > article > .entry-content { padding-inline: 16px; }
  body.ted-editorial-refresh.home #main > article > .entry-content,
  body.ted-editorial-refresh.page-id-2613 #main > article > .entry-content { padding-inline: 0; }
  body.ted-editorial-refresh #main .entry-content :is(.wp-block-group,.wp-block-cover)[style*="padding"] { padding-left: 20px !important; padding-right: 20px !important; }
  body.ted-editorial-refresh #main .wp-block-cover { min-height: 520px !important; padding-top: 56px !important; padding-bottom: 56px !important; }
  body.ted-editorial-refresh #main .entry-content > .wp-block-group { padding-top: 36px !important; padding-bottom: 36px !important; }
}

/* Override the older article-column fix on page-level layout containers. */
body.ted-editorial-refresh.page #main > article > .entry-content > .wp-block-group { width: 100%; max-width: 1160px; margin-inline: auto; }
body.ted-editorial-refresh.home #main > article > .entry-content > .wp-block-group { max-width: none; }
body.ted-editorial-refresh.page #main .wp-block-column { border-color: #e5d8dd !important; box-shadow: none; }
body.ted-editorial-refresh.page-id-2246 #main .wp-block-columns > .wp-block-column { border: 0 !important; background: transparent !important; padding: 0; }
body.ted-editorial-refresh:is(.blog,.archive) #main > .ast-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 0; }
body.ted-editorial-refresh:is(.blog,.archive) #main > .ast-row::before,
body.ted-editorial-refresh:is(.blog,.archive) #main > .ast-row::after { display: none; }
body.ted-editorial-refresh:is(.blog,.archive) #main .ast-article-post { width: 100%; min-width: 0; padding: 0; margin: 0; }
body.ted-editorial-refresh:is(.blog,.archive) #main .ast-article-inner { height: 100%; padding: 0; }
body.ted-editorial-refresh:is(.blog,.archive) #main .post-content { display: flex; flex-direction: column; height: 100%; padding: 0; }
body.ted-editorial-refresh:is(.blog,.archive) #main .post-content > :is(.entry-header,.entry-content) { padding: 0 22px 20px; }
body.ted-editorial-refresh:is(.blog,.archive) #main .post-content > .entry-content { display: flex; flex-direction: column; flex: 1; }
body.ted-editorial-refresh:is(.blog,.archive) #main .entry-title { font: 600 20px/1.4 Inter,sans-serif; }
body.ted-editorial-refresh:is(.blog,.archive) #main .entry-meta { font-size: 12px; }
body.ted-editorial-refresh:is(.blog,.archive) #main .ast-blog-featured-section img { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #faeef3; }
body.ted-editorial-refresh:is(.blog,.archive) #main .read-more { margin-top: auto; }
@media(max-width:900px) {
  body.ted-editorial-refresh:is(.blog,.archive) #main > .ast-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  body.ted-editorial-refresh:is(.blog,.archive) #main > .ast-row { grid-template-columns: 1fr; }
}
body.ted-editorial-refresh:is(.blog,.archive) #main .post-content > :is(.entry-title,.ast-excerpt-container,.read-more) { padding-inline: 22px; }
body.ted-editorial-refresh:is(.blog,.archive) #main .post-content > .ast-excerpt-container { flex: 1; }
body.ted-editorial-refresh:is(.blog,.archive) #main .post-content > .entry-content { flex: 0; padding: 0; }
body.ted-editorial-refresh:is(.blog,.archive) #main .entry-title a { font-weight: 600; }
body.ted-editorial-refresh:is(.blog,.archive) #main .read-more { margin-bottom: 24px; }
body.ted-editorial-refresh #main .wp-block-post-featured-image img { background: #faeef3 !important; }
body.ted-site-refresh .site-header .main-header-menu > .current-menu-item > .menu-link { color: #8b2f5d !important; }
