/* ============================================================================
   Bramble's site — visual direction: municipal park signage.

   The dog's world is the park, so the site borrows the park's own graphics:
   routed green fingerposts, chalky enamel plaques, hi-vis for anything urgent,
   and mono type for the things that are literally data (chip numbers, coords,
   weights, dates).
   ========================================================================= */

:root {
    /* Palette */
    --park: #0A241C; /* routed sign green, near-black */
    --park-mid: #143A2C;
    --park-soft: #1E4A38;
    --chalk: #F2F5EE; /* weathered sign white, faintly green */
    --chalk-dim: #DDE5D6;
    --ochre: #B9772C; /* the gravel path */
    --lichen: #8FAE6B;
    --hivis: #FF5A1F; /* urgent only. Never decorative. */
    /* Type */
    --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
    --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    /* Shape */
    --radius: 16px;
    --radius-sm: 10px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --slab: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--chalk);
    color: var(--park);
    font-family: var(--body);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.mono {
    font-family: var(--mono);
    font-size: 0.85em;
    letter-spacing: -0.01em;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--park);
    color: var(--chalk);
    padding: 0.75rem 1rem;
    z-index: 99;
}

    .skip-link:focus {
        left: 0;
    }

:focus-visible {
    outline: 3px solid var(--ochre);
    outline-offset: 3px;
}

/* --- Masthead ------------------------------------------------------------ */

.masthead {
    max-width: var(--slab);
    margin: 0 auto;
    padding: var(--gutter) var(--gutter) 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.marker {
    display: inline-grid;
    gap: 0.1rem;
    padding: 0.6rem 1.1rem;
    background: var(--park);
    color: var(--chalk);
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(242, 245, 238, 0.28);
}

.marker-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.marker-sub {
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.nav-link {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid transparent;
}

    .nav-link:hover {
        border-color: var(--park);
    }

    .nav-link.is-here {
        background: var(--park);
        color: var(--chalk);
    }

.nav-alert {
    background: var(--hivis);
    color: var(--park);
}

    .nav-alert:hover {
        border-color: var(--park);
    }

/* --- Page scaffolding ---------------------------------------------------- */

main {
    max-width: var(--slab);
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 4rem;
}

.band {
    margin-top: clamp(2.5rem, 7vw, 4.5rem);
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--park-soft);
    margin: 0 0 0.5rem;
}

.band-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 1.25rem;
}

.lede {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    max-width: 58ch;
}

/* --- Hero sign ----------------------------------------------------------- */

.hero {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

.sign {
    position: relative;
    background: var(--park);
    color: var(--chalk);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 22rem;
}

    /* The routed groove that runs inside the edge of every wooden park sign. */
    .sign::after {
        content: "";
        position: absolute;
        inset: 0.6rem;
        border: 1.5px solid rgba(242, 245, 238, 0.3);
        border-radius: calc(var(--radius) - 5px);
        pointer-events: none;
    }

.sign-name {
    font-size: clamp(3.2rem, 13vw, 6.5rem);
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.sign-tagline {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lichen);
    margin: 0.9rem 0 0;
}

.sign-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1.4rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1.5px solid rgba(242, 245, 238, 0.3);
    font-size: 0.95rem;
}

    .sign-facts span {
        opacity: 0.9;
    }

/* --- Photo frames -------------------------------------------------------- */

.photo-frame {
    position: relative;
    background: var(--chalk-dim);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 22rem;
}

    .photo-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .photo-frame.is-missing img {
        display: none;
    }

.frame-empty {
    display: none;
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--park-soft);
}

.photo-frame.is-missing .frame-empty {
    display: flex;
}

/* --- Fingerpost (the signature element) ---------------------------------- */

.fingerpost {
    margin-top: clamp(1rem, 3vw, 2rem);
    border-top: 2px solid var(--park);
    border-bottom: 2px solid var(--park);
    padding: 0.25rem 0;
}

.fingerpost-head {
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.6rem 0.2rem 0.4rem;
    color: var(--park-soft);
}

.slat {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.7rem 0.2rem;
    border-top: 1px dashed rgba(10, 36, 28, 0.28);
    text-decoration: none;
}

    .slat:first-of-type {
        border-top: 1px solid rgba(10, 36, 28, 0.28);
    }

    .slat:hover .slat-name {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.slat-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    white-space: nowrap;
}

.slat-note {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    color: var(--park-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slat-distance {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.slat-arrow {
    width: 1.6rem;
    height: 1.6rem;
    flex: none;
    align-self: center;
    color: var(--ochre);
}

    .slat-arrow svg {
        width: 100%;
        height: 100%;
        display: block;
    }

/* --- Plaques and grids --------------------------------------------------- */

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.plaque {
    background: transparent;
    border: 2px solid var(--park);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}

.plaque-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.plaque-filled {
    background: var(--park);
    color: var(--chalk);
    border-color: var(--park);
}

.plaque-list {
    margin: 0;
    padding-left: 1.1rem;
}

    .plaque-list li {
        margin-bottom: 0.35rem;
    }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.chip {
    border: 1.5px solid var(--park);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.9rem;
}

/* --- Contact cards ------------------------------------------------------- */

.contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    border: 2px solid var(--park);
    border-radius: var(--radius);
    padding: 1.25rem;
}

    /* Kill default paragraph margins so the flex gap is the only spacing. */
    .contact p {
        margin: 0;
    }

.contact-role {
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--park-soft);
}

.contact-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--park-soft);
}

/* margin-top: auto pins the buttons to the bottom, so cards of different
   heights line up and the buttons keep their own size. */
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
}

.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.6rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--park);
    background: var(--park);
    color: var(--chalk);
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.action-ghost {
    background: transparent;
    color: var(--park);
}

.action:hover {
    background: var(--park-soft);
    color: var(--chalk);
}
/* --- Map ----------------------------------------------------------------- */

.map {
    height: clamp(20rem, 55vh, 32rem);
    border-radius: var(--radius);
    border: 2px solid var(--park);
    overflow: hidden;
    z-index: 0;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.9rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.legend-key {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    border: 2px solid var(--park);
    display: inline-block;
}

.pin-home {
    background: var(--hivis);
}

.pin-walk {
    background: var(--lichen);
}

.pin-vet {
    background: var(--chalk);
}

.pin-other {
    background: var(--ochre);
}

/* --- Tables (health records) --------------------------------------------- */

.record {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

    .record th,
    .record td {
        text-align: left;
        padding: 0.7rem 0.6rem;
        border-bottom: 1px dashed rgba(10, 36, 28, 0.28);
    }

    .record th {
        font-family: var(--mono);
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        border-bottom: 2px solid var(--park);
    }

    .record td.num {
        font-family: var(--mono);
    }

.tag {
    font-family: var(--mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1.5px solid var(--park);
    white-space: nowrap;
}

.tag-due {
    background: var(--ochre);
    color: var(--chalk);
    border-color: var(--ochre);
}

.tag-overdue {
    background: var(--hivis);
}

.scroller {
    overflow-x: auto;
}

/* --- Weight chart -------------------------------------------------------- */

.chart {
    width: 100%;
    height: auto;
    border: 2px solid var(--park);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.chart-line {
    fill: none;
    stroke: var(--ochre);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart-dot {
    fill: var(--park);
}

.chart-grid {
    stroke: rgba(10, 36, 28, 0.18);
    stroke-width: 1;
    stroke-dasharray: 3 4;
}

.chart-label {
    font-family: var(--mono);
    font-size: 9px;
    fill: var(--park-soft);
}

/* --- Timeline ------------------------------------------------------------ */

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--park);
}

    .timeline li {
        padding: 0 0 1.4rem 1.25rem;
        position: relative;
    }

        .timeline li::before {
            content: "";
            position: absolute;
            left: -7px;
            top: 0.55rem;
            width: 12px;
            height: 12px;
            border-radius: 999px;
            background: var(--ochre);
        }

.timeline-date {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--park-soft);
}

.timeline-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
}

/* --- Gallery ------------------------------------------------------------- */

.gallery {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.shot {
    border: 0;
    padding: 0;
    background: var(--chalk-dim);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    aspect-ratio: 4 / 5;
    font: inherit;
    color: inherit;
}

    .shot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 240ms ease;
    }

    .shot:hover img {
        transform: scale(1.03);
    }

.shot-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 0.8rem 0.6rem;
    text-align: left;
    color: var(--chalk);
    background: linear-gradient(to top, rgba(10, 36, 28, 0.85), transparent);
    font-size: 0.85rem;
    font-weight: 600;
}

.shot-date {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    opacity: 0.85;
    display: block;
}

.lightbox {
    border: none;
    padding: 0;
    background: transparent;
    max-width: min(92vw, 68rem);
    max-height: 92vh;
}

    .lightbox::backdrop {
        background: rgba(10, 36, 28, 0.92);
    }

    .lightbox img {
        max-height: 82vh;
        width: auto;
        margin: 0 auto;
        border-radius: var(--radius-sm);
    }

.lightbox-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--chalk);
    padding: 0.75rem 0.25rem 0;
    font-size: 0.9rem;
}

.lightbox-close {
    background: var(--chalk);
    color: var(--park);
    border: none;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* --- Empty states -------------------------------------------------------- */

.empty {
    border: 2px dashed var(--park);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

    .empty p {
        max-width: 44ch;
        margin: 0.5rem auto;
    }

/* --- If found page ------------------------------------------------------- */

body.found {
    background: var(--hivis);
}

    body.found .marker {
        background: var(--park);
    }

    body.found .nav-link:hover,
    body.found .nav-link.is-here {
        background: var(--park);
        color: var(--hivis);
    }

    body.found .nav-alert {
        background: var(--park);
        color: var(--hivis);
    }

.found-head {
    max-width: 40ch;
}

.found-title {
    font-size: clamp(2.2rem, 8vw, 4rem);
    text-transform: uppercase;
}

.found-sub {
    font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
    margin: 0.75rem 0 0;
    font-weight: 600;
}

.call {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--park);
    color: var(--chalk);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    text-decoration: none;
    margin-top: 1.5rem;
}

    .call:hover {
        background: var(--park-soft);
    }

.call-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.8;
}

.call-number {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.5rem, 6vw, 2.4rem);
    letter-spacing: -0.02em;
    display: block;
}

.call-icon {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
}

.found-panel {
    background: var(--chalk);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    margin-top: 1rem;
}

    .found-panel h2 {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }

.found-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    margin-top: 1rem;
}

.tag-card {
    background: var(--chalk);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

    .tag-card img {
        width: 11rem;
        margin: 0 auto 0.75rem;
    }

/* --- Footer -------------------------------------------------------------- */

.footer {
    max-width: var(--slab);
    margin: 0 auto;
    padding: 1.5rem var(--gutter) 3rem;
    border-top: 2px solid currentColor;
}

.footer-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.35rem 0;
    font-size: 0.85rem;
}

.footer-quiet {
    opacity: 0.7;
}

/* --- Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Utility -------------------------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}


/* --- Vet strip on the Places page ---------------------------------------- */

.urgent-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    border: 2px solid var(--park);
    border-left: 10px solid var(--hivis);
    border-radius: var(--radius);
}

/* --- Fact lists inside plaques ------------------------------------------- */

.facts {
    margin: 0.75rem 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.9rem;
    font-size: 0.9rem;
}

    .facts dt {
        font-family: var(--mono);
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--park-soft);
        padding-top: 0.15rem;
    }

    .facts dd {
        margin: 0;
    }

/* --- Training cues ------------------------------------------------------- */

.cues {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--park);
}

    .cues li {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.5rem 1rem;
        padding: 0.7rem 0.2rem;
        border-bottom: 1px dashed rgba(10, 36, 28, 0.28);
    }

.cue-word {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
}

.cue-status {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--park-soft);
}

/* --- Lost dog page ------------------------------------------------------- */

.found-panel-urgent {
    border-left: 10px solid var(--park);
}

/* --- Sign in ------------------------------------------------------------- */

.signin {
    max-width: 26rem;
}

.signin-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.field-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--park-soft);
}

.field input {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--park);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--park);
    width: 100%;
}

.field-error {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hivis);
}

/* --- Lost dog page ------------------------------------------------------- */

body.found {
    background: var(--hivis);
}

    body.found .marker {
        background: var(--park);
    }

    body.found .nav-link:hover,
    body.found .nav-link.is-here {
        background: var(--park);
        color: var(--hivis);
    }

.found-head {
    max-width: 44ch;
    margin-bottom: 1.5rem;
}

.found-title {
    font-size: clamp(2.2rem, 8vw, 4rem);
    text-transform: uppercase;
}

.found-sub {
    font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
    margin: 0.75rem 0 0;
    font-weight: 600;
}

/* One gap value controls every gap down the page, so nothing stacks unevenly. */
.found-stack {
    display: grid;
    gap: 1rem;
}

.call {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: var(--park);
    color: var(--chalk);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    text-decoration: none;
}

    .call:hover {
        background: var(--park-soft);
    }

.call-text {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.call-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.8;
}

.call-number {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.5rem, 6vw, 2.4rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.call-icon {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
}

.found-panel {
    background: var(--chalk);
    border-radius: var(--radius);
    padding: 1.35rem;
}

    /* Panels lay out by flow: children carry no margins of their own, and one rule
   sets every gap between them. Default <p> and <ul> margins were the bodge. */
    .found-panel > * {
        margin-top: 0;
        margin-bottom: 0;
    }

        .found-panel > * + * {
            margin-top: 0.75rem;
        }

    .found-panel > h2 {
        font-size: 1.15rem;
    }

    .found-panel > .contact-role + * {
        margin-top: 0.25rem;
    }

    .found-panel ul {
        padding-left: 1.2rem;
    }

    .found-panel li + li {
        margin-top: 0.4rem;
    }

.found-panel-urgent {
    border-left: 10px solid var(--park);
}

.chip-number {
    font-size: 1.15rem;
    font-weight: 700;
}

.found-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

    /* Cards in a row share a height, so pin the buttons to the bottom rather than
   leaving them floating wherever the text happens to end. */
    .found-grid > .found-panel {
        display: flex;
        flex-direction: column;
    }

.found-panel > .contact-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.found-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

    .found-contact p {
        margin: 0;
    }