.bffs-tag-grid{display:grid;grid-template-columns:repeat(var(--bffs-columns,3),minmax(0,1fr));gap:1.2rem}.bffs-tag{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.35rem;overflow-wrap:anywhere;font-size:.95rem;line-height:1.4}.bffs-tag img{width:96px;max-width:100%;height:96px;object-fit:contain}.bffs-tag strong{font-weight:600}.bffs-tags h3{margin-top:1.5rem}.bffs-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:1rem}.bffs-images figure{margin:0}.bffs-images img{width:100%;height:auto;border-radius:.6rem}.bffs-images--is_hero_banner img{aspect-ratio:16/7;object-fit:cover}.bffs-images figcaption{font-size:.9rem}.bffs-sidebar{min-width:0}.bffs-sidebar>.wp-block-group{padding:1.5rem;border-radius:1rem}.bffs-product-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,30%);gap:2rem}.bffs-product-layout>div{min-width:0}@media(max-width:800px){.bffs-product-layout{grid-template-columns:1fr}.bffs-tag-grid{grid-template-columns:repeat(min(var(--bffs-columns,3),3),minmax(0,1fr))}}
/* Plant library and profile layouts remain independent of the theme's journal query. */
.bffs-library{padding-block:2rem 4rem}.bffs-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}.bffs-listing-card{background:#fff;color:var(--ex-ink,#333);border-radius:var(--ex-radius,16px);padding:1.5rem;display:flex;flex-direction:column;gap:.6rem;min-width:0}.bffs-listing-card h2{font-size:1.7rem;margin:.5rem 0}.bffs-listing-card p{margin:.35rem 0;font-size:1rem;line-height:1.6}.bffs-listing-card .bffs-images img{aspect-ratio:4/3;object-fit:cover}.bffs-listing-card .bffs-more{margin-top:auto;padding-block:.7rem;min-height:44px}.bffs-library .pagination{margin-top:2rem}.bffs-library .page-numbers{display:inline-block;padding:.5rem 1rem}.bffs-profile-layout{padding-top:180px;padding-bottom:3rem;display:grid;gap:2.5rem;align-items:start}.bffs-profile-layout--sidebar{grid-template-columns:minmax(0,1fr) minmax(340px,38%)}.bffs-profile-layout .ex-content{min-width:0}.bffs-back{margin-bottom:1rem}.bffs-profile-layout>.bffs-species-sidebar{display:block;position:static;padding-top:2.5rem;min-width:0}.bffs-entry-content:empty{display:none}.bffs-entry-content{margin-top:2rem}.bffs-tags--rows .bffs-tag-grid{display:flex;flex-direction:column;gap:0}.bffs-tags--rows .bffs-tag{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:1rem;text-align:left;align-items:center;padding:.85rem 0;border-bottom:1px solid #0002}.bffs-tags--rows .bffs-tag img{grid-column:1;grid-row:1 / span 2;width:52px;height:52px}.bffs-tags--rows .bffs-tag strong,.bffs-tags--rows .bffs-tag span{grid-column:2}.bffs-tags--rows .bffs-tag:not(:has(img)):not(:has(.bffs-icon)) strong,.bffs-tags--rows .bffs-tag:not(:has(img)):not(:has(.bffs-icon)) span{grid-column:1 / -1}.bffs-tags--rows h3{font-size:1.15rem;margin:1.7rem 0 .3rem}.bffs-plant-tag{position:relative;margin-bottom:140px!important;padding-bottom:2rem!important}.bffs-plant-tag:after{content:"";display:block;position:absolute;top:calc(100% - 1px);left:0;width:100%;height:120px;background:inherit;clip-path:polygon(0 0,100% 0,60% 90%,50% 100%,40% 90%);pointer-events:none}.bffs-plant-tag .bffs-field{margin-top:1.7rem}.bffs-plant-tag .bffs-field h2{font-size:1.3rem}.bffs-plant-tag .bffs-field p{font-size:1rem;line-height:1.65}.bffs-content-placeholder{border:1px dashed #777;padding:1.25rem;background:#f7f7f7;color:#333}@media(max-width:1000px){.bffs-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.bffs-profile-layout{padding-top:140px;grid-template-columns:1fr}.bffs-profile-layout>.bffs-species-sidebar{padding-top:0}.bffs-library-grid{grid-template-columns:1fr}.bffs-plant-tag:after{height:100px}}
.bffs-plant-tag{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;margin-bottom:210px!important}.bffs-plant-tag:after{height:180px;clip-path:polygon(0 0,100% 0,78% 14%,60% 92%,50% 100%,40% 92%,22% 14%)}

/* Species editing refinements. */
.bffs-listing-card{position:relative}.bffs-card-link{position:absolute;inset:0;z-index:1;border-radius:inherit}.bffs-card-link:focus-visible{outline:3px solid currentColor;outline-offset:3px}.bffs-listing-card .bffs-more{position:relative;z-index:2}
.bffs-profile-layout--banner{padding-top:2rem!important}.bffs-images--is_gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.bffs-images--is_gallery img{display:block;aspect-ratio:1;object-fit:cover;cursor:zoom-in}
.bffs-icon{display:block;width:96px;height:96px;max-width:100%;background:currentColor;mask:var(--bffs-icon) center/contain no-repeat;-webkit-mask:var(--bffs-icon) center/contain no-repeat;flex-shrink:0}
.bffs-tags--rows .bffs-tag .bffs-icon{grid-column:1;grid-row:1 / span 2;width:42px;height:42px}.bffs-tags--rows .bffs-tag{grid-template-columns:42px minmax(0,1fr);column-gap:.55rem;padding:.55rem 0;font-size:.9rem}.bffs-tags--rows .bffs-tag:has(.bffs-icon) strong,.bffs-tags--rows .bffs-tag:has(.bffs-icon) span:not(.bffs-icon){grid-column:2}.bffs-tags--rows .bffs-tag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:.8rem}
/* A scalable SVG silhouette rounds the outer shoulders while keeping a sharp point. */
.bffs-plant-tag:after{clip-path:none;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 180' preserveAspectRatio='none'%3E%3Cpath d='M0 0H400Q400 15 380 20L312 32L240 166L200 180L160 166L88 32L20 20Q0 15 0 0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 180' preserveAspectRatio='none'%3E%3Cpath d='M0 0H400Q400 15 380 20L312 32L240 166L200 180L160 166L88 32L20 20Q0 15 0 0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
@media(max-width:599px){.bffs-tags--rows .bffs-tag-grid{grid-template-columns:1fr}.bffs-images--is_gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Use the selected column count, including when group headings are hidden. */
.bffs-tags .bffs-tag-grid{display:grid;grid-template-columns:repeat(var(--bffs-columns,3),minmax(0,1fr))}
.bffs-tags--icons .bffs-tag{position:relative;justify-content:center;min-height:44px;padding:.4rem;cursor:help}
.bffs-tags--icons .bffs-icon,.bffs-tags--icons img{width:64px;height:64px}
.bffs-tooltip{position:absolute;z-index:20;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:max-content;max-width:min(220px,70vw);padding:.6rem .8rem;border-radius:8px;background:#252525;color:#fff;font:400 .9rem/1.4 var(--ex-font,sans-serif);box-shadow:0 3px 12px #0003;opacity:0;visibility:hidden;pointer-events:none;text-align:left}
.bffs-tag--tooltip:hover .bffs-tooltip,.bffs-tag--tooltip:focus .bffs-tooltip{opacity:1;visibility:visible}.bffs-tag--tooltip:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:6px}
.bffs-profile-layout--normal.bffs-profile-layout--sidebar{grid-template-columns:minmax(0,2.3fr) minmax(260px,1fr)}
.bffs-profile-layout--banner{position:relative;z-index:2;margin-top:-56px;padding-top:0!important}.bffs-profile-layout--banner>.bffs-species-sidebar{padding-top:0}
.wp-block-group.bffs-name-pair{--wp--style--block-gap:.2rem;gap:.2rem}.bffs-name-pair>h1,.bffs-name-pair>h2,.bffs-name-pair>.wp-block-group__inner-container>h1,.bffs-name-pair>.wp-block-group__inner-container>h2{margin-bottom:.2rem}.bffs-name-pair>p,.bffs-name-pair>.wp-block-group__inner-container>p{margin-top:0}
@media(max-width:799px){.bffs-profile-layout--normal.bffs-profile-layout--sidebar{grid-template-columns:1fr}.bffs-profile-layout--banner{margin-top:-24px}.bffs-tags .bffs-tag-grid{grid-template-columns:repeat(min(var(--bffs-columns,3),3),minmax(0,1fr))}.bffs-tags--rows .bffs-tag-grid{grid-template-columns:repeat(min(var(--bffs-columns,3),2),minmax(0,1fr))}}

.bffs-library{padding-top:0}.bffs-library-tools h2{font-size:1.5rem;margin:0}
/* Also support the class placed directly on the two adjacent name blocks. */
h1.bffs-name-pair,h2.bffs-name-pair,h3.bffs-name-pair{margin-bottom:.2rem!important}
p.bffs-name-pair{margin-top:.2rem!important}
.editor-styles-wrapper [data-type="core/heading"].bffs-name-pair{margin-bottom:.2rem!important}
.editor-styles-wrapper [data-type="core/paragraph"].bffs-name-pair{margin-top:.2rem!important}
