:root {
    --portal-navy: #102f58;
    --portal-navy-deep: #08213f;
    --portal-blue: #1d4f86;
    --portal-gold: #c7a349;
    --portal-cream: #fbf5e6;
    --portal-surface: #ffffff;
    --portal-ink: #18324f;
    --portal-muted: #687589;
    --portal-border: rgb(16 47 88 / 14%);
    --portal-shadow: 0 18px 45px rgb(16 47 88 / 10%);
}

.portal-page {
    width: min(100% - 2rem, 1320px);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    display: grid;
    gap: 1.4rem;
}

.portal-page--form {
    width: min(100% - 2rem, 1120px);
}

.portal-hero {
    padding: clamp(1.4rem, 4vw, 2.5rem);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    border: 1px solid rgb(199 163 73 / 38%);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 92% 8%,
            rgb(199 163 73 / 25%),
            transparent 34%
        ),
        linear-gradient(135deg, #ffffff, #f4f8fd);
    box-shadow: var(--portal-shadow);
}

.portal-hero h1 {
    margin: 0.2rem 0 0.65rem;
    color: var(--portal-navy);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.portal-hero p {
    max-width: 760px;
    margin: 0;
    color: #4f6074;
    font-size: 1.02rem;
    line-height: 1.6;
}

.portal-hero__actions {
    min-width: min(100%, 240px);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.portal-panel {
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid var(--portal-border);
    border-radius: 24px;
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow);
}

.portal-panel--attention {
    border-color: rgb(199 163 73 / 55%);
    background:
        linear-gradient(
            135deg,
            rgb(251 245 230 / 96%),
            rgb(255 255 255 / 98%)
        );
}

.portal-panel--danger {
    border-color: rgb(170 62 62 / 28%);
    background: #fff8f8;
}

.portal-panel--restricted {
    border-color: rgb(62 54 115 / 25%);
    background:
        linear-gradient(
            135deg,
            #f8f6ff,
            #ffffff
        );
}

.portal-panel__heading {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.portal-panel__heading h2,
.portal-panel > h2 {
    margin: 0.15rem 0 0;
    color: var(--portal-navy);
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    line-height: 1.08;
}

.portal-record-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portal-record-card {
    min-width: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #f8fbff;
}

.portal-record-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    color: var(--portal-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portal-record-card__topline strong {
    padding: 0.28rem 0.48rem;
    border-radius: 999px;
    background: rgb(199 163 73 / 20%);
    color: var(--portal-navy);
}

.portal-record-card h3 {
    margin: 0;
    color: var(--portal-navy);
    font-size: 1.35rem;
}

.portal-record-card p {
    margin: 0;
    color: var(--portal-muted);
    line-height: 1.45;
}

.portal-mini-animal-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.portal-mini-animal-row span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #eef3f8;
    box-shadow: 0 3px 10px rgb(16 47 88 / 18%);
}

.portal-mini-animal-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-record-list,
.portal-document-list,
.portal-notification-list,
.portal-meeting-list {
    display: grid;
    gap: 0.65rem;
}

.portal-record-list > a,
.portal-record-list > div,
.portal-document-list > a {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: #f9fbfe;
    color: var(--portal-ink);
    text-decoration: none;
}

.portal-record-list span,
.portal-document-list span {
    min-width: 0;
    display: grid;
    gap: 0.16rem;
}

.portal-record-list small,
.portal-document-list small {
    color: var(--portal-muted);
}

.portal-legacy-records {
    margin-top: 1rem;
    border-top: 1px solid var(--portal-border);
    padding-top: 1rem;
}

.portal-legacy-records summary {
    color: var(--portal-navy);
    font-weight: 850;
    cursor: pointer;
}

.portal-legacy-records .portal-record-list {
    margin-top: 0.8rem;
}

.portal-animal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portal-animal-card {
    min-width: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #f9fbfe;
}

.portal-animal-card__photo {
    min-height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #efe1b8, #dbe8f5);
    color: var(--portal-navy);
    font-size: 2rem;
}

.portal-animal-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-animal-card > div:last-child {
    min-width: 0;
    padding: 0.9rem;
}

.portal-animal-card h3 {
    margin: 0.15rem 0 0.4rem;
    color: var(--portal-navy);
    font-size: 1.25rem;
}

.portal-animal-card p {
    margin: 0 0 0.42rem;
    color: var(--portal-muted);
    line-height: 1.4;
}

.portal-care-note {
    padding: 0.65rem;
    border-radius: 12px;
    background: #eef5fb;
}

.portal-care-note p:last-child {
    margin-bottom: 0;
}

.portal-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.portal-notification {
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: #ffffff;
}

.portal-notification--unread {
    border-left: 5px solid var(--portal-gold);
    background: #fffdf7;
}

.portal-notification h3 {
    margin: 0 0 0.25rem;
    color: var(--portal-navy);
}

.portal-notification p,
.portal-notification small {
    margin: 0;
    color: var(--portal-muted);
}

.portal-empty {
    padding: 1.2rem;
    border: 1px dashed rgb(16 47 88 / 24%);
    border-radius: 16px;
    background: #fafcff;
    color: var(--portal-muted);
}

.portal-empty h3 {
    margin-top: 0;
    color: var(--portal-navy);
}

.portal-account-summary {
    margin-bottom: 1.2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 0.7rem;
}

.portal-account-summary > div {
    min-width: 0;
    padding: 0.8rem;
    display: grid;
    gap: 0.2rem;
    border-radius: 14px;
    background: #f4f8fc;
}

.portal-account-summary span {
    color: var(--portal-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-form-progress {
    margin: 0 0 1.2rem;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.portal-form-progress a {
    min-width: 0;
    padding: 0.55rem;
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #f7faff;
    color: var(--portal-navy);
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.portal-form-progress span {
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--portal-navy);
    color: #ffffff;
}

.portal-form-sections {
    display: grid;
    gap: 1rem;
}

.portal-form-section {
    margin: 0;
    padding: 1.2rem;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #fbfdff;
}

.portal-form-section legend {
    max-width: calc(100% - 1rem);
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--portal-navy);
}

.portal-form-section legend > span:first-child {
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--portal-gold);
    color: var(--portal-navy-deep);
    font-weight: 950;
}

.portal-form-section legend > span:last-child {
    display: grid;
}

.portal-form-section legend small {
    color: var(--portal-muted);
    font-weight: 500;
}

.portal-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.portal-field {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.portal-field label {
    color: var(--portal-ink);
    font-weight: 800;
}

.portal-field small {
    color: var(--portal-muted);
    line-height: 1.35;
}

.portal-field input:not([type="checkbox"]),
.portal-field select,
.portal-field textarea,
.portal-simple-form input:not([type="checkbox"]),
.portal-simple-form select,
.portal-simple-form textarea,
.portal-message-form textarea,
.portal-decision-card textarea,
.portal-restriction-form input {
    width: 100%;
    max-width: 100%;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgb(16 47 88 / 24%);
    border-radius: 10px;
    background: #ffffff;
    color: var(--portal-ink);
    font: inherit;
}

.portal-field--checkbox {
    grid-column: span 1;
    padding: 0.7rem;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #ffffff;
}

.portal-field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    cursor: pointer;
}

.portal-field--checkbox input {
    margin-top: 0.18rem;
    flex: 0 0 auto;
}

.portal-field-errors,
.portal-form-errors,
.errorlist {
    color: #8b2525;
    font-weight: 700;
}

.portal-submit-panel {
    margin-top: 1.2rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 16px;
    background: var(--portal-navy);
    color: #ffffff;
}

.portal-submit-panel p {
    margin: 0;
}

.portal-submit-panel > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.portal-selection-heading {
    margin: 1rem 0 0.65rem;
    color: var(--portal-navy);
}

.portal-selection-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.portal-selection-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: #f8fbff;
}

.portal-selection-card img,
.portal-selection-card__placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    object-fit: cover;
    background: #e9f0f7;
    font-size: 2rem;
}

.portal-selection-card > div:last-child {
    padding: 0.65rem;
    display: grid;
    gap: 0.2rem;
}

.portal-selection-card strong {
    overflow: hidden;
    color: var(--portal-navy);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-selection-card span {
    color: var(--portal-muted);
    font-size: 0.72rem;
    line-height: 1.3;
}

.portal-public-message {
    margin-top: 0.8rem;
    padding: 0.8rem;
    border-left: 4px solid var(--portal-gold);
    border-radius: 0 10px 10px 0;
    background: #fff9e8;
    color: var(--portal-ink);
}

.portal-decision-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portal-decision-card {
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #ffffff;
}

.portal-decision-card__photo {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #e7eff7;
    font-size: 2rem;
}

.portal-decision-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-decision-card__photo > span:last-child {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgb(8 33 63 / 86%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 850;
}

.portal-decision-card__body {
    padding: 1rem;
}

.portal-decision-card h3 {
    margin: 0.15rem 0 0.55rem;
    color: var(--portal-navy);
    font-size: 1.35rem;
}

.portal-decision-status {
    width: fit-content;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: #edf2f7;
    color: var(--portal-navy);
    font-size: 0.78rem;
    font-weight: 850;
}

.portal-decision-status--approved_to_meet {
    background: #dff4e7;
    color: #175d35;
}

.portal-decision-status--not_approved,
.portal-decision-status--children_mismatch,
.portal-decision-status--pet_mismatch {
    background: #f8e2e2;
    color: #852b2b;
}

.portal-meeting-list article {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    background: #f9fbfe;
}

.portal-meeting-list h3 {
    margin: 0 0 0.35rem;
    color: var(--portal-navy);
}

.portal-message-thread {
    display: grid;
    gap: 0.65rem;
}

.portal-message-thread article {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 16px;
}

.portal-message--staff {
    justify-self: start;
    background: #eef4fb;
}

.portal-message--applicant {
    justify-self: end;
    background: #fff4d7;
}

.portal-message-thread p {
    margin: 0.35rem 0;
}

.portal-message-form {
    margin-top: 1rem;
    display: grid;
    gap: 0.55rem;
}

.home-video-guide__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.home-video-guide__grid article {
    position: relative;
    padding: 1rem 1rem 1rem 3.4rem;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    background: #f9fbfe;
}

.home-video-guide__grid article > span {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--portal-gold);
    color: var(--portal-navy);
    font-weight: 950;
}

.home-video-guide__grid h3 {
    margin: 0 0 0.35rem;
    color: var(--portal-navy);
}

.home-video-guide__grid p {
    margin: 0;
    color: var(--portal-muted);
    line-height: 1.5;
}

.home-video-guide__resources {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.home-video-form {
    display: grid;
    gap: 1rem;
}

.home-video-form fieldset {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
}

.portal-restriction-form {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    align-items: end;
    gap: 0.8rem;
}

.portal-restriction-result {
    margin-bottom: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    background: #fbfcff;
}

.portal-restriction-result h3 {
    margin: 0;
    color: var(--portal-navy);
}

.portal-restriction-result dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.portal-restriction-result dt {
    color: var(--portal-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-restriction-result dd {
    margin: 0.15rem 0 0;
    color: var(--portal-ink);
    font-weight: 750;
}

/* Taller Adopt and Foster cards with information in the blue fade. */
.animal-showcase-card .application-animal-card__inner {
    aspect-ratio: 4 / 5;
}

.animal-showcase-card .application-animal-card__photo {
    aspect-ratio: 4 / 5;
}

.animal-showcase-card .application-animal-card__body {
    padding: 0.9rem;
    background:
        linear-gradient(
            180deg,
            rgb(8 26 49 / 2%) 0%,
            rgb(8 26 49 / 5%) 42%,
            rgb(8 26 49 / 72%) 62%,
            rgb(8 26 49 / 96%) 82%,
            rgb(8 26 49 / 100%) 100%
        );
}

.animal-showcase-card .application-animal-card__name {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

.animal-showcase-card__compatibility {
    margin: 0 0 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.animal-showcase-card__compatibility span {
    padding: 0.28rem 0.42rem;
    border: 1px solid rgb(255 255 255 / 34%);
    border-radius: 999px;
    background: rgb(255 255 255 / 14%);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(6px);
}

.animal-showcase-card__availability {
    margin: 0 0 0.42rem;
    display: -webkit-box;
    overflow: hidden;
    color: rgb(255 255 255 / 90%);
    font-size: 0.7rem;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgb(0 0 0 / 52%);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.site-header__utility-link--dashboard {
    position: relative;
}

.site-header__utility-badge {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--portal-gold);
    color: var(--portal-navy);
    font-size: 0.68rem;
    font-weight: 950;
}

@media (max-width: 1100px) {
    .portal-record-grid,
    .portal-animal-grid,
    .portal-decision-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-selection-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .portal-account-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-form-progress {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .portal-page,
    .portal-page--form {
        width: min(100% - 1rem, 100%);
    }

    .portal-hero,
    .portal-panel__heading,
    .portal-submit-panel,
    .portal-meeting-list article,
    .portal-notification {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-hero__actions {
        justify-content: flex-start;
    }

    .portal-record-grid,
    .portal-animal-grid,
    .portal-decision-grid,
    .portal-two-column,
    .portal-field-grid,
    .home-video-guide__grid,
    .home-video-form fieldset {
        grid-template-columns: 1fr;
    }

    .portal-selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-form-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-restriction-form {
        grid-template-columns: 1fr;
    }

    .portal-restriction-result dl {
        grid-template-columns: 1fr;
    }

    .portal-message-thread article {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .portal-animal-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .portal-selection-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portal-account-summary {
        grid-template-columns: 1fr;
    }
}

/* BEGIN APPLICATION PURPOSE AND RANK CARDS */
.portal-selection-introduction {
    max-width: 760px;
    margin: 0.45rem 0 0;
    color: var(--portal-muted);
    line-height: 1.55;
}

.portal-application-animal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.portal-application-animal-card {
    min-width: 0;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(16 47 88 / 20%);
    border-radius: 24px;
    background: var(--portal-navy-deep);
    box-shadow: 0 18px 40px rgb(16 47 88 / 17%);
    isolation: isolate;
    transition:
        transform 170ms ease,
        box-shadow 170ms ease,
        border-color 170ms ease;
}

.portal-application-animal-card:hover,
.portal-application-animal-card:focus-within {
    transform: translateY(-4px);
    border-color: rgb(199 163 73 / 76%);
    box-shadow: 0 24px 48px rgb(16 47 88 / 23%);
}

.portal-application-animal-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.6;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #f1e3bb, #dce9f6);
}

.portal-application-animal-card__photo::after,
.portal-decision-card__photo::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34%;
    background:
        linear-gradient(
            180deg,
            rgb(8 33 63 / 0%) 0%,
            rgb(8 33 63 / 22%) 38%,
            rgb(8 33 63 / 78%) 78%,
            var(--portal-navy-deep) 100%
        );
    pointer-events: none;
}

.portal-application-animal-card__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 240ms ease;
}

.portal-application-animal-card:hover
.portal-application-animal-card__photo img {
    transform: scale(1.025);
}

.portal-application-animal-card__placeholder {
    display: grid;
    place-items: center;
    gap: 0.4rem;
    color: var(--portal-navy);
    font-size: 0.84rem;
    font-weight: 850;
    text-align: center;
}

.portal-application-animal-card__placeholder span {
    font-size: 2.7rem;
}

.portal-application-animal-card__body {
    min-height: 250px;
    padding: 0.45rem 1rem 1rem;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.85rem;
    background:
        linear-gradient(
            180deg,
            var(--portal-navy-deep),
            #0d315c
        );
    color: #ffffff;
}

.portal-application-animal-card__identity {
    min-width: 0;
}

.portal-application-animal-card__identity h3 {
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 950;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-application-animal-card__identity h3 a {
    color: inherit;
    text-decoration: none;
}

.portal-application-animal-card__identity h3 a:hover,
.portal-application-animal-card__identity h3 a:focus-visible {
    color: #f7dda1;
    text-decoration: underline;
    text-underline-offset: 0.16rem;
}

.portal-application-animal-card__identity p {
    margin: 0.28rem 0 0;
    color: rgb(255 255 255 / 78%);
    font-size: 0.78rem;
    line-height: 1.35;
}

.portal-purpose-ranking {
    margin-top: auto;
    display: grid;
    gap: 0.6rem;
}

.portal-purpose-ranking__row {
    padding: 0.7rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 14px;
    background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(8px);
}

.portal-purpose-choice {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #ffffff;
    cursor: pointer;
}

.portal-purpose-choice input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.16rem 0 0;
    flex: 0 0 auto;
    accent-color: var(--portal-gold);
}

.portal-purpose-choice > span {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

.portal-purpose-choice strong {
    font-size: 0.9rem;
}

.portal-purpose-choice small {
    color: rgb(255 255 255 / 68%);
    font-size: 0.66rem;
    line-height: 1.25;
}

.portal-rank-field {
    display: grid;
    gap: 0.25rem;
    color: rgb(255 255 255 / 76%);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-rank-field select {
    width: 100%;
    min-height: 38px;
    padding: 0.35rem;
    border: 1px solid rgb(255 255 255 / 38%);
    border-radius: 9px;
    background: #ffffff;
    color: var(--portal-navy-deep);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
}

.portal-purpose-ranking__row:not(.is-selected) {
    opacity: 0.7;
}

.portal-purpose-ranking__row.is-selected {
    border-color: rgb(199 163 73 / 70%);
    background: rgb(199 163 73 / 16%);
}

.portal-decision-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.portal-decision-card {
    min-width: 0;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(16 47 88 / 20%);
    border-radius: 24px;
    background: var(--portal-navy-deep);
    box-shadow: 0 18px 40px rgb(16 47 88 / 17%);
}

.portal-decision-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.6;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #f1e3bb, #dce9f6);
}

.portal-decision-card__photo img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portal-decision-card__photo > span:last-child {
    z-index: 2;
}

.portal-decision-card__body {
    min-height: 250px;
    padding: 0.45rem 1rem 1.05rem;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    background:
        linear-gradient(
            180deg,
            var(--portal-navy-deep),
            #0d315c
        );
    color: #ffffff;
}

.portal-decision-card__rank {
    margin: 0 0 0.18rem;
    color: #f7dda1;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portal-decision-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.portal-decision-card__meta {
    margin: 0.24rem 0 0.7rem;
    color: rgb(255 255 255 / 72%);
    font-size: 0.76rem;
    line-height: 1.35;
}

.portal-decision-card__reason {
    margin: 0.65rem 0 0;
    color: rgb(255 255 255 / 86%);
    line-height: 1.5;
}

.portal-decision-card__meeting {
    width: 100%;
    margin-top: auto;
    padding-top: 0.9rem;
    display: grid;
    gap: 0.55rem;
}

.portal-decision-card__meeting label {
    display: grid;
    gap: 0.35rem;
    color: rgb(255 255 255 / 82%);
    font-size: 0.76rem;
    font-weight: 800;
}

.portal-decision-card__meeting textarea {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid rgb(255 255 255 / 34%);
    border-radius: 10px;
    background: rgb(255 255 255 / 94%);
    color: var(--portal-ink);
    font: inherit;
}

@media (max-width: 1050px) {
    .portal-application-animal-grid,
    .portal-decision-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .portal-application-animal-grid,
    .portal-decision-grid {
        grid-template-columns: 1fr;
    }

    .portal-application-animal-card,
    .portal-decision-card {
        min-height: 0;
    }

    .portal-application-animal-card__photo,
    .portal-decision-card__photo {
        aspect-ratio: 4 / 4.4;
    }
}
/* END APPLICATION PURPOSE AND RANK CARDS */

/* BEGIN LARGE APPLICATION ANIMAL CARDS */
.portal-application-animal-grid,
.portal-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.4rem, 2.8vw, 2.2rem);
    align-items: start;
}

.portal-application-animal-card,
.portal-decision-card {
    min-width: 0;
    width: 100%;
    min-height: 900px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(16 47 88 / 22%);
    border-radius: 28px;
    background: var(--portal-navy-deep);
    box-shadow: 0 22px 48px rgb(16 47 88 / 20%);
    isolation: isolate;
}

.portal-application-animal-card:hover,
.portal-application-animal-card:focus-within,
.portal-decision-card:hover,
.portal-decision-card:focus-within {
    transform: translateY(-4px);
    border-color: rgb(199 163 73 / 78%);
    box-shadow: 0 28px 58px rgb(16 47 88 / 25%);
}

.portal-application-animal-card__photo,
.portal-decision-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 560px;
    display: block;
    overflow: hidden;
    flex: 0 0 auto;
    background:
        linear-gradient(
            135deg,
            #f1e3bb,
            #dce9f6
        );
}

.portal-application-animal-card__photo img,
.portal-decision-card__photo img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.portal-application-animal-card__photo::after,
.portal-decision-card__photo::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 18%;
    background:
        linear-gradient(
            180deg,
            rgb(8 33 63 / 0%) 0%,
            rgb(8 33 63 / 16%) 34%,
            rgb(8 33 63 / 58%) 72%,
            var(--portal-navy-deep) 100%
        );
    pointer-events: none;
}

.portal-application-animal-card__body,
.portal-decision-card__body {
    position: static;
    z-index: auto;
    min-height: 330px;
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
    background:
        linear-gradient(
            180deg,
            var(--portal-navy-deep) 0%,
            #0d315c 100%
        );
    color: #ffffff;
}

.portal-application-animal-card__identity {
    min-width: 0;
}

.portal-application-animal-card__identity h3,
.portal-decision-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-weight: 950;
    line-height: 1.08;
}

.portal-application-animal-card__identity h3 {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.portal-application-animal-card__identity p,
.portal-decision-card__meta {
    margin: 0.35rem 0 0;
    color: rgb(255 255 255 / 78%);
    font-size: 0.88rem;
    line-height: 1.45;
}

.portal-purpose-ranking {
    margin-top: auto;
    display: grid;
    gap: 0.8rem;
}

.portal-purpose-ranking__row {
    padding: 0.9rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid rgb(255 255 255 / 23%);
    border-radius: 16px;
    background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(8px);
}

.portal-purpose-choice strong {
    font-size: 1rem;
}

.portal-purpose-choice small {
    font-size: 0.74rem;
    line-height: 1.35;
}

.portal-rank-field {
    font-size: 0.68rem;
}

.portal-rank-field select {
    min-height: 44px;
    font-size: 0.9rem;
}

.portal-decision-card__rank {
    margin: 0 0 0.25rem;
    color: #f7dda1;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portal-decision-status {
    margin-top: 0.75rem;
}

.portal-decision-card__reason {
    margin-top: 0.8rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.portal-decision-card__meeting {
    margin-top: auto;
}

@media (max-width: 980px) {
    .portal-application-animal-grid,
    .portal-decision-grid {
        grid-template-columns: 1fr;
    }

    .portal-application-animal-card,
    .portal-decision-card {
        min-height: 0;
    }

    .portal-application-animal-card__photo,
    .portal-decision-card__photo {
        min-height: 0;
        aspect-ratio: 4 / 4.7;
    }
}

@media (max-width: 560px) {
    .portal-application-animal-card__body,
    .portal-decision-card__body {
        min-height: 0;
        padding: 1rem;
    }

    .portal-purpose-ranking__row {
        grid-template-columns: 1fr;
    }

    .portal-rank-field {
        max-width: 150px;
    }
}
/* END LARGE APPLICATION ANIMAL CARDS */


/* BEGIN APPLICATION CARD INFORMATION */
.portal-animal-detail-grid {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.portal-animal-detail-grid div {
    min-width: 0;
    padding: 0.65rem 0.75rem;
    display: grid;
    gap: 0.12rem;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 12px;
    background: rgb(255 255 255 / 10%);
}

.portal-animal-detail-grid dt,
.portal-animal-detail-grid dd {
    margin: 0;
}

.portal-animal-detail-grid dt {
    color: rgb(255 255 255 / 66%);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-animal-detail-grid dd {
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.3;
}

.portal-animal-compatibility {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.portal-animal-compatibility span {
    padding: 0.42rem 0.6rem;
    border: 1px solid rgb(199 163 73 / 52%);
    border-radius: 999px;
    background: rgb(199 163 73 / 16%);
    color: #fce9b6;
    font-size: 0.7rem;
    font-weight: 850;
}

.portal-animal-summary,
.portal-animal-temperament {
    margin: 0;
    color: rgb(255 255 255 / 86%);
    font-size: 0.86rem;
    line-height: 1.52;
}

.portal-animal-temperament {
    color: rgb(255 255 255 / 78%);
    font-size: 0.8rem;
}

.portal-animal-temperament strong {
    color: #f8dda0;
}

.portal-application-animal-card,
.portal-decision-card {
    min-height: 980px;
}

.portal-application-animal-card__body,
.portal-decision-card__body {
    min-height: 390px;
}

.portal-purpose-ranking__row {
    align-items: stretch;
}

.portal-purpose-choice {
    align-items: center;
}

@media (max-width: 560px) {
    .portal-animal-detail-grid {
        grid-template-columns: 1fr;
    }
}
/* END APPLICATION CARD INFORMATION */
/* BEGIN structured unified application */
.portal-application-form--structured {
    display: grid;
    gap: 1.25rem;
}

.portal-form-notice {
    border: 1px solid rgba(74, 65, 50, 0.2);
    border-radius: 1rem;
    background: #fffdf7;
    padding: 1rem 1.1rem;
}

.portal-form-notice h2,
.portal-form-notice p {
    margin-top: 0;
}

.portal-form-notice p:last-child {
    margin-bottom: 0;
}

.portal-form-notice--welcome {
    background: #f5fbf4;
    border-color: rgba(47, 111, 62, 0.25);
}

.portal-form-notice--privacy {
    background: #f8f4ff;
    border-color: rgba(91, 65, 133, 0.24);
}

.portal-field--hidden {
    display: none;
}

.portal-structured-section {
    border: 1px solid rgba(83, 72, 53, 0.2);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.1rem;
}

.portal-structured-section .portal-panel__heading {
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.portal-structured-section .portal-panel__heading p {
    max-width: 70ch;
}

.portal-repeatable-list {
    display: grid;
    gap: 1rem;
}

.portal-repeatable-row {
    border: 1px solid rgba(83, 72, 53, 0.18);
    border-radius: 0.9rem;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 0.25rem 0.85rem rgba(67, 54, 32, 0.06);
}

.portal-repeatable-row[hidden] {
    display: none !important;
}

.portal-repeatable-row__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(83, 72, 53, 0.12);
    padding-bottom: 0.65rem;
    margin-bottom: 0.8rem;
}

.portal-repeatable-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.portal-repeatable-grid .portal-field:has(textarea),
.portal-repeatable-grid .portal-field--checkbox {
    grid-column: span 3;
}

.portal-signature-workspace {
    display: grid;
    gap: 1rem;
    border: 2px solid rgba(80, 57, 111, 0.24);
    border-radius: 1.15rem;
    background: #fcf9ff;
    padding: 1.1rem;
}

.portal-typed-signature,
.portal-drawn-signature {
    border: 1px solid rgba(80, 57, 111, 0.2);
    border-radius: 0.85rem;
    background: #fff;
    padding: 1rem;
}

.portal-typed-signature span {
    display: block;
    font-size: 0.82rem;
    color: #5a5262;
    margin-bottom: 0.35rem;
}

.portal-typed-signature strong {
    display: block;
    min-height: 3.5rem;
    font-family: "Brush Script MT", "Segoe Script", "Apple Chancery", cursive;
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 500;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.portal-drawn-signature canvas {
    display: block;
    width: 100%;
    height: 13rem;
    border: 1px dashed rgba(80, 57, 111, 0.42);
    border-radius: 0.65rem;
    background: #fff;
    touch-action: none;
    cursor: crosshair;
    margin-bottom: 0.75rem;
}

.portal-invitation-page {
    max-width: 72rem;
    margin-inline: auto;
}

.portal-panel--success {
    border-color: rgba(47, 111, 62, 0.28);
    background: #f5fbf4;
}

.portal-status-list {
    display: grid;
    gap: 0.75rem;
}

.portal-status-list > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(83, 72, 53, 0.12);
    padding-bottom: 0.65rem;
}

@media (max-width: 900px) {
    .portal-repeatable-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-repeatable-grid .portal-field:has(textarea),
    .portal-repeatable-grid .portal-field--checkbox {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .portal-structured-section {
        padding: 0.85rem;
    }

    .portal-structured-section .portal-panel__heading,
    .portal-repeatable-row__heading {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-repeatable-grid {
        grid-template-columns: 1fr;
    }

    .portal-repeatable-grid .portal-field:has(textarea),
    .portal-repeatable-grid .portal-field--checkbox {
        grid-column: auto;
    }

    .portal-drawn-signature canvas {
        height: 10rem;
    }
}
/* END structured unified application */

.portal-signature-workspace [hidden] {
    display: none !important;
}

/* BEGIN structured application usability repair */
/*
The rebuilt application uses semantic fieldset legends, descriptions in
normal document flow, visible document upload controls near housing, and
signature controls inside the signature workspace.
*/
.portal-application-form--structured
.portal-form-section > legend.portal-structured-section-title {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.35rem;
    padding: 0 0.5rem;
    display: block;
    float: none;
    color: var(--portal-navy);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 950;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.portal-application-form--structured
.portal-form-section > .portal-structured-section-description {
    max-width: 75ch;
    margin: 0 0 1rem;
    padding: 0 0.5rem;
    color: var(--portal-muted);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.portal-application-form--structured
.portal-form-section > .portal-field-grid {
    clear: both;
    margin-top: 0;
}

.portal-signature-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.portal-signature-controls .portal-field {
    min-width: 0;
}

.portal-signature-controls ul {
    margin: 0.55rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    list-style: none;
}

.portal-signature-controls ul li {
    margin: 0;
}

.portal-signature-controls input[type="radio"] {
    width: auto;
    margin-right: 0.35rem;
}

.portal-application-form--structured
.portal-structured-section input[type="file"] {
    width: 100%;
    min-height: 3rem;
    box-sizing: border-box;
    padding: 0.65rem;
    border: 1px solid var(--portal-border);
    border-radius: 0.65rem;
    background: #ffffff;
    color: var(--portal-ink);
}

.portal-application-form--structured
.portal-structured-section input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(80, 57, 111, 0.28);
    border-radius: 0.55rem;
    background: #f4eefb;
    color: var(--portal-navy);
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 700px) {
    .portal-signature-controls {
        grid-template-columns: 1fr;
    }
}
/* END structured application usability repair */

/* BEGIN post-submission care pamphlets */
.portal-care-guides {
    margin: 1.25rem 0;
    padding: clamp(1rem, 3vw, 1.6rem);
    border: 2px solid rgba(80, 57, 111, 0.22);
    border-radius: 1.25rem;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(199, 163, 73, 0.18),
            transparent 34%
        ),
        #fbf9ff;
    box-shadow: 0 0.65rem 1.7rem rgba(43, 35, 56, 0.08);
}

.portal-care-guides__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.portal-care-guides__header h2 {
    margin: 0.2rem 0 0.45rem;
    color: var(--portal-navy);
}

.portal-care-guides__header p {
    max-width: 72ch;
}

.portal-care-guides__nav {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.portal-care-guides__nav a {
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(80, 57, 111, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: var(--portal-navy);
    font-weight: 800;
    text-decoration: none;
}

.portal-care-guides__nav a:hover,
.portal-care-guides__nav a:focus-visible {
    border-color: var(--portal-gold);
    text-decoration: underline;
}

.portal-care-guides__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.portal-care-pamphlet {
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.4rem);
    border: 1px solid rgba(83, 72, 53, 0.18);
    border-top: 0.4rem solid var(--portal-gold);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.35rem 1rem rgba(67, 54, 32, 0.07);
}

.portal-care-pamphlet__type {
    margin: 0 0 0.2rem;
    color: var(--portal-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-care-pamphlet h3 {
    margin: 0 0 1rem;
    color: var(--portal-navy);
}

.portal-care-pamphlet h4 {
    margin: 1rem 0 0.35rem;
    color: var(--portal-navy-deep);
}

.portal-care-pamphlet ul {
    margin: 0.4rem 0 0;
    padding-left: 1.25rem;
}

.portal-care-pamphlet li + li {
    margin-top: 0.45rem;
}

.portal-care-alert {
    margin: 0.8rem 0 1rem;
    padding: 0.9rem 1rem;
    border: 2px solid #a52c2c;
    border-radius: 0.8rem;
    background: #fff3f3;
    color: #651e1e;
}

.portal-care-alert h4 {
    margin-top: 0;
    color: #7d2020;
}

.portal-care-pamphlet__note,
.portal-care-sources {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-left: 0.35rem solid var(--portal-gold);
    border-radius: 0.65rem;
    background: #f8f4e8;
}

.portal-care-sources h3 {
    margin-top: 0;
    color: var(--portal-navy);
}

.portal-care-sources ul {
    margin-bottom: 0;
}

.portal-care-sources a {
    overflow-wrap: anywhere;
}

@media (max-width: 820px) {
    .portal-care-guides__header {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-care-guides__print {
        width: 100%;
    }

    .portal-care-guides__grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .portal-care-guides,
    .portal-care-guides * {
        visibility: visible !important;
    }

    .portal-care-guides {
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        background: #ffffff;
        box-shadow: none;
    }

    .portal-care-guides__print,
    .portal-care-guides__nav {
        display: none !important;
    }

    .portal-care-guides__grid {
        display: block;
    }

    .portal-care-pamphlet {
        margin: 0 0 1rem;
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
    }

    .portal-care-sources {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
/* END post-submission care pamphlets */

/* BEGIN expanded application household and pet records */
.portal-repeatable-row--applicant {
    border-color: rgba(80, 57, 111, 0.35);
    background: #fbf9ff;
}

.portal-applicant-row-note {
    margin: 0 0 0.9rem;
    padding: 0.75rem 0.9rem;
    border-left: 0.3rem solid var(--portal-gold);
    border-radius: 0.55rem;
    background: #f8f4e8;
    color: var(--portal-ink);
}

.portal-repeatable-row--applicant input:disabled,
.portal-repeatable-row--applicant select:disabled,
.portal-repeatable-row--applicant textarea:disabled {
    opacity: 1;
    background: #f2eff7;
    color: var(--portal-ink);
    cursor: not-allowed;
}

.portal-supplement-prefill {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(80, 57, 111, 0.22);
    border-radius: 1rem;
    background: #fbf9ff;
}

.portal-supplement-prefill h2 {
    margin-top: 0;
    color: var(--portal-navy);
}

.portal-supplement-prefill dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.portal-supplement-prefill dl div {
    min-width: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(83, 72, 53, 0.13);
    border-radius: 0.7rem;
    background: #ffffff;
}

.portal-supplement-prefill dt {
    color: var(--portal-muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.portal-supplement-prefill dd {
    margin: 0.2rem 0 0;
    overflow-wrap: anywhere;
}

.portal-pet-photo-preview {
    width: min(100%, 16rem);
    aspect-ratio: 4 / 3;
    margin-top: 0.65rem;
    display: block;
    border: 1px solid var(--portal-border);
    border-radius: 0.75rem;
    object-fit: cover;
    background: #f5f5f5;
}

.portal-pet-record-grid {
    margin: 0.75rem 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.portal-pet-record-grid article {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid rgba(83, 72, 53, 0.16);
    border-radius: 0.8rem;
    background: #ffffff;
}

.portal-pet-record-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.6rem;
    object-fit: cover;
}

.portal-field input[type="search"] + select[data-language-select] {
    margin-top: 0.45rem;
}

.portal-field[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .portal-supplement-prefill dl,
    .portal-pet-record-grid {
        grid-template-columns: 1fr;
    }
}
/* END expanded application household and pet records */

/* BEGIN dashboard support request */
.portal-support-request__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    gap: 1rem;
    align-items: start;
}

.portal-support-request__layout .portal-care-alert {
    margin: 0;
}

.portal-support-request__layout .portal-care-alert h3 {
    margin-top: 0;
}

@media (max-width: 820px) {
    .portal-support-request__layout {
        grid-template-columns: 1fr;
    }
}
/* END dashboard support request */
