/* Ported verbatim from mlpa-child/style.css — component CSS (job listings,
   forms, dashboard, etc.) that lived in the old main stylesheet. Loaded on
   non-front-page surfaces alongside the petsitter parity shim until each
   surface is restyled into the Direction C system. */
*/

/* ── Lost Pets listing ─────────────────────────────────────────────────────
   Parent theme sets width:25% in grid view, letting tall originals stretch.
   Lock thumbnail to a fixed 64×64 circle regardless of source dimensions.
   ───────────────────────────────────────────────────────────────────────── */
.job_img img.company_logo,
#job-manager-job-dashboard td.pet_image img.company_logo {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Homepage "Recent Lost Pets" cards + single listing cover image ─────────
   Parent theme sets height:auto, allowing portrait images to stretch tall.
   Force square crop via aspect-ratio so all cards/covers are uniform.
   ───────────────────────────────────────────────────────────────────────── */
.job_summary_shortcode img.company_logo,
figure.job-cover-img img.company_logo {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: auto;
}

/* ── Skip-to-content link (a11y) ────────────────────────────────────────────
   Visually hidden until it receives keyboard focus, then pinned to the top. */
.mlpa-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 10px 16px;
    background: #241f1b;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 6px 0;
}
.mlpa-skip-link:focus {
    left: 0;
    outline: 3px solid #e89145;
}

/* Screen-reader-only text (fallback in case the parent theme omits it). */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Mobile sticky "Start an alert" bar ─────────────────────────────────────
   Fixed bottom action bar on phones only, so the primary CTA and click-to-call
   stay in reach after the hero scrolls away. Rendered by MlpaMobileCta, which
   suppresses it on the alert funnel. Hidden entirely on wider screens. */
.mlpa-mcta { display: none; }

@media (max-width: 768px) {
    .mlpa-mcta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9990;
        gap: 1px;
        padding-bottom: env(safe-area-inset-bottom);
        background: #241f1b;
        box-shadow: 0 -6px 20px -6px rgba(0, 0, 0, .35);
    }
    .mlpa-mcta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 54px;
        font-weight: 800;
        font-size: 16px;
        line-height: 1;
        text-decoration: none;
    }
    .mlpa-mcta__call {
        flex: 0 0 33%;
        background: #241f1b;
        color: #fff;
    }
    .mlpa-mcta__call span { font-weight: 700; }
    .mlpa-mcta__start {
        flex: 1 1 auto;
        background: linear-gradient(180deg, #e89145 0%, #cc7a2b 100%);
        color: #fff;
    }
    .mlpa-mcta a:focus { outline: 3px solid #fff; outline-offset: -5px; }

    /* Keep the fixed bar from covering the footer's last content. */
    body.has-mcta { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
}

/* ── Header social / stats strip polish ─────────────────────────────────────
   Aligns the header stat badges (alerts sent + social follower counts) into one
   tidy, evenly spaced row. LI stays inline-block so the split counter spans that
   make up each number (e.g. 20 . 3 k) stay glued together. */
.head-info .social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 16px;
    margin-top: 8px;
    padding: 0;
    list-style: none;
}
.head-info .social-links li {
    display: inline-block;
    margin: 0;
    padding: 0;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    color: #241f1b;
    white-space: nowrap;
}
.head-info .social-links li a {
    color: #241f1b;
    text-decoration: none;
}
.head-info .social-links li a:hover { color: #e89145; }
.head-info .social-links li i {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ── Hide the header contact/stats strip on mobile ──────────────────────────
   The parent theme renders .head-info (phone number + alerts/social follower
   counts) stacked and centered below the logo under 992px. On a phone that
   strip is redundant with the sticky bottom "Call" / "Start an alert" bar and
   just clutters the header, so keep it desktop-only — matching the parent's own
   992px breakpoint, where .head-info floats up into the header row. */
@media (max-width: 991.98px) {
    .head-info { display: none; }
}

/* ── Breadcrumbs (lost-pet listings) ────────────────────────────────────────
   Rendered in the page-heading bar, which carries dark heading text on this
   site (see yellowpencil-legacy .page-heading h1), so crumbs use muted dark. */
.mlpa-breadcrumbs { margin: 0 0 10px; font-size: 13px; line-height: 1.4; }
.mlpa-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}
.mlpa-breadcrumbs li { display: inline-flex; align-items: center; }
.mlpa-breadcrumbs li + li::before {
    content: "\203A";
    margin-right: 6px;
    color: #9a938c;
}
.mlpa-breadcrumbs a { color: #6b6b6b; text-decoration: none; }
.mlpa-breadcrumbs a:hover { color: #e89145; text-decoration: underline; }
.mlpa-breadcrumbs [aria-current="page"] span { color: #241f1b; font-weight: 700; }