/* Lepibase — Motýle a rastliny V1 */

.bp-page {
    --bp-ink: var(--lp-color-ink, #25231f);
    --bp-muted: var(--lp-color-muted, #68675f);
    --bp-green: #4f7046;
    --bp-green-dark: #365334;
    --bp-green-soft: #eef2e9;
    --bp-paper: #f7f6f1;
    --bp-line: var(--lp-color-border, #d9d5cd);
    --bp-serif: "Source Serif 4", Georgia, serif;
    color: var(--bp-ink);
    background: #fff;
    overflow: hidden;
}

.bp-page *,
.bp-page *::before,
.bp-page *::after {
    box-sizing: border-box;
}

.bp-page [hidden] {
    display: none !important;
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page p {
    margin-top: 0;
}

.bp-page h1,
.bp-page h2,
.bp-page h3 {
    font-family: var(--bp-serif);
}

.bp-shell {
    width: min(100% - 3rem, 92rem);
    margin-inline: auto;
}

.bp-section {
    padding-block: clamp(3.5rem, 7vw, 7rem);
}

.bp-eyebrow {
    margin-bottom: 1rem;
    color: var(--bp-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.bp-section-heading h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.bp-section-heading p {
    max-width: 36rem;
    margin-bottom: 0;
    color: var(--bp-muted);
    line-height: 1.6;
}

.bp-section-heading--compact {
    max-width: 31rem;
}

.bp-section-heading--compact h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.bp-section-heading--center {
    text-align: center;
}

.bp-section-heading--center p {
    margin-inline: auto;
}

.bp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 2.9rem;
    padding: 0.7rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.bp-button--primary,
.bp-button--search {
    color: #fff;
    background: var(--bp-green-dark);
}

.bp-button--primary:hover,
.bp-button--search:hover {
    background: #29442b;
}

.bp-button--light {
    color: var(--bp-ink);
    background: #fff;
}

.bp-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid currentColor;
    color: var(--bp-ink);
    font-size: 0.88rem;
    text-decoration: none;
}

.bp-artwork {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    color: #74796e;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.7),
            rgba(230, 235, 224, 0.8)
        );
}

.bp-artwork::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(79, 112, 70, 0.14);
    content: "";
    pointer-events: none;
}

.bp-artwork > span {
    max-width: 15rem;
    padding: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

/* Hero */

.bp-hero {
    border-bottom: 1px solid var(--bp-line);
    background:
        linear-gradient(
            90deg,
            #fff 0%,
            #fff 31%,
            #f3f5ef 31%,
            #edf1e8 100%
        );
}

.bp-hero__inner {
    display: grid;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(32rem, 1.55fr);
    min-height: clamp(35rem, 47vw, 48rem);
}

.bp-hero__content {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 5rem 3.5rem 5rem 0;
}

.bp-hero__title {
    max-width: 36rem;
    margin-bottom: 1.2rem;
    font-size: clamp(3.3rem, 6vw, 6rem);
    line-height: 0.86;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.bp-hero__lead {
    max-width: 32rem;
    margin-bottom: 1.8rem;
    color: var(--bp-muted);
    font-family: var(--bp-serif);
    font-size: 1.05rem;
    line-height: 1.5;
}

.bp-artwork--hero {
    min-height: 100%;
    margin-right: 0;
}
/* Host plant explanation */

.bp-host-plant {
    border-bottom: 1px solid var(--bp-line);
}

.bp-host-plant .bp-shell {
    display: grid;
    grid-template-columns:
        minmax(16rem, 0.72fr)
        minmax(0, 1.7fr)
        minmax(9rem, 0.4fr);
    align-items: center;
    gap: 3rem;
}

.bp-host-plant__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bp-host-step {
    position: relative;
    min-width: 0;
}

.bp-host-step:not(:last-child)::after {
    position: absolute;
    top: 4.3rem;
    right: -0.7rem;
    color: var(--bp-muted);
    content: "→";
}

.bp-host-step__number {
    display: none;
}

.bp-artwork--step {
    width: 100%;
    min-height: 7.5rem;
    margin-bottom: 0.8rem;
    background: var(--bp-green-soft);
}

.bp-host-step p {
    margin-bottom: 0;
    font-family: var(--bp-serif);
    font-size: 0.93rem;
    line-height: 1.25;
}

.bp-host-step p span {
    display: block;
    color: var(--bp-muted);
}

.bp-note {
    align-self: start;
    margin: 0;
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--bp-muted);
    background: var(--bp-paper);
    font-family: var(--bp-serif);
    font-size: 0.9rem;
    line-height: 1.35;
}

/* Stories */

.bp-stories {
    background: #fff;
}

.bp-stories__layout {
    display: grid;
    grid-template-columns: minmax(16rem, 0.58fr) minmax(0, 1.42fr);
    gap: clamp(2rem, 5vw, 5rem);
}

.bp-stories__heading {
    align-self: center;
}

.bp-stories__heading p {
    margin-bottom: 1.4rem;
}

.bp-stories__items {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, minmax(0, 0.85fr));
    border-top: 1px solid var(--bp-line);
    border-bottom: 1px solid var(--bp-line);
}

.bp-story {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem;
    border-left: 1px solid var(--bp-line);
}

.bp-story--featured {
    padding-left: 0;
}

.bp-artwork--story,
.bp-artwork--story-small {
    min-height: 14rem;
    margin-bottom: 1rem;
}

.bp-artwork--story {
    min-height: 20rem;
}

.bp-story__content h3 {
    margin-bottom: 0.45rem;
    font-size: 1.15rem;
}

.bp-story__content p {
    margin-bottom: 0;
    color: var(--bp-muted);
    font-family: var(--bp-serif);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Story image slots: upload matching WebP files to /assets/images/motyle-a-rastliny/ */
.bp-story-photo {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.bp-story-photo--main { background-image: url('/assets/images/motyle-a-rastliny/story-main.webp'); }
.bp-story-photo--larva { background-image: url('/assets/images/motyle-a-rastliny/story-larva.webp'); }
.bp-story-photo--egg { background-image: url('/assets/images/motyle-a-rastliny/story-egg.webp'); }
.bp-story-photo--winter { background-image: url('/assets/images/motyle-a-rastliny/story-winter.webp'); }
.bp-story-photo--night { background-image: url('/assets/images/motyle-a-rastliny/story-night.webp'); }
.bp-story__photo-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.bp-story__photo-pair .bp-story-photo {
    min-height: 0;
    aspect-ratio: 3 / 4;
    margin: 0;
}

/* Search */

.bp-search {
    scroll-margin-top: 2rem;
    border-block: 1px solid rgba(79, 112, 70, 0.13);
    background: var(--bp-green-soft);
}

.bp-search__inner {
    display: grid;
    grid-template-columns:
        minmax(9rem, 0.4fr)
        minmax(24rem, 1.25fr)
        minmax(9rem, 0.4fr);
    align-items: stretch;
    min-height: 18rem;
}

.bp-search__content {
    position: relative;
    z-index: 2;
    align-self: center;
    padding-block: 3.5rem;
}

.bp-artwork--search {
    min-height: 100%;
    background: transparent;
}

.bp-artwork--search::after {
    border: 0;
}

.bp-search-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 8rem;
    max-width: 47rem;
    margin: 1.5rem auto 0;
    box-shadow: 0 0.7rem 2rem rgba(40, 52, 34, 0.1);
}

.bp-search-form__field {
    position: relative;
    min-width: 0;
}

.bp-search-form input {
    width: 100%;
    min-height: 3.6rem;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid var(--bp-line);
    border-right: 0;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: var(--bp-ink);
    font: inherit;
}

.bp-search-form input:focus {
    border-color: var(--bp-green-dark);
    box-shadow: inset 0 0 0 1px var(--bp-green-dark);
}

.bp-search-form__icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 1.1rem;
    width: 0.9rem;
    height: 0.9rem;
    border: 1.8px solid #697386;
    border-radius: 50%;
    transform: translateY(-60%);
}

.bp-search-form__icon::after {
    position: absolute;
    right: -0.4rem;
    bottom: -0.25rem;
    width: 0.45rem;
    height: 1.8px;
    background: #697386;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.bp-button--search {
    min-height: 3.6rem;
    border-radius: 0;
}

.bp-search-suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.3rem);
    right: 8rem;
    left: 0;
    max-height: 24rem;
    overflow-y: auto;
    border: 1px solid var(--bp-line);
    background: #fff;
    box-shadow: 0 1rem 2rem rgba(31, 35, 28, 0.14);
}

.bp-search-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--bp-line);
    background: #fff;
    color: var(--bp-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bp-search-suggestion:last-child {
    border-bottom: 0;
}

.bp-search-suggestion:hover,
.bp-search-suggestion.is-active {
    background: var(--bp-green-soft);
    box-shadow: inset 3px 0 0 var(--bp-green);
}

.bp-search-suggestion__names {
    display: block;
    min-width: 0;
}

.bp-search-suggestion__primary,
.bp-search-suggestion__secondary {
    display: block;
}

.bp-search-suggestion__primary {
    font-weight: 600;
}

.bp-search-suggestion__secondary {
    margin-top: 0.15rem;
    color: var(--bp-muted);
    font-family: var(--bp-serif);
    font-size: 0.9rem;
    font-style: italic;
}

.bp-search-suggestion__rank {
    color: var(--bp-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bp-search-suggestions__empty {
    margin: 0;
    padding: 1rem;
    color: var(--bp-muted);
    background: #fff;
    font-size: 0.88rem;
}

.bp-search-status {
    max-width: 47rem;
    min-height: 1.2rem;
    margin: 0.7rem auto 0;
    color: var(--bp-muted);
    font-size: 0.8rem;
}

/* Dynamic results foundation */

.bp-results {
    scroll-margin-top: 2rem;
}

.bp-results__layout {
    display: grid;
    grid-template-columns: minmax(15rem, 0.46fr) minmax(0, 1.54fr);
    gap: clamp(2rem, 5vw, 5rem);
}

.bp-plant-profile {
    min-width: 0;
    padding-right: clamp(1rem, 3vw, 3rem);
    border-right: 1px solid var(--bp-line);
}

.bp-species-results {
    min-width: 0;
}

.bp-species-results__all {
    margin-top: 2rem;
}

.bp-species-results__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bp-species-results__header h2 {
    margin-bottom: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.bp-species-list {
    display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.bp-plant-profile__name {
    margin-bottom: 0.2rem;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1;
}

.bp-plant-profile__scientific {
    margin-bottom: 0.8rem;
    color: var(--bp-muted);
    font-family: var(--bp-serif);
    font-size: 1.2rem;
    font-style: italic;
}

.bp-plant-profile__rank {
    display: inline-block;
    margin-bottom: 0;
    padding: 0.28rem 0.55rem;
    color: var(--bp-green-dark);
    background: var(--bp-green-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bp-species-result {
    min-width: 0;
    border-top: 1px solid var(--bp-line);
}

.bp-species-result__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.bp-species-result__media {
    display: grid;
    width: 100%;
    aspect-ratio: 3 / 2;
    place-items: center;
    overflow: hidden;
    background: var(--bp-paper);
}

.bp-species-result__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bp-species-result__placeholder {
    padding: 1rem;
    color: var(--bp-muted);
    font-size: 0.78rem;
    text-align: center;
}

.bp-species-result__copy {
    padding: 0.9rem 0;
}

.bp-species-result__name {
    margin-bottom: 0.15rem;
    font-size: 1.05rem;
    line-height: 1.25;
}

.bp-species-result__scientific {
    margin-bottom: 0;
    color: var(--bp-muted);
    font-family: var(--bp-serif);
    font-size: 0.92rem;
    font-style: italic;
}

.bp-species-result__link:hover .bp-species-result__name {
    color: var(--bp-green-dark);
}

.bp-result-state {
    padding: 1.2rem;
    border: 1px solid var(--bp-line);
    color: var(--bp-muted);
    background: var(--bp-paper);
}

.bp-result-state--error {
    border-color: #b56b62;
    color: #7d302b;
    background: #fbf2f0;
}

/* Seasonal */

.bp-seasonal {
    border-block: 1px solid var(--bp-line);
    background: var(--bp-paper);
}

.bp-seasonal__layout {
    display: grid;
    grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1.58fr);
    gap: clamp(2rem, 6vw, 6rem);
}

.bp-seasonal__heading h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.bp-seasonal__month {
    margin-bottom: 0.5rem;
    color: var(--bp-green);
    font-family: var(--bp-serif);
    font-size: 1.65rem;
}

.bp-seasonal-list {
    display: grid;
    gap: 1rem;
}

.bp-seasonal-result {
    min-width: 0;
    border-top: 1px solid var(--bp-line);
}

.bp-seasonal-result__link {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    align-items: center;
    gap: 1.2rem;
    padding-block: 1rem;
    color: inherit;
    text-decoration: none;
}

.bp-seasonal-result__media {
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    background: #fff;
}

.bp-seasonal-result__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bp-seasonal-result__placeholder {
    padding: 0.7rem;
    color: var(--bp-muted);
    font-size: 0.7rem;
    line-height: 1.35;
    text-align: center;
}

.bp-seasonal-result__content {
    min-width: 0;
}

.bp-seasonal-result__name {
    margin-bottom: 0.1rem;
    font-size: 1rem;
    line-height: 1.25;
}

.bp-seasonal-result__scientific {
    margin-bottom: 0.8rem;
    color: var(--bp-muted);
    font-family: var(--bp-serif);
    font-size: 0.9rem;
    font-style: italic;
}

.bp-seasonal-result__link:hover .bp-seasonal-result__name {
    color: var(--bp-green-dark);
}

.bp-seasonal-months {
    display: grid;
    grid-template-columns: repeat(12, minmax(1.35rem, 1fr));
    gap: 0.25rem;
    max-width: 31rem;
}

.bp-seasonal-months__month {
    position: relative;
    display: grid;
    min-height: 1.65rem;
    place-items: center;
    border: 1px solid var(--bp-line);
    color: var(--bp-muted);
    background: #fff;
    font-size: 0.67rem;
    line-height: 1;
}

.bp-seasonal-months__month.is-active {
    border-color: var(--bp-green);
    color: #fff;
    background: var(--bp-green);
    font-weight: 700;
}

.bp-seasonal-months__month.is-current::after {
    position: absolute;
    right: 0.22rem;
    bottom: 0.16rem;
    width: 0.22rem;
    height: 0.22rem;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

@media (max-width: 38rem) {
    .bp-seasonal-result__link {
        grid-template-columns: 6rem minmax(0, 1fr);
        gap: 0.9rem;
    }

    .bp-seasonal-months {
        grid-template-columns: repeat(6, minmax(1.5rem, 1fr));
    }
}
/* Network */

.bp-networks {
    border-bottom: 1px solid var(--bp-line);
}

.bp-networks__layout {
    display: grid;
    grid-template-columns: minmax(17rem, 0.55fr) minmax(0, 1.45fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
}

.bp-networks__heading p {
    margin-bottom: 1.4rem;
}

.bp-artwork--network {
    min-height: 18rem;
    background: var(--bp-paper);
}

/* Closing field section */

.bp-field-cta {
    color: #fff;
    background: #35452f;
}

.bp-field-cta__inner {
    display: grid;
    grid-template-columns: minmax(19rem, 0.58fr) minmax(0, 1.42fr);
    min-height: 22rem;
}

.bp-field-cta__content {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 3.5rem 3.5rem 3.5rem 0;
}

.bp-field-cta__content h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.bp-field-cta__content p {
    max-width: 34rem;
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--bp-serif);
    line-height: 1.5;
}

.bp-artwork--field {
    min-height: 100%;
    margin-right: calc((100vw - min(100vw - 3rem, 92rem)) / -2);
    color: rgba(255, 255, 255, 0.7);
    background: #58664b;
}

.bp-artwork--field::after {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Accessibility */

.bp-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Tablet */

@media (max-width: 70rem) {
    .bp-hero__inner {
        grid-template-columns: minmax(18rem, 0.9fr) minmax(24rem, 1.1fr);
    }

    .bp-host-plant .bp-shell {
        grid-template-columns: 1fr;
    }

    .bp-host-plant__steps {
        order: 2;
    }

    .bp-note {
        order: 3;
        max-width: 22rem;
    }

    .bp-stories__layout,
    .bp-networks__layout {
        grid-template-columns: 1fr;
    }

    .bp-stories__heading {
        max-width: 38rem;
    }

    .bp-search__inner {
        grid-template-columns:
            minmax(5rem, 0.22fr)
            minmax(24rem, 1fr)
            minmax(5rem, 0.22fr);
    }

    .bp-species-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Mobile composition */

@media (max-width: 48rem) {
    .bp-shell {
        width: min(100% - 2rem, 40rem);
    }

    .bp-section {
        padding-block: 3.5rem;
    }

    .bp-section-heading h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .bp-hero {
        background: #fff;
    }

    .bp-hero__inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .bp-hero__content {
        padding: 3rem 0 2rem;
    }

    .bp-hero__title {
        max-width: 22rem;
        font-size: clamp(3.15rem, 15vw, 5rem);
    }

    .bp-hero__lead {
        font-size: 1rem;
    }

    .bp-artwork--hero {
        order: 2;
        min-height: 22rem;
        margin: 0 -1rem;
    }

    .bp-host-plant .bp-shell {
        gap: 2rem;
    }

    .bp-host-plant__steps {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 0.2rem;
    }

    .bp-host-step {
        display: grid;
        grid-template-columns: 2rem 6.5rem minmax(0, 1fr);
        align-items: center;
        gap: 1rem;
        min-height: 8rem;
    }

    .bp-host-step:not(:last-child)::before {
        position: absolute;
        top: 4.7rem;
        bottom: -1.3rem;
        left: 0.95rem;
        width: 1px;
        background: var(--bp-green);
        content: "";
    }

    .bp-host-step:not(:last-child)::after {
        display: none;
    }

    .bp-host-step__number {
        position: relative;
        z-index: 1;
        display: grid;
        width: 2rem;
        height: 2rem;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        background: var(--bp-green);
        font-size: 0.82rem;
        font-weight: 700;
    }

    .bp-artwork--step {
        min-height: 6rem;
        margin: 0;
    }

    .bp-note {
        max-width: none;
    }

    .bp-stories__layout {
        gap: 2.5rem;
    }

    .bp-stories__items {
        grid-template-columns: 1fr;
        border: 0;
    }

    .bp-story,
    .bp-story--featured {
        display: grid;
        grid-template-columns: minmax(7rem, 0.42fr) minmax(0, 0.58fr);
        gap: 1.2rem;
        padding: 1rem 0;
        border-top: 1px solid var(--bp-line);
        border-left: 0;
    }

    .bp-artwork--story,
    .bp-artwork--story-small {
        min-height: 10rem;
        margin: 0;
    }

    .bp-search__inner {
        display: block;
        min-height: 0;
    }

    .bp-artwork--search {
        display: none;
    }

    .bp-search__content {
        padding-block: 3.5rem;
    }

    .bp-section-heading--center {
        text-align: left;
    }

    .bp-search-form {
        grid-template-columns: 1fr;
        box-shadow: none;
    }

    .bp-search-form input {
        border-right: 1px solid var(--bp-line);
    }

    .bp-button--search {
        width: 100%;
        margin-top: 0.6rem;
    }

    .bp-search-suggestions {
        top: 3.9rem;
        right: 0;
    }

    .bp-results__layout,
    .bp-seasonal__layout,
    .bp-networks__layout {
        grid-template-columns: 1fr;
    }

    .bp-plant-profile {
        padding: 0 0 2.5rem;
        border-right: 0;
        border-bottom: 1px solid var(--bp-line);
    }

    .bp-species-list {
        grid-template-columns: 1fr;
    }

    .bp-seasonal__layout {
        gap: 2rem;
    }

    .bp-artwork--network {
        min-height: 22rem;
    }

    .bp-field-cta__inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .bp-field-cta__content {
        padding: 3.5rem 0 2rem;
    }

    .bp-artwork--field {
        min-height: 17rem;
        margin: 0 -1rem;
    }
}

@media (max-width: 28rem) {
    .bp-shell {
        width: min(100% - 1.5rem, 40rem);
    }

    .bp-host-step {
        grid-template-columns: 2rem 5rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .bp-story,
    .bp-story--featured {
        grid-template-columns: 1fr;
    }

    .bp-artwork--story,
    .bp-artwork--story-small {
        min-height: 12rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bp-page *,
    .bp-page *::before,
    .bp-page *::after {
        scroll-behavior: auto !important;
    }
}
/* Targeted hero composition — hero2.webp only */
.bp-hero {
    background: #fffdf8;
}

.bp-hero__inner {
    grid-template-columns: minmax(0, 0.41fr) minmax(0, 0.59fr);
    min-height: clamp(34rem, 43vw, 42rem);
}

.bp-hero__content {
    padding: 3.5rem 1.5rem 3.5rem 0;
}

.bp-hero__title {
    max-width: none;
    font-size: clamp(3rem, 4.3vw, 4.5rem);
    line-height: 0.94;
}

.bp-artwork--hero {
    min-height: 0;
    background: transparent;
}

.bp-artwork--hero::after {
    display: none;
}

.bp-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    /* Fade the opaque cream image edges into the hero background. */
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, #000 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 80% at center, #000 72%, transparent 100%);
}

@media (max-width: 70rem) and (min-width: 48.001rem) {
    .bp-hero__inner {
        grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr);
    }
    .bp-hero__title {
        font-size: clamp(2.6rem, 4.4vw, 3.8rem);
    }
}

@media (max-width: 48rem) {
    .bp-hero__inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }
    .bp-hero__content {
        padding: 3rem 0 1rem;
    }
    .bp-hero__title {
        max-width: 22rem;
        font-size: clamp(3.15rem, 15vw, 5rem);
    }
    .bp-artwork--hero {
        min-height: 0;
        margin: 0 -1rem;
    }
    .bp-hero__image {
        width: 100%;
        height: auto;
    }
}

/* Hero — jemné splynutie ilustrácie s pozadím */

.bp-hero {
    background: #fff;
}

.bp-artwork--hero {
    background: #fff;
}

.bp-hero__image {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 7%,
        #000 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 7%,
        #000 100%
    );
}



/* Fotografie — Čo je živná rastlina? */
.bp-artwork--step {
    aspect-ratio: 3 / 2;
    min-height: 0;
    overflow: hidden;
}
.bp-artwork--step img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 48rem) {
    .bp-artwork--step {
        min-height: 0;
        margin: 0;
    }
}

/* Botanická ilustrácia pri vyhľadávaní */

.bp-artwork--search {
    background-image: url('../images/motyle-a-rastliny/search-prunus.webp');
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
}

/* Záverečná sekcia – fotografia */

.bp-artwork--field {
    background-image:
        url('../images/motyle-a-rastliny/field-closing.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bp-artwork--field::after {
    display: none;
}
