:root {
    /* Brand colors */
    --primary-color:     #0c08de; /* Night Shift Blue  */
    --primary-color-rgb: 12, 8, 222;  /* same as above, for use in rgba() */
    --primary-color-dark: #0906ad;    /* darkened primary for hover states */
    --secondary-color:   #de08a5; /* Night Shift Pink  */
    --accent-color:      #ad08de; /* Night Shift Purple */

    /* Site chrome */
    --standard-background:            black;
    --standard-background-text-color: white;
    --alternate-background:           var(--primary-color);
    --alternate-background-text-color: white;
    --light-background:       #cfcdfd; /* used for TOC, dropdowns */
    --light-background-color: black;

    /* TOC sidebar */
    --toc-bg:       var(--light-background);
    --toc-text:     var(--light-background-color);
    --toc-border:   rgba(0, 0, 0, 0.2);
    --toc-hover-bg: rgba(0, 0, 0, 0.08);

    /* Focus ring */
    --focus-ring-color: var(--primary-color);

    /* Bootstrap overrides */
    --bs-primary:   var(--primary-color);
    --bs-secondary: var(--secondary-color);
    --bs-success:  #28a745;
    --bs-danger:   #dc3545;
    --bs-warning:  #ffc107;
    --bs-info:     #17a2b8;
    --bs-light:    #f8f9fa;
    --bs-dark:     #343a40;
    --bs-navbar-color:          white;
    --bs-navbar-hover-color:    #dade08;
    --bs-navbar-disabled-color: #cfcefd;

    /* Dark form theme */
    --form-container-bg:    rgba(15, 18, 35, 0.6);
    --fieldset-bg:          #1a1d2e;
    --fieldset-border:      rgba(12, 8, 222, 0.5);
    --fieldset-border-top:  rgba(12, 8, 222, 0.8);
    --form-text-color:      #ffffff;
    --form-label-color:     #ffffff;
    --form-muted-color:     rgba(255, 255, 255, 0.88);
    --input-bg:             rgba(10, 12, 25, 0.8);
    --input-border:         rgba(255, 255, 255, 0.1);
    --input-focus-border:   var(--primary-color);
    --input-focus-glow:     rgba(12, 8, 222, 0.3); /* primary at 30% opacity */
}

    /* Dark theme form styling - applies to all forms across the site */
    .ns-application .form-container {
        background: transparent;
        border: none;
        color: var(--form-text-color) !important;
    }

    .ns-application fieldset {
        background: var(--fieldset-bg);
        border: 1px solid var(--fieldset-border);
        border-top: 2px solid var(--fieldset-border-top);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 
                    0 -1px 8px rgba(12, 8, 222, 0.2);
        color: var(--form-text-color) !important;
        position: relative;
    }

    .ns-application fieldset::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
        opacity: 0.6;
    }

    .ns-application .form-control,
    .ns-application input,
    .ns-application select,
    .ns-application textarea {
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        color: var(--form-text-color) !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .ns-application .form-control:focus,
    .ns-application input:focus,
    .ns-application select:focus,
    .ns-application textarea:focus {
        background: rgba(10, 12, 25, 0.95);
        border-color: var(--input-focus-border);
        box-shadow: 0 0 0 3px var(--input-focus-glow);
        color: var(--form-text-color) !important;
        outline: none;
    }

    .ns-application .form-control::placeholder,
    .ns-application input::placeholder,
    .ns-application textarea::placeholder {
        color: var(--form-muted-color);
        opacity: 0.8;
    }

    /* Select dropdown styling */
    .ns-application select option {
        background: #1a1d2e;
        color: white;
    }

.alternateColors {
    background: var(--alternate-background);
    color: var(--alternate-background-text-color);
}

.carousel-item {
    width: 100%;
    margin: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    position: absolute; /* Remove non-active items from the flow */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0; /* Hide non-active items */
    visibility: hidden; /* Prevent interaction with non-active items */
    font-weight: bold;
    text-align: center;
}

    .carousel-item.active {
        position: relative; /* Active item is part of the flow */
        opacity: 1; /* Make active item visible */
        visibility: visible; /* Allow interaction with active item */
    }

html {
    font-size: 14px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--focus-ring-color);
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

    body._heroLayout {
        background: var(--standard-background);
        color: var(--standard-background-text-color);
        --bs-secondary-color: rgba(255, 255, 255, 0.65);
    }

    body._layout {
        background: var(--standard-background);
        color: var(--standard-background-text-color);
        --bs-secondary-color: rgba(255, 255, 255, 0.65);
    }

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.hidden {
    display: none !important;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.flex-left-right {
    display: flex;
    align-items: center; /* Adjust vertical alignment as needed */
    width: 100%;
}

    .flex-left-right > :first-child {
        margin-right: auto; /* Pushes all other elements to the end, aligning this first child to the left */
    }

    .flex-left-right > :last-child {
        margin-left: auto; /* Pushes this element to the right side of its flex container */
    }

.flex-left-center-right {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

    .flex-left-center-right > :nth-child(1) {
        margin-right: auto;
    }

    .flex-left-center-right > :nth-child(2) {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .flex-left-center-right > :nth-child(3) {
        margin-left: auto;
    }


nav {
    margin: 0;
}

.pageContainer {
    margin-top: 1rem;
}

footer {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-areas: "left center right";
    align-items: center; /* vertical centering */
    width: 100%;
    gap: 1rem; /* optional spacing */
}

    footer div.footer-section {
        /*
        style="display:flex;flex-direction:row;gap:2rem"
            */
    }

    footer > .left {
        padding-left: 1rem;
        grid-area: left;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }

    footer > .center {
        padding-left: 1rem;
        padding-right: 1rem;
        grid-area: center;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap:1.5rem;
    }

    footer > .right {
        padding-right: 1rem;
        grid-area: right;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
    }


@media (max-width: 768px) {
    footer {
        line-height: initial !important;
        grid-template-columns: 1fr;
        grid-template-areas:
            "center" /* first row: middle panel */
            "left" /* second row: left panel */
            "right"; /* third row: right panel */
        padding: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

        footer > .left {
            padding: 0;
            justify-content: center;
        }

        footer > .center {
            padding: 0;
            justify-content: center;
        }

        footer > .right {
            padding: 0;
            justify-content: center;
        }
}

@media (max-width: 992px) {

    span.iconBarLabel {
        display: none;
    }
}

div.social-follow {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

    div.social-follow img {
        width: 40px;
    }

    div.social-follow i {
        display: none;
    }

div.delivery {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

    div.delivery img {
        width: 40px;
    }

calendarMonth {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 equal columns */
}

    calendarMonth monthHeader {
        grid-column: span 7; /* Span all 7 columns */
        text-align: center;
        font-size: 1.5em;
        font-weight: bold;
        padding: 10px;
        background-color: var(--primary-color);
        color: white;
        border-radius: 5px;
    }

    calendarMonth dayHeader {
        color: var(--primary-color);
        font-weight: bold;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        font-size: 1.2em;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        border-radius: 3px;
    }

    calendarMonth day {
        color: var(--primary-color);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: .5rem;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        border-radius: 3px;
    }

        calendarMonth day openinghours[atypical="0"] {
            display:none;
        }

        calendarMonth title {
            display: initial;
        }

    calendarMonth shortTitle {
        display: none;
    }

    calendarMonth day[ispriormonth="1"], calendarMonth day[isnextmonth="1"] {
        color: #aaa; /* Light gray text */
        background-color: #f5f5f5; /* Slightly dimmed background */
        opacity: 0.6; /* Make it less prominent */
        pointer-events: none; /* Optional: Prevent interactions */
    }

    calendarMonth day[isDayPast="1"] dayNumber {
        text-decoration: line-through;
    }

    calendarMonth dayNumber {
        width: 100%;
        text-align: right;
        color: var(--primary-color);
    }

    calendarMonth openingHours {
        width: 100%;
        text-align: center;
        color: var(--primary-color);
    }

        calendarMonth openingHours closed {
            color: red;
        }

        /*
    calendarMonth openingHours opensAt::before {
        content: "Hours: "
    }
    */

        calendarMonth openingHours opensAt::after {
            content: " - "
        }

    calendarMonth day dayName {
        display: none;
    }

    calendarMonth day event {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    calendarMonth day eventType {
        display: none;
    }

    calendarMonth day event img {
        max-width: 144px;
        max-height: 144px;
        _min-width: 144px;
        min-height: 144px;
    }

    calendarMonth day event .msg {
        border: black solid 2px;
        background-color: var(--alternate-background);
        color: var(--alternate-background-text-color);
        max-width: 144px;
        max-height: 144px;
        min-width: 144px;
        min-height: 144px;
        font-weight: bold;
        text-align: center;
        display: flex; /* Enable Flexbox */
        justify-content: center; /* Center content horizontally */
        align-items: center; /* Center content vertically */
        overflow: hidden; /* Clip the text if it overflows the container */
        /* white-space: nowrap;  Prevent text from wrapping to the next line */
        /* text-overflow: ellipsis; Optional: Add ellipsis (...) to indicate clipped text */
        font-size: calc(100%); /* Dynamically adjust font */
    }

    calendarMonth day[isdaycurrent="1"] dayNumber {
        background-color: var(--alternate-background);
        color: var(--alternate-background-text-color);
        font-weight: bold;
    }

    calendarMonth day[isdaycurrent="1"] openingHours {
        font-weight: bold;
    }

    calendarMonth changePage[aria-disabled="true"] {
        cursor: not-allowed;
    }

    calendarMonth changePage[aria-disabled="false"] {
        cursor: pointer;
    }

div.qr-code-card {
    border: 1px solid var(--primary-color);
    padding: .5rem;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

    div.qr-code-card img {
        min-width: 200px;
        max-width: 400px;
    }

@media (min-width: 768px) {
}

@media (max-width: 768px) {
    calendarMonth title {
       display: none;
    }

    calendarMonth shortTitle {
        display: initial;
    }

    calendarMonth openingHours {
        display: none;
    }

    calendarMonth day dayName {
        display: inline;
        padding-right:.5rem;
    }

    calendarMonth dayHeader {
        display: none;
    }

    calendarMonth {
        grid-template-columns: 1fr; /* Single column taking full width */
    }

        calendarMonth monthHeader {
            grid-column: span 1; /* Span only 1 column in mobile view */
            padding: 0.5rem; /* Reduce padding for mobile */
        }

        calendarMonth day {
            padding: 0.5rem; /* Reduce padding for mobile */
            margin-bottom: 0.5rem; /* Add some spacing between days */
        }
            calendarMonth day event img {
                width: auto; /* Take full width of container */
                height: 144px; /* Maintain aspect ratio */
                _width: 100%; /* Take full width of container */
                _height: auto; /* Maintain aspect ratio */
                max-width: none; /* Remove max-width restriction */
                max-height: none; /* Remove max-height restriction */
                min-width: auto; /* Remove min-width restriction */
                min-height: auto; /* Remove min-height restriction */
            }

            calendarMonth day event .msg {
                width: 100%; /* Take full width of container */
                height: auto; /* Allow height to adjust based on content */
                max-width: none; /* Remove max-width restriction */
                max-height: none; /* Remove max-height restriction */
                min-width: auto; /* Remove min-width restriction */
                min-height: auto; /* Remove min-height restriction */
                padding: 1rem; /* Add some padding for better readability */
                font-size: 1rem; /* Use normal font size */
            }

}

#hoursTable td {
    padding: .25rem;
}
    #hoursTable open::after {
        content: " - "
    }

/* Add this to your site.css or a relevant stylesheet */
.calendar-image-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.calendar-image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 20px #000;
    border-radius: 8px;
}
.calendar-image-modal.hidden {
    display: none;
}

.dropdown-menu {
    background: var(--light-background) !important;
    color: var(--light-background-color) !important;
}

/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    padding: .5rem;
}

.logo {
    height: 120px;
}

.headerbar {
    padding: 10px 0;
}

.navbar-brand {
    padding: 0;
    margin-right: 0;
}

/* Force navbar link colors */
.navbar .nav-link {
    color: white !important;
}

    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        color: var(--secondary-color) !important;
    }

    .navbar .nav-link.disabled {
        color: var(--bs-navbar-disabled-color) !important;
    }

/* Dropdown items */
.navbar .dropdown-item {
    color: var(--light-background-color);
}

    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background-color: transparent;
        color: var(--secondary-color);
    }

.navbar-toggler {
    border-color: var(--bs-navbar-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .logo {
        height: 80px;
    }

    .navbar-collapse {
        text-align: center;
    }
}


/* About page history images */
.about-img-left,
.about-img-right {
    max-width: 340px;
    margin-bottom: 1rem;
}

.about-img-left {
    float: left;
    clear: left;
    margin-right: 1.5rem;
}

.about-img-right {
    float: right;
    clear: right;
    margin-left: 1.5rem;
}

.about-img-left img,
.about-img-right img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.about-img-left figcaption,
.about-img-right figcaption {
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.65;
    margin-top: 0.3rem;
}

article.about {
    overflow: hidden;
}

@media (max-width: 540px) {
    .about-img-left,
    .about-img-right {
        float: none;
        margin: 1rem auto;
        max-width: 100%;
    }
}

/* =======================================================
   TOC Page Layout — centralized sticky sidebar TOC system
   Usage: wrap a .toc-container + .toc-content (or .menu-cats)
          inside a single <div class="toc-page-layout">
   ======================================================= */
.toc-page-layout {
    position: relative;
}

.toc-container {
    position: absolute;
    right: 1rem;
    top: 0;
    width: 250px;
}

.floating-toc {
    background: var(--toc-bg);
    border: 2px solid var(--toc-border);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

    .floating-toc.sticky {
        position: fixed;
        top: 20px;
        right: 1rem;
        z-index: 1000;
        width: 250px;
        box-sizing: border-box;
    }

    .floating-toc h3 {
        margin: 0 0 10px 0;
        font-size: 1.1rem;
        color: var(--primary-color);
    }

    .floating-toc ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .floating-toc li {
        margin: 5px 0;
    }

    .floating-toc a {
        text-decoration: none;
        color: var(--toc-text);
        padding: 5px 8px;
        border-radius: 4px;
        display: block;
        transition: background-color 0.2s;
    }

        .floating-toc a:hover {
            background-color: var(--toc-hover-bg);
            color: var(--primary-color);
        }

        .floating-toc a.active {
            background-color: var(--primary-color);
            color: white;
        }

@media (min-width: 993px) {
    .toc-page-layout > .toc-content,
    .toc-page-layout > .menu-cats {
        margin-right: calc(250px + 2rem);
    }
}

@media (max-width: 992px) {
    .toc-container {
        position: static;
        width: 100%;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .floating-toc {
        width: 100%;
        position: static !important;
    }

    .floating-toc h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .floating-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .floating-toc li {
        margin: 0;
    }

    .floating-toc a {
        display: inline-block;
        padding: 8px 12px;
        background-color: var(--primary-color, #0c08de);
        color: white;
        border-radius: 4px;
        font-size: 0.9rem;
    }

    .floating-toc a:hover {
        background-color: var(--secondary-color, #de08a5);
        color: white;
    }

    .floating-toc a.active {
        background-color: var(--accent-color, #ad08de);
        color: white;
    }
}

/* Guarantee white text inside ns-application (public dark-theme forms) — must stay last */
.ns-application label,
.ns-application legend,
.ns-application .form-container label,
.ns-application .form-group label,
.ns-application .form-row label,
.ns-application fieldset label,
.ns-application fieldset legend,
.ns-application fieldset fieldset label,
.ns-application fieldset fieldset legend,
.ns-application .form-check-label,
.ns-application fieldset .form-check-label,
.ns-application fieldset fieldset .form-check-label,
.ns-application div label,
.ns-application div .form-check-label {
    color: #ffffff !important;
    font-weight: 500;
}

/* ── tvToday — shared styles for today's special-event promo slides ───────── */
tvToday {
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: black;
    box-sizing: border-box;
}

    tvToday > legend {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: clamp(32px, 6vw, 64px);
        color: white;
        font-weight: bold;
    }

        tvToday > legend > img {
            max-height: 180px;
            max-width: fit-content;
        }

    tvToday > specialEvents {
        display: flex;
        width: 100%;
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
    }

        tvToday > specialEvents > event {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: .5rem;
        }

            tvToday > specialEvents > event > img {
                max-width: min(66vw, 480px);
                max-height: 50vh;
                border-radius: 8px;
            }

            tvToday > specialEvents > event > eventTitle,
            tvToday > specialEvents > event > eventType {
                color: white;
                font-size: clamp(16px, 3vw, 28px);
                text-align: center;
            }

            tvToday > specialEvents > event > eventType {
                opacity: .7;
                font-size: clamp(14px, 2.5vw, 22px);
            }

/* TV page overrides for larger display sizes */
.tv-fullscreen tvToday > legend {
    font-size: 64px;
}

.tv-fullscreen tvToday > legend > img {
    max-height: 240px;
}

.tv-fullscreen tvToday > specialEvents > event > img {
    max-width: 66vw;
    max-height: 66vh;
    border-radius: 0;
}

.tv-fullscreen tvToday > specialEvents > event > eventTitle,
.tv-fullscreen tvToday > specialEvents > event > eventType {
    font-size: 32px;
}
