/* Homepage-only surface variant of the canonical /price/ editorial cards. */
body.home .home-stories {
    background: var(--wp--preset--color--deep-cave);
    color: var(--wp--preset--color--off-white);
    margin-block-start: 0;
    overflow-wrap: anywhere;
}

body.home .home-stories :is(.breganja-stories__eyebrow, .breganja-stories__title, .breganja-stories__intro, .breganja-story-card__title, .breganja-story-card__meta, .breganja-story-card__excerpt, .home-stories__empty, .home-stories__all) {
    color: var(--wp--preset--color--off-white);
}

body.home .home-stories .breganja-stories__eyebrow::after {
    display: inline-block;
    width: var(--wp--preset--spacing--32);
    height: 2px;
    margin-inline-start: var(--wp--preset--spacing--16);
    background: var(--wp--preset--color--breganja-red);
    vertical-align: middle;
    content: "";
}

body.home .home-stories .home-stories__query {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

body.home .home-stories .wp-block-post-template {
    margin-block: 0;
    padding: 0;
    list-style: none;
}

body.home .home-stories .wp-block-post-template > li {
    min-width: 0;
    margin-block: 0;
}

body.home .home-stories .breganja-story-card {
    box-sizing: border-box;
    margin: 0;
    background: transparent;
}

body.home .home-stories .breganja-story-card__meta {
    display: flex;
    flex-wrap: wrap;
}

body.home .home-stories :is(.breganja-story-card__title a, .breganja-story-card__meta a, .wp-block-post-excerpt__more-link, .home-stories__all a) {
    color: var(--wp--preset--color--off-white);
}

body.home .home-stories .wp-block-post-excerpt__more-link {
    text-decoration-color: var(--wp--preset--color--breganja-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

body.home .home-stories :is(.breganja-story-card__title a, .breganja-story-card__meta a):hover {
    text-decoration: underline;
    text-decoration-color: var(--wp--preset--color--breganja-red);
    text-underline-offset: 5px;
}

body.home .home-stories a:focus-visible {
    outline: 2px solid var(--wp--preset--color--off-white);
    outline-offset: 5px;
}

body.home .home-stories .home-stories__all {
    margin-block-start: var(--wp--preset--spacing--48);
    text-align: right;
}

/* Reuse the accepted introduction CTA geometry, with a light hover on dark. */
body.home .home-stories .home-stories__all a {
    align-items: center;
    background: var(--breganja-red);
    border: 1px solid var(--breganja-red);
    border-radius: var(--breganja-radius-button);
    color: var(--wp--preset--color--white);
    display: inline-flex;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    min-height: 50px;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    text-transform: uppercase;
}

body.home .home-stories .home-stories__all a:hover {
    background: transparent;
    color: var(--wp--preset--color--off-white);
}

body.home .home-stories .home-stories__empty {
    padding-block: var(--wp--preset--spacing--32);
    border-block: 1px solid var(--wp--preset--color--mist);
}

body.home .home-stories .home-stories__empty p {
    margin: 0;
}
