.site-header-part {
    position: relative;
    z-index: 10;
}

.site-header {
    min-height: var(--cheno-header-height);
    padding: 16px var(--cheno-gutter);
    align-items: center;
}

.site-header__brand.wp-block-group {
    position: relative;
    align-items: center;
    gap: 7px;
}

.site-header__logo.wp-block-image {
    display: grid;
    margin: 0;
    color: var(--wp--preset--color--ink);
    transition: color 250ms ease;
}

.site-header__logo::before {
    content: "";
    grid-area: 1 / 1;
    background-color: currentColor;
    -webkit-mask: url("../images/logo.svg") no-repeat center / contain;
    mask: url("../images/logo.svg") no-repeat center / contain;
    pointer-events: none;
}

.site-header__logo a {
    display: block;
    grid-area: 1 / 1;
}

.site-header__logo a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.site-header__logo img {
    width: 132px;
    height: 57px;
    object-fit: contain;
    opacity: 0;
}

.site-header__tagline {
    margin: 0;
    padding: 0 0 4px;
    line-height: 20px;
    white-space: nowrap;
    transition: color 250ms ease;
}

.site-header__brand:is(:hover, :focus-within) .site-header__logo,
.site-header__brand:is(:hover, :focus-within) .site-header__tagline {
    color: var(--wp--preset--color--laguna);
}

@media (max-width: 1024px) {
    .site-header {
        padding: 12px var(--cheno-gutter);
    }
}

@media (max-width: 767px) {
    .site-header {
        gap: 16px;
        padding: 16px var(--cheno-gutter);
    }

    .site-header__brand.wp-block-group {
        gap: 6px;
    }

    .site-header__logo img {
        width: 115px;
        height: 49px;
    }

    .site-header__tagline {
        padding: 0 0 2px;
        font-size: 13px;
        line-height: 18px;
    }

    .site-header__actions.wp-block-group {
        gap: 18px;
    }
}

.site-footer-part {
    padding: 0 var(--cheno-gutter) 15px;
}

.cheno-footer {
    border-top: 1px solid var(--wp--preset--color--line);
    padding-top: 20px;
}

.cheno-footer__columns {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) repeat(3, minmax(0, 1fr));
    gap: 20px 32px;
}

.cheno-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.cheno-footer p {
    margin: 0;
}

.cheno-footer__title {
    margin: 0 0 5px;
}

.cheno-footer__legal {
    gap: 0;
    padding-top: 3px;
    line-height: 26px;
}

.cheno-footer__social {
    display: flex;
    gap: 10px;
}

.cheno-footer__icon {
    display: block;
    width: 35px;
    height: 35px;
    background-color: currentColor;
    -webkit-mask: var(--cheno-icon) no-repeat center / contain;
    mask: var(--cheno-icon) no-repeat center / contain;
}

.cheno-footer__icon:hover,
.cheno-footer__icon:focus-visible {
    color: var(--wp--preset--color--laguna);
}

.cheno-footer .cheno-footer__copyright {
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .cheno-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 30px;
    }
}

@media (max-width: 599px) {
    .cheno-footer__columns {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 20px;
    }
}

.site-header__actions {
    gap: 30px;
}

.cheno-languages {
    display: flex;
    gap: 6px;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 20px;
}

.cheno-languages__item.is-current {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.cheno-languages a {
    color: #6b7270;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}

.cheno-languages a:hover,
.cheno-languages a:focus-visible {
    color: var(--wp--preset--color--laguna);
    text-decoration-color: currentColor;
}

.cheno-languages__separator {
    color: var(--wp--preset--color--line);
}

.cheno-footer__week {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 0 18px;
    margin: 0;
}

.cheno-footer__day {
    display: contents;
}

.cheno-footer__day dt,
.cheno-footer__day dd {
    margin: 0;
}

.cheno-footer__day.is-closed {
    color: var(--wp--preset--color--laguna);
}

.cheno-footer__day.is-closed dd {
    font-style: italic;
}

.has-header-motion .site-header-part {
    height: var(--cheno-header-height);
}

.has-header-motion .site-header-part .site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    box-sizing: border-box;
    flex-direction: row;
    justify-content: space-between;
    min-height: 0;
    height: var(--cheno-header-height);
    padding-block: 0;
    padding-inline: round(down, max(var(--cheno-gutter), calc((100% - 1400px) / 2)), 1px);
    border-bottom: 1px solid transparent;
    background: var(--wp--preset--color--cream);
    transition:
        height 380ms var(--cheno-ease),
        transform 320ms var(--cheno-ease);
}

.has-header-motion .site-header__logo::before,
.has-header-motion .site-header__logo img {
    transform-origin: left center;
    transition: transform 380ms var(--cheno-ease);
}

.has-header-motion .site-header__brand.wp-block-group {
    --cheno-tagline-space: 30px;
    padding-bottom: var(--cheno-tagline-space);
    transition: padding 380ms var(--cheno-ease);
}

.has-header-motion .site-header__logo a::after {
    inset: 0 -10px;
}

.has-header-motion .site-header__tagline {
    position: absolute;
    bottom: 0;
    left: 50%;
    pointer-events: none;
    translate: -50% 0;
    transition:
        color 250ms ease,
        opacity 220ms ease 120ms;
}

.is-header-compact .site-header-part .site-header {
    height: var(--cheno-compact-height);
    border-bottom-color: var(--wp--preset--color--line);
    transition:
        height 380ms var(--cheno-ease),
        transform 320ms var(--cheno-ease),
        border-color 380ms ease 120ms;
}

.is-header-compact .site-header__logo::before,
.is-header-compact .site-header__logo img {
    transform: scale(calc(96 / 132));
}

.is-header-compact .site-header__brand.wp-block-group {
    padding-bottom: 0;
}

.is-header-compact .site-header__tagline {
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 100ms ease,
        visibility 0s 100ms;
}

.is-header-hidden .site-header-part .site-header {
    transform: translateY(-101%);
}

.is-header-hidden .site-header-part .site-header:focus-within {
    transform: none;
}

.is-header-static .site-header-part .site-header,
.is-header-static .site-header__logo::before,
.is-header-static .site-header__logo img,
.is-header-static .site-header__brand.wp-block-group,
.is-header-static .site-header__tagline {
    transition: none !important;
}

.admin-bar.has-header-motion .site-header-part .site-header,
.has-header-motion .admin-bar .site-header-part .site-header {
    top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 767px) {
    .has-header-motion .site-header__brand.wp-block-group {
        --cheno-tagline-space: 26px;
    }

    .is-header-compact .site-header__logo::before,
    .is-header-compact .site-header__logo img {
        transform: scale(calc(96 / 115));
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-header-motion .site-header-part .site-header,
    .is-header-compact .site-header-part .site-header,
    .is-header-compact .site-header__tagline,
    .has-header-motion .site-header__logo::before,
    .has-header-motion .site-header__logo img,
    .has-header-motion .site-header__brand.wp-block-group,
    .has-header-motion .site-header__tagline {
        transition: none;
    }
}

@media (forced-colors: active) {
    .site-header__logo::before {
        display: none;
    }

    .site-header__logo img {
        opacity: 1;
    }
}
