/* One shared header-to-content rhythm, including pages starting with an image. */
.wp-site-blocks > .crw-site-main {
    --crw-content-start: max(50px, var(--wp--preset--spacing--60));
}
/* Preserve the existing desktop legal-link presentation. */
footer .crw-footer-legal {
    display: flex;
    flex-direction: column-reverse;
    gap: 0; /* Keep imprint/privacy as two separate but compact lines. */
    margin-block-start: .2em;
}
footer .crw-footer-legal > p,
footer .crw-footer-legal-next > p { margin-block: 0; }
footer .crw-footer-legal-next {
    display: inline-flex;
    align-items: baseline;
    column-gap: .5em;
    white-space: nowrap;
}
footer .crw-footer-separator { display: none; }
.wp-site-blocks > footer .wp-block-paragraph > a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-block: 4px;
}
/* Two text-only Instagram destinations; typography and color inherit the footer. */
footer .crw-footer-instagram { margin-block: .4em 0 0; }
footer .crw-footer-profiles {
    margin-inline-start: .55em; /* About 2–3 spaces including the existing HTML space. */
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: .5em;
    max-width: 100%;
}
/* Keep the dot attached to photography even on enlarged text / narrow screens. */
footer .crw-footer-profile-pair {
    display: inline-flex;
    align-items: baseline;
    column-gap: .5em;
    max-width: 100%;
    min-width: 0;
}
footer .crw-footer-profiles > a,
footer .crw-footer-profile-pair > a {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 24px;
    margin-block: 4px;
    color: inherit;
    text-decoration: underline;
    overflow-wrap: anywhere;
}
/* Reduce only the empty spacer; keep the artwork-to-footer breathing room. */
footer .crw-footer-copyright + .wp-block-spacer { max-height: 12px; }
@media (max-width: 599.98px) {
    footer .crw-footer-copyright + .wp-block-spacer { display: none; }
    footer .crw-footer-instagram { margin-block-start: .4em; }
    /* Legal destinations are separate in both mobile and desktop layouts. */
    footer .crw-footer-legal {
        flex-direction: column-reverse;
        align-items: stretch;
        margin-block-start: .2em;
        text-align: left;
    }
    footer .crw-footer-separator { display: none; }
}

/* Core navigation breakpoint: typography and hit areas only; Core owns current/focus state. */
@media (max-width: 599.98px) {
    .wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        min-width: 44px;
        min-height: 44px;
        padding-block: 8px;
        font-size: 18px;
        text-transform: lowercase;
    }
    .wp-site-blocks > header .wp-block-navigation__responsive-container-open,
    .wp-site-blocks > header .wp-block-navigation__responsive-container-close {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        margin: -10px;
    }
}
