body:has(.yl-shared-footer) #page > :is(#colophon, aside.widget-area),
body:has(.yl-shared-footer) .yl-site-utility {
    display: none;
}

.yl-shared-footer {
    margin: 0;
    border-top: 1px solid #655247;
    background: #2d2520;
    color: #f9f2eb;
    font: 15px/1.55 system-ui, sans-serif;
}

.yl-shared-footer .yl-shared-footer-inner {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
    padding-block: 40px 21px;
}

.yl-shared-footer .yl-shared-footer-brand a {
    font: 600 31px/1.15 Georgia, serif;
    text-decoration: none;
}

.yl-shared-footer .yl-shared-footer-brand p {
    margin: 8px 0 0;
    color: #e1cfc0;
}

.yl-shared-footer h2 {
    margin: 0 0 9px;
    color: inherit;
    font: 700 15px/1.4 system-ui, sans-serif;
}

.yl-shared-footer ul {
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.yl-shared-footer a {
    color: #f9f2eb;
    text-underline-offset: 3px;
}

.yl-shared-footer a:hover {
    color: #f1ceb1;
}

.yl-shared-footer a:focus-visible {
    outline: 2px solid #f1ceb1;
    outline-offset: 4px;
}

.yl-shared-footer .yl-shared-footer-copyright {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #655247;
    color: #e1cfc0;
    font-size: 13px;
}

@media (max-width: 760px) {
    .yl-shared-footer .yl-shared-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        padding-top: 30px;
    }
}

@media (max-width: 380px) {
    .yl-shared-footer .yl-shared-footer-inner {
        grid-template-columns: 1fr;
    }
}
body:has(> .yl-shared-footer) > footer.yl-footer { display: none; }
