/* Shared public footer, including the homepage's navigation and attribution. */
.public-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .4rem 2.4rem;
    padding-block: 2rem 1.2rem;
    border-top: 1px solid var(--care-line);
    color: var(--care-muted);
    font-size: 1.6rem;
    line-height: 1.65;
}
.public-footer p { max-width: none; margin: 0; color: var(--care-muted); }
.public-footer a { color: var(--care-brand); text-underline-offset: .22em; }
.public-footer .public-footer-brand {
    display: inline-flex;
    align-items: center;
    grid-row: span 2;
    justify-self: start;
    min-height: 4.4rem;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-decoration: none;
}
.public-footer-brand img { width: 4rem; height: 4rem; margin-right: .8rem; object-fit: contain; }
.public-footer .care-footer-brand-move { color: #d99c52; }
.public-footer .care-footer-brand-well { color: #146c43; }
.public-footer-navigation, .public-footer-access {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .4rem 2.4rem;
}
.public-footer :is(.public-footer-navigation,.public-footer-access) a {
    display: inline-flex;
    align-items: center;
    min-height: 4.4rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}
.public-footer :is(.public-footer-navigation,.public-footer-access) a:hover { text-decoration: underline; }
.public-footer-bottom {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .8rem 2rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--care-line);
}
.public-footer .public-footer-copyright { font-size: 1.3rem; line-height: 1.65; }
/* Equal link columns put the gap itself on the footer centreline. */
.public-footer-legal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: .4rem 2rem;
}
.public-footer-legal > :first-child { justify-self: end; }
.public-footer-legal > :last-child { justify-self: start; }
.public-footer .public-footer-legal :is(a,button) {
    display: inline-flex;
    align-items: center;
    min-height: 4.4rem;
    margin: 0;
    padding: .8rem 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--care-muted);
    font: inherit;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: .22em;
    text-decoration-thickness: 1px;
}
.public-footer .public-footer-legal :is(a,button):hover { color: var(--care-brand); }
.public-footer .public-footer-credit {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: .6rem;
    min-height: 4.4rem;
    margin: 0;
    padding: .4rem 0;
    border: 0;
    border-radius: .4rem;
    background: none;
    color: var(--care-muted);
    font: inherit;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
}
.public-footer-credit img { width: 2.8rem; height: 2.8rem; object-fit: contain; }
.public-footer .public-footer-credit:hover { color: var(--care-brand); }
html[data-theme='dark'] .public-footer .care-footer-brand-well { color: #83dcab; }
html[data-high-contrast='1'] .public-footer .care-footer-brand-move { color: var(--care-gold); }
html[data-high-contrast='1'] .public-footer .care-footer-brand-well { color: var(--care-brand); }
html[data-theme='dark'][data-high-contrast='1'] .public-footer .care-footer-brand-move { color: var(--care-gold) !important; }
html[data-theme='dark'][data-high-contrast='1'] .public-footer .care-footer-brand-well { color: var(--care-brand) !important; }
@media (max-width: 767px) {
    .public-footer { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
    .public-footer .public-footer-brand { grid-row: auto; }
    .public-footer-navigation, .public-footer-access { justify-content: flex-start; gap: .4rem 2rem; }
    .public-footer-bottom { display: flex; flex-direction: column; align-items: flex-start; margin-top: .4rem; }
    .public-footer-legal { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: .4rem 2rem; }
    .public-footer .public-footer-credit { justify-self: start; }
}
