/*
 * Varumärkesskalet – header, menypanel, sidfot.
 * Portat från salming-admin partials/brand-{header,menu,footer}-styles.blade.php @ acc983a.
 * Mått och färger är salming-admins; ändra på båda ställena.
 *
 * Skillnader: headerns färg via mix-blend-mode (se nedan), logon döljs vid scroll
 * under 1024 px, ORDER NOW i sidfoten, och lite högre specificitet där Nectars
 * generella stilar för input/button/a annars slår igenom.
 */

/* ---------- Header ---------- */

:root { scroll-padding-top: 96px; }

.salming-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Över sidan (Nectars rader går upp till ~9000 i fästa sektioner), under menyns scrim och panel. */
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(20px, 3.4vw, 40px) clamp(24px, 4vw, 56px);
    background: transparent;
    font-family: 'TWKLausanne', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    color: #ffffff;
    box-sizing: border-box;
    transition: padding .25s ease;
    pointer-events: none;
    /*
     * Som Nectars ständigt transparenta header på .com (header-perma-transparent.css):
     * allt i headern är vitt och blandas med exclusion, så det blir vitt över mörkt
     * och svart över ljust – pixel för pixel, även när en hero är ljus till vänster
     * och mörk till höger. Över mellangrått blir det grått, precis som idag.
     */
    mix-blend-mode: exclusion;
}
.salming-header > * { pointer-events: auto; }
.admin-bar .salming-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .salming-header { top: 46px; } }

.salming-header__logo { display: inline-flex; line-height: 0; transition: opacity .3s ease-out, transform .3s ease-out; }
.salming-header__logo img {
    width: clamp(96px, 11vw, 132px);
    height: auto;
    display: block;
    transition: width .25s ease;
}

.salming-header.is-scrolled {
    padding-top: clamp(14px, 2vw, 24px);
    padding-bottom: clamp(14px, 2vw, 24px);
}
.salming-header.is-scrolled .salming-header__logo img { width: clamp(88px, 10vw, 120px); }

/* Mobil: logon tonas bort när sidan har scrollats, bara MENU blir kvar (som .com). */
@media (max-width: 1023px) {
    .salming-header.is-scrolled .salming-header__logo {
        opacity: 0;
        transform: translateY(4px);
        pointer-events: none;
        visibility: hidden;
        transition: opacity .3s ease-out .1s, transform .3s ease-out .1s, visibility 0s linear .4s;
    }
}

body .salming-header__menu {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 6px 0;
    margin: 0;
    min-height: 44px;
    color: inherit;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}
.salming-header__menu[hidden] { display: none !important; }
.salming-header__rules { display: grid; gap: 4px; width: 22px; }
.salming-header__rules span { display: block; height: 1px; background: currentColor; }

@media (max-width: 720px) {
    :root { scroll-padding-top: 76px; }
}

/* ---------- Menypanel ---------- */

body .salming-menu__scrim {
    position: fixed; inset: 0; z-index: 10010; background: rgba(10, 10, 10, 0.55);
    border: 0; border-radius: 0; padding: 0; margin: 0; width: 100%; height: 100%; cursor: default; box-shadow: none;
}
.salming-menu__panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 10011;
    width: min(440px, 88vw); background: #0a0a0a; color: #ffffff;
    padding: 30px 40px 40px; display: flex; flex-direction: column; overflow-y: auto;
    font-family: 'TWKLausanne', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 200;
    box-sizing: border-box;
}
.admin-bar .salming-menu__panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .salming-menu__panel { top: 46px; } }
.salming-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.salming-menu__top a { line-height: 0; }
.salming-menu__top img { width: 132px; height: auto; display: block; }
body .salming-menu__close {
    background: none; border: 0; border-radius: 0; box-shadow: none; padding: 6px 0; margin: 0; color: #ffffff;
    font-family: inherit; font-weight: 400; font-size: 12px; line-height: 1;
    letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; min-height: 44px;
}
.salming-menu__nav { display: grid; gap: 4px; }
body .salming-menu__nav a {
    color: #ffffff; text-decoration: none; font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; padding: 10px 0;
}
body .salming-menu__nav a:hover { color: #8a8985; }
.salming-menu__foot { margin-top: auto; padding-top: 48px; }
.salming-menu__foot-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #b3b2ad; margin-bottom: 14px; }
.salming-menu__stops { display: grid; gap: 8px; font-size: 16px; }
body .salming-menu__stops a { color: #d8d7d2; text-decoration: none; }
body .salming-menu__stops a:hover { color: #ffffff; }
.salming-menu__stops span { color: #b3b2ad; }
.salming-menu__panel[hidden], .salming-menu__scrim[hidden] { display: none !important; }

@media (max-width: 720px) {
    .salming-menu__panel { padding-left: 26px; padding-right: 26px; }
    body .salming-menu__nav a { font-size: 25px; }
}

/* ---------- Sidfot ---------- */

.salming-footer {
    position: relative;
    z-index: 12; /* över Nectars .container-wrap (11) */
    background: #0a0a0a;
    color: #d8d7d2;
    font-family: 'TWKLausanne', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 200;
    box-sizing: border-box;
}
.salming-footer *, .salming-footer *::before, .salming-footer *::after { box-sizing: border-box; }
body .salming-footer a { color: #d8d7d2; }
body .salming-footer a:hover { color: #ffffff; }
.salming-footer p { padding: 0; }

.salming-footer__sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/*
 * Dator: ordbilden överst, sedan ett rutnät med nyhetsbrevet stort till vänster och
 * menyns länkar och köpvägarna i två smala kolumner. En tunn linje skiljer den
 * juridiska raden. Innehållet håller en maxbredd, så att det inte sprids ut på stora skärmar.
 */
.salming-footer__inner {
    max-width: 1440px; margin: 0 auto;
    padding: 96px clamp(40px, 5vw, 96px) 0;
}
.salming-footer__mark { display: inline-block; line-height: 0; margin-bottom: 72px; }
.salming-footer__mark img { width: 168px; height: auto; display: block; }

.salming-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
    column-gap: clamp(40px, 5vw, 96px);
    align-items: start;
    padding-bottom: 88px;
}

/* Utan nyhetsbrevet (ingen Vepino-nyckel): länkarna och köpvägarna till vänster, inte en tom bred kolumn. */
.salming-footer__grid--no-news { grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr); }
.salming-footer__eyebrow {
    font-size: 11px; line-height: 1.4; letter-spacing: 0.2em; text-transform: uppercase;
    color: #8f8e89; margin-bottom: 22px;
}

.salming-footer__news { max-width: 560px; }
body .salming-footer__news-lead {
    font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -0.01em;
    color: #ffffff; margin: 0 0 32px; white-space: pre-line;
}
body .salming-footer__news-done { font-size: 16px; line-height: 1.5; color: #ffffff; margin: 0; }
.salming-footer__news-form[hidden], .salming-footer__news-done[hidden] { display: none !important; }
.salming-footer__news-row { display: flex; gap: 10px; max-width: 440px; }
body .salming-footer .salming-footer__news-row .salming-footer__news-input {
    flex: 1 1 auto; min-width: 0; width: auto; height: 48px; margin: 0; background: transparent; color: #ffffff;
    border: 1px solid #4a4946; border-radius: 10px; padding: 0 16px; box-shadow: none;
    font-family: inherit; font-weight: 200; font-size: 16px; line-height: 1;
}
body .salming-footer .salming-footer__news-row .salming-footer__news-input::placeholder { color: #8f8e89; opacity: 1; }
body .salming-footer .salming-footer__news-row .salming-footer__news-input:focus { outline: none; border-color: #ffffff; background: transparent; }
body .salming-footer .salming-footer__news-row .salming-footer__news-input.is-bad { border-color: #f0b9b0; }
body .salming-footer .salming-footer__news-row .salming-footer__news-btn {
    flex: none; height: 48px; margin: 0; background: transparent; color: #ffffff;
    border: 1px solid #ffffff; border-radius: 10px; padding: 0 22px; box-shadow: none;
    font-family: inherit; font-weight: 400; font-size: 11px; line-height: 1;
    letter-spacing: 0.18em; text-transform: uppercase;
    cursor: pointer; white-space: nowrap;
}
body .salming-footer .salming-footer__news-row .salming-footer__news-btn:hover { background: #ffffff; color: #0a0a0a; }
body .salming-footer .salming-footer__news-row .salming-footer__news-btn[disabled] { opacity: .55; cursor: default; }
.salming-footer__news-err { display: none; font-size: 14px; color: #f0b9b0; margin-top: 10px; }
.salming-footer__news-err.is-shown { display: block; }

.salming-footer__col { display: flex; flex-direction: column; align-items: flex-start; }
body .salming-footer__explore a {
    color: #d8d7d2; text-decoration: none; font-size: 15px; line-height: 1.4; padding: 5px 0;
}
body .salming-footer__explore a:hover { color: #ffffff; }

/* Köpvägarna: beställningen är den enda fyllda knappen, resten textlänkar. */
body .salming-footer .salming-footer__order {
    display: inline-flex; align-items: center; height: 48px; padding: 0 24px; margin-bottom: 14px;
    border: 1px solid #ffffff; border-radius: 10px; background: #ffffff; color: #0a0a0a;
    font-weight: 400; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap;
}
body .salming-footer .salming-footer__order:hover { background: transparent; color: #ffffff; }
body .salming-footer__viewing {
    display: inline-flex; align-items: center; min-height: 40px; color: #ffffff;
    font-weight: 400; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: underline; text-underline-offset: 4px; white-space: nowrap;
}
body .salming-footer__viewing:hover { opacity: .7; }

.salming-footer__legal {
    display: flex; flex-wrap: wrap; align-items: baseline;
    column-gap: 0; row-gap: 4px;
    border-top: 1px solid #2a2a28;
    padding: 28px 0 46px; font-size: 12px; line-height: 1.8; color: #b3b2ad;
}
.salming-footer__lg--sep::before {
    content: " · ";
    content: " · " / "";
    white-space: pre;
    color: #d8d7d2;
    text-decoration: none;
    display: inline-block;
}
.salming-footer__tail {
    display: flex; flex-wrap: wrap; align-items: baseline;
    flex: 1 1 auto; row-gap: 4px;
}
.salming-footer__lg { white-space: nowrap; }
.salming-footer__lg--sep.is-line-start::before { visibility: hidden; }
body .salming-footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.salming-footer__policies { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; padding-left: 28px; }

@media (max-width: 999px) {
    .salming-footer__inner { padding: 64px 22px 0; text-align: center; }
    .salming-footer__mark { margin-bottom: 40px; }
    .salming-footer__mark img { width: 150px; }
    .salming-footer__grid { grid-template-columns: minmax(0, 1fr); row-gap: 56px; padding-bottom: 56px; justify-items: center; }
    /* Köpvägarna först, sedan nyhetsbrevet; menyns länkar finns i headern. */
    .salming-footer__contact { order: -1; align-items: center; }
    .salming-footer__contact .salming-footer__eyebrow, .salming-footer__explore { display: none; }
    .salming-footer__news { width: 100%; max-width: 380px; }
    body .salming-footer__news-lead { font-size: 22px; }
    .salming-footer__news-row { margin: 0 auto; }
    body .salming-footer .salming-footer__news-row .salming-footer__news-btn { padding: 0 18px; }

    .salming-footer__legal { justify-content: center; text-align: center; padding-bottom: 40px; }
    .salming-footer__tail { flex-basis: 100%; justify-content: center; }
    .salming-footer__lg--copy::before { content: none; }
    .salming-footer__policies { margin-left: 0; padding-left: 20px; justify-content: center; }
}

@media (max-width: 560px) {
    .salming-footer__policies { flex-basis: 100%; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .salming-header, .salming-header__logo, .salming-header__logo img { transition: none; }
}

/* ---------- [salming_newsletter]: sidfotens anmälan på ljus yta ----------
 * Samma mått och former som sidfoten (44 px höjd, 10 px hörn, versal knapp), mörkt på ljust.
 * Knappen är fylld: på den här ytan är anmälan den enda handlingen.
 * Kontrast mot vitt: text #5f5e5a 6.5:1, fel #b3261e 6.5:1, ram #8a8984 3.5:1.
 */
.salming-signup { width: 100%; max-width: 460px; }
.salming-signup__form[hidden], .salming-signup__done[hidden] { display: none !important; }
body .salming-signup__label {
    display: block; margin: 0 0 10px;
    font-size: 11px; line-height: 1.4; letter-spacing: 0.2em; text-transform: uppercase; color: #5f5e5a;
}
.salming-signup__row { display: flex; gap: 10px; }
body .salming-signup .salming-signup__row .salming-signup__input {
    flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; background: transparent; color: #0a0a0a;
    border: 1px solid #8a8984; border-radius: 10px; padding: 0 16px; box-shadow: none;
    font-family: inherit; font-weight: 200; font-size: 16px; line-height: 1;
}
body .salming-signup .salming-signup__row .salming-signup__input::placeholder { color: #5f5e5a; opacity: 1; }
body .salming-signup .salming-signup__row .salming-signup__input:focus { outline: 2px solid #0a0a0a; outline-offset: 1px; border-color: #0a0a0a; }
body .salming-signup .salming-signup__row .salming-signup__input.is-bad { border-color: #b3261e; }
body .salming-signup .salming-signup__row .salming-signup__btn {
    flex: none; height: 44px; margin: 0; background: #0a0a0a; color: #ffffff;
    border: 1px solid #0a0a0a; border-radius: 10px; padding: 0 22px; box-shadow: none;
    font-family: inherit; font-weight: 400; font-size: 11px; line-height: 1;
    letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
    transition: background-color .2s, color .2s;
}
body .salming-signup .salming-signup__row .salming-signup__btn:hover { background: transparent; color: #0a0a0a; }
body .salming-signup .salming-signup__row .salming-signup__btn:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
body .salming-signup .salming-signup__row .salming-signup__btn[disabled] { opacity: .55; cursor: default; }
.salming-signup__err { display: none; font-size: 14px; line-height: 1.4; color: #b3261e; margin-top: 10px; }
.salming-signup__err.is-shown { display: block; }
body .salming-signup__done { margin: 0; font-size: 18px; line-height: 1.5; color: #0a0a0a; }
@media (max-width: 480px) {
    .salming-signup__row { flex-direction: column; }
    body .salming-signup .salming-signup__row .salming-signup__btn { width: 100%; }
}

/* Klickytor: minst 24 px hög, och högre på pekskärm. Layouten flyttas inte. */
.salming-footer__legal a, .salming-footer__policies a { display: inline-block; padding-block: 6px; margin-block: -6px; }
@media (pointer: coarse) { .salming-footer__legal a, .salming-footer__policies a { padding-block: 11px; margin-block: -11px; } }

/* 404.php. Länkarna och visningsturnén använder menypanelens klasser. */
.salming-404 {
    position: relative; overflow: hidden; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    min-height: 100vh; min-height: 100svh;
    padding: 160px clamp(24px, 6vw, 96px) 120px;
    background: #0a0a0a; color: #ffffff;
    font-family: 'TWKLausanne', system-ui, -apple-system, "Segoe UI", sans-serif;
}
.salming-404__image {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 60% 50%;
}
.salming-404::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, .88) 0%, rgba(10, 10, 10, .6) 36%, rgba(10, 10, 10, 0) 68%);
}
.salming-404__content { position: relative; z-index: 1; }
body .salming-404__title {
    margin: 0 0 18px; color: #ffffff;
    font-family: inherit; font-weight: 200; font-size: clamp(36px, 6vw, 72px); line-height: 1.1; letter-spacing: -0.01em;
}
body .salming-404__lead {
    margin: 0 0 32px; max-width: 34em;
    font-size: 18px; font-weight: 200; line-height: 1.45; color: #d8d7d2;
}
.salming-404__nav { gap: 0; }
body .salming-404__nav a { font-size: 24px; padding: 6px 0; }
.salming-404__stops-wrap { margin-top: 36px; }
@media (max-width: 767px) {
    .salming-404 { justify-content: flex-end; padding-bottom: 72px; }
    .salming-404__image { object-position: 64% 30%; }
    .salming-404::after {
        background: linear-gradient(0deg, rgba(10, 10, 10, .94) 0%, rgba(10, 10, 10, .8) 55%, rgba(10, 10, 10, .6) 100%);
    }
}

/* Sociala medier: textlänkar under "The 1148", ingen ikon. */
.salming-footer__follow-label { margin-top: 36px; }
.salming-footer__social { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.salming-footer__social li { margin: 0; padding: 0; }
body .salming-footer__social a { display: inline-block; padding-block: 6px; margin-block: -6px; font-size: 15px; }
@media (pointer: coarse) { body .salming-footer__social a { padding-block: 11px; margin-block: -11px; } }
@media (max-width: 999px) {
    .salming-footer__social { justify-content: center; margin-top: 28px; }
}

