/* Mobile QA layer for the approved homepage reference. */
@media (max-width: 760px) {
    body.home {
        overflow-x: clip;
    }

    body.home .kc-site-header {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .kc-homepage,
    .kc-site-footer {
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    .kc-site-footer__bottom {
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    }

    body.home .kc-menu-toggle,
    body.home .kc-header-search button,
    .kc-ref-button,
    .kc-ref-text-link,
    .kc-ref-feature--alerts > a,
    .kc-ref-article a,
    .kc-ref-partners__row a,
    .kc-ref-seasonal__list a,
    .kc-footer-column a,
    .kc-site-footer__bottom a {
        min-width: 44px;
        min-height: 44px;
    }

    .kc-ref-button,
    .kc-ref-text-link,
    .kc-ref-feature--alerts > a,
    .kc-ref-article a,
    .kc-ref-partners__row a,
    .kc-footer-column a,
    .kc-site-footer__bottom a {
        display: inline-flex;
        align-items: center;
    }

    .kc-ref-tool,
    .kc-ref-pet-card,
    .kc-ref-hub,
    .kc-ref-hub-mini,
    .kc-ref-seasonal__list a {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(255, 123, 102, .16);
    }

    .kc-ref-feature,
    .kc-ref-article,
    .kc-ref-hub,
    .kc-ref-hub-mini,
    .kc-ref-seasonal__panel {
        min-width: 0;
    }

    .kc-ref-feature h2,
    .kc-ref-article h3,
    .kc-ref-hub h3,
    .kc-ref-seasonal__copy h2,
    .kc-footer-column a {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 430px) {
    .kc-ref-shell,
    body.home .kc-site-header__inner {
        width: min(100% - 24px, var(--kc-ref-shell));
    }

    body.home .kc-site-header__inner {
        gap: 8px;
    }

    body.home .kc-header-search input {
        height: 48px;
        padding-left: 18px;
    }

    .kc-ref-hero__copy {
        padding-top: 20px;
        padding-bottom: 24px;
    }

    .kc-ref-hero__copy h1 {
        max-width: 360px;
        font-size: clamp(36px, 10.5vw, 41px);
        line-height: 1.02;
        letter-spacing: -.045em;
    }

    .kc-ref-hero__copy > p {
        margin: 18px 0 22px;
        font-size: 16px;
        line-height: 1.5;
    }

    .kc-ref-pet-switch {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kc-ref-pet-card {
        min-height: 132px;
        grid-template-columns: 42% 58%;
    }

    .kc-ref-pet-card img {
        position: static;
        inset: auto;
        width: 100%;
        height: 132px;
        opacity: .88;
    }

    .kc-ref-pet-card strong {
        justify-self: start;
        padding: 0 52px 0 18px;
        font-size: 19px;
        text-align: left;
    }

    .kc-ref-pet-card__icon {
        top: 15px;
        right: 18px;
    }

    .kc-ref-pet-card__arrow {
        right: 17px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }

    .kc-ref-hero__visual {
        min-height: 350px;
    }

    .kc-ref-section {
        padding: 38px 0;
    }

    .kc-ref-section-title {
        margin-bottom: 24px;
        font-size: 30px;
        line-height: 1.12;
    }

    .kc-ref-tool {
        min-height: 152px;
        padding: 22px 16px;
    }

    .kc-ref-feature,
    .kc-ref-feature--newsletter {
        min-height: 0;
    }

    .kc-ref-feature--alerts,
    .kc-ref-feature--newsletter {
        padding: 24px;
    }

    .kc-ref-feature--alerts li {
        grid-template-columns: 34px minmax(0, 1fr) 12px;
    }

    .kc-ref-article > img {
        height: 190px;
    }

    .kc-ref-article p {
        min-height: 0;
    }

    .kc-ref-partners__row span {
        min-height: 52px;
        display: grid;
        place-items: center;
        padding: 8px 10px;
        font-size: 14px;
    }

    .kc-site-footer__inner,
    .kc-site-footer__bottom {
        width: min(100% - 24px, 680px);
    }

    .kc-footer-column {
        gap: 4px;
    }

    .kc-footer-column a,
    .kc-site-footer__bottom a {
        width: 100%;
        justify-content: center;
        padding: 8px 4px;
    }
}

@media (max-width: 360px) {
    body.home .kc-brand {
        gap: 8px;
    }

    body.home .kc-brand__paw {
        width: 38px;
        height: 38px;
    }

    body.home .kc-brand__name {
        font-size: 21px;
    }

    body.home .kc-brand small {
        display: none;
    }

    .kc-ref-hero__copy h1 {
        font-size: 35px;
    }

    .kc-ref-hero__visual {
        min-height: 320px;
    }

    .kc-ref-tool strong {
        font-size: 18px;
    }

    .kc-ref-feature--tip .kc-ref-feature__copy,
    .kc-ref-feature--alerts,
    .kc-ref-feature--newsletter {
        padding: 22px;
    }
}

@media (max-width: 330px) {
    .kc-ref-shell,
    body.home .kc-site-header__inner,
    .kc-site-footer__inner,
    .kc-site-footer__bottom {
        width: min(100% - 18px, var(--kc-ref-shell));
    }

    body.home .kc-brand__name {
        font-size: 19px;
    }

    .kc-ref-hero__copy h1 {
        font-size: 32px;
    }

    .kc-ref-pet-card {
        grid-template-columns: 40% 60%;
    }
}
