.blossoms-library { padding-block: 48px 76px; }
.blossoms-library-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.blossoms-library-head h2 { margin-bottom: 8px; }
.blossoms-library-head p { max-width: 700px; color: var(--bee-muted); }
.blossoms-count { flex: 0 0 auto; display: grid; justify-items: end; }
.blossoms-count strong { color: var(--bee-blue); font-family: var(--public-font-display); font-size: 40px; line-height: 1; }
.blossoms-count span { color: var(--bee-muted); font-size: 12px; font-weight: 800; }
.blossoms-toolbar { position: static; }
.blossoms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.blossom-card { display: grid; min-height: 410px; overflow: hidden; padding: 0; }
/* Brand settings target every class containing "-card". Keep that hook only on
   the outer card; illustration pieces and metadata must not become nested panels. */
#blossomsGrid > .blossom-card { padding: 0 !important; grid-template-rows: auto 1fr; }
.blossom-art-visual { min-height: 160px; aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--bl-surface-soft); border-bottom: var(--bl-border-panel); }
.blossom-art-visual.has-editorial-cover { background: #f5f1e6; isolation: isolate; }
.blossoms-grid .blossom-art-visual.has-editorial-cover::before { content: none; }
.blossom-cover-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
.blossom-cover-image[hidden] { display: none; }
.blossom-cover-fallback { padding: 40px; text-align: center; font: 700 22px var(--public-font-display); color: var(--bee-blue-dark); }
.blossom-art-visual.has-editorial-cover.cover-unavailable { background: var(--bl-surface-soft); }
.blossom-art-visual svg { width: min(90%, 430px); height: 150px; }
.blossom-art-visual circle { fill: var(--bl-series-1); }
.blossom-art-visual line { stroke: var(--bee-line); stroke-width: 1; }
.blossom-art-visual.is-apple-story { background: #173f35; }
.blossom-art-visual.is-apple-story .apple-art-branch { fill: none; stroke: #8d6b58; stroke-width: 12; stroke-linecap: round; }
.blossom-art-visual.is-apple-story .apple-art-petal { fill: #fff8ef; stroke: #e6c6c0; stroke-width: 1.5; }
.blossom-art-visual.is-apple-story .apple-art-petal-1 { fill: #f6e2dd; }
.blossom-art-visual.is-apple-story .apple-art-petal-2 { fill: #fffdf8; }
.blossom-art-visual.is-apple-story .apple-art-centre { fill: #efc75e; }
.blossom-art-visual.is-apple-story .apple-art-fruit { fill: #c64243; stroke: #f5d0c9; stroke-width: 2; }
.blossom-art-visual.is-wing-story { background: #dfece7; }
.blossom-art-visual.is-wing-story::before { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: #a8c695; clip-path: polygon(0 52%,18% 22%,36% 48%,54% 15%,73% 42%,89% 12%,100% 30%,100% 100%,0 100%); }
.blossom-art-visual.is-wing-story .wing-art-outline { fill: rgba(255,253,248,.76); stroke: #173f35; stroke-width: 4; }
.blossom-art-visual.is-wing-story .wing-art-vein { stroke: #173f35; stroke-width: 2; stroke-linecap: round; }
.blossom-art-visual.is-wing-story .wing-art-point { fill: #d05b55; stroke: #fffdf8; stroke-width: 2; }
.blossom-art-visual.is-wing-story .wing-art-bee { fill: #efc75e; stroke: #173f35; stroke-width: 4; }
.blossom-art-visual.is-wing-story .wing-art-stripe { stroke: #173f35; stroke-width: 6; }
.blossom-art-visual.is-wing-story .wing-art-sun { fill: #efc75e; }
.blossom-art-visual.is-wing-story svg { position: relative; z-index: 1; }
.blossom-art-visual.is-pulse-story { background: #111967; }
.blossom-art-visual.is-pulse-story::before { content: ""; position: absolute; inset: 14% -5% auto 44%; width: 58%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.02); }
.blossom-art-visual.is-pulse-story svg { position: relative; z-index: 1; }
.blossom-art-visual.is-pulse-story .pulse-art-hive path { fill: #f5c842; stroke: #0e1457; stroke-width: 4; stroke-linejoin: round; }
.blossom-art-visual.is-pulse-story .pulse-art-hive rect { fill: #fbe8df; stroke: #f5c842; stroke-width: 4; }
.blossom-art-visual.is-pulse-story .pulse-art-hive line { stroke: #0e1457; stroke-width: 3; }
.blossom-art-visual.is-pulse-story .pulse-art-hive rect:last-of-type { fill: #0e1457; stroke: none; }
.blossom-art-visual.is-pulse-story .pulse-art-scale rect { fill: #f5c842; }
.blossom-art-visual.is-pulse-story .pulse-art-scale path { fill: #f55a78; }
.blossom-art-visual.is-pulse-story .pulse-art-wave { fill: none; stroke: #f5c842; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.blossom-art-visual.is-pulse-story .pulse-art-point { fill: #f55a78; stroke: #fff; stroke-width: 2; }
.blossom-art-visual.is-backpack-story { background: #b8d9dc; }
.blossom-art-visual.is-backpack-story::before { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: #dcebdd; clip-path: polygon(0 36%,18% 52%,38% 22%,58% 48%,78% 18%,100% 38%,100% 100%,0 100%); }
.blossom-art-visual.is-backpack-story svg { position: relative; z-index: 1; }
.blossom-art-visual.is-backpack-story .backpack-art-sun { fill: #efc75e; stroke: #173f35; stroke-width: 3; }
.blossom-art-visual.is-backpack-story .backpack-art-bee > ellipse:first-child { fill: #efc75e; stroke: #173f35; stroke-width: 5; }
.blossom-art-visual.is-backpack-story .backpack-art-wing { fill: rgba(255,253,248,.82); stroke: #173f35; stroke-width: 3; }
.blossom-art-visual.is-backpack-story .backpack-art-bee line { stroke: #173f35; stroke-width: 9; }
.blossom-art-visual.is-backpack-story .backpack-art-pack path:first-child { fill: #d66f54; stroke: #173f35; stroke-width: 4; }
.blossom-art-visual.is-backpack-story .backpack-art-pack path:nth-child(2) { fill: none; stroke: #173f35; stroke-width: 4; }
.blossom-art-visual.is-backpack-story .backpack-art-pack rect { fill: #efc75e; stroke: #173f35; stroke-width: 3; }
.blossom-art-visual.is-backpack-story .backpack-art-pack circle { fill: #fffdf8; stroke: #173f35; stroke-width: 2; }
.blossom-art-visual.is-backpack-story .backpack-art-sticker circle { fill: #fffdf8; stroke: #173f35; stroke-width: 3; }
.blossom-art-visual.is-backpack-story .backpack-art-sticker text { fill: #173f35; font: 900 19px system-ui,sans-serif; }
.blossom-art-visual.is-hotel-story { background: #9ed9dc; }
.blossom-art-visual.is-hotel-story::before { content: ""; position: absolute; inset: auto 0 0; height: 24%; background: #587d5d; }
.blossom-art-visual.is-hotel-story svg { position: relative; z-index: 1; }
.blossom-art-visual.is-hotel-story .hotel-art-building > path:first-child { fill: #efaa71; stroke: #41213f; stroke-width: 4; }
.blossom-art-visual.is-hotel-story .hotel-art-building > path:nth-child(2) { fill: #ef735d; stroke: #41213f; stroke-width: 4; }
.blossom-art-visual.is-hotel-story .hotel-art-building rect { fill: #fff5dc; stroke: #41213f; stroke-width: 3; }
.blossom-art-visual.is-hotel-story .hotel-art-building text { fill: #41213f; font: 900 12px system-ui,sans-serif; }
.blossom-art-visual.is-hotel-story .hotel-art-room path { fill: #fff5dc; stroke: #41213f; stroke-width: 3; }
.blossom-art-visual.is-hotel-story .hotel-art-room-6 path { fill: #f4c642; }
.blossom-art-visual.is-hotel-story .hotel-art-room circle { fill: #41213f; stroke: none; }
.blossom-art-visual.is-hotel-story .hotel-art-room text { fill: #41213f; font: 900 10px system-ui,sans-serif; }
.blossom-art-visual.is-hotel-story .hotel-art-bee > ellipse:first-child { fill: #f4c642; stroke: #41213f; stroke-width: 3; }
.blossom-art-visual.is-hotel-story .hotel-art-wing { fill: rgba(255,255,255,.78); stroke: #41213f; stroke-width: 2; }
.blossom-art-visual.is-hotel-story .hotel-art-bee line { stroke: #41213f; stroke-width: 5; }
.blossom-art-visual.is-winter-story { background:#dceae8; }
.blossom-art-visual.is-turin-story { background:#f5d19a; }
.blossom-art-visual.is-buffet-story { background:repeating-conic-gradient(#fff6d4 0 25%,#efc1cb 0 50%) 50%/48px 48px; }
.blossom-art-visual.is-mud-story { background:#d4a47b; }
.blossom-art-visual.is-honey-story { background:#f8d762; }
.blossom-art-visual:is(.is-field-story,.is-landscape-story) { background:#cfe7bc; }
.blossom-art-visual:is(.is-traits-story,.is-occurrence-story) { background:#bfe2e2; }
.blossom-art-visual:is(.is-experiment-story,.is-pressure-story,.is-gauge-story) { background:#f2b7a4; }
.blossom-art-visual:is(.is-pantry-story,.is-crop-story) { background:#f5d783; }
.blossom-art-visual:is(.is-water-story,.is-climate-story) { background:#b9dfe2; }
.blossom-art-visual:is(.is-butterfly-story,.is-bird-story) { background:#d9c6e8; }
.blossom-art-visual.is-soil-story { background:#ddb58e; }
.blossom-art-visual .data-art-mark { position:relative;z-index:1;overflow:visible; }
.blossom-art-visual .data-batch-line { fill:none;stroke:#173f35;stroke-width:7;stroke-linecap:round;stroke-linejoin:round; }
.blossom-art-visual .data-batch-ground { fill:#6b9d65;stroke:#173f35;stroke-width:5; }
.blossom-art-visual .data-batch-shape { fill:#fff8df;stroke:#173f35;stroke-width:5;stroke-linejoin:round; }
.blossom-art-visual .data-batch-spot { fill:#e85f5a;stroke:#173f35;stroke-width:3; }
.blossom-art-visual .data-batch-sun { fill:#f4c642;stroke:#173f35;stroke-width:5; }
.blossom-art-visual .data-art-main,.blossom-art-visual .data-art-jar { fill:#fff8df;stroke:#173f35;stroke-width:4;stroke-linejoin:round; }
.blossom-art-visual .data-art-bee > ellipse:first-child { fill:#f1c34f;stroke:#173f35;stroke-width:4; }
.blossom-art-visual .data-art-bee > ellipse:not(:first-child) { fill:#fff;stroke:#173f35;stroke-width:2;opacity:.82; }
.blossom-art-visual .data-art-bee path { fill:none;stroke:#173f35;stroke-width:6; }
.blossom-art-visual .data-art-dots circle { fill:#fff;stroke:none; }
.blossom-art-visual .data-art-line { fill:none;stroke:#303d72;stroke-width:4;stroke-linecap:round; }
.blossom-art-visual .data-art-butterfly { fill:#ef6b68;stroke:#303d72;stroke-width:4;stroke-linejoin:round; }
.blossom-art-visual .data-art-plate { fill:#fff;stroke:#315238;stroke-width:5; }
.blossom-art-visual .data-art-flower circle { fill:#f0b83f;stroke:#315238;stroke-width:3; }
.blossom-art-visual .data-art-flower circle:nth-child(6) { fill:#dd6387; }
.blossom-art-visual .data-art-flower path { fill:#8fbd68;stroke:#315238;stroke-width:4;stroke-linejoin:round; }
.blossom-art-visual .data-art-wall { fill:#b8734c;stroke:#53372e;stroke-width:5; }
.blossom-art-visual .data-art-cells circle { fill:#e5b84f;stroke:#53372e;stroke-width:4; }
.blossom-art-visual .data-art-jar path:nth-child(2) { fill:#eea20a; }
.blossom-art-visual .data-art-jar text { fill:#352b23;font:900 42px Georgia,serif; }
.blossom-art-number { position: absolute; z-index: 2; inset: 14px auto auto 16px; padding: 5px 10px; border-radius: var(--bl-radius-pill); background: rgba(255,255,255,.94); color: var(--bee-blue); font-family: var(--public-font-data); font-size: 11px; font-weight: 800; }
.blossom-art-body { display: grid; align-content: start; gap: 13px; padding: 24px; }
.blossom-art-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--bee-muted); font-size: 12px; font-weight: 700; }
.blossom-art-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blossom-art-body h3 { margin: 0; color: var(--bee-blue-dark); font-family: var(--public-font-display); font-size: 25px; line-height: 1.12; }
.blossom-art-body p { margin: 0; color: var(--bee-muted); line-height: 1.6; }
.blossom-art-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blossom-art-tags span { padding: 5px 9px; border-radius: var(--bl-radius-pill); background: var(--bl-surface-soft); color: var(--bee-blue); font-size: 11px; font-weight: 800; }
.blossom-art-action { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--bee-blue); font-weight: 850; }
.blossoms-skeleton { width: min(620px, 90%); height: 180px; }

@media (max-width: 820px) {
  .blossoms-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .blossoms-library-head { align-items: start; flex-direction: column; }
  .blossoms-count { justify-items: start; }
  .blossom-card { min-height: 0; }
}
.blossoms-library [hidden] { display: none !important; }
