/* Names4Paws layout polish: consistent footer + content spacing */

.site-footer.site-footer--polished {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 38px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.85fr) minmax(360px, 1.35fr);
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-weight: 700;
}

.site-footer--polished p {
    margin: 0;
}

.site-footer--polished .footer-branding {
    text-align: left;
}

.site-footer--polished .footer-note {
    text-align: center;
    max-width: 340px;
    justify-self: center;
    line-height: 1.35;
}

.site-footer--polished .footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    text-align: right;
}

.site-footer--polished .footer-links a {
    color: inherit;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.site-footer--polished .footer-links a:hover,
.site-footer--polished .footer-links a:focus-visible {
    text-decoration: underline;
}

/* Give standalone content pages a consistent rhythm. */
.content-page > * + * {
    margin-top: 24px;
}

.content-page > .content-card + .content-card {
    margin-top: 24px;
}

.content-grid-two,
.tips-list {
    align-items: stretch;
}

.content-grid-two > .content-card,
.tips-list > .content-card {
    height: 100%;
}

.content-card > :first-child {
    margin-top: 0;
}

.content-card > :last-child {
    margin-bottom: 0;
}

.content-card ul,
.content-card ol {
    color: var(--muted);
    line-height: 1.65;
}

.content-card li + li {
    margin-top: 0.4rem;
}

.how-it-works + .content-page,
.content-page + .ad-slot,
.content-page + .ad-placeholder {
    margin-top: 34px;
}

@media (max-width: 1060px) {
    .site-footer.site-footer--polished {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer--polished .footer-branding,
    .site-footer--polished .footer-note,
    .site-footer--polished .footer-links {
        justify-self: center;
        text-align: center;
    }

    .site-footer--polished .footer-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-footer.site-footer--polished {
        width: min(100% - 22px, var(--max-width));
        gap: 16px;
        padding-bottom: 30px;
    }

    .site-footer--polished .footer-links {
        gap: 8px 14px;
    }

    .content-page > * + * {
        margin-top: 18px;
    }
}



/* New pet guide structure */

.guide-page .guide-hero p {
    max-width: 860px;
}

.guide-card-grid .content-card {
    position: relative;
    overflow: hidden;
}

.guide-card-grid .content-card::after {
    content: "";
    position: absolute;
    right: -38px;
    top: -38px;
    width: 115px;
    height: 115px;
    border-radius: 999px;
    background: rgba(255, 139, 74, 0.10);
}

.guide-icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(124, 100, 255, 0.10);
    margin-bottom: 14px;
    font-size: 1.45rem;
}

.guide-card-grid a,
.source-card a,
.content-card > a:not(.button),
.content-card li a {
    color: var(--purple);
    font-weight: 900;
}

.source-card {
    background: rgba(255, 255, 255, 0.76);
}

.source-card h2 {
    font-size: clamp(1.3rem, 3vw, 2rem);
}

.source-list {
    padding-left: 1.25rem;
}

.source-list li + li {
    margin-top: 0.5rem;
}

.guide-page .content-card strong {
    color: var(--ink);
}

@media (max-width: 900px) {
    .top-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .top-nav {
        justify-content: center;
    }
}



/* Content-depth patch: article pages, source cards and callouts */
.guide-page .guide-hero h1 {
    max-width: 920px;
}

.article-lede {
    font-size: 1.08rem;
    line-height: 1.7;
}

.quick-checklist,
.source-list,
.question-list {
    padding-left: 1.25rem;
}

.quick-checklist li,
.source-list li,
.question-list li {
    margin: 0.55rem 0;
}

.guide-note {
    border-left: 5px solid rgba(255, 126, 91, 0.62);
    background: rgba(255, 248, 230, 0.8);
}

.source-card {
    font-size: 0.96rem;
}

.source-card a {
    font-weight: 800;
}

.callout-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.callout-card .button {
    flex: 0 0 auto;
    min-width: 118px;
    white-space: nowrap;
    text-align: center;
}

.inline-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.inline-card-grid .mini-card {
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(109, 93, 110, 0.14);
}

.inline-card-grid .mini-card h3 {
    margin: 0 0 0.55rem;
}

.inline-card-grid .mini-card p {
    margin: 0;
}

@media (max-width: 860px) {
    .inline-card-grid {
        grid-template-columns: 1fr;
    }

    .callout-card {
        align-items: flex-start;
        flex-direction: column;
    }
}
