/* Shared navigation, footer and accreditation. No page-specific layout rules. */
/* ─── Brand-tokens (override per sajt via 19-extract-header) ───────────── */
:root {
    --brand-primary:    #616d61;
    --brand-primary-2:  #4E59B7;
    --brand-accent:     #DE0925;
    --brand-accent-2:   #F62440;
    --brand-text:       #1B1D1E;
    --brand-text-mute:  #333739;
    --brand-bg:         #FFFFFF;
    --brand-bg-light:   #F8F8F8;
    --bosse-header-h:   96px;
    --bosse-banner-h:   42px;
}

/* ─── Bosse Header ─────────────────────────────────────────────────────── */
.bosse-header {
    width: 100%;
    background: #FFFEF6;
    border-bottom: 0;
    position: relative;
    z-index: 99;
    font-family: 'Poppins', system-ui, sans-serif;
}
.bosse-header__inner {
    max-width: var(--bc-content-width, 1200px);
    width: calc(100% - 2 * var(--bc-gutter, 48px));
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--bosse-header-h);
    position: relative;
}
.bosse-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.bosse-header__logo img {
    max-height: 42px;
    width: auto;
    display: block;
}
.bosse-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: auto;
}
body header.bosse-header .bosse-header__nav-link,
body header.bosse-header .bosse-header__nav-link span,
body #bosse-header .bosse-header__nav-link {
    font-family: 'Work Sans', 'Montserrat', system-ui, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--brand-text) !important;
    text-decoration: none !important;
    letter-spacing: 0.1px !important;
    text-transform: none !important;
    display: inline-flex;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 0 !important;
    position: relative;
    transition: color .2s ease;
}
.bosse-header__nav-link::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.bosse-header__nav-link:hover,
.bosse-header__nav-link.is-active {
    color: var(--brand-primary);
}
.bosse-header__nav-link:hover::after,
.bosse-header__nav-link.is-active::after {
    transform: scaleX(1);
}
.bosse-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
body header.bosse-header .bosse-header__secondary,
body #bosse-header .bosse-header__secondary {
    font-family: 'Work Sans', 'Montserrat', system-ui, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--brand-text) !important;
    text-decoration: none !important;
    letter-spacing: 0.1px !important;
    text-transform: none !important;
    padding: 10px 4px;
    position: relative;
    border-bottom: 0 !important;
    transition: color .2s ease;
    white-space: nowrap;
}
.bosse-header__secondary::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.bosse-header__secondary:hover { color: var(--brand-primary); }
.bosse-header__secondary:hover::after { transform: scaleX(1); }
body header.bosse-header .bosse-header__cta,
body #bosse-header .bosse-header__cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border-radius: 999px;
    font-family: 'Work Sans', 'Montserrat', system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    transition: filter .15s, transform .15s, box-shadow .15s;
    white-space: nowrap;
}
.bosse-header__cta:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }

/* Mobile-toggle (hamburger) */
.bosse-header__toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto !important;
}
.bosse-header__toggle span {
    display: block;
    height: 2px;
    background: var(--brand-text);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
    pointer-events: none;
}
.bosse-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.bosse-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bosse-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ─── Header dropdowns (desktop) ───────────────────────────────────────── */
.bosse-header__nav-item {
    position: relative;
    display: flex;
    align-items: center;
}
.bosse-header__nav-caret {
    margin-left: 6px;
    opacity: 0.55;
    transition: transform .15s, opacity .15s;
    flex-shrink: 0;
}
.bosse-header__nav-item--has-children:hover .bosse-header__nav-caret,
.bosse-header__nav-item--has-children:focus-within .bosse-header__nav-caret {
    transform: rotate(180deg);
    opacity: 1;
}
.bosse-header__submenu {
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 280px;
    background: rgba(255, 254, 246, 0.80); /* #FFFEF6 brand-cream, transparent */
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 20px;
    box-shadow: none;
    padding: 10px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 1000;
}
.bosse-header__nav-item--has-children:hover > .bosse-header__submenu,
.bosse-header__nav-item--has-children:focus-within > .bosse-header__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.bosse-header__submenu-item {
    position: relative;
}
body header.bosse-header .bosse-header__submenu-link,
body header.bosse-header .bosse-header__submenu-link span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--brand-text) !important;
    font-family: 'Work Sans', 'Montserrat', system-ui, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0.1px !important;
    line-height: 1.4;
    color: var(--brand-text) !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
body header.bosse-header .bosse-header__submenu-link span {
    padding: 0;
    display: inline;
    background: transparent;
}
body header.bosse-header .bosse-header__submenu-link:hover,
body header.bosse-header .bosse-header__submenu-link:focus-visible {
    background: rgba(247, 147, 30, 0.12);
    color: var(--brand-primary) !important;
}
body header.bosse-header .bosse-header__submenu-link.is-active {
    background: rgba(247, 147, 30, 0.14);
    color: var(--brand-primary) !important;
}
.bosse-header__submenu-caret {
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity .15s, transform .15s;
}
.bosse-header__submenu-link:hover .bosse-header__submenu-caret {
    opacity: 1;
    transform: translateX(2px);
}
.bosse-header__submenu--nested {
    top: -10px;
    left: 100%;
    margin-top: 0;
    margin-left: 8px;
    min-width: 300px;
}

/* ─── Mega-menu panel (för nav-items med kategori-grupper) ─────────────── */
.bosse-header__nav-item--mega { position: static; }
.bosse-header__submenu--mega {
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: min(1100px, calc(100vw - 32px));
    min-width: 0;
    padding: 36px 44px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px 48px;
    margin-top: 14px;
    box-shadow: none;
}
.bosse-header__nav-item--mega:hover > .bosse-header__submenu--mega,
.bosse-header__nav-item--mega:focus-within > .bosse-header__submenu--mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.bosse-header__mega-col { min-width: 0; }
body header.bosse-header .bosse-header__mega-heading {
    display: block;
    font-family: 'Work Sans', 'Montserrat', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1.4px !important;
    text-transform: uppercase !important;
    color: var(--brand-primary) !important;
    text-decoration: none !important;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,.10);
    cursor: default;
}
.bosse-header__mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
body header.bosse-header .bosse-header__mega-link {
    display: block;
    font-family: 'Work Sans', 'Montserrat', system-ui, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--brand-text) !important;
    text-decoration: none !important;
    padding: 9px 12px;
    border-radius: 8px;
    line-height: 1.4;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.bosse-header__mega-link:hover,
.bosse-header__mega-link:focus-visible {
    background: rgba(247, 147, 30, 0.10);
    color: var(--brand-primary) !important;
    transform: translateX(3px);
}
.bosse-header__submenu-item--has-children:hover > .bosse-header__submenu--nested,
.bosse-header__submenu-item--has-children:focus-within > .bosse-header__submenu--nested {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 1023px) {
    .bosse-header__nav       { display: none; }
    .bosse-header__cta       { display: none; }
    .bosse-header__secondary { display: none; }
    .bosse-header__toggle    { display: flex; }
}
@media (max-width: 768px) {
    .bosse-header__inner   { padding: 0; min-height: 64px; }
    .bosse-header__logo img { max-height: 32px; }
}

/* ─── Mobile drawer: nested groups ─────────────────────────────────────── */
.bosse-mobile-drawer__group,
.bosse-mobile-drawer__subgroup {
    display: block;
}
.bosse-mobile-drawer__link--group,
.bosse-mobile-drawer__sublink--group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}
.bosse-mobile-drawer__link--group::-webkit-details-marker,
.bosse-mobile-drawer__sublink--group::-webkit-details-marker {
    display: none;
}
.bosse-mobile-drawer__caret {
    font-size: 12px;
    transition: transform .2s;
}
details[open] > summary > .bosse-mobile-drawer__caret {
    transform: rotate(180deg);
}
.bosse-mobile-drawer__sublink {
    display: block;
    padding: 10px 16px 10px 28px;
    color: var(--brand-text);
    font-size: 15px;
    text-decoration: none;
    line-height: 1.4;
}
.bosse-mobile-drawer__sublink:hover {
    color: var(--brand-primary);
}
.bosse-mobile-drawer__subsublink {
    display: block;
    padding: 8px 16px 8px 44px;
    color: var(--brand-text);
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
    opacity: .85;
}
.bosse-mobile-drawer__subsublink:hover {
    color: var(--brand-primary);
    opacity: 1;
}

/* ─── Bosse Mobile Drawer ──────────────────────────────────────────────── */
.bosse-mobile-drawer { position: fixed; inset: 0; z-index: 9999; }
.bosse-mobile-drawer[hidden] { display: none; }
.bosse-mobile-drawer__backdrop {
    z-index: 0;
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0; transition: opacity .3s;
}
.bosse-mobile-drawer.is-open .bosse-mobile-drawer__backdrop { opacity: 1; }
.bosse-mobile-drawer__panel {
    z-index: 1;
    position: absolute;
    top: 0; right: 0;
    width: 320px; max-width: 90vw;
    height: 100%;
    background: #FFFEF6;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}
.bosse-mobile-drawer.is-open .bosse-mobile-drawer__panel { transform: translateX(0); }
.bosse-mobile-drawer__close {
    align-self: flex-end;
    background: transparent; border: 0;
    font-size: 32px; line-height: 1;
    color: var(--brand-text);
    cursor: pointer;
    padding: 4px 12px;
}
.bosse-mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.bosse-mobile-drawer__link {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-text);
    text-decoration: none;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bosse-mobile-drawer__link:hover { color: var(--brand-primary); }
.bosse-mobile-drawer__cta {
    margin-top: 20px;
    padding: 14px 24px;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Site Footer ──────────────────────────────────────────────────────────
   Matchar .rules/design-system.md: brand-dark bg, ingen box-shadow,
   inga vita gap (body har cream-bg). */
.site-footer {
    background: var(--brand-dark, #616D61);
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Work Sans', system-ui, sans-serif;
}
.site-footer__inner {
    width: min(var(--bc-content-width, 1200px), calc(100% - 2 * var(--bc-gutter, 48px)));
    margin: 0 auto;
    padding: 80px 0 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 480px;
}
.site-footer__logo {
    display: inline-block;
    line-height: 0;
}
.site-footer__logo img {
    display: block;
    max-width: 220px;
    height: auto;
}
.site-footer__vision {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}
.site-footer__cert {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
}
.site-footer__quicklinks {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.site-footer__heading {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
}
.site-footer__quicklinks ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 40px;
}
.site-footer__quicklinks li {
    break-inside: avoid;
    margin-bottom: 14px;
}
.site-footer__quicklinks a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    transition: color .15s;
}
.site-footer__quicklinks a:hover { color: #fff; text-decoration: underline; }

.site-footer__bottom {
    width: min(var(--bc-content-width, 1200px), calc(100% - 2 * var(--bc-gutter, 48px)));
    margin: 0 auto;
    padding: 24px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
}
.site-footer__bottom-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.site-footer__legal a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}
.site-footer__legal a:hover { text-decoration: underline; }
.site-footer__social {
    display: flex;
    gap: 12px;
}
.site-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .15s;
}
.site-footer__social a:hover { background: rgba(255, 255, 255, 0.32); }
.site-footer__social svg {
    width: 18px;
    height: 18px;
}
.site-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    align-self: start;
    padding-top: 4px;
}

@media (max-width: 900px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 56px 0 32px;
    }
    .site-footer__bottom {
        grid-template-columns: 1fr;
        padding: 24px 0 32px;
    }
    .site-footer__copyright { padding-top: 0; }
}
@media (max-width: 600px) {
    .site-footer__inner { padding: 48px 0 24px; gap: 32px; }
    .site-footer__bottom { padding: 24px 0 32px; }
    .site-footer__logo img { max-width: 180px; }
    .site-footer__legal { gap: 20px; }
    .site-footer__quicklinks ul { columns: 1; }
}

/* ─── Skip-to-content (a11y) ───────────────────────────────────────────── */
.skip-to-content {
    position: absolute; left: -9999px; top: 0;
    background: var(--brand-primary); color: white;
    padding: 12px 20px;
    z-index: 10000;
    text-decoration: none;
}
.skip-to-content:focus { left: 8px; top: 8px; }

/* ─── Sticky Afa-sigill badge ──────────────────────────────────────────── */
/* Dölj originalsigillet i fotern på alla sidor (men inte i sticky-badgen) */
img[src*="samu-sigill"],
img[alt*="samu-sigill"],
img[title*="samu-sigill"] {
    display: none !important;
}
.bosse-sticky-badge img[src*="samu-sigill"] {
    display: block !important;
}
.bosse-sticky-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 80px;
    height: 80px;
    z-index: 9998;
    display: block;
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
}
.bosse-sticky-badge.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.bosse-sticky-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.bosse-sticky-badge:hover {
    transform: translateY(0) scale(1.05);
}
@media (max-width: 768px) {
    .bosse-sticky-badge {
        width: 64px;
        height: 64px;
        bottom: 16px;
        right: 16px;
    }
}


.bosse-header,.bosse-mobile-drawer{font-family:inherit}
.bosse-header__nav-item.bc-menu-open>.bosse-header__submenu,.bosse-header__nav-item:focus-within>.bosse-header__submenu{opacity:1;visibility:visible;pointer-events:auto}
#bosse-mobile-drawer[hidden]{display:none!important}
.bosse-mobile-drawer__nav{overflow-y:auto;min-height:0;overscroll-behavior:contain}
