/* Native cards: only confirmed editorial card structures, never the main article or products. */
body.loc-bc-native-enabled :is(article.loc-bc-native,.post.type-post.post-grid,.post.type-post.post-slider,.post.type-post.post-list,.post.type-post.grid-post):not(.loc-bc-single,.type-product,.loc-bc-card,.loc-bc-enhanced){box-sizing:border-box;min-width:0}
body.loc-bc-native-enabled :is(article.loc-bc-native,.post.type-post.post-grid,.post.type-post.post-slider,.post.type-post.post-list,.post.type-post.grid-post):not(.loc-bc-single,.type-product,.loc-bc-card,.loc-bc-enhanced) :is(.et-post-slider-inner,.post-inner,.loc-bc-native-shell){box-sizing:border-box;display:flex;flex-direction:column;min-width:0;background:var(--lbc-bg);border:var(--lbc-border-width) solid var(--lbc-border);border-radius:var(--lbc-radius);overflow:hidden;box-shadow:var(--lbc-shadow);height:100%}
body.loc-bc-native-enabled :is(article.loc-bc-native,.post.type-post.post-grid,.post.type-post.post-slider,.post.type-post.post-list,.post.type-post.grid-post):not(.loc-bc-single,.type-product,.loc-bc-card,.loc-bc-enhanced) :is(.post-gallery,.loc-bc-media){aspect-ratio:var(--lbc-ratio);margin:0;overflow:hidden;background:#f3f6ef;width:100%;border-radius:var(--lbc-radius) var(--lbc-radius) 0 0;position:relative}
body.loc-bc-native-enabled :is(article.loc-bc-native,.post.type-post.post-grid,.post.type-post.post-slider,.post.type-post.post-list,.post.type-post.grid-post):not(.loc-bc-single,.type-product,.loc-bc-card,.loc-bc-enhanced) .post-gallery :is(a,picture){display:block;width:100%;height:100%;margin:0}
body.loc-bc-native-enabled :is(article.loc-bc-native,.post.type-post.post-grid,.post.type-post.post-slider,.post.type-post.post-list,.post.type-post.grid-post):not(.loc-bc-single,.type-product,.loc-bc-card,.loc-bc-enhanced) .post-gallery img{display:block;width:100%;height:100%;max-width:none;object-fit:var(--lbc-fit);margin:0;transition:transform .22s ease}
body.loc-bc-native-enabled :is(article.loc-bc-native,.post.type-post.post-grid,.post.type-post.post-slider,.post.type-post.post-list,.post.type-post.grid-post):not(.loc-bc-single,.type-product,.loc-bc-card,.loc-bc-enhanced) .post-gallery:hover img{transform:scale(var(--lbc-zoom))}
body.loc-bc-native-enabled :is(article.loc-bc-native,.post.type-post.post-grid,.post.type-post.post-slider,.post.type-post.post-list,.post.type-post.grid-post):not(.loc-bc-single,.type-product,.loc-bc-card,.loc-bc-enhanced) :is(.et-post-slider-content,.post-inner > .post-content-wrap,.loc-bc-native-content){display:flex;flex-direction:column;flex:1;gap:10px;min-width:0;padding:var(--lbc-padding);color:var(--lbc-text);background:var(--lbc-bg);text-align:left;overflow-wrap:anywhere}
body.loc-bc-native-enabled .loc-bc-native-shell.loc-bc-card .loc-bc-content{padding:var(--lbc-padding);gap:10px;flex:1;display:flex;flex-direction:column;text-align:left}
body.loc-bc-native-enabled .loc-bc-native-shell :is(.post-title,.entry-header,.entry-title,.post-categories,.post-meta,.post-content,.entry-summary){margin:0;text-align:left;letter-spacing:normal;text-transform:none}
body.loc-bc-native-enabled .loc-bc-native-shell .post-categories{padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:4px 8px}
body.loc-bc-native-enabled .loc-bc-native-shell .post-categories li{list-style:none;margin:0;padding:0}
body.loc-bc-native-enabled .loc-bc-native-shell .post-categories a{color:var(--lbc-category);font-size:var(--lbc-meta-size);font-weight:600;text-transform:none}
body.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-title{margin:0;font-size:var(--lbc-title-size);line-height:1.35;font-weight:700;color:var(--lbc-title)}
body.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-excerpt{margin:0;font-size:var(--lbc-text-size);line-height:1.55;color:var(--lbc-text)}
body.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-excerpt p{font:inherit;color:inherit;margin:0}
body.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-meta{margin:0;display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:space-between;line-height:1.4}
body.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-meta a{font:inherit;color:inherit}
body.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-readmore{margin:0;font-weight:600;text-transform:none;text-decoration:none}
body.loc-bc-native-enabled.loc-bc-hide-author .loc-bc-native-shell :is(.post-author,.author,.loc-bc-native-author),body.loc-bc-native-enabled.loc-bc-hide-date .loc-bc-native-shell :is(.date-link,time,.post-date,.loc-bc-native-date),body.loc-bc-native-enabled.loc-bc-hide-category .loc-bc-native-shell :is(.post-categories,.loc-bc-category),body.loc-bc-native-enabled.loc-bc-hide-excerpt .loc-bc-native-shell :is(.post-content,.entry-summary,.loc-bc-excerpt),body.loc-bc-native-enabled.loc-bc-hide-readmore .loc-bc-native-shell :is(.more-link,.read-more,.loc-bc-readmore){display:none!important}
body.loc-bc-native-enabled.loc-bc-hide-author.loc-bc-hide-date .loc-bc-native-shell :is(.post-meta,.loc-bc-meta){display:none!important}
/* Shared renderer for related posts. */
body.loc-bc-enabled .loc-bc-related{box-sizing:border-box;margin:40px 0 20px;padding:24px 0 0;border-top:1px solid var(--lbc-border,#dfe5dc);width:100%;max-width:100%;clear:both;color:var(--lbc-text)}
body.loc-bc-enabled .loc-bc-related .loc-bc-related-title{margin:0 0 20px!important;font-size:clamp(22px,2.5vw,30px)!important;line-height:1.25!important;color:var(--lbc-title)!important;letter-spacing:normal;text-transform:none}
body.loc-bc-enabled .loc-bc-related-grid{display:grid;grid-template-columns:repeat(var(--lbc-r-desktop,3),minmax(0,1fr));gap:var(--lbc-r-gap,16px);align-items:stretch}
body.loc-bc-enabled .loc-bc-related-grid>.loc-bc-card{height:100%;margin:0!important;padding:0!important;float:none;width:auto;max-width:100%;text-align:left;min-width:0}
body.loc-bc-enabled .loc-bc-related .loc-bc-card .loc-bc-title{font-size:var(--lbc-title-size,18px)!important;line-height:1.35!important;margin:0!important;color:var(--lbc-title)!important;letter-spacing:normal;text-transform:none}
body.loc-bc-enabled .loc-bc-related .loc-bc-card .loc-bc-excerpt{font-size:var(--lbc-text-size,14px)!important;line-height:1.55!important;margin:0!important;color:var(--lbc-text)!important}
body.loc-bc-enabled .loc-bc-related .loc-bc-card .loc-bc-media img{margin:0!important;border-radius:0!important}
body.loc-bc-enabled .loc-bc-native-related-replaced{display:none!important}
/* Single article: keep theme layout, sidebar, content, navigation and H1; update only the editorial surface. */
body.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native){--lbc-article:1;max-width:var(--lbc-single-width);margin-inline:auto;color:var(--lbc-text);overflow-wrap:anywhere}
body.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) :is(h1.entry-title,.post-title h1,h1.post-title){color:var(--lbc-title);font-size:var(--lbc-single-title);line-height:1.2;font-weight:700;letter-spacing:normal;text-transform:none}
body.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) > :is(.post-gallery,.post-thumbnail,.entry-thumbnail) img,body.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) > .post-inner > :is(.post-gallery,.post-thumbnail,.entry-thumbnail) img{border-radius:var(--lbc-radius);max-width:100%;height:auto}
body.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) :is(.entry-content,.post-content):not(.loc-bc-excerpt):not(.loc-bc-related *) > :is(p,ul,ol,blockquote){font-size:var(--lbc-single-body);line-height:var(--lbc-single-line);color:var(--lbc-text)}
body.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) :is(.entry-content,.post-content):not(.loc-bc-related *) > h2{font-size:var(--lbc-single-subtitle);line-height:1.3;color:var(--lbc-title)}
body.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) :is(.entry-content,.post-content):not(.loc-bc-related *) > h3{font-size:calc(var(--lbc-single-subtitle) * .84);line-height:1.35;color:var(--lbc-title)}
body.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) :is(.entry-content,.post-content):not(.loc-bc-related *) > :is(p,ul,ol) a{color:var(--lbc-category);text-decoration:underline;text-underline-offset:3px}
body.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) :is(.entry-content,.post-content):not(.loc-bc-related *) > blockquote{border-inline-start:3px solid var(--lbc-category);background:#f3f6ef;padding:16px 20px}
@media(max-width:1024px){body.loc-bc-enabled .loc-bc-related-grid{grid-template-columns:repeat(var(--lbc-r-tablet,2),minmax(0,1fr))}}
@media(max-width:600px){body.loc-bc-enabled .loc-bc-related-grid{grid-template-columns:repeat(var(--lbc-r-mobile,1),minmax(0,1fr))}body.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) :is(h1.entry-title,.post-title h1,h1.post-title){font-size:var(--lbc-single-mobile-title)}body.loc-bc-enabled .loc-bc-related{margin-top:28px}}
@media(prefers-reduced-motion:reduce){body.loc-bc-native-enabled .post-gallery img{transition:none}}
body.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-media :is(.post-gallery,.post-thumbnail,.entry-thumbnail,.post-image,.post-thumb,.entry-image,a,picture){display:block;width:100%;height:100%;margin:0;overflow:hidden}
body.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-media img{width:100%;height:100%;object-fit:var(--lbc-fit);max-width:none;margin:0}
body.loc-bc-native-enabled .loc-bc-native-shell{height:100%}
body.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-category{align-self:flex-start}
body.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-bottom{margin-top:auto}

/* 1.1.2: a single ratio frame for every LOC card, including native archives,
 * related posts and the carousel. Keep this in native.css, whose handle is
 * independent of the shared carousel stylesheet. No rules on main images. */
body.loc-bc-enabled .loc-bc-card.loc-bc-card > .loc-bc-media {
  display:block!important;
  position:relative!important;
  flex:0 0 auto!important;
  align-self:stretch!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:var(--lbc-ratio,3 / 2)!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  line-height:0!important;
}
body.loc-bc-enabled .loc-bc-card.loc-bc-card > .loc-bc-media :is(.post-gallery,.post-thumbnail,.entry-thumbnail,.post-image,.post-thumb,.entry-image,a,picture,.loc-bc-image-layer) {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  line-height:0!important;
  transform:none!important;
}
body.loc-bc-enabled .loc-bc-card.loc-bc-card > .loc-bc-media img {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  aspect-ratio:auto!important;
  object-fit:var(--lbc-fit,cover)!important;
  object-position:center!important;
}
body.loc-bc-enabled .loc-bc-card.loc-bc-card > .loc-bc-media::before,
body.loc-bc-enabled .loc-bc-card.loc-bc-card > .loc-bc-media::after,
body.loc-bc-enabled .loc-bc-card.loc-bc-card > .loc-bc-media :is(.post-gallery,.post-thumbnail,.entry-thumbnail,.post-image,.post-thumb,.entry-image,a,picture,.loc-bc-image-layer)::before,
body.loc-bc-enabled .loc-bc-card.loc-bc-card > .loc-bc-media :is(.post-gallery,.post-thumbnail,.entry-thumbnail,.post-image,.post-thumb,.entry-image,a,picture,.loc-bc-image-layer)::after {
  content:none!important;
  display:none!important;
}

/* 1.5.0: apply the same palette to confirmed native editorial components. */
body.loc-bc-modern{--lbc-title:var(--loc-bc-modern-title);--lbc-text:var(--loc-bc-modern-text);--lbc-category:var(--loc-bc-modern-category);--lbc-border:var(--loc-bc-modern-border)}
body.loc-bc-modern.loc-bc-native-enabled :is(article.loc-bc-native,.post.type-post.post-grid,.post.type-post.post-slider,.post.type-post.post-list,.post.type-post.grid-post):not(.loc-bc-single,.type-product,.loc-bc-card,.loc-bc-enhanced) :is(.et-post-slider-inner,.post-inner,.loc-bc-native-shell){border:0;border-radius:0;box-shadow:none;font-family:Inter,system-ui,sans-serif}
body.loc-bc-modern.loc-bc-native-enabled :is(article.loc-bc-native,.post.type-post.post-grid,.post.type-post.post-slider,.post.type-post.post-list,.post.type-post.grid-post):not(.loc-bc-single,.type-product,.loc-bc-card,.loc-bc-enhanced) :is(.post-gallery,.loc-bc-media){border-radius:6px;background:#f6f7f2}
body.loc-bc-modern.loc-bc-native-enabled :is(article.loc-bc-native,.post.type-post.post-grid,.post.type-post.post-slider,.post.type-post.post-list,.post.type-post.grid-post):not(.loc-bc-single,.type-product,.loc-bc-card,.loc-bc-enhanced) :is(.et-post-slider-content,.post-inner > .post-content-wrap,.loc-bc-native-content){padding-inline:0;gap:8px}
body.loc-bc-modern.loc-bc-native-enabled .loc-bc-native-shell .loc-bc-title,body.loc-bc-modern .loc-bc-related .loc-bc-related-title{font-family:Manrope,Inter,system-ui,sans-serif;font-weight:750;letter-spacing:-.025em}
body.loc-bc-modern.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) :is(h1.entry-title,.post-title h1,h1.post-title){font-family:Manrope,Inter,system-ui,sans-serif;font-weight:800}
body.loc-bc-modern.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) :is(.entry-content,.post-content):not(.loc-bc-related *) > :is(h2,h3,h4,h5,h6){font-family:Manrope,Inter,system-ui,sans-serif;font-weight:700}
body.loc-bc-modern.loc-bc-single-design :is(article,div.post-detail.type-post).loc-bc-single:not(.loc-bc-card,.loc-bc-native) :is(.entry-content,.post-content):not(.loc-bc-related *) > :is(p,ul,ol,blockquote){font-family:Inter,system-ui,sans-serif}
body.loc-bc-enabled.loc-bc-modern{--lbc-title:var(--loc-bc-modern-title);--lbc-text:var(--loc-bc-modern-text);--lbc-category:var(--loc-bc-modern-category);--lbc-border:var(--loc-bc-modern-border)}
