/* =========================================================
   v1.20 — targeted working-baseline refinements
   ========================================================= */

/* 1) Community Voices: keep the Facebook mark optically centered beside the
   two-line feed title. A broader span rule in main.css turns spans into block
   elements; explicitly restore grid centering for the logo itself. */
.facebook-feed-shell__top > .facebook-f {
    display: inline-grid !important;
    place-items: center !important;
    align-self: center;
    justify-self: center;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center;
    transform: none !important;
}
.facebook-feed-shell__top > .facebook-f::first-letter {
    line-height: 1;
}

/* 2 + 3) Homepage hero on phones: keep both the conversion CTAs and the
   carousel navigation visible, while reserving a clearer visual zone for the
   media above the text. */
@media (max-width: 620px) {
    .hero-section.hero-slider {
        min-height: 830px;
        height: max(830px, calc(100svh - 72px));
        max-height: none;
    }

    .hero-slide__media > img,
    .hero-native-video,
    .hero-video-poster {
        object-position: center 24%;
    }

    .hero-slide__scrim {
        background:
            linear-gradient(180deg, rgba(14,10,12,.10) 0%, rgba(14,10,12,.14) 28%, rgba(14,10,12,.64) 49%, rgba(14,10,12,.96) 73%, rgba(14,10,12,.98) 100%);
    }

    .hero-slide__inner {
        align-items: flex-end;
        padding-top: clamp(220px, 34svh, 300px);
        padding-bottom: 244px;
    }

    .hero-slide__content {
        position: relative;
        z-index: 7;
        width: 100%;
        max-width: 100%;
        padding: 17px 15px 18px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 20px;
        background: linear-gradient(145deg, rgba(29,24,25,.78), rgba(29,24,25,.58));
        box-shadow: 0 18px 48px rgba(0,0,0,.24);
        backdrop-filter: blur(8px);
    }

    .hero-slide__content h1,
    .hero-slide__content h2 {
        margin-bottom: 12px;
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 1.02;
    }

    .hero-slide__tagline {
        margin-bottom: 9px;
        font-size: .98rem;
        line-height: 1.36;
    }

    .hero-slide__lede {
        display: block;
        margin: 0;
        font-size: .88rem;
        line-height: 1.48;
        color: rgba(255,255,255,.82);
    }

    .hero-slide__actions {
        position: relative;
        z-index: 9;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 15px;
    }

    .hero-slider .hero-slide__actions .button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
        min-width: 0;
        min-height: 47px;
        padding: 11px 12px;
        font-size: .7rem;
        line-height: 1.15;
        text-align: center;
    }

    .hero-slider__chrome {
        z-index: 14;
        bottom: 166px;
        width: calc(100% - 24px);
        padding: 6px 7px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 999px;
        background: rgba(29,24,25,.82);
        box-shadow: 0 10px 28px rgba(0,0,0,.22);
        backdrop-filter: blur(10px);
    }

    .hero-slider__meta {
        flex: 1 1 auto;
        min-width: 0;
    }

    .hero-slider__controls {
        flex: 0 0 auto;
        gap: 4px;
    }

    .hero-slider__dots {
        display: flex !important;
        gap: 1px;
    }

    .hero-dot {
        display: block !important;
        width: 22px;
        height: 36px;
    }

    .hero-dot span {
        background: rgba(255,255,255,.58);
    }

    .hero-dot.is-active span {
        width: 16px;
        background: #fff;
    }

    .hero-arrow {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px;
        height: 40px;
        color: #fff !important;
        border-color: rgba(255,255,255,.40);
        background: #1D1819;
        box-shadow: 0 5px 16px rgba(0,0,0,.24);
    }

    .hero-arrow:disabled {
        opacity: .48 !important;
    }

    .hero-media-controls {
        display: none;
    }

    .hero-trust-rail {
        z-index: 12;
    }
}

@media (max-width: 390px) {
    .hero-section.hero-slider {
        min-height: 870px;
        height: max(870px, calc(100svh - 72px));
    }

    .hero-slide__inner {
        padding-top: 240px;
        padding-bottom: 250px;
    }

    .hero-slide__content {
        padding: 15px 13px 16px;
    }

    .hero-slide__actions {
        grid-template-columns: 1fr;
    }

    .hero-slider__chrome {
        bottom: 166px;
    }

    .hero-slider__line {
        width: 42px;
    }
}

/* 4) Donate page: explicit contrast for the “Open Donation Form” CTA while
   leaving the dynamically generated paw-swarm spans untouched. */
.inner-page-donate .donation-choice-featured .donation-form-button {
    color: #fff !important;
    border-color: #A71B1C !important;
    background: #A71B1C !important;
    box-shadow: 0 14px 30px rgba(167,27,28,.22);
}
.inner-page-donate .donation-choice-featured .donation-form-button > .donation-form-button__icon,
.inner-page-donate .donation-choice-featured .donation-form-button > .donation-form-button__label {
    position: relative;
    z-index: 3;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.inner-page-donate .donation-choice-featured .donation-form-button:hover,
.inner-page-donate .donation-choice-featured .donation-form-button:focus-visible {
    color: #fff !important;
    border-color: #7E1112 !important;
    background: #7E1112 !important;
}
.inner-page-donate .donation-choice-featured .donation-form-button:hover > .donation-form-button__icon,
.inner-page-donate .donation-choice-featured .donation-form-button:hover > .donation-form-button__label,
.inner-page-donate .donation-choice-featured .donation-form-button:focus-visible > .donation-form-button__icon,
.inner-page-donate .donation-choice-featured .donation-form-button:focus-visible > .donation-form-button__label {
    color: #fff !important;
}

/* 5) Petco Love Lost subsection beneath Community Partners. */
.petco-love-lost-subsection {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: center;
    margin-top: clamp(28px, 5vw, 68px);
    padding: clamp(28px, 4vw, 54px);
    overflow: hidden;
    border: 1px solid rgba(97,27,167,.12);
    border-radius: 30px;
    background:
        radial-gradient(circle at 8% 16%, rgba(97,27,167,.08), transparent 28%),
        radial-gradient(circle at 92% 86%, rgba(27,167,167,.10), transparent 29%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(250,246,252,.94));
    box-shadow: 0 26px 70px rgba(42,26,47,.10);
}
.petco-love-lost-subsection::after {
    content: "pets";
    position: absolute;
    right: -20px;
    bottom: -38px;
    color: rgba(97,27,167,.055);
    font-family: "Material Symbols Rounded";
    font-size: 160px;
    font-variation-settings: "FILL" 1;
    pointer-events: none;
}
.petco-love-lost__logo-wrap {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 24px;
    border: 1px solid rgba(97,27,167,.10);
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    box-shadow: inset 0 1px rgba(255,255,255,.8), 0 14px 38px rgba(37,28,40,.08);
}
.petco-love-lost__logo-wrap img {
    display: block;
    width: min(100%, 360px);
    height: auto;
    max-height: 150px;
    object-fit: contain;
}
.petco-love-lost__content {
    position: relative;
    z-index: 2;
}
.petco-love-lost__content h3 {
    margin: 8px 0 14px;
    color: var(--purple);
    font-size: clamp(2rem, 3.3vw, 3.35rem);
}
.petco-love-lost__content p {
    max-width: 980px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.76;
}

@media (max-width: 760px) {
    .petco-love-lost-subsection {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 20px;
        text-align: left;
    }
    .petco-love-lost__logo-wrap {
        min-height: 130px;
        padding: 18px;
    }
    .petco-love-lost__logo-wrap img {
        max-height: 104px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .petco-love-lost-subsection,
    .petco-love-lost__logo-wrap { transition: none !important; }
}
