.marre-idag {
    --marre-wine: #8d044f;
    --marre-tint: #f8e9ef;
    --marre-border: #e8d8df;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    color: #2d2027;
    line-height: 1.5;
}

.marre-idag .marre-idag__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.marre-idag a.marre-idag__action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-weight: 600;
    padding: .25rem .8rem;
    border: 1px solid var(--marre-wine);
    border-radius: .55rem;
    color: var(--marre-wine);
    background: #fff;
    text-decoration: none;
}

.marre-idag a.marre-idag__action:hover,
.marre-idag a.marre-idag__action:focus-visible {
    background: var(--marre-tint);
    text-decoration: underline;
}

.marre-idag .marre-idag__card {
    margin: 0 0 .85rem;
    border: 1px solid var(--marre-border);
    border-radius: .8rem;
    overflow: hidden;
    background: #fff;
}

.marre-idag .marre-idag__card h2 {
    margin: 0;
    padding: .7rem .9rem;
    color: var(--marre-wine);
    background: var(--marre-tint);
    font-size: 1.125rem;
    line-height: 1.35;
}

.marre-idag .marre-idag__card h3 {
    margin: .75rem .9rem .25rem;
    color: var(--marre-wine);
    font-size: 1rem;
}

.marre-idag .marre-idag__card p {
    margin: .75rem .9rem;
}

.marre-idag .marre-idag__card ul {
    margin: 0;
    padding: 0 .9rem;
    list-style: none;
}

.marre-idag .marre-idag__card li {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: .5rem;
    padding: .55rem 0;
    margin: 0;
    list-style: none;
}

.marre-idag .marre-idag__card li + li {
    border-top: 1px solid var(--marre-border);
}

.marre-idag .marre-idag__time {
    color: var(--marre-wine);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.marre-idag .marre-idag__jour {
    display: flex;
    gap: .6rem;
    margin: 0 0 .85rem;
    padding: .65rem .9rem;
    border-radius: .6rem;
    color: var(--marre-wine);
    background: var(--marre-tint);
}

.marre-idag .marre-idag__card dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .35rem .7rem;
    margin: 0;
    padding: .25rem .9rem .8rem;
}

.marre-idag .marre-idag__card dt,
.marre-idag .marre-idag__card dd {
    margin: 0;
}

.marre-idag .marre-idag__card dt {
    font-weight: 650;
}

.marre-idag .marre-idag__program {
    display: grid;
    gap: .85rem;
    margin-bottom: .85rem;
}

.marre-idag .marre-idag__program > .marre-idag__card,
.marre-idag .marre-idag__program > .marre-idag__jour {
    margin-bottom: 0;
}

.marre-idag .marre-idag__card h2 {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.marre-idag .marre-idag__icon,
.marre-bottom-nav .marre-idag__icon {
    flex: 0 0 1.05em;
    height: 1.05em;
    background: currentColor;
    -webkit-mask: var(--marre-icon) center / contain no-repeat;
    mask: var(--marre-icon) center / contain no-repeat;
}

.marre-idag .marre-idag__icon--calendar,
.marre-bottom-nav .marre-idag__icon--calendar {
    --marre-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4m8-4v4'/%3E%3C/svg%3E");
}

.marre-idag .marre-idag__icon--meal,
.marre-bottom-nav .marre-idag__icon--meal {
    --marre-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v6a3 3 0 0 0 6 0V3M6 3v18M20 3c-3 0-5 3-5 6v4h5m0-10v18'/%3E%3C/svg%3E");
}

.marre-idag .marre-idag__days {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    flex: 1 0 100%;
    align-items: center;
    gap: .35rem;
    text-align: center;
}

.marre-idag a.marre-idag__arrow {
    display: grid;
    place-items: center;
    min-height: 44px;
    border: 1px solid var(--marre-border);
    border-radius: .55rem;
    background: var(--marre-tint);
    color: var(--marre-wine);
    font-size: 1.75rem;
    line-height: 1;
    text-decoration: none;
}

.marre-idag a.marre-idag__today,
.marre-idag .marre-idag__jour a {
    color: var(--marre-wine);
    text-decoration: underline;
}

.marre-idag .marre-idag__jour {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: .5rem;
}

.marre-idag .marre-idag__jour strong {
    display: flex;
    align-items: center;
    gap: .2rem;
}

.marre-idag .marre-idag__jour strong .marre-idag__icon {
    flex-basis: .85em;
    height: .85em;
}

.marre-idag .marre-idag__jour-name {
    color: #211e20;
}

.marre-idag .marre-idag__jour a {
    display: inline-block;
    margin-left: .35rem;
    white-space: nowrap;
}

.marre-idag .marre-idag__icon--phone {
    --marre-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 3h3l2 5-2 2a13 13 0 0 0 5 5l2-2 5 2v3a3 3 0 0 1-3 3A17 17 0 0 1 3 6a3 3 0 0 1 3-3z'/%3E%3C/svg%3E");
}

.marre-idag .marre-idag__time {
    overflow-wrap: anywhere;
}

.marre-vecka .marre-vecka__notice {
    padding: .65rem .9rem;
    border-radius: .6rem;
    background: var(--marre-tint);
    color: var(--marre-wine);
}

.marre-vecka .marre-idag__card h2 a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.marre-vecka .marre-vecka__today {
    margin-left: auto;
    padding: .15rem .5rem;
    border-radius: .4rem;
    background: #fff;
    font-size: .8rem;
}

.marre-idag .marre-idag__jour,
.marre-vecka .marre-vecka__notice,
.marre-idag .marre-idag__weekend {
    border: 1px solid var(--marre-border);
    border-radius: .6rem;
    background: #fff;
}

.marre-vecka .marre-idag__card h2 {
    flex-wrap: wrap;
}

.marre-vecka .marre-vecka__jour {
    margin-left: auto;
    color: #2d2027;
    font-size: .8rem;
    font-weight: 400;
}

.marre-vecka .marre-vecka__today + .marre-vecka__jour {
    margin-left: 0;
}

.marre-vecka .marre-vecka__weekend h2 {
    background: #fff;
}

.marre-idag .marre-idag__weekend {
    padding: .65rem .9rem;
}

.marre-idag .marre-idag__weekend > strong {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--marre-wine);
}

.marre-idag .marre-idag__weekend dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .25rem .65rem;
    margin: .4rem 0 0;
}

.marre-idag .marre-idag__weekend dd {
    margin: 0;
}

.marre-idag .marre-idag__weekend a {
    color: var(--marre-wine);
    text-decoration: underline;
}

.marre-bottom-nav-spacer {
    height: 4.5rem;
}

.marre-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    gap: .15rem;
    padding: .3rem max(.35rem, env(safe-area-inset-right, 0px))
         .3rem max(.35rem, env(safe-area-inset-left, 0px));
    border-top: 1px solid #e8d8df;
    background: #fff;
    color: #8d044f;
}

.marre-bottom-nav > a,
.marre-bottom-nav > details {
    flex: 1 1 0;
    min-width: 0;
    max-width: 8rem;
}

.marre-bottom-nav > a,
.marre-bottom-nav summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-height: 48px;
    border-radius: .55rem;
    color: #8d044f;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.marre-bottom-nav summary::-webkit-details-marker {
    display: none;
}

.marre-bottom-nav > a[aria-current="page"],
.marre-bottom-nav details[open] summary {
    background: #f8e9ef;
}

.marre-bottom-nav .marre-idag__icon {
    flex: none;
    width: 1.2rem;
    height: 1.2rem;
}

.marre-bottom-nav .marre-idag__icon--week {
    --marre-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h8'/%3E%3C/svg%3E");
}

.marre-bottom-nav__dots {
    height: 1.2rem;
    line-height: 1.2rem;
    letter-spacing: .12em;
}

.marre-bottom-nav__more {
    position: absolute;
    right: .55rem;
    bottom: calc(100% + .5rem);
    min-width: 12rem;
    padding: .25rem;
    border: 1px solid #e8d8df;
    border-radius: .7rem;
    box-shadow: 0 .2rem 1rem #2d202722;
    background: #fff;
}

.marre-bottom-nav__more a {
    display: block;
    padding: .7rem;
    color: #8d044f;
}

.marre-bottom-nav__more {
    width: min(22rem, calc(100vw - 1.1rem));
    box-sizing: border-box;
    max-height: 65vh;
    overflow-y: auto;
}

.marre-bottom-nav__more ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.marre-bottom-nav__more .sub-menu {
    padding-inline-start: .85rem;
}

.marre-bottom-nav__more li {
    margin: 0;
}

@media (max-width: 600px) {
    .marre-ios-standalone .tc-page > header.navbar:has(> .tc-logo) {
        box-sizing: content-box;
        border-top: 28px solid #8d044f;
    }

    .marre-ios-standalone .tc-page > header.navbar:has(> .tc-logo) + .inner::before {
        content: "";
        display: block;
        height: 28px;
    }
}

.marre-ios-standalone .marre-bottom-nav {
    padding-bottom: calc(.3rem + env(safe-area-inset-bottom, 0px) + 12px);
}

.marre-ios-standalone .marre-bottom-nav-spacer {
    height: calc(4.5rem + env(safe-area-inset-bottom, 0px) + 12px);
}

/* Keep the theme's install prompt above the fixed navigation. */
#addToHomeScreen,
.ath-container,
.ath-viewport {
    z-index: 1001 !important;
}
