html,
body {
    margin: 0;
    background: #fffdf9;
    color: #424242;
}

a {
    color: inherit;
}

.pub-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 193, 7, 0.16), rgba(255, 253, 249, 0) 340px),
        #fffdf9;
}

.pub-appbar {
    border-bottom: 1px solid rgba(154, 23, 32, 0.12);
}

.pub-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #616161;
    font-family: "Times New Roman", Times, serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    text-decoration: none;
}

.pub-brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pub-drawer {
    border-right: 1px solid rgba(154, 23, 32, 0.10);
}


.pub-nav__home {
    margin-bottom: 6px;
}

.pub-program-menu {
    margin: 0 8px 12px;
    padding: 12px;
    border-color: rgba(154, 23, 32, 0.34);
    background: #f0ece8;
}

.pub-program-menu__title {
    color: #9a1720;
    text-align: center;
}

.pub-program-menu__product {
    display: block;
    margin-top: 2px;
    color: #514b46;
    text-align: center;
}

.pub-program-menu__links {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.pub-program-menu__links:first-child {
    margin-top: 0;
}

.pub-program-menu .pub-program-menu__link {
    justify-content: flex-start;
    background: #fff;
    text-transform: none;
}

.pub-program-menu__link .mud-button-label {
    justify-content: flex-start;
}

.pub-nav__group {
    border-top: 1px solid rgba(154, 23, 32, 0.08);
}

.pub-nav__link {
    margin: 0 8px;
    width: calc(100% - 16px);
    border-radius: 6px;
}

.pub-nav__group .mud-navmenu .mud-nav-item .pub-nav__link {
    padding-left: 12px;
    padding-inline: 12px;
}

.pub-nav__link .mud-nav-link-text,
.pub-nav__home .mud-nav-link-text {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.pub-nav__link .mud-icon-root,
.pub-nav__home .mud-icon-root {
    flex: 0 0 auto;
    margin-top: 2px;
}

.pub-nav__link--section-root {
    font-weight: 700;
}

.pub-nav__link--child {
    color: #5d5853;
}


@media (max-width: 600px) {
    .pub-brand span {
    font-size: 18px;
    }
}

/* Undvik att drawern animeras om vid sektionsbyte på bred skärm. */
@media (min-width: 960px) {
    .mud-drawer.mud-drawer-responsive.mud-drawer-pos-left.pub-drawer.mud-drawer--open:not(.mud-drawer--initial) {
        transition: none;
    }
}
