.ks-huvudmeny {
    position: relative;
    width: 100%;
    min-width: min-content;
    padding: 0;
    margin: 0;
}

.ks-huvudmeny__top {
    position: relative;
    display: flex;

    width: 100%;
    min-width: min-content;
    padding: 0;
    margin: 0;

    font-family: 'RelatoSans Regular';
    font-weight: normal;
    font-size: 1rem;
    line-height: 1.3;

    color: #fff;
    background-color: #b3210f;
}

.ks-huvudmeny__top__logo {
    padding: 0;
    margin: 1em 1.25em;
    height: 4.8rem;
}

.ks-huvudmeny__top__logo img {
    height: 100%;
}

.ks-huvudmeny__top__list {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.ks-huvudmeny__top__item {
    position: relative;

    display: flex;
    align-items: center;

    padding: 0;
    margin: 0;
}

.ks-huvudmeny__top__link {
    position: relative;

    padding: 0;
    margin: 0;

    text-decoration: none;
    text-align: center;
    color: #fff;

    transition: color 0.3s ease;
}

.ks-huvudmeny__top__link:focus {
    outline: none;
}

.ks-huvudmeny__top__link span {
    white-space: nowrap;
    
    /* IE/Edge fallback */
    text-decoration: none;
    text-decoration: underline transparent;
    transition: text-decoration 0.3s ease;
}

.ks-huvudmeny__top__link:focus span,
.ks-huvudmeny__top__link:hover span {
    /* IE/Edge fallback */
    text-decoration: underline;
    text-decoration: underline #fff;
}

.ks-huvudmeny__top__item--active .ks-huvudmeny__top__link {
    color: #e3d7b0;
}

.ks-huvudmeny__top__item--active .ks-huvudmeny__top__link:focus span,
.ks-huvudmeny__top__item--active .ks-huvudmeny__top__link:hover span {
    text-decoration: underline #e3d7b0;
}

.ks-huvudmeny__top__icon {
    margin-right: 0.25em;
}

.ks-huvudmeny__top__list--primary {
    font-family: 'RelatoSans Bold';
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.1;

    margin-right: 1em;
}

.ks-huvudmeny__top__list--primary .ks-huvudmeny__top__item {
    padding: 0 1em;
}

.ks-huvudmeny__top__list--primary .ks-huvudmeny__top__item--active::before {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    -webkit-clip-path: url(#ks-huvudmeny__clip-path);
    clip-path: url(#ks-huvudmeny__clip-path);
    background-color: #790402;
}

/* fix clip-path glitch */
.ks-huvudmeny__top__list--primary .ks-huvudmeny__top__item--active::after {
    position: absolute;
    content: '';
    height: 1px;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #790402;
}

.ks-huvudmeny__top__list--secondary {
    margin-left: auto;
    margin-right: 1em;
}

.ks-huvudmeny__top__list--secondary .ks-huvudmeny__top__item {
    padding: 0;
    margin: 0;
    margin-right: 2em;
}

.ks-huvudmeny__top__list--secondary .ks-huvudmeny__top__item:last-child {
    margin-right: 0;
}

.ks-huvudmeny__sub {
    width: 100%;
    min-width: min-content;

    padding: 0;
    margin: 0;

    font-family: 'RelatoSans Bold';
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3;

    color: #fff;
    background-color: #790402;
}

.ks-huvudmeny__sub__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 1.25em;
}

.ks-huvudmeny__sub__item {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    margin-right: 2em;
    padding: 1em 0;
}

.ks-huvudmeny__sub__item:last-child {
    margin-right: 0;
}

.ks-huvudmeny__sub__item--active::after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: #e3d7b0;
    content: '';
}

.ks-huvudmeny__sub__link {
    text-decoration: none;
    text-align: center;
    color: #fff;
}

.ks-huvudmeny__sub__link:focus {
    outline: none;
}

.ks-huvudmeny__sub__link span {
    /* IE/Edge fallback */
    text-decoration: none;
    text-decoration: underline transparent;
    transition: text-decoration 0.3s ease;
}

.ks-huvudmeny__sub__link:focus span,
.ks-huvudmeny__sub__link:hover span {
    /* IE/Edge fallback */
    text-decoration: underline;
    text-decoration: underline #fff;
}

.ks-huvudmeny__sub__item--active .ks-huvudmeny__sub__link {
    color: #e3d7b0;
}

.ks-huvudmeny__sub__item--active .ks-huvudmeny__sub__link:focus span,
.ks-huvudmeny__sub__item--active .ks-huvudmeny__sub__link:hover span {
    text-decoration: underline #e3d7b0;
}

@media only screen and (max-width: 1180px) {

    .ks-huvudmeny__top__list--secondary .ks-huvudmeny__top__icon {
        font-size: 1.25rem;
    }

    .ks-huvudmeny__top__list--secondary .ks-huvudmeny__top__link:focus,
    .ks-huvudmeny__top__list--secondary .ks-huvudmeny__top__link:hover {
        outline: none;
        color: #e3d7b0;
    }

    .ks-huvudmeny__top__list--secondary .ks-huvudmeny__top__item span {
        display: none;
    }
}

@media only screen and (min-width: 1480px) {

    .ks-huvudmeny__top,
    .ks-huvudmeny__sub {
        font-size: 1.25rem;
    }

    .ks-huvudmeny__top__logo {
        height: 6rem;
    }

    .ks-huvudmeny__top__list--primary {
        font-size: 1.6rem;
    }
}
