:root {
    --ink: #3e4241;
    --olive: #484c28;
    --cream: #f3e1c1;
    --sand: #d5c7b6;
    --paper: #fbf6ec;
    --ochre: #b27628;
    --ochre-hot: #c07f2c;
    --line: #e3e3e3;
    --nav: #3e4241;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    font-family: Roboto, "Segoe UI", sans-serif;
    background: #fff;
}

button,
a {
    font-family: inherit;
}

button:focus-visible {
    outline: 2px solid var(--ochre-hot);
    outline-offset: 2px;
}

.kantine-shell,
.site {
    min-height: 100vh;
}

.site {
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    background: #fff;
}

.mast-bar,
.mast-nav,
.sheet,
.site-foot p,
.site-foot-inner,
.kantine-status,
.kantine-empty {
    width: min(80rem, calc(100% - 2.5rem));
    margin-inline: auto;
}

.mast {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
}

.mast-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 5.5rem;
    padding: 0.8rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand-signet,
.brand-word {
    display: block;
}

.brand-signet {
    height: 3.4rem;
    width: auto;
}

.brand-word {
    height: 3rem;
    width: auto;
}

.mast-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-left: auto;
}

.lang-switch {
    display: flex;
    gap: 0.35rem;
}

.lang-switch button {
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
}

.lang-switch button.is-selected {
    border-color: var(--ochre);
    background: var(--ochre);
    color: #fff;
}

.dept {
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: right;
}

.dept.is-code {
    letter-spacing: 0.42em;
}

.menu-toggle {
    display: none;
}

.mast-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.2rem 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: max(1.25rem, calc((100% - 80rem) / 2));
    background: var(--nav);
}

.nav-item {
    position: relative;
    border: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.95rem 1.35rem;
}

.nav-item:hover,
.nav-item.is-selected {
    color: #fff;
}

.nav-item.is-selected::after,
.nav-item:hover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.sheet {
    flex: 1;
    padding: 0 0 3.5rem;
}

/* App routes (webshop / lunch / …) — logo | shop title | lang + brugermenu. */
.site--app {
    min-height: 100vh;
}

/* Above shop .ws-catnav (45) / .ws-mega (40–50) so Brugermenu dropdown is not covered. */
.mast--app {
    z-index: 60;
}

.mast--app .mast-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 0;
}

.mast--app .mast-tools {
    margin-left: 0;
    flex-wrap: wrap;
}

.mast-shop-title {
    min-width: 0;
    text-align: left;
}

.mast-shop-title h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mast--app .ws-event-menu,
.mast--app .mast-user,
.mast--app .mast-return {
    flex: 0 0 auto;
}

.mast--app .ws-event-menu-top {
    white-space: nowrap;
}

/* Full-bleed workarea so catnav can match website mast-nav. */
.site--app .sheet--app {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.site--app .ws-shell--hosted {
    min-height: 0;
    height: auto;
    padding: 0;
    overflow: visible;
    background: var(--paper);
}

.site--app .sheet--app:has(.ws-shell--hosted) {
    background: var(--paper);
}

/* Avoid flex-basis:0 collapse when hosted shell height is auto. */
.site--app .ws-shell--hosted.ws-shell-shop,
.site--app .ws-shell--hosted .ws-frame-shop,
.site--app .ws-shell--hosted .ws-frame--hosted,
.site--app .ws-shell--hosted .ws-content-shop,
.site--app .ws-shell--hosted .ws-shop {
    flex: 0 1 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.site--app .ws-shell--hosted.ws-shell-shop {
    padding: 0;
}

.site--app .ws-shell--hosted .ws-frame--hosted,
.site--app .ws-shell--hosted .ws-frame-shop {
    max-width: none;
    width: 100%;
    margin: 0;
}

/* Catalog menubar — same full-bleed pattern as .mast-nav */
.site--app .ws-catnav {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: max(1.25rem, calc((100% - 80rem) / 2));
    background: var(--nav);
    border-radius: 0;
}

/* Lunch / empcard / booking secondary bars under mast — align with catnav. */
.site--app .ws-subnav,
.site--app .ws-booking-datebar {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: max(1.25rem, calc((100% - 80rem) / 2));
    border-radius: 0;
    box-sizing: border-box;
}

.site--app .ws-mega {
    margin: 0;
}

.site--app .ws-mega.is-open .ws-catnav {
    border-radius: 0;
}

/* Mega dropdown: match .ws-shop-body column; catnav bar stays full-bleed. */
.site--app .ws-mega-panel {
    left: max(1.25rem, calc((100% - 80rem) / 2));
    right: max(1.25rem, calc((100% - 80rem) / 2));
    width: auto;
    box-sizing: border-box;
}

/* Shop content column aligns with mast-bar / website content width.
   Flex unlock for hosted shop/checkout/receipt lives in webshop.css (loads after this file). */
.site--app .ws-shop-body,
.site--app .ws-shop-checkout {
    width: min(80rem, calc(100% - 2.5rem));
    margin-inline: auto;
    padding-top: 0.75rem;
    box-sizing: border-box;
}

.site--app .brand {
    text-decoration: none;
    color: inherit;
}

.brand--spacer {
    min-width: 1px;
    min-height: 1px;
}

.sheet h2,
.sheet h4 {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
}

.sheet h2 {
    font-size: 1.65rem;
    line-height: 1.35;
}

.sheet-sub,
.kantine-intro,
.kantine-muted {
    color: var(--ink);
}

.sheet-sub {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
}

.kantine-intro {
    margin: 0.9rem 0 0;
    max-width: 46rem;
    line-height: 1.55;
}

.kantine-intro :first-child {
    margin-top: 0;
}

.kantine-status,
.kantine-empty {
    flex: 1;
    padding: 2.5rem 0 3rem;
    font-size: 1.05rem;
}

.missing {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(36rem, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 4.5rem 0 5rem;
    text-align: center;
}

.missing h1 {
    margin: 0;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
}

.missing p {
    margin: 0.85rem 0 0;
    max-width: 28rem;
    color: #575c5b;
    font-size: 1.05rem;
    line-height: 1.5;
}

.missing .missing-host {
    margin-top: 1.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--paper);
    color: var(--olive);
    font-weight: 500;
}

.kantine-muted {
    margin: 1rem 0 0;
    color: #575c5b;
}

.canteen-layout {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-top: 1.15rem;
}

.canteen-choices {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.canteen-choices button {
    width: 100%;
    border: 0;
    border-left: 4px solid transparent;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    text-align: left;
    padding: 0.75rem 0.85rem;
}

.canteen-choices button.is-selected {
    border-left-color: var(--ochre);
    background: var(--cream);
    font-weight: 700;
}

.canteen-list {
    display: grid;
    gap: 0.65rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.canteen-list button {
    width: 100%;
    border: 0;
    border-left: 4px solid transparent;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    text-align: left;
    padding: 0.9rem 1rem;
}

.canteen-list button.is-selected {
    border-left-color: var(--ochre);
    background: var(--cream);
}

.kantine-hours-heading {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
}

.kantine-hour-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.55rem;
    margin: 0 0 0.35rem;
    padding: 0;
    list-style: none;
}

.kantine-hour-dates li {
    padding: 0 0.75rem;
}

.kantine-hour-dates span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kantine-hour-dates strong {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.kantine-station + .kantine-station {
    margin-top: 1.4rem;
}

.kantine-station h4 {
    margin: 1rem 0 0.55rem;
    font-size: 1.15rem;
}

.kantine-hours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.55rem;
    margin: 0;
}

.kantine-hours div {
    padding: 0.7rem 0.75rem;
    background: var(--sand);
    color: var(--ink);
}

.kantine-hours dt {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kantine-hours dd {
    margin: 0.15rem 0 0;
    font-weight: 500;
}

.kantine-hours .is-closed dd {
    font-weight: 400;
}

.week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.week-nav p {
    margin: 0;
    min-width: 5rem;
    font-weight: 700;
    text-align: center;
}

.week-nav button {
    border: 1px solid var(--ochre);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--ochre);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
}

.week-nav button:hover:not(:disabled) {
    background: var(--ochre);
    color: #fff;
}

.week-nav button:disabled {
    cursor: default;
    opacity: 0.55;
}

.kantine-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.kantine-day {
    padding: 1rem 1rem 1.1rem;
    background: var(--paper);
}

.kantine-day h4 {
    margin-bottom: 0.7rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--sand);
    font-size: 1.05rem;
    text-align: center;
}

.kantine-section {
    margin: 0.85rem 0 0.4rem;
    padding: 0.35rem 0.5rem;
    background: var(--sand);
    color: var(--ochre);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.kantine-day ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.kantine-day li + li {
    margin-top: 0.55rem;
}

.kantine-dish,
.kantine-dish-text {
    display: block;
    text-align: center;
}

.kantine-dish {
    font-weight: 500;
}

.kantine-dish-text {
    color: #575c5b;
    font-size: 0.95rem;
}

.site-foot {
    margin-top: auto;
    background: var(--nav);
    color: #fff;
}

.site-foot p,
.site-foot-inner {
    margin: 0;
    padding: 1.1rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.site-foot > p {
    margin-inline: auto;
}

.site-foot-inner {
    width: 100%;
    max-width: none;
}

.chrome-area {
    width: min(80rem, calc(100% - 2.5rem));
    margin-inline: auto;
}

.chrome-area.is-banner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.chrome-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    min-width: 0;
}

.chrome-areas,
.chrome-grid {
    width: 100%;
}

.chrome-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.chrome-slot {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: calc(var(--block-width, 100) * 1%);
    min-width: 0;
}

.chrome-slot.is-align-bottom {
    justify-content: flex-end;
}

.chrome-slot.is-centered {
    margin-left: auto;
    margin-right: auto;
}

.chrome-heading,
.chrome-text,
.chrome-text :is(p, h1, h2, h3, h4) {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.chrome-logo {
    display: block;
    max-height: 3.2rem;
    width: auto;
    max-width: 12rem;
    object-fit: contain;
}

.site-foot .chrome-heading,
.site-foot .chrome-text,
.site-foot .chrome-text :is(p, h1, h2, h3, h4, a) {
    color: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 1.6rem;
    align-items: start;
    margin-top: 1.2rem;
}

.shop-col {
    display: grid;
    gap: 1.35rem;
}

.shop-card {
    display: grid;
    grid-template-columns: 20% 80%;
    width: 100%;
    min-height: 8.125rem;
    border: 1px solid var(--sand);
    border-radius: 0.375rem;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

button.shop-card {
    padding: 0;
    font: inherit;
    appearance: none;
}

.shop-notice {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgb(62 66 65 / 0.45);
}

.shop-notice-card {
    width: min(24rem, 100%);
    padding: 1.5rem 1.6rem 1.35rem;
    border: 1px solid var(--sand);
    border-radius: 0.375rem;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 0 0 2px var(--ochre);
}

.shop-notice-card p {
    margin: 0;
    font-size: 1.15rem;
}

.shop-notice-close {
    margin-top: 1.15rem;
    padding: 0.45rem 1rem;
    border: 0;
    border-radius: 0.25rem;
    background: var(--ochre);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

.shop-card:hover {
    box-shadow: 0 0 0 2px var(--ochre);
}

.shop-card.is-wide {
    width: 100%;
    min-height: 5.125rem;
    margin-top: 1.35rem;
    grid-template-columns: 10% 90%;
}

.shop-card-icon {
    display: grid;
    place-items: center;
    background-color: var(--ochre);
    background-image: linear-gradient(180deg, rgba(238, 242, 243, 0.36), rgba(255, 255, 255, 0));
    color: #fff;
    font-size: 2.4rem;
}

.shop-card.is-wide .shop-card-icon {
    font-size: 1.85rem;
}

.shop-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 6.25rem;
    padding: 0.55rem 0.8rem 0.75rem;
    background: var(--paper);
}

.shop-card-body.has-access {
    padding-bottom: 2.15rem;
}

.shop-card.is-wide .shop-card-body {
    min-height: 5rem;
}

.shop-card-body strong {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.shop-card-text {
    font-size: 0.95rem;
    line-height: 1.35;
}

.shop-card-access {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.4rem 0.8rem;
    background: #c5ccd3;
    color: #111;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

@media (max-width: 800px) {
    .mast-bar,
    .sheet,
    .site-foot p,
    .kantine-status,
    .kantine-empty,
    .chrome-area:not(.is-banner) {
        width: min(100% - 1.5rem, 80rem);
    }

    .dept {
        font-size: 0.8rem;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        border: 0;
        background: var(--nav);
        color: #fff;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 500;
        text-align: left;
        padding: 0.9rem 0.75rem;
    }

    .mast-nav {
        display: none;
        flex-direction: column;
        padding: 0;
    }

    .mast-nav.is-open {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .nav-item.is-selected::after,
    .nav-item:hover::after {
        display: none;
    }

    .nav-item.is-selected {
        background: #252827;
    }

    .frontpage-banner-inner {
        width: min(100% - 1.5rem, 80rem);
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-card,
    .shop-card.is-wide {
        grid-template-columns: 4.5rem minmax(0, 1fr);
    }
}

.frontpage-areas {
    display: flex;
    flex-direction: column;
}

.frontpage-banner {
    display: flex;
    flex-direction: column;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: var(--frontpage-row-height, 280px);
}

.frontpage-banner.is-scaled {
    background-size: contain;
}

.frontpage-banner-inner {
    width: min(80rem, calc(100% - 2.5rem));
    margin-inline: auto;
    padding: 2.4rem 0;
}

.frontpage-banner-actions {
    display: flex;
    flex-direction: column;
    width: min(80rem, calc(100% - 2.5rem));
    margin-inline: auto;
    padding: 1.2rem 0;
}

.frontpage-banner.is-button-top .frontpage-banner-actions {
    padding-top: 2.4rem;
    padding-bottom: 0.4rem;
}

.frontpage-banner.is-button-bottom .frontpage-banner-actions {
    margin-top: auto;
    padding-top: 0.4rem;
    padding-bottom: 2.4rem;
}

.frontpage-carousel {
    position: relative;
    overflow: hidden;
    min-height: var(--frontpage-row-height, 280px);
}

.frontpage-area.frontpage-carousel {
    width: 100%;
}

.frontpage-carousel-slide,
.frontpage-carousel-stage,
.frontpage-carousel-empty {
    display: flex;
    flex-direction: column;
    min-height: var(--frontpage-row-height, 280px);
    background-color: #d9d4cc;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.frontpage-carousel-slide.is-scaled,
.frontpage-carousel-stage.is-scaled {
    background-size: contain;
}

.frontpage-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.frontpage-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.frontpage-carousel-hit {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: var(--frontpage-row-height, 280px);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
    text-decoration: none;
    cursor: pointer;
}

.frontpage-carousel-slide.is-button-top .frontpage-carousel-hit,
.frontpage-carousel-stage.is-button-top .frontpage-carousel-hit {
    justify-content: flex-start;
}

.frontpage-carousel-slide.is-button-bottom .frontpage-carousel-hit,
.frontpage-carousel-stage.is-button-bottom .frontpage-carousel-hit {
    justify-content: flex-end;
}

.frontpage-carousel-slide.is-button-top .frontpage-banner-actions,
.frontpage-carousel-stage.is-button-top .frontpage-banner-actions {
    padding-top: 2.4rem;
    padding-bottom: 0.4rem;
}

.frontpage-carousel-slide.is-button-bottom .frontpage-banner-actions,
.frontpage-carousel-stage.is-button-bottom .frontpage-banner-actions {
    margin-top: auto;
    padding-top: 0.4rem;
    padding-bottom: 2.4rem;
}

.frontpage-carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(47, 51, 50, 0.82);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.frontpage-carousel-nav:hover {
    background: rgba(47, 51, 50, 0.95);
}

.frontpage-carousel-prev {
    left: 0.75rem;
}

.frontpage-carousel-next {
    right: 0.75rem;
}

.frontpage-carousel-nav span {
    display: block;
    margin-top: -0.1rem;
}

.frontpage-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    z-index: 2;
    display: flex;
    gap: 0.45rem;
    transform: translateX(-50%);
}

.frontpage-carousel-dots button,
.frontpage-carousel-dots span {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.frontpage-carousel-dots button.is-active,
.frontpage-carousel-dots span.is-active {
    background: #fff;
}

.frontpage-carousel :is(a.frontpage-action, button.frontpage-action, span.frontpage-action) {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    box-sizing: border-box;
    padding: 0.75rem 1.15rem;
    border: 0;
    background: var(--button-color, var(--ochre-hot));
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.frontpage-carousel span.frontpage-action.is-visual {
    pointer-events: none;
    cursor: inherit;
}

.frontpage-carousel :is(a.frontpage-action, button.frontpage-action, span.frontpage-action).is-align-center {
    align-self: center;
}

.frontpage-carousel :is(a.frontpage-action, button.frontpage-action, span.frontpage-action).is-align-right {
    align-self: flex-end;
}

.frontpage-carousel :is(a.frontpage-action, button.frontpage-action, span.frontpage-action).is-outline {
    border: 2px solid var(--button-color, var(--ochre-hot));
    background: transparent;
    color: var(--button-color, var(--ochre-hot));
}

.frontpage-banner :is(a.frontpage-action, button.frontpage-action) {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    box-sizing: border-box;
    padding: 0.75rem 1.15rem;
    border: 0;
    background: var(--button-color, var(--ochre-hot));
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.frontpage-banner :is(a.frontpage-action, button.frontpage-action).is-align-center {
    align-self: center;
}

.frontpage-banner :is(a.frontpage-action, button.frontpage-action).is-align-right {
    align-self: flex-end;
}

.frontpage-banner :is(a.frontpage-action, button.frontpage-action):hover {
    background: var(--button-hover, var(--button-color, var(--ochre-hot)));
    color: #fff;
}

.frontpage-banner :is(a.frontpage-action, button.frontpage-action).is-outline {
    border: 2px solid var(--button-color, var(--ochre-hot));
    background: transparent;
    color: var(--button-color, var(--ochre-hot));
}

.frontpage-banner :is(a.frontpage-action, button.frontpage-action).is-outline:hover {
    border-color: var(--button-hover, var(--button-color, var(--ochre-hot)));
    background: transparent;
    color: var(--button-hover, var(--button-color, var(--ochre-hot)));
}

.frontpage-text-bg[style*="background-color"] {
    display: inline-block;
    max-width: 100%;
    padding: 0.35rem 0.65rem;
}

.frontpage-area-heading {
    margin: 0 0 0.45rem;
    font-size: 1.75rem;
}

.frontpage-area-text {
    margin: 0 0 1rem;
}

.frontpage-area-text :is(p, h1, h2, h3, h4, h5, h6) {
    margin: 0 0 0.45rem;
}

.frontpage-area-text table,
.frontpage-text-bg table,
.frontpage-overlay table,
.frontpage-item.is-text table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0.4rem 0 0.8rem;
}

.frontpage-area-text :is(th, td),
.frontpage-text-bg :is(th, td),
.frontpage-overlay :is(th, td),
.frontpage-item.is-text :is(th, td) {
    border: 1px solid var(--line);
    padding: 0.35rem 0.5rem;
    vertical-align: top;
    text-align: left;
}

.frontpage-area-text :is(th, td)[data-tablelite-row$="|noborder"],
.frontpage-area-text :is(th, td)[data-tablelite-header-row$="|noborder"],
.frontpage-text-bg :is(th, td)[data-tablelite-row$="|noborder"],
.frontpage-text-bg :is(th, td)[data-tablelite-header-row$="|noborder"],
.frontpage-overlay :is(th, td)[data-tablelite-row$="|noborder"],
.frontpage-overlay :is(th, td)[data-tablelite-header-row$="|noborder"],
.frontpage-item.is-text :is(th, td)[data-tablelite-row$="|noborder"],
.frontpage-item.is-text :is(th, td)[data-tablelite-header-row$="|noborder"] {
    border: none;
}

.frontpage-area-text,
.frontpage-text-bg,
.frontpage-overlay {
    position: relative;
}

.frontpage-area-text img,
.frontpage-text-bg img,
.frontpage-overlay img,
.frontpage-item.is-text img {
    max-width: 100%;
    height: auto;
}

.frontpage-area-text img[src$="#wrap=left"],
.frontpage-text-bg img[src$="#wrap=left"],
.frontpage-overlay img[src$="#wrap=left"],
.frontpage-item.is-text img[src$="#wrap=left"] {
    float: left;
    margin: 0.15rem 1rem 0.45rem 0;
}

.frontpage-area-text img[src$="#wrap=right"],
.frontpage-text-bg img[src$="#wrap=right"],
.frontpage-overlay img[src$="#wrap=right"],
.frontpage-item.is-text img[src$="#wrap=right"] {
    float: right;
    margin: 0.15rem 0 0.45rem 1rem;
}

.frontpage-area-text img[src$="#wrap=top"],
.frontpage-text-bg img[src$="#wrap=top"],
.frontpage-overlay img[src$="#wrap=top"],
.frontpage-item.is-text img[src$="#wrap=top"] {
    display: block;
    clear: both;
    float: none;
    margin: 0.6rem 0;
}

.frontpage-area-text img[src$="#wrap=center"],
.frontpage-text-bg img[src$="#wrap=center"],
.frontpage-overlay img[src$="#wrap=center"],
.frontpage-item.is-text img[src$="#wrap=center"] {
    display: block;
    clear: both;
    float: none;
    margin: 0.6rem auto;
}

.frontpage-area-text img[src$="#wrap=behind"],
.frontpage-text-bg img[src$="#wrap=behind"],
.frontpage-overlay img[src$="#wrap=behind"],
.frontpage-item.is-text img[src$="#wrap=behind"] {
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    float: none;
    margin: 0;
}

.frontpage-area-text img[src$="#wrap=front"],
.frontpage-text-bg img[src$="#wrap=front"],
.frontpage-overlay img[src$="#wrap=front"],
.frontpage-item.is-text img[src$="#wrap=front"] {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    float: none;
    margin: 0;
    pointer-events: none;
}

.frontpage-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.frontpage-slot {
    box-sizing: border-box;
    width: calc(var(--block-width, 50) * 1%);
    min-width: 0;
    padding: 0.5rem;
}

.frontpage-slot.is-centered {
    margin-left: auto;
    margin-right: auto;
}

.frontpage-item {
    min-width: 0;
    height: var(--frontpage-row-height, 280px);
    overflow: hidden;
}

.frontpage-item.is-image {
    position: relative;
    background-color: var(--nav);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.frontpage-item.is-image.is-scaled {
    background-color: transparent;
    background-size: contain;
}

.frontpage-item.is-text,
.frontpage-item.is-social,
.frontpage-item.is-news {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.frontpage-item.is-text {
    padding: 1.1rem 1.2rem;
    overflow: auto;
    background: var(--paper);
}

.frontpage-item.is-align-bottom {
    justify-content: flex-end;
}

.frontpage-item-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    overflow: hidden;
    color: #fff;
}

.frontpage-overlay-slot {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    overflow: auto;
}

.frontpage-item-overlay.is-top .frontpage-overlay-slot {
    justify-content: flex-start;
}

.frontpage-item-overlay.is-middle .frontpage-overlay-slot {
    justify-content: center;
}

.frontpage-item-overlay.is-bottom .frontpage-overlay-slot {
    justify-content: flex-end;
}

.frontpage-overlay {
    align-self: stretch;
    max-width: 100%;
    line-height: 1.35;
}

.frontpage-overlay :is(p, h1, h2, h3, h4, h5, h6),
.frontpage-item.is-text :is(p, h1, h2, h3, h4, h5, h6) {
    margin: 0 0 0.35rem;
}

.frontpage-overlay :is(p, h1, h2, h3, h4, h5, h6):last-child,
.frontpage-item.is-text :is(p, h1, h2, h3, h4, h5, h6):last-child {
    margin-bottom: 0;
}

.frontpage-item :is(a.frontpage-action, button.frontpage-action) {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    box-sizing: border-box;
    padding: 0.75rem 1.15rem;
    border: 0;
    background: var(--button-color, var(--ochre-hot));
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.frontpage-item :is(a.frontpage-action, button.frontpage-action).is-align-center {
    align-self: center;
}

.frontpage-item :is(a.frontpage-action, button.frontpage-action).is-align-right {
    align-self: flex-end;
}

.frontpage-item :is(a.frontpage-action, button.frontpage-action):hover {
    background: var(--button-hover, var(--button-color, var(--ochre-hot)));
    color: #fff;
}

.frontpage-item :is(a.frontpage-action, button.frontpage-action).is-outline {
    border: 2px solid var(--button-color, var(--ochre-hot));
    background: transparent;
    color: var(--button-color, var(--ochre-hot));
}

.frontpage-item :is(a.frontpage-action, button.frontpage-action).is-outline:hover {
    border-color: var(--button-hover, var(--button-color, var(--ochre-hot)));
    background: transparent;
    color: var(--button-hover, var(--button-color, var(--ochre-hot)));
}

@media (max-width: 720px) {
    .canteen-layout {
        grid-template-columns: 1fr;
    }

    .frontpage-slot {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.frontpage-item.is-text .frontpage-text-bg.is-together :is(p, h1, h2, h3, h4, h5, h6, li),
.frontpage-item.is-text .frontpage-text-bg.has-line-gap :is(p, h1, h2, h3, h4, h5, h6, li),
.chrome-text.is-together :is(p, h1, h2, h3, h4, h5, h6, li),
.chrome-text.has-line-gap :is(p, h1, h2, h3, h4, h5, h6, li) {
    margin: 0 0 var(--line-gap, 0px);
    padding: 0;
    line-height: 1.2;
}

.frontpage-item.is-text .frontpage-text-bg.is-together :is(p, h1, h2, h3, h4, h5, h6, li):last-child,
.frontpage-item.is-text .frontpage-text-bg.has-line-gap :is(p, h1, h2, h3, h4, h5, h6, li):last-child,
.chrome-text.is-together :is(p, h1, h2, h3, h4, h5, h6, li):last-child,
.chrome-text.has-line-gap :is(p, h1, h2, h3, h4, h5, h6, li):last-child {
    margin-bottom: 0;
}

.chrome-text {
    padding-inline: 0.15rem;
}

.frontpage-item.is-social {
    overflow: visible;
    background: transparent;
}

.frontpage-item.is-news {
    overflow: visible;
    background: transparent;
    width: 100%;
}

.news-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-toolbar {
    display: flex;
    justify-content: flex-end;
}

.news-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: min(100%, 16rem);
}

.news-search input {
    width: 100%;
    padding: 0.45rem 2.4rem 0.45rem 0.7rem;
    border: 1px solid #d0d0d0;
    border-radius: 0.2rem;
    color: var(--ink);
    background: #fff;
}

.news-search-icon {
    position: absolute;
    right: 0.15rem;
    top: 0.15rem;
    bottom: 0.15rem;
    width: 2rem;
    border-radius: 0.15rem;
    background: var(--ochre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E") center / 1rem no-repeat;
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.9rem;
}

.frontpage-item.is-news .news-card-grid,
.news-card-grid.is-fixed-cols {
    grid-template-columns: repeat(var(--news-columns, 3), minmax(0, 1fr));
    width: 100%;
}

.news-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.frontpage-item.is-news .news-card {
    width: var(--news-card-width, 100%);
    max-width: 100%;
    box-sizing: border-box;
}

article.news-card {
    cursor: default;
}

.news-card img,
.news-card-placeholder {
    width: 100%;
    height: 10.5rem;
    object-fit: cover;
    display: block;
    background: #d7dbdf;
}

.frontpage-item.is-news .news-card-grid.has-height .news-card img,
.frontpage-item.is-news .news-card-grid.has-height .news-card-placeholder {
    height: auto;
    aspect-ratio: 100 / var(--news-card-height);
}

.news-card-text {
    padding: 0.75rem 0.85rem 0.95rem;
}

.news-card-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f1f1f;
}

.news-card-text p {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #6b6b6b;
}

.news-detail,
.info-detail {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
}

.news-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
}

.info-detail-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0.75rem 0 0.35rem;
}

.news-back {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: var(--ochre);
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.info-print {
    border: 0;
    border-radius: 0.35rem;
    padding: 0.55rem 1.15rem;
    background: var(--ochre);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.info-print:hover {
    background: var(--ochre-hot);
}

.news-hero {
    position: relative;
    width: 100%;
    background: #3e4241;
    min-height: 11rem;
}

.news-hero img,
.news-hero-placeholder {
    width: 100%;
    height: 13.75rem;
    max-height: 22rem;
    object-fit: cover;
    display: block;
    background: #d7dbdf;
}

.news-hero-placeholder {
    min-height: 11rem;
}

.news-hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0.9rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.news-hero-text h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.news-hero-text p {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.news-hero-text .news-hero-date {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    opacity: 0.92;
}

.news-detail-pdf {
    display: block;
    width: 100%;
    height: 70vh;
    min-height: 36rem;
    margin-top: 0.75rem;
    border: 0;
    background: #fff;
}

.news-detail-body {
    position: relative;
    padding: 0.85rem 0 0;
    line-height: 1.5;
}

.news-detail-body::after {
    content: "";
    display: table;
    clear: both;
}

.news-detail-body :is(p, h1, h2, h3, h4, h5, h6) {
    margin: 0 0 0.45rem;
}

.news-detail-body table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0.4rem 0 0.8rem;
}

.news-detail-body :is(th, td) {
    border: 1px solid var(--line);
    padding: 0.35rem 0.5rem;
    vertical-align: top;
    text-align: left;
}

.news-detail-body :is(th, td)[data-tablelite-row$="|noborder"],
.news-detail-body :is(th, td)[data-tablelite-header-row$="|noborder"] {
    border: none;
}

.news-detail-body table[style*="text-align: center"],
.news-detail-body table[style*="text-align:center"] {
    margin-left: auto;
    margin-right: auto;
}

.news-detail-body table[style*="text-align: right"],
.news-detail-body table[style*="text-align:right"] {
    margin-left: auto;
    margin-right: 0;
}

.news-detail-body table[style*="text-align: left"],
.news-detail-body table[style*="text-align:left"] {
    margin-left: 0;
    margin-right: auto;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
}

.news-detail-body img[src*="wrap=left"] {
    float: left;
    margin: 0.15rem 1rem 0.45rem 0;
}

.news-detail-body img[src*="wrap=right"] {
    float: right;
    margin: 0.15rem 0 0.45rem 1rem;
}

.news-detail-body img[src*="wrap=top"] {
    display: block;
    clear: both;
    float: none;
    margin: 0.6rem 0;
}

.news-detail-body img[src*="wrap=center"] {
    display: block;
    clear: both;
    float: none;
    margin: 0.6rem auto;
}

.news-detail-body a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 720px) {
    .frontpage-item.is-news .news-card-grid {
        grid-template-columns: 1fr;
    }
}

.social-block {
    color: inherit;
}

.social-heading {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    width: 2.55rem;
    height: 2.55rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    background: #fff;
    color: #2f3332;
}

.social-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: currentColor;
}

.site-foot .social-heading {
    color: #fff;
}

.frontpage-text-bg a,
.frontpage-area-text a,
.frontpage-overlay a,
.chrome-text a {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media print {
    .mast,
    .menu-toggle,
    .mast-nav,
    .site-foot,
    .shop-notice,
    .info-detail-actions,
    .news-detail-actions {
        display: none !important;
    }

    .site,
    .sheet {
        background: #fff !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }

    .info-detail,
    .info-detail-print {
        max-width: none;
        gap: 0.75rem;
    }

    .news-hero {
        background: transparent;
        min-height: 0;
    }

    .news-hero img,
    .news-hero-placeholder {
        height: auto;
        max-height: none;
        break-inside: avoid;
    }

    .news-hero-text {
        position: static;
        padding: 0.5rem 0 0;
        color: #1f1f1f;
        background: none;
    }
}

/* Blazor reconnect: invisible during short reconnect; show only hard failures */
#components-reconnect-modal.kantine-reconnect {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

#components-reconnect-modal.kantine-reconnect.components-reconnect-show,
#components-reconnect-modal.kantine-reconnect.components-reconnect-retrying,
#components-reconnect-modal.kantine-reconnect.components-reconnect-paused,
#components-reconnect-modal.kantine-reconnect.components-reconnect-hide {
    display: none !important;
}

#components-reconnect-modal.kantine-reconnect.components-reconnect-failed,
#components-reconnect-modal.kantine-reconnect.components-reconnect-rejected {
    display: flex !important;
}

.kantine-reconnect__panel {
    background: #fff;
    color: #1f1f1f;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    text-align: center;
    max-width: 22rem;
}

.kantine-reconnect__panel p {
    margin: 0 0 1rem;
    font-family: Roboto, sans-serif;
    font-size: 1rem;
}

.kantine-reconnect__panel button {
    font-family: Roboto, sans-serif;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    background: #f5f5f5;
}
