/* components/layout/Footer.module.scss */
.mk-footer { position: relative; background: var(--mk-footer-bottom-bg, none); }

.mk-footer__main {
    padding-top: var(--mk-space-top, clamp(3rem, calc(3rem + 3.4 * ((100vw - 48rem) / 80)), 6.4rem));
    padding-bottom: var(--mk-space-bottom, clamp(3rem, calc(3rem + 5 * ((100vw - 48rem) / 80)), 8rem));
    background: var(--mk-footer-bg, var(--color-background-alt));
    transition: background-color var(--transition-duration-leave);
}

.mk-footer__container {
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
    margin: 0 auto;
    max-width: var(--page-width);
    box-sizing: content-box;
}

.mk-footer__layout {
    display: grid;
    /* responsive(5rem): 5rem → 2rem */
    row-gap: clamp(2rem, calc(2rem + -3 * ((100vw - 128rem) / 80)), 5rem);
    grid-template-areas: 'logo' 'navigation' 'newsletter';
    align-items: baseline;
}
@media (min-width: 720px) {
    .mk-footer__layout {
        row-gap: clamp(3rem, calc(3rem + 5 * ((100vw - 48rem) / 80)), 8rem);
        column-gap: clamp(5rem, calc(5rem + 7 * ((100vw - 48rem) / 80)), 12rem);
        grid-template-columns: minmax(auto, 1fr) minmax(0, 72rem);
        grid-template-areas: 'logo navigation' 'logo newsletter';
    }
}

.mk-footer__logo { grid-area: logo; color: var(--mk-footer-logo-color, inherit); text-decoration: none; }
.mk-footer__logo-element { margin-bottom: -0.5rem; }

.mk-footer__navigation {
    grid-area: navigation;
    display: grid;
    grid-template-columns: 1fr 3fr;
    column-gap: clamp(1rem, calc(1rem + 2 * ((100vw - 48rem) / 80)), 3rem);
    line-height: 15;
}
.mk-footer__navigation .mk-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    column-gap: var(--mk-linklist-gap, clamp(1rem, calc(1rem + 2 * ((100vw - 48rem) / 80)), 3rem));
    row-gap: var(--mk-linklist-gap, 1rem);
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.mk-footer .mk-links__link {
    color: var(--mk-footer-link-color, var(--color-font-light));
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.mk-footer .mk-links__link:focus { outline: none; }
.mk-footer .mk-links__link:is(:hover, :focus-visible) {
    color: var(--mk-footer-link-hover, var(--color-font));
    text-decoration: underline;
    text-decoration-color: var(--mk-footer-dot, var(--color-accent-primary));
    text-decoration-thickness: 0.2rem;
}

/* "LINKS": a heading block in the design system's "label-fixed" style. */
.mk-footer__label { margin: 0; padding: 0; }

.mk-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--mk-footer-bottom-color, var(--color-font-light));
}
@media (min-width: 720px) {
    .mk-footer__bottom {
        display: grid;
        column-gap: clamp(2rem, calc(2rem + -3 * ((100vw - 128rem) / 80)), 5rem);
        grid-template-columns: minmax(30rem, max-content) minmax(auto, 1fr);
        grid-template-areas: 'legal location' 'social social';
    }
}
@media (min-width: 1080px) {
    .mk-footer__bottom {
        grid-template-columns: minmax(30rem, max-content) minmax(auto, 1fr) minmax(auto, 20rem);
        grid-template-areas: 'legal location social';
    }
}

.mk-footer__legal { grid-area: legal; }
.mk-footer__legal .mk-links {
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem var(--mk-linklist-gap, 3rem);
    padding: 2.8rem 0;
}
@media (min-width: 720px) {
    .mk-footer__legal .mk-links { justify-content: flex-start; }
}
/* One line per link (four legal links: privacy, terms, cookie policy, cookie settings). */
.mk-footer__legal .mk-links__link { text-decoration: underline; white-space: nowrap; }

.mk-footer__location {
    grid-area: location;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 720px) {
    .mk-footer__location { flex-direction: row; justify-content: flex-end; }
}
.mk-footer__address { position: relative; margin: 0; }
.mk-footer__hours { margin: 0; padding: 1rem 0; }
@media (min-width: 720px) {
    .mk-footer__hours { margin-left: 1rem; }
    .mk-footer__hours::before {
        content: '';
        display: inline-block;
        margin-right: 1rem;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        background-color: var(--mk-footer-dot, var(--color-accent-primary));
    }
}

.mk-footer__social { grid-area: social; }
.mk-footer__social .mk-links {
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.8rem 0;
}
@media (min-width: 1080px) {
    .mk-footer__social .mk-links { justify-content: flex-end; margin-right: -1rem; }
}
.mk-footer__social .mk-links__item + .mk-links__item { margin-left: var(--mk-linklist-gap, 3rem); }
.mk-footer__social svg { display: block; }
.mk-footer__social .mk-links__link { display: block; padding: 1rem; }

/* components/newsletter/Newsletter.module.scss (footer, explore gallery, form slice):
   a title and the newsletter user form – email field and button on one line. */
.mk-newsletter {
    position: relative;
    grid-area: newsletter;
    display: flex;
    flex-wrap: wrap;
    justify-items: stretch;
    gap: 3rem;
}
.mk-newsletter > .mk-userform { flex: 1 1 auto; }
.mk-newsletter .userform {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 0;
}
.mk-newsletter :is(.userform-fields, .form-step, .field, .middleColumn) { margin: 0; padding: 0; border: 0; }
.mk-newsletter .userform-fields { flex: 1 1 auto; }
.mk-newsletter .field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
/* The one-line layout of the form: the field as tall as the button, its text in the
   form rule "fieldInline" (the placeholder: "placeholder", "placeholderText"); colours,
   border and focus from the form rules as in form.css. */
.mk-newsletter .field input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 1.4rem;
    height: 4rem;
    color: var(--mk-form-field-color, var(--rule-form-fieldText));
    font-family: var(--rule-form-fieldInline-font-family);
    font-size: var(--rule-form-fieldInline-font-size);
    line-height: var(--rule-form-fieldInline-line-height);
    font-weight: var(--rule-form-fieldInline-font-weight);
    letter-spacing: var(--rule-form-fieldInline-letter-spacing);
    text-transform: var(--rule-form-fieldInline-text-transform);
    font-style: var(--rule-form-fieldInline-font-style);
    border: 1px solid var(--mk-form-field-border, var(--rule-form-border));
    border-radius: var(--mk-form-field-radius, var(--rule-form-radius));
    background-color: var(--mk-form-field-bg, var(--rule-form-fieldBackground));
    appearance: none;
}
.mk-newsletter .field input:focus { outline: none; }
.mk-newsletter .field input:focus-visible { border-color: var(--rule-form-focus); }
.mk-newsletter .field input::placeholder {
    text-decoration: none;
    color: var(--rule-form-placeholderText);
    font-family: var(--rule-form-placeholder-font-family);
    font-size: var(--rule-form-placeholder-font-size);
    line-height: var(--rule-form-placeholder-line-height);
    font-weight: var(--rule-form-placeholder-font-weight);
}
.mk-newsletter .btn-toolbar { margin: 0; }
/* .mk-button--small, as tall as the field (form.css loads later: more specific); type: the form rule "button" */
.mk-newsletter .mk-userform .btn-toolbar .action { box-sizing: border-box; padding: 0 1.8em; height: 4rem; }
/* "NEWSLETTER SIGNUP": a text block in the design system's "label-fixed" style; the
   width in em of its own size sits on the block. */
.mk-newsletter__label { margin: 0; padding: 0; }
@media (min-width: 1080px) {
    .mk-newsletter__label > * { max-width: 9.5em; }
}
.mk-newsletter__message { flex: 1 1 100%; }
.mk-newsletter__message[hidden] { display: none; }
.mk-newsletter .is-subscribed .userform { display: none; }

/* ---- Editable look: link lists (minkLinkList: placering); unset = the original ---- */
.mk-footer .mk-links--left { justify-content: flex-start; justify-items: start; text-align: left; }
.mk-footer .mk-links--center { justify-content: center; justify-items: center; text-align: center; }
.mk-footer .mk-links--right { justify-content: flex-end; justify-items: end; text-align: right; }

/* minkLink: its text is a label block (display: block in the builder's CSS) – inline in
   the link as the plain text was; with an icon the text is for screen readers only. */
.mk-links__link > .el-label { display: inline; }
.mk-links__hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* No newsletter signup (Mailchimp not set up, $MkNewsletterOn): no empty row for it. */
.mk-footer__layout:not(:has(.mk-footer__newsletter)) { grid-template-areas: 'logo' 'navigation'; }
@media (min-width: 720px) {
    .mk-footer__layout:not(:has(.mk-footer__newsletter)) { grid-template-areas: 'logo navigation'; }
}
