/*
 * Shared overflow fixes and homepage stacking.
 * Image crop windows, maps and scrollable data tables keep their own clipping.
 */
body#top main fieldset {
    min-width: 0;
    max-width: 100%;
}
body#top main legend {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
body#top main :is(input, select, textarea) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
body#top :is(.repeatable-table-wrapper, .finance-table-scroll) {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}
body#top .site-directory-footer__group {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Shared portal styles set a short aspect ratio on adoption cards.
 * Let each frame grow around the photo and the complete information body. */
body#top .rescue-pet-card .rescue-pet-card__frame {
    height: auto;
    aspect-ratio: auto;
}

/* The message is a sibling of the decorative sections, in normal document flow. */
body#top.page-home main {
    position: static !important;
    z-index: auto !important;
    isolation: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
}
body#top.page-home .home-message {
    position: relative !important;
    inset: auto !important;
    z-index: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: clamp(1.25rem, 3vw, 2rem) clamp(.75rem, 2vw, 2rem) !important;
    overflow: visible !important;
    transform: none !important;
    translate: none !important;
    scale: 1 !important;
    pointer-events: none;
}
body#top.page-home .home-message__inner {
    position: relative !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    translate: none !important;
}
body#top.page-home .home-message__title {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 80rem !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: .15em .35em !important;
    color: #1d59a8 !important;
    -webkit-text-fill-color: #1d59a8 !important;
    font-size: clamp(1.75rem, 4.4vw, 3.5rem) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    text-wrap: balance !important;
    overflow: visible !important;
    transform: none !important;
    translate: none !important;
    scale: 1 !important;
}
body#top.page-home .home-message__sparkles {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    pointer-events: none !important;
    transform: none !important;
}
/* The first-visit Events announcement always belongs above the welcome band. */
body#top.events-scroll-modal-open > .header-events-widget.is-expanded {
    z-index: 2147483000 !important;
    width: 100% !important;
}

body#top.page-home :is(.featured-showcase, .available-showcase) {
    position: relative !important;
    inset: auto !important;
    z-index: 0 !important;
    isolation: isolate;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: none !important;
    translate: none !important;
}
body#top.page-home .featured-showcase {
    padding-top: 1.5rem !important;
}
body#top.page-home .featured-showcase__hero-kicker-space {
    display: none !important;
}
body#top.page-home .featured-showcase__hero {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 90rem !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto 1.5rem !important;
    padding: .5rem 0 !important;
    transform: none !important;
}
body#top.page-home .featured-showcase__hero-title {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: .1em 0 !important;
    font-size: clamp(2rem, 4.4vw, 4.75rem) !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    text-wrap: balance !important;
    overflow: visible !important;
    transform: none !important;
    translate: none !important;
    scale: 1 !important;
}
body#top.page-home .available-showcase .available-showcase__heading {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto 2rem !important;
    padding: .5rem 0 !important;
    overflow: visible !important;
    transform: none !important;
}
body#top.page-home .available-showcase .available-showcase__heading >
.available-showcase__eyebrow.featured-showcase__hero-title {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
}
body#top.page-home .available-showcase .available-showcase__view-all {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    position: relative !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 2.75rem !important;
    margin: 0 !important;
    padding: .5rem 1rem !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    transform: none !important;
}
body#top.page-home :is(.featured-showcase__grid, .available-showcase__grid) {
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    transform: none !important;
    translate: none !important;
}
body#top.page-home :is(.featured-showcase__card, .available-showcase__card) {
    min-width: 0 !important;
}
body#top.page-home :is(.featured-showcase__portrait, .available-showcase__portrait) {
    overflow: visible !important;
}
body#top.page-home :is(.featured-showcase, .available-showcase)::before,
body#top.page-home :is(.featured-showcase, .available-showcase)::after {
    max-width: 100%;
    pointer-events: none;
}

/* Status copy has its own growing row above the portrait at every text size. */
body#top.page-home .available-showcase__portrait-shell {
    padding-top: 0 !important;
}
body#top.page-home .available-showcase__status {
    position: static !important;
    inset: auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 2.5em !important;
    height: auto !important;
    margin: 0 0 .25rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-wrap: balance !important;
    transform: none !important;
}

body#top .rescue-pet-card__actions :is(a, button) {
    min-height: 2.75rem;
    font-size: .875rem;
    line-height: 1.25;
}


/* ===============================================================
   Golden welcome: homepage first-impression polish, Oct 2026.
   Keep this band in document flow, *beneath* the Events overlay.
   Its muted Rococo accents frame the rescue message rather than
   covering event details or competing with natural animal photos.
   =============================================================== */
body#top.page-home .home-message {
    z-index: 0 !important;
    isolation: isolate !important;
    padding: clamp(1.5rem, 3.2vw, 2.65rem) clamp(1rem, 3.5vw, 3rem) !important;
    border-top: 3px solid #d0a145 !important;
    border-bottom: 3px solid #b68b37 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    background-color: #f6e0a7 !important;
    background-image:
        radial-gradient(ellipse at 50% -55%, rgba(255, 255, 255, .86) 0%, transparent 66%),
        linear-gradient(115deg, #ebc776 0%, #fff7db 23%, #f3db9d 50%, #fff6d8 77%, #e4b969 100%) !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .74),
                inset 0 -2px 0 rgba(255, 248, 223, .7),
                0 10px 24px rgba(56, 42, 20, .12) !important;
    overflow: hidden !important;
    pointer-events: auto !important;
}
body#top.page-home .home-message::before,
body#top.page-home .home-message::after {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    pointer-events: none !important;
}
body#top.page-home .home-message::before {
    inset: 12px 12px !important;
    border: 1px solid rgba(147, 101, 29, .35) !important;
    border-radius: 2px !important;
    background: none !important;
}
body#top.page-home .home-message::after {
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: min(46%, 420px) !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, #8b6629, transparent) !important;
    transform: translateX(-50%) !important;
}
body#top.page-home .home-message__inner {
    z-index: 1 !important;
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
    gap: .6rem !important;
    width: min(100%, 65rem) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: .5rem 0 !important;
    text-align: center !important;
}
body#top.page-home .home-message__eyebrow {
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    color: #75531c !important;
    font: 800 clamp(.72rem, 1.4vw, .86rem)/1.4 "Trebuchet MS", Arial, sans-serif !important;
    letter-spacing: .15em !important;
    text-transform: uppercase !important;
    text-wrap: balance !important;
}
body#top.page-home .home-message__title {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 60rem !important;
    margin: 0 !important;
    padding: .08em .15em !important;
    color: #173f75 !important;
    -webkit-text-fill-color: #173f75 !important;
    font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif !important;
    font-size: clamp(1.85rem, 4vw, 3.4rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    text-wrap: balance !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .92) !important;
    filter: none !important;
    animation: none !important;
    transform: none !important;
}
body#top.page-home .home-message__subtitle {
    position: relative !important;
    z-index: 1 !important;
    width: min(100%, 45rem) !important;
    margin: 0 !important;
    color: #314d6a !important;
    font: 500 clamp(.98rem, 1.7vw, 1.12rem)/1.55 "Trebuchet MS", Arial, sans-serif !important;
    text-wrap: pretty !important;
}
body#top.page-home .home-message__actions {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: .7rem !important;
    width: 100% !important;
    margin-top: .55rem !important;
}
body#top.page-home .home-message__action,
body#top.page-home .home-message__action:is(:link, :visited) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .5rem !important;
    min-height: 2.75rem !important;
    padding: .7rem 1.2rem !important;
    border: 2px solid #173f75 !important;
    border-radius: 999px !important;
    background: #173f75 !important;
    color: #fff8e8 !important;
    -webkit-text-fill-color: #fff8e8 !important;
    font: 800 .93rem/1.2 "Trebuchet MS", Arial, sans-serif !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 3px 0 rgba(14, 47, 88, .22) !important;
    transform: none !important;
    transition: background-color 160ms ease, box-shadow 160ms ease, translate 160ms ease !important;
}
body#top.page-home .home-message__action--secondary,
body#top.page-home .home-message__action--secondary:is(:link, :visited) {
    border-color: #b98c37 !important;
    background: #fffaf0 !important;
    color: #173f75 !important;
    -webkit-text-fill-color: #173f75 !important;
}
body#top.page-home .home-message__action:hover {
    box-shadow: 0 5px 12px rgba(14, 47, 88, .18) !important;
    translate: 0 -2px !important;
}
body#top.page-home .home-message__action--primary:hover {
    background: #275d9b !important;
}
body#top.page-home .home-message__action--secondary:hover {
    background: #fff2cf !important;
}
body#top.page-home .home-message__action:focus-visible {
    outline: 3px solid #173f75 !important;
    outline-offset: 4px !important;
}
body#top.page-home .home-message__sparkles {
    opacity: .55 !important;
    z-index: 0 !important;
}
@media (max-width: 600px) {
    body#top.page-home .home-message {
        padding: 1.5rem .9rem !important;
    }
    body#top.page-home .home-message::before {
        inset: 8px !important;
    }
    body#top.page-home .home-message__inner {
        gap: .55rem !important;
        padding: .4rem 0 !important;
    }
    body#top.page-home .home-message__eyebrow {
        font-size: .69rem !important;
        letter-spacing: .1em !important;
    }
    body#top.page-home .home-message__title {
        font-size: clamp(1.75rem, 7.2vw, 2.5rem) !important;
        line-height: 1.14 !important;
    }
    body#top.page-home .home-message__actions {
        gap: .6rem !important;
    }
    body#top.page-home .home-message__action {
        flex: 1 1 12rem !important;
        max-width: 19rem !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    body#top.page-home .home-message__action {
        transition: none !important;
        translate: none !important;
    }
}
