/* Meal page: header, menu and contacts come from the main site. Greens from the
   RusliX × Havírna logo with a lime accent; no red (Ruslan 27 Oct). Every text
   colour pair is at least 4.5 : 1. */
:root {
    --meal-cream: #fbf6ec;
    --meal-ink: #16201a;
    --meal-green: #2f5a1e;
    --meal-leaf: #4d7a1f;
    --meal-olive: #607a17;
    --meal-lime: #cfe58a;
    --meal-mint: #eef5dc;
}

/* Ruslan's own photo of boxes, stickers and flyers (T52) under a green veil. Larger screens: a fixed
   layer as tall as the screen with the browser bars hidden (lvh), so it does not jump when a bar hides. */
body.meal-page { background: none; color: var(--meal-ink); }
body.meal-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100lvh;
    z-index: -1;
    background: linear-gradient(rgba(36, 66, 22, 0.45), rgba(36, 66, 22, 0.45)), url("pozadi-krabicky.webp") center / cover no-repeat, #2b4a1c;
}
/* Phones: Safari (iOS 26) does not draw fixed elements under its bottom address bar, so the photo is the
   page background and scrolls with the page. Safari fills the strip under the bar with the body's
   background colour: dark green over the photo, the footer's cream once the footer is at the bottom. */
@media (max-width: 700px) {
    body.meal-page::before { content: none; }
    body.meal-page {
        background: linear-gradient(rgba(36, 66, 22, 0.45), rgba(36, 66, 22, 0.45)),
            url("pozadi-krabicky.webp") center top / 100% auto repeat-y, #2b4a1c;
    }
    html.footer-at-bottom body.meal-page { background-color: #f6f0e4; }
}
/* Solid footer here, and the same cream below it and behind Safari's toolbar. */
html:has(body.meal-page) { background-color: #f6f0e4; }
.meal-page .contacts { background: #f6f0e4; }

.meal {
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(24px, 5vw, 64px) 16px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 3vw, 32px);
    line-height: 1.7;
    overflow-wrap: anywhere;
}
/* Body text is Lexend (style.css); like the headings, these stay in Science Gothic. */
:is(.meal__button, .meal__badge a, .meal__slogans li, .meal__eyebrow, .meal__lead, .meal__kcal, .meal__package-kcal dd,
    .meal__prices thead th, .meal__prices td, .menu-week__title, .menu-week__label, .menu-meal__course, .menu-meal__kcal) {
    font-family: var(--font-display);
}
.meal p + p { margin-top: 14px; }
.meal a { color: var(--meal-green); text-decoration: underline; text-underline-offset: 3px; }
.meal h2 { color: var(--meal-green); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.3; margin-bottom: 18px; }
.meal h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 6px;
    margin-top: 10px;
    border-radius: 3px;
    background: var(--meal-lime);
}
.meal h3 { font-size: 20px; line-height: 1.35; margin-bottom: 6px; }
.meal__card h3 { margin-top: 22px; }
.meal__places h3, .meal__contacts h3 { margin-top: 0; }

.meal__hero,
.meal__card {
    background: rgba(251, 246, 236, 0.96);
    border-radius: 28px;
    padding: clamp(22px, 4vw, 48px);
    box-shadow: 0 18px 50px rgba(16, 32, 10, 0.3);
}
.meal__hero {
    display: grid;
    grid-template-columns: minmax(160px, 280px) 1fr;
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
}
.meal__logo { width: 100%; height: auto; border-radius: 50%; box-shadow: 0 10px 30px rgba(22, 32, 26, 0.25); }
.meal__eyebrow { color: var(--meal-leaf); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px; }
.meal h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.15; margin-block: 8px 12px; }
/* The brand line sits inside the H1 (T53, search for "RusliX krabičky"), styled as before. */
.meal h1 .meal__eyebrow { display: block; margin-bottom: 8px; line-height: 1.7; }
.meal h1:has(.meal__eyebrow) { margin-top: 0; }
.meal__lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--meal-green); font-weight: 700; }
/* Ruslan's opening paragraphs, a little larger than body text (27 Oct). */
.meal__intro p:not([class]) { font-size: clamp(17px, 1.9vw, 19px); }

.meal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.meal .meal__button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--meal-green);
    color: var(--meal-cream);
    font-weight: 700;
    text-decoration: none;
}
.meal .meal__button--ghost { background: var(--meal-lime); color: var(--meal-ink); }
.meal .meal__button:hover { filter: brightness(1.12); }

.meal__portions,
.meal__places { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 18px; }
.meal__portions { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.meal__places { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.meal__portions li {
    padding: 18px 20px;
    border-radius: 20px;
    background: var(--meal-mint);
}
.meal__portions strong { display: block; color: var(--meal-green); font-size: 19px; }
.meal__kcal { display: block; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; line-height: 1.3; }
.meal__hint { font-size: 15px; margin-top: 14px; }
.meal__places li {
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    border-top: 6px solid var(--meal-leaf);
}
.meal__address { font-weight: 700; color: var(--meal-green); }

.meal__slogans {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.meal__slogans li {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--meal-green);
    color: var(--meal-cream);
    font-weight: 700;
    text-align: center;
}
.meal__slogans li:nth-child(3n + 2) { background: var(--meal-lime); color: var(--meal-ink); }
.meal__slogans li:nth-child(3n) { background: var(--meal-cream); color: var(--meal-green); }

/* Prices: one row per variant, columns for the two portion sizes. */
.meal__table { overflow-x: auto; }
.meal__prices {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    font-variant-numeric: tabular-nums;
    overflow-wrap: normal;
}
.meal__prices th, .meal__prices td { padding: 14px 18px; text-align: left; }
.meal__prices thead th { background: var(--meal-green); color: var(--meal-cream); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.meal__prices tbody tr + tr > * { border-top: 1px solid var(--meal-mint); }
.meal__prices tbody th { font-weight: 700; }
.meal__prices tbody th span { display: block; font-weight: 400; font-size: 15px; color: #4b5a4e; }
.meal__prices td { font-weight: 700; color: var(--meal-green); white-space: nowrap; font-size: 19px; }
.meal__table + p { margin-top: 18px; }

/* Packages by number of meals (T47): one photo of all the boxes together. */
.meal__packages {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.meal__package { display: grid; align-content: start; overflow: hidden; border-radius: 20px; background: #fff; }
.meal__package-photos {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 3px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
}
.meal__package-photos img, .meal__package-photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.meal .meal__package h3 { margin: 16px 20px 0; color: var(--meal-green); font-size: 24px; }
.meal__package-meals { margin-inline: 20px; font-size: 15px; color: #4b5a4e; }
.meal__package-kcal { display: grid; gap: 8px; margin: 12px 20px 20px; }
.meal__package-kcal div { padding-top: 8px; border-top: 1px solid var(--meal-mint); }
.meal__package-kcal dt { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--meal-olive); }
.meal__package-kcal dd { margin: 0; font-size: 19px; font-weight: 700; color: var(--meal-green); }
/* Ruslan wants the protein bonus to catch the eye (29 Oct). */
.meal .meal__bonus { margin-top: 18px; padding: clamp(18px, 3vw, 28px); border-radius: 20px; background: var(--meal-green); color: var(--meal-cream); }
.meal .meal__bonus h3 { margin: 0 0 8px; color: var(--meal-lime); font-size: clamp(24px, 3.4vw, 32px); text-transform: uppercase; letter-spacing: 0.02em; }
.meal .meal__bonus p { font-size: clamp(17px, 1.9vw, 19px); }
.meal__bonus + p { margin-top: 18px; }
.meal .meal__badge a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--meal-lime);
    color: var(--meal-ink);
    font-weight: 700;
    text-decoration: none;
}

.meal__contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.meal__contacts ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.meal__contacts li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }

/* Weekly menu, rendered by /jidelnicek.js. */
.menu { display: grid; gap: 28px; }
.menu-week__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.menu-week__label { color: var(--meal-ink); background: var(--meal-lime); padding: 2px 12px; border-radius: 999px; }
/* Collapsible weeks (data-tydny="sbalene"): the title line opens the week. */
.menu-week__toggle { display: block; cursor: pointer; list-style: none; }
.menu-week__toggle::-webkit-details-marker { display: none; }
.menu-week__toggle .menu-week__title { align-items: center; }
details.menu-week:not([open]) .menu-week__toggle { padding: 10px 14px; border-radius: 16px; background: #fff; }
details.menu-week[open] .menu-week__toggle .menu-summary__chevron { transform: translateY(0.05em) rotate(-135deg); }
.menu-week__note { font-style: italic; }
.menu-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 10px; }
.menu-day { background: #fff; border-radius: 18px; padding: 16px 18px; border: 2px solid transparent; }
.menu-day--today { border-color: var(--meal-leaf); }
.menu-salads { grid-column: 1 / -1; background: var(--meal-cream); border-color: var(--meal-lime); }
.meal .menu-salads__hint { margin: -4px 0 10px; font-size: 15px; font-weight: 700; color: var(--meal-olive); }
.meal .menu-day__title { font-size: 18px; color: var(--meal-green); margin-bottom: 8px; }
.menu-meals { list-style: none; padding: 0; display: grid; gap: 10px; }
.menu-meal { display: grid; line-height: 1.45; }
.menu-meal__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.menu-meal__course { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--meal-olive); }
/* Calories a little larger, beside the dish (Ruslan 5 Nov). */
.menu-meal__kcal { font-size: 16px; font-weight: 700; color: var(--meal-green); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-meal__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 8px; border-radius: 12px; }
.menu-meal__photo-button, .meal__package-photo { display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* A photo opened large (jidelnicek.js). */
.photo-viewer {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 16px;
    border: 0;
    background: rgba(10, 16, 8, 0.94);
    color: #fbf6ec;
    font-family: inherit;
}
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 12px; }
.photo-viewer::backdrop { background: rgba(10, 16, 8, 0.6); }
.photo-viewer__close {
    justify-self: end;
    min-height: 44px;
    padding: 0 18px;
    border: 2px solid var(--meal-lime);
    border-radius: 999px;
    background: transparent;
    color: #fbf6ec;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.photo-viewer__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.photo-viewer__caption { margin: 0; text-align: center; font-weight: 700; }
.menu-meal__name { font-weight: 700; }
.menu-meal__allergens { font-size: 14px; color: #4b5a4e; }
/* The global reset removes markers, so disclosures get a drawn chevron and lists their bullets back. */
.menu-meal__details > summary, .menu-legend > summary { display: block; cursor: pointer; }
.menu-meal__details > summary::-webkit-details-marker, .menu-legend > summary::-webkit-details-marker { display: none; }
.menu-summary__tail { white-space: nowrap; }
.menu-summary__chevron {
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    margin-left: 0.5em;
    border-right: 2px solid var(--meal-leaf);
    border-bottom: 2px solid var(--meal-leaf);
    transform: translateY(-0.2em) rotate(45deg);
}
[open] > summary .menu-summary__chevron { transform: translateY(0.05em) rotate(-135deg); }
.menu-meal__ingredients { padding-left: 20px; margin-top: 4px; font-size: 14px; }
.menu-meal__ingredients li { list-style: disc; }
.menu-day__closed { font-style: italic; }
.menu-notes { display: grid; gap: 6px; font-size: 15px; }
.meal .menu-notes p { margin: 0; }
.menu-legend { font-size: 15px; }
.menu-legend > summary { color: var(--meal-green); }
.menu-legend ol { padding-left: 28px; margin-block: 8px; }
.menu-legend li { list-style: decimal; }

.meal__back { text-align: center; }
.meal__back a { background: rgba(251, 246, 236, 0.94); padding: 8px 16px; border-radius: 999px; }

@media (max-width: 640px) {
    .meal__hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .meal__hero, .meal__card { padding-inline: 18px; }
    .meal__logo { max-width: 220px; margin-inline: auto; }
    .meal__actions { justify-content: center; }
    .meal__prices th, .meal__prices td { padding: 12px 8px; }
    .meal__prices th:first-child { padding-left: 14px; }
    .meal__prices thead th { font-size: 12px; letter-spacing: 0; }
    .meal__prices tbody th span { font-size: 14px; }
    .meal__prices td { font-size: 16px; }
}
@media (max-width: 359px) {
    .meal { padding-inline: 10px; }
    .meal__hero, .meal__card { padding-inline: 12px; }
    .meal__prices td { font-size: 15px; }
}
